2021-06-21 15:49:30 +08:00
|
|
|
SET FOREIGN_KEY_CHECKS=0;
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- Table structure for model_2d_draft
|
|
|
|
-- ----------------------------
|
|
|
|
DROP TABLE IF EXISTS `model_2d_draft`;
|
|
|
|
CREATE TABLE `model_2d_draft` (
|
|
|
|
`id` bigint(20) NOT NULL,
|
|
|
|
`code` varchar(32) NOT NULL COMMENT '编号',
|
|
|
|
`name` varchar(32) NOT NULL COMMENT '模型名称',
|
|
|
|
`json_data` mediumtext COMMENT '模型数据',
|
|
|
|
`create_user_id` bigint(20) NOT NULL,
|
|
|
|
`create_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP,
|
|
|
|
`update_user_id` bigint(20) DEFAULT NULL,
|
|
|
|
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2021-06-23 10:43:38 +08:00
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- Table structure for model_2d
|
|
|
|
-- ----------------------------
|
|
|
|
DROP TABLE IF EXISTS `model_2d`;
|
|
|
|
CREATE TABLE `model_2d` (
|
|
|
|
`id` bigint(20) NOT NULL,
|
|
|
|
`code` varchar(32) NOT NULL COMMENT '编号(唯一)',
|
|
|
|
`name` varchar(32) NOT NULL COMMENT '模型名称',
|
|
|
|
`json_data` mediumtext NOT NULL COMMENT '模型数据',
|
|
|
|
`version` int(11) NOT NULL COMMENT '版本',
|
|
|
|
`state` varchar(2) NOT NULL COMMENT '状态',
|
|
|
|
`create_user_id` bigint(20) NOT NULL,
|
|
|
|
`create_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP,
|
|
|
|
`update_user_id` bigint(20) DEFAULT NULL,
|
|
|
|
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|