新建
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user