This commit is contained in:
2026-10-10 21:34:36 +08:00
parent 7119dc76a9
commit 74bc08d958
434 changed files with 17723 additions and 13168 deletions
+18
View File
@@ -0,0 +1,18 @@
CREATE TABLE IF NOT EXISTS `yxe_chronic_disease_product` (
`id` int NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`chain` varchar(100) NOT NULL COMMENT '连锁',
`product_name` varchar(100) NOT NULL COMMENT '产品名',
`spec_count` decimal(10,2) NOT NULL COMMENT '规格粒/片',
`daily_usage_count` decimal(10,2) NOT NULL COMMENT '说明书每天使用/次',
`dosage_per_time` decimal(10,2) NOT NULL COMMENT '每次几粒/片',
`box_usage_days` decimal(10,2) DEFAULT NULL COMMENT '1盒服用几天',
`status` tinyint NOT NULL DEFAULT 1 COMMENT '状态, 0禁用, 1启用',
`deleted` tinyint NOT NULL DEFAULT 0 COMMENT '是否删除, 0否, 1是',
`tenant_id` int DEFAULT NULL COMMENT '租户id',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`),
KEY `idx_ycdp_product_name` (`product_name`),
KEY `idx_ycdp_chain` (`chain`),
KEY `idx_ycdp_deleted` (`deleted`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='慢病产品管理';