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


from database import TableBase, Column, ForeignKey, \
    Integer, INTEGER, TINYINT, VARCHAR, LONGTEXT, DATE, DATETIME, TEXT, BINARY, DOUBLE


class BiobrickUser(TableBase):
    __tablename__ = 'parts_by_user'

    part_id = Column(INTEGER(11), primary_key=True)
    ok = Column(TINYINT(1))
    part_name = Column(VARCHAR(255))
    short_desc = Column(VARCHAR(100))
    description = Column(LONGTEXT)
    part_type = Column(VARCHAR(20))

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


# Path: plugins/biobrick_manager/BiobrickUser.py
from database import TableBase, Column, ForeignKey, \
    Integer, INTEGER, TINYINT, VARCHAR, LONGTEXT, DATE, DATETIME, TEXT, BINARY, DOUBLE



class BiobrickUser(TableBase):
    __tablename__ = 'parts_by_user'

    part_id = Column(INTEGER(11), primary_key=True)
    ok = Column(TINYINT(1))
    part_name = Column(VARCHAR(255))
    short_desc = Column(VARCHAR(100))
    description = Column(LONGTEXT)
    part_type = Column(VARCHAR(20))

    author = Column(VARCHAR(200))