Updated auto
This commit is contained in:
@@ -35,14 +35,14 @@ class Auto_Delivery(db.Model):
|
||||
autoincrement=True,
|
||||
unique=False)
|
||||
customer_id = db.Column(db.INTEGER())
|
||||
customer_full_name = db.Column(db.DECIMAL(50, 2))
|
||||
customer_full_name = db.Column(db.DECIMAL(5, 2))
|
||||
last_fill = db.Column(db.TIMESTAMP())
|
||||
last_updated = db.Column(db.TIMESTAMP())
|
||||
estimated_gallons_left = db.Column(db.INTEGER())
|
||||
estimated_gallons_left_prev_day = db.Column(db.INTEGER())
|
||||
tank_height = db.Column(db.VARCHAR(25))
|
||||
tank_size = db.Column(db.VARCHAR(25))
|
||||
k_factor = db.Column(db.DECIMAL(50, 2))
|
||||
house_factor = db.Column(db.DECIMAL(5, 2))
|
||||
|
||||
class Auto_Delivery_schema(ma.SQLAlchemyAutoSchema):
|
||||
class Meta:
|
||||
|
||||
@@ -18,7 +18,7 @@ class Customer_Customer(db.Model):
|
||||
customer_town = db.Column(db.VARCHAR(140))
|
||||
customer_state = db.Column(db.INTEGER)
|
||||
customer_zip = db.Column(db.VARCHAR(25))
|
||||
customer_first_call = db.Column(db.TIMESTAMP(), default=datetime.utcnow())
|
||||
customer_first_call = db.Column(db.TIMESTAMP())
|
||||
customer_email = db.Column(db.VARCHAR(500))
|
||||
customer_automatic = db.Column(db.INTEGER)
|
||||
customer_phone_number = db.Column(db.VARCHAR(25))
|
||||
@@ -75,9 +75,12 @@ class Customer_Payment_Credit(db.Model):
|
||||
credit_card_name = db.Column(db.VARCHAR(240))
|
||||
credit_card_number = db.Column(db.VARCHAR(140))
|
||||
credit_card_security = db.Column(db.VARCHAR(140))
|
||||
customer_card_expiration = db.Column(db.TIMESTAMP(), default=datetime.utcnow())
|
||||
customer_card_expiration = db.Column(db.TIMESTAMP())
|
||||
|
||||
|
||||
class Customer_Payment_Credit_schema(ma.SQLAlchemyAutoSchema):
|
||||
class Meta:
|
||||
model = Customer_Payment_Credit
|
||||
model = Customer_Payment_Credit
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user