This commit is contained in:
maruizhi
2026-09-24 14:10:22 +08:00
parent a9d73c8578
commit a0bf614c77
27 changed files with 245 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
from sqlalchemy import Integer, Column, Date, DateTime, Numeric, String
from util.database import Base
class Employee(Base):
"""对应 Excel Sheet:员工表。"""
__tablename__ = "wl_employee"
id = Column(Integer, primary_key=True, autoincrement=True)
employee_number = Column(String(50))
name = Column(String(100))
gender = Column(String(20))
birth_date = Column(Date)
id_card_number = Column(String(18))
hometown = Column(String(100))
salary = Column(Numeric(12, 2))
position_type = Column(String(50))
position_level = Column(String(50))
created_at = Column(DateTime)
updated_at = Column(DateTime)
is_deleted = Column(default=False, nullable=False)