From 5d456a86966fb78eee57d09aab59fcc954cf2221 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Fri, 18 Sep 2026 11:21:41 +0800 Subject: [PATCH] feat(backend): add BizCollectionRegionStaff model Co-authored-by: Cursor --- backend/app/models/models.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/backend/app/models/models.py b/backend/app/models/models.py index 711da4d8..1bc5bde6 100644 --- a/backend/app/models/models.py +++ b/backend/app/models/models.py @@ -407,6 +407,26 @@ class BizCollectionHospital(Base): del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记") +class BizCollectionRegionStaff(Base): + """采集地区工作人员 biz_collection_region_staff""" + + __tablename__ = "biz_collection_region_staff" + + id = Column(String(64), primary_key=True, comment="主键ID") + region_id = Column(String(64), nullable=False, comment="采集地区ID") + user_id = Column(String(64), nullable=False, comment="系统用户ID") + is_leader = Column(SmallInteger, nullable=False, default=0, comment="是否地区负责人 1是0否") + tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号") + order_num = Column(Integer, nullable=True, comment="排序号") + remark = Column(String(512), nullable=True, comment="备注") + create_by = Column(String(64), nullable=True, comment="创建人id") + create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID") + create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间") + update_by = Column(String(64), nullable=True, comment="更新人id") + update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间") + del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记") + + class BizCollectionProtocolNo(Base): """采集协议号池 biz_collection_protocol_no"""