Add data model for ProductFlag
This commit is contained in:
parent
78317b9272
commit
08a062f654
|
@ -281,6 +281,23 @@ class Product(Base):
|
||||||
return self.description or ''
|
return self.description or ''
|
||||||
|
|
||||||
|
|
||||||
|
@six.python_2_unicode_compatible
|
||||||
|
class ProductFlag(Base):
|
||||||
|
"""
|
||||||
|
Represents a product flag attribute.
|
||||||
|
"""
|
||||||
|
__tablename__ = 'prodFlags'
|
||||||
|
|
||||||
|
bit_number = sa.Column(sa.SmallInteger(), primary_key=True, autoincrement=False, nullable=False, default=0)
|
||||||
|
|
||||||
|
description = sa.Column(sa.String(length=50), nullable=True)
|
||||||
|
|
||||||
|
active = sa.Column(sa.Boolean(), nullable=True, default=True)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.description or ''
|
||||||
|
|
||||||
|
|
||||||
class Employee(Base):
|
class Employee(Base):
|
||||||
"""
|
"""
|
||||||
Represents an employee within the organization.
|
Represents an employee within the organization.
|
||||||
|
|
Loading…
Reference in a new issue