Fix id
field for TaxRateComponent
This commit is contained in:
parent
14a182c675
commit
d818100da3
|
@ -260,7 +260,8 @@ class TaxRateComponent(Base):
|
||||||
sa.ForeignKeyConstraint(['taxRateID'], ['taxrates.id']),
|
sa.ForeignKeyConstraint(['taxRateID'], ['taxrates.id']),
|
||||||
)
|
)
|
||||||
|
|
||||||
id = sa.Column(sa.Integer(), primary_key=True, autoincrement=True, nullable=False)
|
taxRateComponentID = sa.Column(sa.Integer(), primary_key=True, autoincrement=True, nullable=False)
|
||||||
|
id = orm.synonym('taxRateComponentID')
|
||||||
|
|
||||||
tax_rate_id = sa.Column('taxRateID', sa.Integer())
|
tax_rate_id = sa.Column('taxRateID', sa.Integer())
|
||||||
tax_rate = orm.relationship(TaxRate, backref='components')
|
tax_rate = orm.relationship(TaxRate, backref='components')
|
||||||
|
|
Loading…
Reference in a new issue