2026-09-24 14:10:22 +08:00
|
|
|
from sqlalchemy import Integer, Column, Date, DateTime, Numeric, String
|
|
|
|
|
|
|
|
|
|
from util.database import Base
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Employee(Base):
|
|
|
|
|
"""对应 Excel Sheet:员工表。"""
|
|
|
|
|
|
|
|
|
|
__tablename__ = "wl_employee"
|
|
|
|
|
|
2026-09-24 14:22:50 +08:00
|
|
|
id = Column(Integer, primary_key=True, autoincrement=True, comment="id")
|
|
|
|
|
employee_number = Column(String(50), comment="工号")
|
|
|
|
|
name = Column(String(100), comment="姓名")
|
|
|
|
|
gender = Column(String(20), comment="性别")
|
|
|
|
|
birth_date = Column(Date, comment="生日")
|
|
|
|
|
id_card_number = Column(String(18), comment="身份证号")
|
|
|
|
|
hometown = Column(String(100), comment="籍贯")
|
|
|
|
|
salary = Column(Numeric(12, 2), comment="薪资")
|
|
|
|
|
position_type = Column(String(50), comment="岗位类型")
|
|
|
|
|
position_level = Column(String(50), comment="岗位级别")
|
|
|
|
|
created_at = Column(DateTime, comment="数据创建时间")
|
|
|
|
|
updated_at = Column(DateTime, comment="数据更新时间")
|
|
|
|
|
is_deleted = Column(default=False, nullable=False, comment="逻辑删除字段")
|