|
|
|
@ -246,4 +246,23 @@ CREATE TABLE IF NOT EXISTS `rel_code_detail` (
|
|
|
|
|
`flag` tinyint DEFAULT NULL COMMENT '状态',
|
|
|
|
|
`batchIdFk` int DEFAULT NULL COMMENT '产品批次ID外键',
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=708 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=708 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `code_rel` (
|
|
|
|
|
`id` int NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`diNameCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '器械最小销售产品标识',
|
|
|
|
|
`drugCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '阿里药品标识码',
|
|
|
|
|
`ybbm` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '医保编码',
|
|
|
|
|
`ycCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '阳光采购平台编码',
|
|
|
|
|
`sptm` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '商品条码',
|
|
|
|
|
`ypbwm` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '药品本位码',
|
|
|
|
|
`tyshxyh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '统一社会信用号',
|
|
|
|
|
`gjbm` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '国家编码9码',
|
|
|
|
|
`status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
|
|
|
|
|
`updateTime` datetime DEFAULT NULL,
|
|
|
|
|
`createTime` datetime DEFAULT NULL,
|
|
|
|
|
`fromType` tinyint DEFAULT NULL,
|
|
|
|
|
`approvalNum` varchar(255) DEFAULT NULL COMMENT '批准文号',
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
|
UNIQUE KEY `unique_idx_diNameCode_ybbm` (`diNameCode`,`ybbm`)
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=110586 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|