first commit
This commit is contained in:
31
app/models/customer.py
Normal file
31
app/models/customer.py
Normal file
@@ -0,0 +1,31 @@
|
||||
from sqlalchemy import (Column, Integer,
|
||||
String,
|
||||
VARCHAR,
|
||||
DATE, INTEGER)
|
||||
from database import Base
|
||||
|
||||
|
||||
class Customer_Customer(Base):
|
||||
__tablename__ = 'customer_customer'
|
||||
|
||||
id = Column(Integer,
|
||||
primary_key=True,
|
||||
autoincrement=True,
|
||||
unique=False)
|
||||
auth_net_profile_id = Column(String, unique=True, index=True, nullable=True)
|
||||
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(DATE())
|
||||
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user