first commit

This commit is contained in:
2024-06-14 16:09:27 -04:00
commit 11b023cd2b
34 changed files with 366 additions and 0 deletions

29
app/models/customer.py Normal file
View File

@@ -0,0 +1,29 @@
from sqlalchemy import Column, Integer,\
DECIMAL, Text,\
VARCHAR, TIMESTAMP, Date
import datetime
from app.database import Base
class Customer_Customer(Base):
__tablename__ = 'customer_customer'
id = Column(Integer,
primary_key=True,
autoincrement=True,
unique=False)
account_number = Column(VARCHAR(25))
customer_last_name = Column(VARCHAR(250))
customer_first_name = Column(VARCHAR(250))
customer_town = Column(VARCHAR(140))
customer_state = Column(Integer)
customer_zip = Column(VARCHAR(25))
customer_first_call = Column(TIMESTAMP(), default=datetime.utcnow())
customer_email = Column(VARCHAR(500))
customer_automatic = Column(Integer)
customer_phone_number = Column(VARCHAR(25))
customer_home_type = Column(Integer)
customer_apt = Column(VARCHAR(140))
customer_address = Column(VARCHAR(1000))