From a9d73c8578566f000f9f5d95cb16ef51cdad6e52 Mon Sep 17 00:00:00 2001 From: wolin_chenyulin001 <123@163.com> Date: Thu, 24 Sep 2026 12:27:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=B1=E4=B8=9A=E7=9B=B8=E5=85=B3=E7=9A=84mo?= =?UTF-8?q?del?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- employment_model/__init__.py | 0 employment_model/emp_model.py | 104 ++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 employment_model/__init__.py create mode 100644 employment_model/emp_model.py diff --git a/employment_model/__init__.py b/employment_model/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/employment_model/emp_model.py b/employment_model/emp_model.py new file mode 100644 index 0000000..19c13c0 --- /dev/null +++ b/employment_model/emp_model.py @@ -0,0 +1,104 @@ + +class Employment_model(Base): + __tablename__ = 'wl_employment' + + e_id = Column(Integer + ,primary_key=True + ,autoincrement=True + ,comment='序号' + ) + + stu_id = Column(Integer + ,ForeignKey('wl_student.stu_id') + ,nullable=False + ,comment='学生编号' + ) + + email = Column(String(50) + ,comment='邮箱' + ) + + Resume_opening_date = Column(DATE + ,comment='简历开放时间' + ) + + offer_issuance_date = Column(DATE + ,comment='offer下发时间' + ) + + c_id = Column(String(50) + ,foreign_key='emp_company.c_id' + ,comment='下发offer的企业编号' + ) + + offer_status = Column(String(10) + ,nullable=False + ,comment='收到offer的就业状态') + + salary = Column(Integer + ,comment='薪资' + ) + + create_time = Column(DATETIME + ,default=datetime.now + ,comment='数据创建时间' + ) + + update_time = Column(DATETIME + ,default=datetime.now + ,onupdate=datetime.now + ,comment='数据更新时间' + ) + + delete_status = Column(Integer + ,default=0 + ,comment='逻辑删除状态:0未删除,1已删除') + + + +class Company_info(Base): + __tablename__ = 'emp_company' + + id : Column(Integer + ,primary_key=True + ,autoincrement=True + ,comment='序号' + ) + c_id : Column(String + ,unique=True + ,comment='企业编号' + ) + + company_name : Column(String + ,comment='企业名称' + ) + + Industry : Column(String + ,comment='所属行业' + ) + + Personnel : Column(String + ,comment='人员规模' + ) + + Main_business : Column(String + ,comment='主营业务' + ) + + Registered_capital : Column(String + ,comment='注册资金' + ) + create_time = Column(DATETIME + ,default=datetime.now + ,comment='创建时间' + ) + + update_time = Column(DATETIME + ,default=datetime.now + ,onupdate=datetime.now + ,comment='更新时间' + ) + + delete_status = Column(Integer + ,default=0 + ,comment='删除状态:0未删除,1已删除') \ No newline at end of file