first commit

This commit is contained in:
2024-07-15 17:55:45 -04:00
commit 853529b871
23 changed files with 454 additions and 0 deletions

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

@@ -0,0 +1,32 @@
from sqlalchemy import (Column, Integer,
DECIMAL, Text,
VARCHAR, TIMESTAMP,
Date, INTEGER)
from datetime import datetime, timezone
from 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())
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))
company_id = Column(INTEGER)