From 4b7d026d4e458f155f7b89ec4d9ed6d51631a9a7 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Mon, 17 Aug 2026 12:46:59 +0800 Subject: [PATCH] feat(backend): add BizQcInspectionItemTemplate model. Co-authored-by: Cursor --- backend/app/models/models.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/backend/app/models/models.py b/backend/app/models/models.py index e020f3a2..83164ed4 100644 --- a/backend/app/models/models.py +++ b/backend/app/models/models.py @@ -1621,6 +1621,29 @@ class BizQcLabTestItem(Base): del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记") +class BizQcInspectionItemTemplate(Base): + """质检检测项目模版 biz_qc_inspection_item_template""" + + __tablename__ = "biz_qc_inspection_item_template" + + id = Column(String(64), primary_key=True, comment="主键ID") + template_name = Column(String(200), nullable=False, comment="模版名称") + lab_item_ids = Column(String(2000), nullable=False, default="", comment="实验室项目ID逗号分隔") + third_party_item_ids = Column( + String(2000), nullable=False, default="", comment="第三方项目ID逗号分隔" + ) + status = Column(String(1), nullable=False, default="1", 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 BizQcWorkOrder(Base): """质检工单 biz_qc_work_order"""