Added service plan. Password change
This commit is contained in:
@@ -60,4 +60,26 @@ class Service_Parts_schema(ma.SQLAlchemyAutoSchema):
|
||||
class Meta:
|
||||
model = Service_Parts
|
||||
scheduled_date = ma.DateTime(format='%Y-%m-%dT%H:%M:%S')
|
||||
when_ordered = ma.DateTime(format='%Y-%m-%dT%H:%M:%S')
|
||||
when_ordered = ma.DateTime(format='%Y-%m-%dT%H:%M:%S')
|
||||
|
||||
|
||||
|
||||
class Service_Plans(db.Model):
|
||||
__tablename__ = 'service_plans'
|
||||
__table_args__ = {"schema": "public"}
|
||||
|
||||
id = db.Column(db.Integer,
|
||||
primary_key=True,
|
||||
autoincrement=True,
|
||||
unique=False)
|
||||
|
||||
customer_id = db.Column(db.INTEGER)
|
||||
contract_plan = db.Column(db.INTEGER, default=0) # 0=no contract, 1=standard, 2=premium
|
||||
contract_years = db.Column(db.INTEGER, default=1)
|
||||
contract_start_date = db.Column(db.DATE())
|
||||
|
||||
|
||||
class Service_Plans_schema(ma.SQLAlchemyAutoSchema):
|
||||
class Meta:
|
||||
model = Service_Plans
|
||||
contract_start_date = ma.DateTime(format='%Y-%m-%d')
|
||||
|
||||
Reference in New Issue
Block a user