-- 添加搜索数据表
-- 试验表添加 理化所统计、西核院统计两个字段

DROP TABLE IF EXISTS `component_search`;
CREATE TABLE `component_search` (
                                    `id` varchar(36) CHARACTER SET utf8mb4  NOT NULL,
                                    `create_by` varchar(50) CHARACTER SET utf8mb4  DEFAULT NULL COMMENT '创建人',
                                    `create_time` datetime DEFAULT NULL COMMENT '创建日期',
                                    `update_by` varchar(50) CHARACTER SET utf8mb4  DEFAULT NULL COMMENT '更新人',
                                    `update_time` datetime DEFAULT NULL COMMENT '更新日期',
                                    `data_type` varchar(32) CHARACTER SET utf8mb4  DEFAULT NULL COMMENT '数据类型',
                                    `content` varchar(200) CHARACTER SET utf8mb4  DEFAULT NULL COMMENT '搜索内容',
                                    `extent_info` varchar(648) CHARACTER SET utf8mb4  DEFAULT NULL COMMENT '拓展字段',
    -- 索引
                                    INDEX idx_combined (data_type, content),
                                    PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;




