Working site
This commit is contained in:
@@ -128,5 +128,54 @@ class Customer_Tank_Inspection(db.Model):
|
|||||||
class Customer_Tank_Inspection_schema(ma.SQLAlchemyAutoSchema):
|
class Customer_Tank_Inspection_schema(ma.SQLAlchemyAutoSchema):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Customer_Tank_Inspection
|
model = Customer_Tank_Inspection
|
||||||
|
|
||||||
|
|
||||||
|
class Customer_estimate_gallons(db.Model):
|
||||||
|
__tablename__ = 'customer_estimate'
|
||||||
|
__table_args__ = {"schema": "public"}
|
||||||
|
|
||||||
|
id = db.Column(db.Integer,
|
||||||
|
primary_key=True,
|
||||||
|
autoincrement=True,
|
||||||
|
unique=False)
|
||||||
|
|
||||||
|
customer_id = db.Column(db.INTEGER)
|
||||||
|
account_number = db.Column(db.VARCHAR(25))
|
||||||
|
customer_town = db.Column(db.VARCHAR(140))
|
||||||
|
customer_state = db.Column(db.INTEGER)
|
||||||
|
customer_address = db.Column(db.VARCHAR(1000))
|
||||||
|
customer_zip = db.Column(db.VARCHAR(25))
|
||||||
|
customer_full_name = db.Column(db.VARCHAR(250))
|
||||||
|
last_fill = db.Column(db.DATE)
|
||||||
|
days_since_last_fill = db.Column(db.INTEGER)
|
||||||
|
last_updated = db.Column(db.DATE)
|
||||||
|
estimated_gallons_left = db.Column(db.DECIMAL(6, 2))
|
||||||
|
estimated_gallons_left_prev_day = db.Column(db.DECIMAL(6, 2))
|
||||||
|
tank_height = db.Column(db.VARCHAR(25))
|
||||||
|
tank_size = db.Column(db.VARCHAR(25))
|
||||||
|
house_factor = db.Column(db.DECIMAL(5, 2))
|
||||||
|
auto_status = db.Column(db.INTEGER)
|
||||||
|
open_ticket_id = db.Column(db.Integer, nullable=True)
|
||||||
|
hot_water_summer = db.Column(db.INTEGER)
|
||||||
|
|
||||||
|
|
||||||
|
class Customer_estimate_gallons_schema(ma.SQLAlchemyAutoSchema):
|
||||||
|
class Meta:
|
||||||
|
model = Customer_estimate_gallons
|
||||||
|
|
||||||
|
|
||||||
|
class Customer_Update(db.Model):
|
||||||
|
__tablename__ = 'customer_update'
|
||||||
|
__table_args__ = {"schema": "public"}
|
||||||
|
|
||||||
|
id = db.Column(db.Integer,
|
||||||
|
primary_key=True,
|
||||||
|
autoincrement=True,
|
||||||
|
unique=False)
|
||||||
|
|
||||||
|
last_updated = db.Column(db.DATE)
|
||||||
|
|
||||||
|
|
||||||
|
class Customer_Update_schema(ma.SQLAlchemyAutoSchema):
|
||||||
|
class Meta:
|
||||||
|
model = Customer_Update
|
||||||
|
|||||||
Reference in New Issue
Block a user