提交
This commit is contained in:
1 parent
2a4767a014
commit
f269a994f4
61 files changed
+27430
-8
No files matched your search
@@ -1353,4 +1353,592 @@ class BizExhibitionAppointment(Base):
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
# =============================================================================
|
||||
# V0.3 中试服务管理(2.3.1 ~ 2.3.6)
|
||||
# =============================================================================
|
||||
|
||||
|
||||
class BizCellProductType(Base):
|
||||
"""细胞产品类型 biz_cell_product_type"""
|
||||
|
||||
__tablename__ = "biz_cell_product_type"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
product_type_code = Column(String(64), nullable=False, comment="细胞产品类型编码")
|
||||
product_type_name = Column(String(200), nullable=False, comment="细胞产品类型名称")
|
||||
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 BizCellProductSpec(Base):
|
||||
"""细胞产品规格 biz_cell_product_spec"""
|
||||
|
||||
__tablename__ = "biz_cell_product_spec"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
spec_code = Column(String(64), nullable=False, comment="规格编码")
|
||||
spec_name = Column(String(200), nullable=False, comment="规格名称")
|
||||
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 BizCellProductPrice(Base):
|
||||
"""细胞产品价格体系 biz_cell_product_price"""
|
||||
|
||||
__tablename__ = "biz_cell_product_price"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
project_name = Column(String(200), nullable=False, comment="项目名称")
|
||||
project_code = Column(String(64), nullable=False, comment="项目编码")
|
||||
cell_type_code = Column(String(64), nullable=True, comment="细胞类型编码")
|
||||
cell_type_name = Column(String(200), nullable=True, comment="细胞类型名称")
|
||||
spec_text = Column(String(200), nullable=True, comment="规格(展示或关联规格编码)")
|
||||
spec_id = Column(String(64), nullable=True, comment="规格ID")
|
||||
cell_product_type_id = Column(String(64), nullable=True, comment="细胞产品类型ID")
|
||||
unit_price = Column(Numeric(18, 2), nullable=True, comment="单价(元)")
|
||||
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 BizCellProductProjectSystem(Base):
|
||||
"""细胞产品项目价格体系 biz_cell_product_project_system"""
|
||||
|
||||
__tablename__ = "biz_cell_product_project_system"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
system_name = Column(String(200), nullable=False, comment="体系名称")
|
||||
system_code = Column(String(64), nullable=False, comment="体系编码")
|
||||
status = Column(CHAR(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 BizCellProductProjectSystemItem(Base):
|
||||
"""项目价格体系-细胞价格明细 biz_cell_product_project_system_item"""
|
||||
|
||||
__tablename__ = "biz_cell_product_project_system_item"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
project_system_id = Column(String(64), nullable=False, comment="项目价格体系ID")
|
||||
source_price_id = Column(String(64), nullable=True, comment="来源细胞产品价格体系行ID")
|
||||
project_name = Column(String(200), nullable=True, comment="项目名称")
|
||||
project_code = Column(String(64), nullable=True, comment="项目编码")
|
||||
cell_type_code = Column(String(64), nullable=True, comment="细胞类型编码")
|
||||
cell_type_name = Column(String(200), nullable=True, comment="细胞类型名称")
|
||||
spec_text = Column(String(200), nullable=True, comment="规格")
|
||||
spec_id = Column(String(64), nullable=True, comment="规格ID")
|
||||
cell_product_type_id = Column(String(64), nullable=True, comment="细胞产品类型ID")
|
||||
unit_price = Column(Numeric(18, 2), nullable=True, comment="单价(元)")
|
||||
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 BizChannel(Base):
|
||||
"""渠道信息 biz_channel"""
|
||||
|
||||
__tablename__ = "biz_channel"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
channel_name = Column(String(200), nullable=False, comment="渠道名称")
|
||||
credit_code = Column(String(64), nullable=True, comment="统一社会信用代码")
|
||||
channel_type = Column(String(16), nullable=True, comment="yy医院 hzjg合作机构 zs诊所 zfjg政府机构 qt其他")
|
||||
contact_name = Column(String(100), nullable=True, comment="联系人姓名")
|
||||
contact_phone = Column(String(32), nullable=True, comment="联系电话")
|
||||
contact_email = Column(String(128), nullable=True, comment="联系邮箱")
|
||||
protocol_attachments = Column(String(4000), nullable=True, comment="渠道协议附件逗号分隔")
|
||||
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 BizChannelAgreement(Base):
|
||||
"""渠道协议 biz_channel_agreement"""
|
||||
|
||||
__tablename__ = "biz_channel_agreement"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
channel_id = Column(String(64), nullable=False, comment="渠道ID")
|
||||
agreement_type = Column(String(16), nullable=False, comment="kyxy科研 zsxy中试 lcxy临床")
|
||||
business_type = Column(String(32), nullable=True, comment="kyyy科研应用/中试应用/临床应用(随协议类型)")
|
||||
settle_mode = Column(String(16), nullable=True, comment="yj月结 jj季结 nj年结 dcjs单次结算")
|
||||
credit_limit_amount = Column(Numeric(18, 2), nullable=True, comment="授信额度(元)")
|
||||
effective_date = Column(CHAR(8), nullable=True, comment="生效日期YYYYMMDD")
|
||||
expire_date = Column(CHAR(8), nullable=True, comment="到期日期YYYYMMDD")
|
||||
agreement_status = Column(String(16), nullable=False, default="dsx", comment="dsx待生效 sxz生效中 yzf已作废")
|
||||
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 BizChannelAgreementProductPrice(Base):
|
||||
"""渠道协议-细胞产品价格 biz_channel_agreement_product_price"""
|
||||
|
||||
__tablename__ = "biz_channel_agreement_product_price"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
channel_agreement_id = Column(String(64), nullable=False, comment="渠道协议ID")
|
||||
project_name = Column(String(200), nullable=True, comment="项目名称")
|
||||
project_code = Column(String(64), nullable=True, comment="项目编码")
|
||||
cell_type_code = Column(String(64), nullable=True, comment="细胞类型编码")
|
||||
cell_type_name = Column(String(200), nullable=True, comment="细胞类型名称")
|
||||
spec_text = Column(String(200), nullable=True, comment="规格")
|
||||
original_price = Column(Numeric(18, 2), nullable=True, comment="原价(元)")
|
||||
agreement_price = Column(Numeric(18, 2), nullable=True, comment="协议价(元)")
|
||||
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 BizChannelInvoice(Base):
|
||||
"""渠道开票信息 biz_channel_invoice"""
|
||||
|
||||
__tablename__ = "biz_channel_invoice"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
channel_id = Column(String(64), nullable=False, comment="渠道ID")
|
||||
company_name = Column(String(200), nullable=False, comment="单位名称")
|
||||
tax_no = Column(String(64), nullable=True, comment="税号")
|
||||
company_address = Column(String(512), nullable=True, comment="单位地址")
|
||||
company_phone = Column(String(64), nullable=True, comment="电话")
|
||||
bank_name = Column(String(200), nullable=True, comment="开户银行")
|
||||
bank_account = Column(String(64), nullable=True, comment="银行账号")
|
||||
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 BizChannelMailAddress(Base):
|
||||
"""渠道邮寄地址 biz_channel_mail_address"""
|
||||
|
||||
__tablename__ = "biz_channel_mail_address"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
channel_id = Column(String(64), nullable=False, comment="渠道ID")
|
||||
mail_address = Column(String(512), nullable=False, comment="邮寄地址")
|
||||
mail_contact = Column(String(100), nullable=True, comment="邮寄联系人")
|
||||
mail_phone = Column(String(32), nullable=True, comment="邮寄联系电话")
|
||||
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 BizCheckupInstitution(Base):
|
||||
"""体检机构 biz_checkup_institution"""
|
||||
|
||||
__tablename__ = "biz_checkup_institution"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
institution_name = Column(String(200), nullable=False, comment="体检机构名称")
|
||||
institution_address = Column(String(512), nullable=True, comment="体检机构地址")
|
||||
contact_name = Column(String(100), nullable=True, comment="联系人")
|
||||
contact_phone = Column(String(32), nullable=True, comment="联系人电话")
|
||||
status = Column(CHAR(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 BizCheckupInstitutionInvoice(Base):
|
||||
"""体检机构开票信息 biz_checkup_institution_invoice"""
|
||||
|
||||
__tablename__ = "biz_checkup_institution_invoice"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
checkup_institution_id = Column(String(64), nullable=False, comment="体检机构ID")
|
||||
company_name = Column(String(200), nullable=False, comment="单位名称")
|
||||
tax_no = Column(String(64), nullable=True, comment="税号")
|
||||
company_address = Column(String(512), nullable=True, comment="单位地址")
|
||||
company_phone = Column(String(64), nullable=True, comment="电话")
|
||||
bank_name = Column(String(200), nullable=True, comment="开户银行")
|
||||
bank_account = Column(String(64), nullable=True, comment="银行账号")
|
||||
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 BizCheckupInstitutionProject(Base):
|
||||
"""体检机构项目及价格 biz_checkup_institution_project"""
|
||||
|
||||
__tablename__ = "biz_checkup_institution_project"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
checkup_institution_id = Column(String(64), nullable=False, comment="体检机构ID")
|
||||
project_name = Column(String(200), nullable=False, comment="项目名称")
|
||||
project_fee = Column(Numeric(18, 2), nullable=True, comment="项目费用(元)")
|
||||
status = Column(CHAR(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 BizCheckupInstitutionPackage(Base):
|
||||
"""体检机构项目套餐 biz_checkup_institution_package"""
|
||||
|
||||
__tablename__ = "biz_checkup_institution_package"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
checkup_institution_id = Column(String(64), nullable=False, comment="体检机构ID")
|
||||
package_name = Column(String(200), nullable=False, comment="套餐名称")
|
||||
package_code = Column(String(64), nullable=False, comment="套餐编码")
|
||||
status = Column(CHAR(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 BizCheckupInstitutionPackageItem(Base):
|
||||
"""体检机构项目套餐明细 biz_checkup_institution_package_item"""
|
||||
|
||||
__tablename__ = "biz_checkup_institution_package_item"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
package_id = Column(String(64), nullable=False, comment="套餐ID")
|
||||
checkup_institution_project_id = Column(String(64), nullable=False, comment="机构项目ID")
|
||||
project_name = Column(String(200), nullable=False, comment="项目名称快照")
|
||||
project_fee = Column(Numeric(18, 2), nullable=True, comment="套餐内项目费用(元)")
|
||||
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="删除标记")
|
||||
|
||||
|
||||
# =============================================================================
|
||||
# 生产管理(耗材 / 试剂 / SOP / 工序分类 / 产出类型 / 耗材包 / 工艺库)
|
||||
# ============================================================================
|
||||
|
||||
|
||||
class BizConsumable(Base):
|
||||
"""生产耗材 biz_consumable"""
|
||||
|
||||
__tablename__ = "biz_consumable"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
consumable_code = Column(String(64), nullable=False, comment="耗材编码")
|
||||
consumable_name = Column(String(100), nullable=False, comment="耗材名称")
|
||||
spec_model = Column(String(200), nullable=True, comment="规格型号")
|
||||
standard_usage = Column(String(100), nullable=True, comment="标准用量")
|
||||
description = Column(String(500), nullable=True, comment="描述")
|
||||
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 BizReagent(Base):
|
||||
"""试剂 biz_reagent"""
|
||||
|
||||
__tablename__ = "biz_reagent"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
reagent_code = Column(String(64), nullable=False, comment="试剂编码")
|
||||
reagent_name = Column(String(100), nullable=False, comment="试剂名称")
|
||||
spec = Column(String(200), nullable=True, comment="规格")
|
||||
standard_usage = Column(String(100), nullable=True, comment="标准用量")
|
||||
unit = Column(String(64), nullable=True, comment="单位")
|
||||
description = Column(String(500), nullable=True, comment="描述")
|
||||
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 BizSopDocument(Base):
|
||||
"""SOP文档 biz_sop_document"""
|
||||
|
||||
__tablename__ = "biz_sop_document"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
sop_code = Column(String(64), nullable=False, comment="SOP编号")
|
||||
sop_name = Column(String(200), nullable=False, comment="SOP文档名称")
|
||||
version_no = Column(String(50), nullable=True, comment="版本号")
|
||||
sop_attachments = Column(String(2000), nullable=True, comment="SOP文档附件(逗号分隔URL)")
|
||||
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 BizProcessCategory(Base):
|
||||
"""工序分类 biz_process_category"""
|
||||
|
||||
__tablename__ = "biz_process_category"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
category_code = Column(String(64), nullable=False, comment="分类编码")
|
||||
category_name = Column(String(100), nullable=False, comment="分类名称")
|
||||
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 BizOutputType(Base):
|
||||
"""产出类型 biz_output_type"""
|
||||
|
||||
__tablename__ = "biz_output_type"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
type_code = Column(String(64), nullable=False, comment="类型编码")
|
||||
type_name = Column(String(100), nullable=False, comment="类型名称")
|
||||
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 BizConsumablePack(Base):
|
||||
"""耗材包 biz_consumable_pack"""
|
||||
|
||||
__tablename__ = "biz_consumable_pack"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
pack_code = Column(String(64), nullable=False, comment="编号")
|
||||
pack_name = Column(String(100), nullable=False, comment="名称")
|
||||
usage_scene = Column(String(200), nullable=True, comment="使用场景")
|
||||
pack_type = Column(String(20), nullable=True, comment="类型(bzhcb-标准耗材包 zdyhcb-自定义耗材包)")
|
||||
status = Column(CHAR(1), nullable=True, 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 BizConsumablePackItem(Base):
|
||||
"""耗材包明细 biz_consumable_pack_item"""
|
||||
|
||||
__tablename__ = "biz_consumable_pack_item"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
pack_id = Column(String(64), nullable=False, comment="耗材包id")
|
||||
consumable_code = Column(String(64), nullable=True, comment="耗材编码")
|
||||
consumable_name = Column(String(100), nullable=True, comment="耗材名称")
|
||||
spec_model = Column(String(200), nullable=True, comment="耗材规格型号")
|
||||
standard_usage = Column(String(100), nullable=True, comment="标准用量")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
||||
order_num = Column(Integer, 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 BizProcess(Base):
|
||||
"""工艺 biz_process"""
|
||||
|
||||
__tablename__ = "biz_process"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
process_code = Column(String(64), nullable=False, comment="工序代码")
|
||||
category_id = Column(String(64), nullable=True, comment="工序分类id")
|
||||
process_name = Column(String(100), nullable=False, comment="工序名称")
|
||||
description = Column(String(500), nullable=True, comment="描述")
|
||||
equipment_name = Column(String(200), nullable=True, comment="预计使用设备名称")
|
||||
estimated_duration = Column(String(100), nullable=True, comment="预估耗时")
|
||||
sop_ids = Column(String(1000), nullable=True, comment="关联SOP文档id(逗号分隔)")
|
||||
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 BizProcessReagent(Base):
|
||||
"""工艺试剂 biz_process_reagent"""
|
||||
|
||||
__tablename__ = "biz_process_reagent"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
process_id = Column(String(64), nullable=False, comment="工艺id")
|
||||
reagent_code = Column(String(64), nullable=True, comment="试剂编码")
|
||||
reagent_name = Column(String(100), nullable=True, comment="试剂名称")
|
||||
spec = Column(String(200), nullable=True, comment="规格")
|
||||
standard_usage = Column(String(100), nullable=True, comment="标准用量")
|
||||
unit = Column(String(64), nullable=True, comment="单位")
|
||||
is_key_material = Column(CHAR(1), nullable=True, default="0", comment="是否关键物料(0-否 1-是)")
|
||||
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 BizProcessConsumable(Base):
|
||||
"""工艺耗材 biz_process_consumable"""
|
||||
|
||||
__tablename__ = "biz_process_consumable"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
process_id = Column(String(64), nullable=False, comment="工艺id")
|
||||
consumable_code = Column(String(64), nullable=True, comment="耗材编码")
|
||||
consumable_name = Column(String(100), nullable=True, comment="耗材名称")
|
||||
spec_model = Column(String(200), nullable=True, comment="耗材规格型号")
|
||||
standard_usage = Column(String(100), nullable=True, comment="标准用量")
|
||||
is_required = Column(CHAR(1), nullable=True, default="1", comment="是否必需(1-必须 0-可选)")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
||||
order_num = Column(Integer, 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 BizProcessOutput(Base):
|
||||
"""工艺产出物 biz_process_output"""
|
||||
|
||||
__tablename__ = "biz_process_output"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
process_id = Column(String(64), nullable=False, comment="工艺id")
|
||||
output_type_id = Column(String(64), nullable=True, comment="产出类型id")
|
||||
output_name = Column(String(200), nullable=True, comment="产出物名称")
|
||||
output_barcode = Column(String(200), nullable=True, comment="产出物条码")
|
||||
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="删除标记")
|
||||
|
||||
|
||||
from app.models.qc_param import BizQcItemParam, BizQcTaskResult # noqa: E402,F401
|
||||
Reference in new issue
Block a user