first commit
This commit is contained in:
25
app/models/admin.py
Normal file
25
app/models/admin.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from sqlalchemy import (Column, INTEGER, TIMESTAMP, VARCHAR)
|
||||
from datetime import datetime
|
||||
from app.database import Base
|
||||
|
||||
|
||||
|
||||
|
||||
class Admin_Company(Base):
|
||||
__tablename__ = 'admin_company'
|
||||
__bind_key__ = 'eamco'
|
||||
__table_args__ = {"schema": "public"}
|
||||
|
||||
id = Column(INTEGER,
|
||||
primary_key=True,
|
||||
autoincrement=True,
|
||||
unique=False)
|
||||
creation_date = Column(TIMESTAMP(), default=datetime.utcnow())
|
||||
account_prefix = Column(VARCHAR(5))
|
||||
company_name = Column(VARCHAR(250))
|
||||
company_address = Column(VARCHAR(250))
|
||||
company_town = Column(VARCHAR(100))
|
||||
company_zip = Column(VARCHAR(25))
|
||||
company_state = Column(INTEGER())
|
||||
company_phone_number = Column(VARCHAR(50))
|
||||
|
||||
Reference in New Issue
Block a user