33 lines
980 B
Python
33 lines
980 B
Python
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)
|
|
|
|
|