|
@@ -59,6 +59,9 @@ class EmergencyFile(Base):
|
|
|
|
|
|
# 关联到 EmergencyPlan 实例
|
|
|
|
|
|
+ class Config:
|
|
|
+ orm_mode = True
|
|
|
+
|
|
|
|
|
|
class EmergencyDrill(Base):
|
|
|
__tablename__ = 'emergency_drills'
|
|
@@ -81,6 +84,9 @@ class EmergencyDrill(Base):
|
|
|
create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
del_flag = Column(String(1), default='0', comment='删除标志(0代表存在 2代表删除)')
|
|
|
|
|
|
+ class Config:
|
|
|
+ orm_mode = True
|
|
|
+
|
|
|
|
|
|
class EmergencyTrainingSession(Base):
|
|
|
__tablename__ = 'emergency_training_sessions'
|
|
@@ -104,6 +110,9 @@ class EmergencyTrainingSession(Base):
|
|
|
create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
del_flag = Column(String(1), default='0', comment='删除标志(0代表存在 2代表删除)')
|
|
|
|
|
|
+ class Config:
|
|
|
+ orm_mode = True
|
|
|
+
|
|
|
|
|
|
class EmergencyResponse(Base):
|
|
|
__tablename__ = 'emergency_responses'
|
|
@@ -123,3 +132,19 @@ class EmergencyResponse(Base):
|
|
|
create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
del_flag = Column(String(1), default='0', comment='删除标志(0代表存在 2代表删除)')
|
|
|
+
|
|
|
+ class Config:
|
|
|
+ orm_mode = True
|
|
|
+
|
|
|
+class EmergencyUnit(Base):
|
|
|
+ __tablename__ = 'emergency_unit'
|
|
|
+
|
|
|
+ id = Column(Integer, autoincrement=True, primary_key=True)
|
|
|
+ plan_id = Column(String(50), nullable=False,comment='预案id')
|
|
|
+ dept_id = Column(Integer, nullable=False,comment='部门id')
|
|
|
+ dept_name = Column(String(100), nullable=False,comment='部门名称')
|
|
|
+ content = Column(String(255), nullable=False,comment='单位职责')
|
|
|
+ dept_order = Column(Integer, comment='排序')
|
|
|
+
|
|
|
+ class Config:
|
|
|
+ orm_mode = True
|