too much to enumerate, too little time, have to push
This commit is contained in:
parent
9f90d357fd
commit
a8f0deab28
14 changed files with 567 additions and 17 deletions
|
|
@ -3,18 +3,18 @@ from sqlalchemy import Column, INTEGER, String
|
|||
|
||||
class Vendor(db.Model):
|
||||
__tablename__ = 'vendor'
|
||||
id = Column('id', INTEGER(), primary_key=True)
|
||||
id = Column('id', INTEGER(), primary_key=True, autoincrement=True)
|
||||
name = Column('name', String(), nullable=False)
|
||||
bc_id = Column('bc_id', INTEGER(), nullable=True)
|
||||
|
||||
class BudgetCategory(db.Model):
|
||||
__tablename__ = 'budget_category'
|
||||
id = Column('id', INTEGER(), primary_key=True)
|
||||
id = Column('id', INTEGER(), primary_key=True, autoincrement=True)
|
||||
name = Column('name', String(), nullable=False)
|
||||
|
||||
class LineItem(db.Model):
|
||||
__tablename__ = 'line_item'
|
||||
id = Column('id', INTEGER(), primary_key=True)
|
||||
id = Column('id', INTEGER(), primary_key=True, autoincrement=True)
|
||||
parent_line_item_id = Column('parent_line_item_id', INTEGER(), nullable=True)
|
||||
amount = Column('amount', INTEGER(), nullable=False)
|
||||
currency_type = Column('currency_type', String(), default='shekel')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue