段飞宇
1 year ago
4 changed files with 19 additions and 582 deletions
@ -1,575 +0,0 @@ |
|||||||
SET FOREIGN_KEY_CHECKS=0; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`ecology_flow_data` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
||||||
`STATION_ID` bigint(20) NULL DEFAULT NULL COMMENT '站点编号', |
|
||||||
`STATION_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称', |
|
||||||
`MON` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '月份', |
|
||||||
`ON_LINE` decimal(15, 2) NULL DEFAULT NULL COMMENT '在线率', |
|
||||||
`DEMONSTRATE` decimal(15, 2) NULL DEFAULT NULL COMMENT '达标率', |
|
||||||
`TIMELY` decimal(15, 2) NULL DEFAULT NULL COMMENT '及时率', |
|
||||||
`COMPLETE` decimal(15, 2) NULL DEFAULT NULL COMMENT '完整率', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', |
|
||||||
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
|
||||||
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除', |
|
||||||
`STATUS` tinyint(4) NOT NULL COMMENT '状态', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`ecology_flow_station` ( |
|
||||||
`ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', |
|
||||||
`STATION_ID` bigint(20) NULL DEFAULT NULL COMMENT '站点编号', |
|
||||||
`STATION_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称', |
|
||||||
`IS_ON_LINE` bigint(1) NULL DEFAULT NULL COMMENT '是否在线:0-离线 1-在线', |
|
||||||
`IS_DEMONSTRATE` bigint(1) NULL DEFAULT NULL COMMENT '是否达标:0-不达标 1-达标', |
|
||||||
`IS_TIMELY` bigint(1) NULL DEFAULT NULL COMMENT '是否及时:0-不及时 1-及时', |
|
||||||
`IS_COMPLETE` bigint(1) NULL DEFAULT NULL COMMENT '是否完整:0-不完整 1-完整', |
|
||||||
`CITY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '城市: 0-黔东南 1-广宁', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', |
|
||||||
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
|
||||||
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除', |
|
||||||
`STATUS` tinyint(4) NOT NULL COMMENT '状态', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hz_ims_duty_main_template` MODIFY COLUMN `DUTY_ORDER_IDS` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '班组值班周期id' AFTER `TYPE`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_fill_over` MODIFY COLUMN `ENCL_NAME` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件名称' AFTER `ENCL_PATH`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_fill_over_config` MODIFY COLUMN `SORT` tinyint(4) NOT NULL COMMENT '排序' AFTER `UNIT_PRICE`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_fill_over_config` ADD UNIQUE INDEX `OVER_NAME`(`OVER_NAME`) USING BTREE; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_fill_power` MODIFY COLUMN `POWER_MON` double(20, 2) NULL DEFAULT 0.00 COMMENT '月发电量' AFTER `PLANNED_POWER_MON`; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`hzims_fill_wind` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
||||||
`STATION_CODE` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点编号', |
|
||||||
`STATION_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称', |
|
||||||
`FILL_DATE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '填报日期', |
|
||||||
`PLAN` decimal(15, 2) NULL DEFAULT NULL COMMENT '计划发电量', |
|
||||||
`POWER` decimal(15, 2) NULL DEFAULT NULL COMMENT '发电量', |
|
||||||
`SPEED` decimal(15, 2) NULL DEFAULT NULL COMMENT '平均风速', |
|
||||||
`SURF_POWER` decimal(15, 2) NULL DEFAULT NULL COMMENT '上网电量', |
|
||||||
`BELOW_POWER` decimal(15, 2) NULL DEFAULT NULL COMMENT '下网电量', |
|
||||||
`AVAILABLE` decimal(15, 2) NULL DEFAULT NULL COMMENT '可用时长', |
|
||||||
`COMPREHENSIVE_POWER` decimal(15, 2) NULL DEFAULT NULL COMMENT '综合用电量', |
|
||||||
`PEAK` decimal(15, 2) NULL DEFAULT NULL COMMENT '峰值功率', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
|
||||||
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
|
||||||
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态', |
|
||||||
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_history_abnormal_alarm` MODIFY COLUMN `CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建单位' AFTER `SOE_EXPLAIN`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_history_abnormal_alarm` MODIFY COLUMN `CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人' AFTER `CREATE_DEPT`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_history_abnormal_alarm` MODIFY COLUMN `STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '业务状态' AFTER `TENANT_ID`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_history_abnormal_alarm` MODIFY COLUMN `UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间' AFTER `UPDATE_USER`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_history_abnormal_alarm` MODIFY COLUMN `IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除' AFTER `UPDATE_TIME`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_main_work_bench` MODIFY COLUMN `ORD` int(11) NULL DEFAULT NULL COMMENT '排序' AFTER `ENABLE_FLAG`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_main_work_bench` MODIFY COLUMN `REF_DEPT` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所属机构' AFTER `ORD`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_month_report` MODIFY COLUMN `OBJECT` blob NULL COMMENT '报表保存对象' AFTER `TYPE`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_access_plan` MODIFY COLUMN `phenomenon_id` bigint(20) NULL DEFAULT NULL COMMENT '现象ID' AFTER `DESCRIPITON`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_access_plan` DROP COLUMN `TASK_NAME`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_access_plan` DROP COLUMN `NEXT_STEP_OPERATOR`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_access_task` ADD COLUMN `MESSAGE_TEMPLATE_ID` bigint(20) NULL DEFAULT NULL COMMENT '模板id' AFTER `phenomenon_id`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_access_task` MODIFY COLUMN `PROCESS_INSTANCE_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '工作流实例' AFTER `EM_CODE`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_access_task` MODIFY COLUMN `ticket_id` bigint(20) NULL DEFAULT NULL AFTER `UPDATE_TIME`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_access_task` MODIFY COLUMN `delay_date` datetime(0) NULL DEFAULT NULL AFTER `ticket_id`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_access_task` MODIFY COLUMN `DELAY_STATUS` tinyint(4) NULL DEFAULT NULL AFTER `delay_date`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_fault` MODIFY COLUMN `FAULT_TYPE` tinyint(4) NULL DEFAULT NULL COMMENT '0- 标准;1 - 非标准' AFTER `FAULT_NAME`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_library` MODIFY COLUMN `EM_CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备编码' AFTER `PROC_DEF_ID`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_plan` MODIFY COLUMN `EM_CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备编码' AFTER `ID`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_plan` MODIFY COLUMN `TASK_TYPE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '0:系统生成任务,1:临时任务' AFTER `UPDATE_TIME`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `EM_CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备编码' AFTER `ID`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `TASK_CODE` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `TYPE_CODE`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `DISPOSER` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '执行人(按,分隔)' AFTER `PROCESS_INSTANCE_ID`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `DISPOSE_TIME` datetime(0) NOT NULL COMMENT '任务按周期生成计划开始时间' AFTER `DISPOSER`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `EXECUTE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '任务执行日期' AFTER `DISPOSE_TIME`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `PUSH_MSG_STATUS` tinyint(4) NULL DEFAULT 0 COMMENT '消息推送状态 0=未推送 1=已推送' AFTER `DESCRIPTION`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `TASK_TYPE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '0:系统生成任务,1:临时任务' AFTER `UPDATE_TIME`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `DELAY_STATUS` tinyint(4) NULL DEFAULT NULL AFTER `TASK_TYPE`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `DELAY_DATE` datetime(0) NULL DEFAULT NULL AFTER `DELAY_STATUS`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `ticket_id` bigint(20) NULL DEFAULT NULL AFTER `DELAY_DATE`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `PLAN_END_TIME` datetime(0) NULL DEFAULT NULL AFTER `ticket_id`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `flow_status` int(11) NULL DEFAULT NULL COMMENT '流程状态' AFTER `MESSAGE_TEMPLATE_ID`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `flow_description` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '流程描述' AFTER `flow_status`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `next_step_operator` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '下一个审批人' AFTER `flow_description`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `flow_task_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前任务名' AFTER `flow_user_id`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `flow_task_id` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前任务名' AFTER `flow_task_name`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_phenomenon` MODIFY COLUMN `EM_CODE` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备编号' AFTER `NAME`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_phenomenon` MODIFY COLUMN `HANDLE_TASK_ID` bigint(20) NULL DEFAULT NULL COMMENT '处理任务ID' AFTER `HANDLE_TYPE`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_phenomenon` MODIFY COLUMN `HANDLER` bigint(20) NULL DEFAULT NULL COMMENT '处理人,处理工作流的第一个处理人' AFTER `HANDLE_TASK_ID`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_oper_phenomenon` MODIFY COLUMN `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人' AFTER `UPDATE_TIME`; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`hzims_oper_repair` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
||||||
`EM_CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备code', |
|
||||||
`NUMBER` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编号', |
|
||||||
`COMPANY` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位', |
|
||||||
`HANDLE_STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '处理状态', |
|
||||||
`CHARGE` bigint(20) NULL DEFAULT NULL COMMENT '应急抢修负责人', |
|
||||||
`REPAIR_TEAM` bigint(20) NULL DEFAULT NULL COMMENT '应急抢修班组', |
|
||||||
`REPAIR_PERSONNEL` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '应急抢修人员', |
|
||||||
`REPAIR_TASK` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '应急抢修任务描述', |
|
||||||
`ORIGINATOR` bigint(20) NULL DEFAULT NULL COMMENT '应急抢修发起人', |
|
||||||
`SAFETY_MEASURES` varchar(2080) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '安全措施', |
|
||||||
`POINTS_ATTENTION` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '注意事项', |
|
||||||
`LICENSOR` bigint(20) NULL DEFAULT NULL COMMENT '许可人', |
|
||||||
`LICENSOR_TIME` datetime(0) NULL DEFAULT NULL COMMENT '许可时间', |
|
||||||
`LICENSOR_MEASURES` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '许可建议安全措施', |
|
||||||
`LICENSOR_MEMO` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '抢修完成许可描述', |
|
||||||
`LICENSOR_COMPLETE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '抢修完成许可时间', |
|
||||||
`IMPLEMENT_HOURS` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '抢修工时', |
|
||||||
`IMPLEMENT_START_TIME` datetime(0) NULL DEFAULT NULL COMMENT '抢修开始时间', |
|
||||||
`IMPLEMENT_END_TIME` datetime(0) NULL DEFAULT NULL COMMENT '抢修结束时间', |
|
||||||
`IMPLEMENT_DESC` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '抢修描述', |
|
||||||
`PROCESS_INSTANCE_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '流程实例ID', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', |
|
||||||
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
|
||||||
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除', |
|
||||||
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态 ', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`hzims_review_standard` ( |
|
||||||
`id` bigint(20) NOT NULL COMMENT '主键ID', |
|
||||||
`review_id` bigint(20) NOT NULL COMMENT '评审ID', |
|
||||||
`standard_id` tinyint(4) NOT NULL COMMENT '标准ID', |
|
||||||
`standard_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标准名称', |
|
||||||
`score` tinyint(4) NULL DEFAULT NULL COMMENT '分数', |
|
||||||
`status` tinyint(4) NULL DEFAULT NULL COMMENT '业务状态', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建单位', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`IS_DELETED` tinyint(4) NULL DEFAULT NULL, |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
|
||||||
PRIMARY KEY (`id`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_station` DROP INDEX `hzims_station_pk`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_station_user` MODIFY COLUMN `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人' AFTER `UPDATE_TIME`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_station_video_type` MODIFY COLUMN `video_type` tinyint(4) NULL DEFAULT NULL COMMENT '视频类型;默认为1:清污机类型' AFTER `SORT`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_operation`.`hzims_unit_running_time` MODIFY COLUMN `DATE_TIME` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '年月' AFTER `EM_CODE`; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`temp` ( |
|
||||||
`db_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
|
||||||
`tablename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
|
||||||
`LieName` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`temp_dept_sync` ( |
|
||||||
`id` bigint(20) NOT NULL, |
|
||||||
`old_dept_id` bigint(20) NULL DEFAULT NULL COMMENT '旧机构ID', |
|
||||||
`new_dept_id` bigint(20) NULL DEFAULT NULL COMMENT '新机构ID', |
|
||||||
`is_sync` tinyint(255) NULL DEFAULT NULL COMMENT '是否同步', |
|
||||||
`dept_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '机构名称', |
|
||||||
`execute_time` datetime(0) NULL DEFAULT NULL COMMENT '执行时间', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
|
||||||
PRIMARY KEY (`id`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '机构同步表' ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`temp_sync_info` ( |
|
||||||
`sync_id` bigint(20) NOT NULL COMMENT '同步ID', |
|
||||||
`db_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数据库', |
|
||||||
`table_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '表', |
|
||||||
`column_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '列', |
|
||||||
`be_replaced` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '被替换值', |
|
||||||
`replaced` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '替换值', |
|
||||||
`replaced_sql` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '替换sql', |
|
||||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '执行时间', |
|
||||||
`bak_replaced_sql` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '还原sql', |
|
||||||
`status` tinyint(4) NULL DEFAULT NULL COMMENT '执行状态' |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_allocation` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
|
||||||
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据号', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`STATUS` int(11) NULL DEFAULT NULL COMMENT '流程状态', |
|
||||||
`RPOC_INS_ID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作流实例ID', |
|
||||||
`IN_WAREHOUSE_ID` bigint(20) NULL DEFAULT NULL COMMENT '入库仓库', |
|
||||||
`OUT_WAREHOUSE_ID` bigint(20) NULL DEFAULT NULL COMMENT '出库仓库', |
|
||||||
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
|
||||||
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_basic` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
|
||||||
`MANAGEMENT_ID` bigint(20) NULL DEFAULT NULL COMMENT '分类ID', |
|
||||||
`NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称', |
|
||||||
`CODE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编码', |
|
||||||
`SPECIFICATIONS` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格', |
|
||||||
`BRAND` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '品牌', |
|
||||||
`UNIT` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位', |
|
||||||
`WEIGHT` decimal(10, 2) NULL DEFAULT NULL COMMENT '重量', |
|
||||||
`PRICE` decimal(10, 2) NULL DEFAULT NULL COMMENT '单价', |
|
||||||
`UPPER_LIMIT` int(10) NULL DEFAULT NULL COMMENT '库存上限', |
|
||||||
`LOWER_LIMIT` int(10) NULL DEFAULT NULL COMMENT '库存下限', |
|
||||||
`IS_WASTE` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否回收废品', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
|
||||||
`PARAMETER` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '主要参数', |
|
||||||
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
|
||||||
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
`CODE_NUMBER` bigint(20) NULL DEFAULT NULL COMMENT '序列号', |
|
||||||
`WATER_PLANT_ID` bigint(16) NULL DEFAULT NULL COMMENT '水厂ID', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_management` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键', |
|
||||||
`tenant_id` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
|
||||||
`NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '分类名称', |
|
||||||
`PARENT_ID` bigint(20) NULL DEFAULT NULL COMMENT '所属父级', |
|
||||||
`ANCESTORS` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '祖级节点', |
|
||||||
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '分类编码', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
|
||||||
`TYPE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备品备件:1,工具:2', |
|
||||||
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
|
||||||
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
`CODE_NUMBER` bigint(20) NULL DEFAULT NULL COMMENT '序列号', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_provider` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
|
||||||
`ORGANIZATION_ID` bigint(20) NULL DEFAULT NULL COMMENT '机构ID', |
|
||||||
`ORGANIZATION_CODE` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '机构编码', |
|
||||||
`SCOPE_OF_SUPPLY` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '供货范围', |
|
||||||
`SUPPLY_CYCLE` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '供货周期', |
|
||||||
`NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称', |
|
||||||
`LOGOGRAM` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称缩写', |
|
||||||
`SALESMAN` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '业务联系人', |
|
||||||
`LEGAL_PERSON` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '法人代表', |
|
||||||
`PHONE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '电话', |
|
||||||
`MOBILE_PHONE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '手机', |
|
||||||
`WEBSITE` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '网址', |
|
||||||
`ADDRESS` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '地址', |
|
||||||
`QUALIFIED_FLAG` int(11) NULL DEFAULT 1 COMMENT '是否合格(0:否,1:是)', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`STATUS` int(2) NULL DEFAULT NULL COMMENT '业务状态', |
|
||||||
`REMARK` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
|
||||||
`IS_DELETED` int(2) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_receive` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
|
||||||
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据号', |
|
||||||
`TICKET_CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工单ID', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`STATUS` int(11) NULL DEFAULT NULL COMMENT '流程状态', |
|
||||||
`RPOC_INS_ID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作流实例ID', |
|
||||||
`STORAGE_ROOM` bigint(20) NULL DEFAULT NULL COMMENT '仓库库房', |
|
||||||
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
|
||||||
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_receives` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
|
||||||
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据号', |
|
||||||
`TICKET_CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工单ID', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`STATUS` int(11) NULL DEFAULT NULL COMMENT '流程状态', |
|
||||||
`RPOC_INS_ID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作流实例ID', |
|
||||||
`STORAGE_ROOM` bigint(20) NULL DEFAULT NULL COMMENT '仓库库房', |
|
||||||
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
|
||||||
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
`VECEIVE_ID` bigint(20) NULL DEFAULT NULL COMMENT '工具领用单ID', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_record` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键', |
|
||||||
`BUSINESS_ID` bigint(20) NULL DEFAULT NULL COMMENT '业务表ID', |
|
||||||
`AMOUNT` int(11) NULL DEFAULT NULL COMMENT '数量AMOUNT', |
|
||||||
`SP_BASIC_ID` bigint(20) NULL DEFAULT NULL COMMENT '备品备件ID', |
|
||||||
`WAREHOUSE_ID` bigint(20) NULL DEFAULT NULL COMMENT '所属仓库', |
|
||||||
`TYPE` int(11) NULL DEFAULT NULL COMMENT '类型1:入库,2:出库,3:调拨,4:领用', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`STATUS` int(2) NULL DEFAULT NULL COMMENT '业务状态', |
|
||||||
`IS_DELETED` int(2) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_revert` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
|
||||||
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据号', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`STATUS` int(11) NULL DEFAULT NULL COMMENT '流程状态', |
|
||||||
`RPOC_INS_ID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作流实例ID', |
|
||||||
`STORAGE_ROOM` bigint(20) NULL DEFAULT NULL COMMENT '仓库库房', |
|
||||||
`AMOUNT` int(11) NULL DEFAULT NULL COMMENT '数量', |
|
||||||
`SP_BASIC_ID` bigint(20) NULL DEFAULT NULL COMMENT '对应备件ID', |
|
||||||
`NAME` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备品备件名称', |
|
||||||
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
|
||||||
`CURRENT_OPERATOR` bigint(20) NULL DEFAULT NULL COMMENT '当前处理人', |
|
||||||
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_ticket_relation` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键', |
|
||||||
`ORDER_ID` bigint(20) NULL DEFAULT NULL COMMENT '出库单ID', |
|
||||||
`AMOUNT` int(11) NULL DEFAULT NULL COMMENT '数量', |
|
||||||
`TICKET` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工单号', |
|
||||||
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
|
||||||
`SP_BASIC_ID` bigint(20) NULL DEFAULT NULL COMMENT '备件ID', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`STATUS` int(2) NULL DEFAULT NULL COMMENT '业务状态', |
|
||||||
`IS_DELETED` int(2) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_tool_basic` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
|
||||||
`SP_BASIC_ID` bigint(20) NULL DEFAULT NULL COMMENT '对应备件ID', |
|
||||||
`QUALITY_GUARANTEE_PERIOD` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '保质期', |
|
||||||
`PRODUCTION_PERIOD` datetime(0) NULL DEFAULT NULL COMMENT '生产日期', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '领用时间', |
|
||||||
`CREATE_USER` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '领用人', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`ATACHMENT_ID` bigint(20) NULL DEFAULT NULL COMMENT '类型(文件类型)', |
|
||||||
`QUANTITY_RECEIVED` bigint(20) NULL DEFAULT NULL COMMENT '领用数量', |
|
||||||
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
|
||||||
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
`WAREHOUSE_ID` bigint(20) NULL DEFAULT NULL COMMENT '所属仓库', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_total` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
|
||||||
`SP_BASIC_ID` bigint(20) NULL DEFAULT NULL COMMENT '对应备件ID', |
|
||||||
`MIN_STOCK` bigint(20) NULL DEFAULT NULL COMMENT '最低储备量', |
|
||||||
`MAX_STOCK` bigint(20) NULL DEFAULT NULL COMMENT '最高储备量', |
|
||||||
`STOCK` bigint(20) NULL DEFAULT NULL COMMENT '库存', |
|
||||||
`IN_PRICE` decimal(12, 2) NULL DEFAULT NULL COMMENT '最新入库单价', |
|
||||||
`OUT_PRICE` decimal(12, 2) NULL DEFAULT NULL COMMENT '最新出库单价', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
|
||||||
`OUT_STOCK` bigint(20) NULL DEFAULT NULL COMMENT '出库暂存', |
|
||||||
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
`WARNING_STOCK` bigint(20) NULL DEFAULT NULL COMMENT '警戒百分比', |
|
||||||
`WAREHOUSE_ID` bigint(20) NULL DEFAULT NULL COMMENT '所属仓库ID', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_type_dictionaries` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
|
||||||
`NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '分类名称', |
|
||||||
`CODE` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编码', |
|
||||||
`P_CODE` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上级编码', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
|
||||||
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_warehouse` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
|
||||||
`ADDRESS` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '地址', |
|
||||||
`CODE` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编码', |
|
||||||
`NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称', |
|
||||||
`MANAGER` bigint(20) NULL DEFAULT NULL COMMENT '负责人', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
|
||||||
`STOCK` bigint(20) NULL DEFAULT NULL COMMENT '当前存量', |
|
||||||
`MAX_STOCK` bigint(20) NULL DEFAULT NULL COMMENT '库存上限', |
|
||||||
`MIN_STOCK` bigint(20) NULL DEFAULT NULL COMMENT '库存下限', |
|
||||||
`WARNING_STOCK` bigint(20) NULL DEFAULT NULL COMMENT '警戒百分比', |
|
||||||
`REMARK` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
|
||||||
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
`AFFILIATED_UNIT` bigint(20) NULL DEFAULT NULL COMMENT '所属单位', |
|
||||||
`AFFILIATED_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所属单位名称', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_warehouse_in` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
|
||||||
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据号', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`TYPE` bigint(20) NULL DEFAULT NULL COMMENT '入库类型', |
|
||||||
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
|
||||||
`RPOC_INS_ID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作流实例ID', |
|
||||||
`STORAGE_ROOM` bigint(20) NULL DEFAULT NULL COMMENT '仓库库房', |
|
||||||
`CURRENT_OPERATOR` bigint(20) NULL DEFAULT NULL COMMENT '当前处理人', |
|
||||||
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
|
||||||
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
`TICKET_CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工单编号', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_warehouse_in_record` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
|
||||||
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '出入库编号', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
|
||||||
`TITLE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标题', |
|
||||||
`STORAGE_ROOM` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '仓库库房', |
|
||||||
`TYPE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型,用枚举来判断是工具还是备品备件', |
|
||||||
`OPERATION` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '操作:用枚举来判断是出库还是入库', |
|
||||||
`AMOUNT` int(11) NULL DEFAULT NULL COMMENT '数量', |
|
||||||
`SP_BASIC_ID` bigint(20) NULL DEFAULT NULL COMMENT '备品备件ID', |
|
||||||
`NAME` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备品备件名称', |
|
||||||
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
|
||||||
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims_operation`.`wt_sp_warehouse_out` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
|
||||||
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据号', |
|
||||||
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`STATUS` int(11) NULL DEFAULT NULL COMMENT '流程状态', |
|
||||||
`RPOC_INS_ID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作流实例ID', |
|
||||||
`STORAGE_ROOM` bigint(20) NULL DEFAULT NULL COMMENT '仓库库房', |
|
||||||
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
|
||||||
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
|
||||||
`TYPE` bigint(20) NULL DEFAULT NULL COMMENT '出库类型', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS=1; |
|
Loading…
Reference in new issue