# Path: database.py
# def get_session():
# def teardown_session(exception):


from database import TableBase, Column, String, ForeignKey, Integer


class Link(TableBase):
    """A link between two nodes, for path_finder."""

    __tablename__ = 'link'
    link_id = Column(Integer, primary_key=True, autoincrement=True)
    tax_id = Column(String(10))
    node_a_id = Column(String(10))
    node_b_id = Column(String(10))
    link_catalog = Column(String(256))

# Path: database.py
# def get_session():
# def teardown_session(exception):


# Path: models/link.py
from database import TableBase, Column, String, ForeignKey, Integer



class Link(TableBase):
    """A link between two nodes, for path_finder."""

    __tablename__ = 'link'
    link_id = Column(Integer, primary_key=True, autoincrement=True)
    tax_id = Column(String(10))
    node_a_id = Column(String(10))
    node_b_id = Column(String(10))
    link_catalog = Column(String(256))

    link_name = Column(String(256))