修改各模块库表分类前缀
This commit is contained in:
@ -55,8 +55,8 @@ CREATE TABLE `bus_user_project_relevancy`
|
||||
COLLATE = utf8mb4_general_ci comment = '系统用户与项目关联表'
|
||||
ROW_FORMAT = DYNAMIC;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_company`;
|
||||
CREATE TABLE `bus_company`
|
||||
DROP TABLE IF EXISTS mat_company;
|
||||
CREATE TABLE `mat_company`
|
||||
(
|
||||
`id` bigint not null auto_increment,
|
||||
`company_name` varchar(64) null comment '公司名称',
|
||||
@ -77,8 +77,8 @@ CREATE TABLE `bus_company`
|
||||
COLLATE = utf8mb4_general_ci comment = '公司表'
|
||||
ROW_FORMAT = DYNAMIC;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_materials`;
|
||||
CREATE TABLE `bus_materials`
|
||||
DROP TABLE IF EXISTS mat_materials;
|
||||
CREATE TABLE `mat_materials`
|
||||
(
|
||||
`id` bigint not null auto_increment,
|
||||
`materials_name` varchar(64) null comment '材料名称',
|
||||
@ -104,8 +104,8 @@ CREATE TABLE `bus_materials`
|
||||
COLLATE = utf8mb4_general_ci comment = '材料名称表'
|
||||
ROW_FORMAT = DYNAMIC;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_materials_inventory`;
|
||||
CREATE TABLE `bus_materials_inventory`
|
||||
DROP TABLE IF EXISTS mat_materials_inventory;
|
||||
CREATE TABLE `mat_materials_inventory`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键id',
|
||||
`materials_id` bigint not null comment '材料id',
|
||||
@ -237,7 +237,7 @@ CREATE TABLE `bus_project_team_member`
|
||||
INDEX `idx_member_id` (`member_id` ASC) USING BTREE comment '施工人员id'
|
||||
) comment = '项目班组下的成员' collate = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_machinery`;
|
||||
DROP TABLE IF EXISTS eqp_machinery;
|
||||
CREATE TABLE `bus_machinery`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键id',
|
||||
@ -256,7 +256,7 @@ CREATE TABLE `bus_machinery`
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) comment = '机械表' collate = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_machinery_detail`;
|
||||
DROP TABLE IF EXISTS eqp_machinery_detail;
|
||||
CREATE TABLE `bus_machinery_detail`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键id',
|
||||
@ -279,7 +279,7 @@ CREATE TABLE `bus_machinery_detail`
|
||||
INDEX `idx_machinery_id` (`machinery_id` ASC) USING BTREE comment '机械主键id'
|
||||
) comment = '机械详情' collate = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_team_meeting`;
|
||||
DROP TABLE IF EXISTS hse_team_meeting;
|
||||
CREATE TABLE `bus_team_meeting`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键id',
|
||||
@ -302,7 +302,7 @@ CREATE TABLE `bus_team_meeting`
|
||||
INDEX `idx_team_id` (`team_id` ASC) USING BTREE comment '班组ID'
|
||||
) comment = '站班会' collate = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_safety_inspection`;
|
||||
DROP TABLE IF EXISTS hse_safety_inspection;
|
||||
CREATE TABLE `bus_safety_inspection`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键ID',
|
||||
@ -336,7 +336,7 @@ CREATE TABLE `bus_safety_inspection`
|
||||
INDEX `idx_project_id` (`project_id` ASC) USING BTREE
|
||||
) comment = '安全巡检工单' COLLATE = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_safety_log`;
|
||||
DROP TABLE IF EXISTS hse_safety_log;
|
||||
CREATE TABLE `bus_safety_log`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键id',
|
||||
@ -366,7 +366,7 @@ CREATE TABLE `bus_safety_log`
|
||||
INDEX `idx_project_id` (`project_id` ASC) USING BTREE comment '项目id'
|
||||
) comment = '安全日志' collate = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_safety_weekly_report`;
|
||||
DROP TABLE IF EXISTS hse_safety_weekly_report;
|
||||
CREATE TABLE `bus_safety_weekly_report`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键id',
|
||||
@ -386,8 +386,8 @@ CREATE TABLE `bus_safety_weekly_report`
|
||||
INDEX `idx_project_id` (`project_id` ASC) USING BTREE comment '项目id'
|
||||
) comment = '安全周报' collate = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_questions_config`;
|
||||
CREATE TABLE `bus_questions_config`
|
||||
DROP TABLE IF EXISTS hse_questions_config;
|
||||
CREATE TABLE `hse_questions_config`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键id',
|
||||
`single_choice` int default 0 not null comment '单选题(单位/道)',
|
||||
@ -402,8 +402,8 @@ CREATE TABLE `bus_questions_config`
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) comment = '题库配置' collate = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_question_bank`;
|
||||
CREATE TABLE `bus_question_bank`
|
||||
DROP TABLE IF EXISTS hse_question_bank;
|
||||
CREATE TABLE `hse_question_bank`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键id',
|
||||
`category_type` char(1) null comment '题目类别',
|
||||
@ -421,8 +421,8 @@ CREATE TABLE `bus_question_bank`
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) comment = '题库' collate = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_question_user_answer`;
|
||||
CREATE TABLE `bus_question_user_answer`
|
||||
DROP TABLE IF EXISTS hse_question_user_answer;
|
||||
CREATE TABLE `hse_question_user_answer`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键id',
|
||||
`project_id` bigint null comment '项目id',
|
||||
@ -656,8 +656,8 @@ CREATE TABLE `bus_daily_piece_item`
|
||||
INDEX `idx_report_id` (`report_id` ASC) USING BTREE comment '日报id'
|
||||
) comment = '施工人员日报计件信息' collate = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_document_safety_meeting`;
|
||||
CREATE TABLE `bus_document_safety_meeting`
|
||||
DROP TABLE IF EXISTS hse_document_safety_meeting;
|
||||
CREATE TABLE `hse_document_safety_meeting`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键id',
|
||||
`project_id` bigint null comment '项目id',
|
||||
@ -679,8 +679,8 @@ CREATE TABLE `bus_document_safety_meeting`
|
||||
INDEX `idx_project_id` (`project_id` ASC) USING BTREE
|
||||
) comment = '安全会议纪要' COLLATE = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_questions_category`;
|
||||
CREATE TABLE `bus_questions_category`
|
||||
DROP TABLE IF EXISTS hse_questions_category;
|
||||
CREATE TABLE `hse_questions_category`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键id',
|
||||
`project_id` bigint not null comment '项目id',
|
||||
@ -691,8 +691,8 @@ CREATE TABLE `bus_questions_category`
|
||||
INDEX `idx_project_id` (`project_id` ASC) USING BTREE
|
||||
) comment = '题库类别' COLLATE = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_quality_inspection`;
|
||||
CREATE TABLE `bus_quality_inspection`
|
||||
DROP TABLE IF EXISTS qlt_quality_inspection;
|
||||
CREATE TABLE `qlt_quality_inspection`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键id',
|
||||
`project_id` bigint null comment '项目id',
|
||||
@ -723,8 +723,8 @@ CREATE TABLE `bus_quality_inspection`
|
||||
INDEX `team_id` (`team_id` ASC) USING BTREE
|
||||
) comment = '质量-检查工单' COLLATE = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_quality_construction_log`;
|
||||
CREATE TABLE `bus_quality_construction_log`
|
||||
DROP TABLE IF EXISTS qlt_quality_construction_log;
|
||||
CREATE TABLE `qlt_quality_construction_log`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键id',
|
||||
`project_id` bigint null comment '项目id',
|
||||
|
Reference in New Issue
Block a user