Updated auto pre testing

This commit is contained in:
2024-07-24 17:22:14 -04:00
parent 6c3b38341b
commit 8273f063ed
5 changed files with 229 additions and 12 deletions

View File

@@ -46,4 +46,5 @@ class Auto_Delivery(Base):
estimated_gallons_left_prev_day = Column(INTEGER())
tank_height = Column(VARCHAR(25))
tank_size = Column(VARCHAR(25))
house_factor = Column(DECIMAL(5, 2))
house_factor = Column(DECIMAL(5, 2))
auto_status = Column(INTEGER())

30
app/models/cards.py Normal file
View File

@@ -0,0 +1,30 @@
from sqlalchemy import (Column, Integer,
DECIMAL, Text, BOOLEAN,
VARCHAR, TIMESTAMP,
Date, INTEGER)
from datetime import datetime, timezone
from database import Base
class Card_Card(Base):
__tablename__ = 'card_card'
__bind_key__ = 'eamco'
__table_args__ = {"schema": "public"}
id = Column(Integer,
primary_key=True,
autoincrement=True,
unique=False)
date_added = Column(TIMESTAMP(), default=datetime.utcnow())
user_id = Column(INTEGER())
card_number = Column(VARCHAR(50))
last_four_digits = Column(INTEGER())
name_on_card = Column(VARCHAR(500))
expiration_month = Column(INTEGER())
expiration_year = Column(INTEGER())
type_of_card = Column(VARCHAR(500))
security_number = Column(INTEGER())
accepted_or_declined = Column(INTEGER())
main_card = Column(BOOLEAN())

30
app/models/employee.py Normal file
View File

@@ -0,0 +1,30 @@
from sqlalchemy import (Column, INTEGER,
DECIMAL, TEXT,
VARCHAR, TIMESTAMP, DATE)
import datetime
from database import Base
class Employee_Employee(Base):
__tablename__ = 'employee_employee'
__bind_key__ = 'eamco'
__table_args__ = {"schema": "public"}
id = Column(INTEGER,
primary_key=True,
autoincrement=True,
unique=False)
user_id = Column(INTEGER)
employee_first_name = Column(VARCHAR(250))
employee_last_name = Column(VARCHAR(250))
employee_apt = Column(VARCHAR(250))
employee_address = Column(VARCHAR(1000))
employee_town = Column(VARCHAR(140))
employee_state = Column(VARCHAR(140))
employee_zip = Column(VARCHAR(25))
employee_birthday = Column(DATE())
employee_type = Column(INTEGER)
employee_phone_number = Column(VARCHAR(25))
employee_start_date = Column(DATE())
employee_end_date = Column(DATE(), default=None)