Просмотр исходного кода

feat(backend): add BizQcInspectionItemTemplate model.

Co-authored-by: Cursor <cursoragent@cursor.com>
zlwu 2 месяцев назад
Родитель
Сommit
4b7d026d4e
1 измененных файлов с 23 добавлено и 0 удалено
  1. 23 0
      backend/app/models/models.py

+ 23 - 0
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"""