first commit
This commit is contained in:
29
app/models/customer.py
Normal file
29
app/models/customer.py
Normal 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))
|
||||
Reference in New Issue
Block a user