small fixes
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,
|
||||
DECIMAL, TEXT,
|
||||
VARCHAR, DATE, INTEGER)
|
||||
from datetime import datetime
|
||||
from database import Base
|
||||
|
||||
|
||||
|
||||
class Admin_Company(Base):
|
||||
__tablename__ = 'admin_company'
|
||||
__table_args__ = {"schema": "public"}
|
||||
|
||||
id = Column(Integer,
|
||||
primary_key=True,
|
||||
autoincrement=True,
|
||||
unique=False)
|
||||
creation_date = Column(DATE())
|
||||
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