21 lines
878 B
Python
21 lines
878 B
Python
from sqlalchemy import Integer, Column, DateTime, Numeric, String
|
|
|
|
from util.database import Base
|
|
|
|
|
|
class Company(Base):
|
|
"""对应 Excel Sheet:企业信息表。"""
|
|
|
|
__tablename__ = "wl_company"
|
|
|
|
id = Column(Integer, primary_key=True, autoincrement=True, comment="id")
|
|
company_number = Column(String(50), comment="企业编号")
|
|
name = Column(String(200), comment="企业名称")
|
|
industry = Column(String(100), comment="所属行业")
|
|
employee_scale = Column(String(50), comment="人员规模")
|
|
main_business = Column(String(1000), comment="主营业务")
|
|
registered_capital = Column(Numeric(16, 2), comment="注册资金")
|
|
created_at = Column(DateTime, comment="数据创建时间")
|
|
updated_at = Column(DateTime, comment="数据更新时间")
|
|
is_deleted = Column(default=False, nullable=False, comment="逻辑删除字段")
|