-- CVC触控项目,仅首次建库执行;目标已存在即失败,禁止使用忽略错误选项。 -- 从现有后端数据库复制表结构,仅复制系统配置、菜单、字典和管理员。 -- 不复制语料、项目、任务、机器人等业务数据。 CREATE DATABASE `cvc_touch` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE TABLE `cvc_touch`.`ae_evaluation` LIKE `cmvr-iot-chengzhi`.`ae_evaluation`; CREATE TABLE `cvc_touch`.`aima_alarm` LIKE `cmvr-iot-chengzhi`.`aima_alarm`; CREATE TABLE `cvc_touch`.`aima_phone` LIKE `cmvr-iot-chengzhi`.`aima_phone`; CREATE TABLE `cvc_touch`.`aima_task` LIKE `cmvr-iot-chengzhi`.`aima_task`; CREATE TABLE `cvc_touch`.`aima_task_instance` LIKE `cmvr-iot-chengzhi`.`aima_task_instance`; CREATE TABLE `cvc_touch`.`aima_task_test_case` LIKE `cmvr-iot-chengzhi`.`aima_task_test_case`; CREATE TABLE `cvc_touch`.`aima_test_case` LIKE `cmvr-iot-chengzhi`.`aima_test_case`; CREATE TABLE `cvc_touch`.`aima_test_log` LIKE `cmvr-iot-chengzhi`.`aima_test_log`; CREATE TABLE `cvc_touch`.`aima_vehicle` LIKE `cmvr-iot-chengzhi`.`aima_vehicle`; CREATE TABLE `cvc_touch`.`de_device_control_log` LIKE `cmvr-iot-chengzhi`.`de_device_control_log`; CREATE TABLE `cvc_touch`.`de_device_group` LIKE `cmvr-iot-chengzhi`.`de_device_group`; CREATE TABLE `cvc_touch`.`de_device_profile` LIKE `cmvr-iot-chengzhi`.`de_device_profile`; CREATE TABLE `cvc_touch`.`de_device_registration` LIKE `cmvr-iot-chengzhi`.`de_device_registration`; CREATE TABLE `cvc_touch`.`de_device_terminal_config` LIKE `cmvr-iot-chengzhi`.`de_device_terminal_config`; CREATE TABLE `cvc_touch`.`de_robot_config` LIKE `cmvr-iot-chengzhi`.`de_robot_config`; CREATE TABLE `cvc_touch`.`evaluate_indicator` LIKE `cmvr-iot-chengzhi`.`evaluate_indicator`; CREATE TABLE `cvc_touch`.`gen_table` LIKE `cmvr-iot-chengzhi`.`gen_table`; CREATE TABLE `cvc_touch`.`gen_table_column` LIKE `cmvr-iot-chengzhi`.`gen_table_column`; CREATE TABLE `cvc_touch`.`inspection_alarm` LIKE `cmvr-iot-chengzhi`.`inspection_alarm`; CREATE TABLE `cvc_touch`.`inspection_detection_alert` LIKE `cmvr-iot-chengzhi`.`inspection_detection_alert`; CREATE TABLE `cvc_touch`.`inspection_detection_detail` LIKE `cmvr-iot-chengzhi`.`inspection_detection_detail`; CREATE TABLE `cvc_touch`.`inspection_map` LIKE `cmvr-iot-chengzhi`.`inspection_map`; CREATE TABLE `cvc_touch`.`inspection_result` LIKE `cmvr-iot-chengzhi`.`inspection_result`; CREATE TABLE `cvc_touch`.`inspection_result_media` LIKE `cmvr-iot-chengzhi`.`inspection_result_media`; CREATE TABLE `cvc_touch`.`inspection_robot` LIKE `cmvr-iot-chengzhi`.`inspection_robot`; CREATE TABLE `cvc_touch`.`inspection_robot_device` LIKE `cmvr-iot-chengzhi`.`inspection_robot_device`; CREATE TABLE `cvc_touch`.`inspection_task` LIKE `cmvr-iot-chengzhi`.`inspection_task`; CREATE TABLE `cvc_touch`.`inspection_task_instance` LIKE `cmvr-iot-chengzhi`.`inspection_task_instance`; CREATE TABLE `cvc_touch`.`inspection_task_log` LIKE `cmvr-iot-chengzhi`.`inspection_task_log`; CREATE TABLE `cvc_touch`.`inspection_task_waypoint` LIKE `cmvr-iot-chengzhi`.`inspection_task_waypoint`; CREATE TABLE `cvc_touch`.`inspection_waypoint` LIKE `cmvr-iot-chengzhi`.`inspection_waypoint`; CREATE TABLE `cvc_touch`.`iot_device` LIKE `cmvr-iot-chengzhi`.`iot_device`; CREATE TABLE `cvc_touch`.`iot_map` LIKE `cmvr-iot-chengzhi`.`iot_map`; CREATE TABLE `cvc_touch`.`iot_resource_migration` LIKE `cmvr-iot-chengzhi`.`iot_resource_migration`; CREATE TABLE `cvc_touch`.`iot_robot` LIKE `cmvr-iot-chengzhi`.`iot_robot`; CREATE TABLE `cvc_touch`.`iot_robot_map` LIKE `cmvr-iot-chengzhi`.`iot_robot_map`; CREATE TABLE `cvc_touch`.`iot_robot_terminal` LIKE `cmvr-iot-chengzhi`.`iot_robot_terminal`; CREATE TABLE `cvc_touch`.`iot_terminal` LIKE `cmvr-iot-chengzhi`.`iot_terminal`; CREATE TABLE `cvc_touch`.`qrtz_blob_triggers` LIKE `cmvr-iot-chengzhi`.`qrtz_blob_triggers`; CREATE TABLE `cvc_touch`.`qrtz_calendars` LIKE `cmvr-iot-chengzhi`.`qrtz_calendars`; CREATE TABLE `cvc_touch`.`qrtz_cron_triggers` LIKE `cmvr-iot-chengzhi`.`qrtz_cron_triggers`; CREATE TABLE `cvc_touch`.`qrtz_fired_triggers` LIKE `cmvr-iot-chengzhi`.`qrtz_fired_triggers`; CREATE TABLE `cvc_touch`.`qrtz_job_details` LIKE `cmvr-iot-chengzhi`.`qrtz_job_details`; CREATE TABLE `cvc_touch`.`qrtz_locks` LIKE `cmvr-iot-chengzhi`.`qrtz_locks`; CREATE TABLE `cvc_touch`.`qrtz_paused_trigger_grps` LIKE `cmvr-iot-chengzhi`.`qrtz_paused_trigger_grps`; CREATE TABLE `cvc_touch`.`qrtz_scheduler_state` LIKE `cmvr-iot-chengzhi`.`qrtz_scheduler_state`; CREATE TABLE `cvc_touch`.`qrtz_simple_triggers` LIKE `cmvr-iot-chengzhi`.`qrtz_simple_triggers`; CREATE TABLE `cvc_touch`.`qrtz_simprop_triggers` LIKE `cmvr-iot-chengzhi`.`qrtz_simprop_triggers`; CREATE TABLE `cvc_touch`.`qrtz_triggers` LIKE `cmvr-iot-chengzhi`.`qrtz_triggers`; CREATE TABLE `cvc_touch`.`sys_config` LIKE `cmvr-iot-chengzhi`.`sys_config`; CREATE TABLE `cvc_touch`.`sys_dept` LIKE `cmvr-iot-chengzhi`.`sys_dept`; CREATE TABLE `cvc_touch`.`sys_dict_data` LIKE `cmvr-iot-chengzhi`.`sys_dict_data`; CREATE TABLE `cvc_touch`.`sys_dict_type` LIKE `cmvr-iot-chengzhi`.`sys_dict_type`; CREATE TABLE `cvc_touch`.`sys_file_info` LIKE `cmvr-iot-chengzhi`.`sys_file_info`; CREATE TABLE `cvc_touch`.`sys_group` LIKE `cmvr-iot-chengzhi`.`sys_group`; CREATE TABLE `cvc_touch`.`sys_job` LIKE `cmvr-iot-chengzhi`.`sys_job`; CREATE TABLE `cvc_touch`.`sys_job_log` LIKE `cmvr-iot-chengzhi`.`sys_job_log`; CREATE TABLE `cvc_touch`.`sys_logininfor` LIKE `cmvr-iot-chengzhi`.`sys_logininfor`; CREATE TABLE `cvc_touch`.`sys_menu` LIKE `cmvr-iot-chengzhi`.`sys_menu`; CREATE TABLE `cvc_touch`.`sys_notice` LIKE `cmvr-iot-chengzhi`.`sys_notice`; CREATE TABLE `cvc_touch`.`sys_notice_read` LIKE `cmvr-iot-chengzhi`.`sys_notice_read`; CREATE TABLE `cvc_touch`.`sys_oper_log` LIKE `cmvr-iot-chengzhi`.`sys_oper_log`; CREATE TABLE `cvc_touch`.`sys_post` LIKE `cmvr-iot-chengzhi`.`sys_post`; CREATE TABLE `cvc_touch`.`sys_role` LIKE `cmvr-iot-chengzhi`.`sys_role`; CREATE TABLE `cvc_touch`.`sys_role_dept` LIKE `cmvr-iot-chengzhi`.`sys_role_dept`; CREATE TABLE `cvc_touch`.`sys_role_menu` LIKE `cmvr-iot-chengzhi`.`sys_role_menu`; CREATE TABLE `cvc_touch`.`sys_user` LIKE `cmvr-iot-chengzhi`.`sys_user`; CREATE TABLE `cvc_touch`.`sys_user_post` LIKE `cmvr-iot-chengzhi`.`sys_user_post`; CREATE TABLE `cvc_touch`.`sys_user_role` LIKE `cmvr-iot-chengzhi`.`sys_user_role`; CREATE TABLE `cvc_touch`.`sys_veh_oper_config` LIKE `cmvr-iot-chengzhi`.`sys_veh_oper_config`; CREATE TABLE `cvc_touch`.`te_ai_evaluation` LIKE `cmvr-iot-chengzhi`.`te_ai_evaluation`; CREATE TABLE `cvc_touch`.`te_detection_item` LIKE `cmvr-iot-chengzhi`.`te_detection_item`; CREATE TABLE `cvc_touch`.`te_detection_item_log` LIKE `cmvr-iot-chengzhi`.`te_detection_item_log`; CREATE TABLE `cvc_touch`.`te_detection_item_version` LIKE `cmvr-iot-chengzhi`.`te_detection_item_version`; CREATE TABLE `cvc_touch`.`te_node_def` LIKE `cmvr-iot-chengzhi`.`te_node_def`; CREATE TABLE `cvc_touch`.`te_node_inst` LIKE `cmvr-iot-chengzhi`.`te_node_inst`; CREATE TABLE `cvc_touch`.`te_param_config` LIKE `cmvr-iot-chengzhi`.`te_param_config`; CREATE TABLE `cvc_touch`.`te_task_config_info` LIKE `cmvr-iot-chengzhi`.`te_task_config_info`; CREATE TABLE `cvc_touch`.`te_task_inst` LIKE `cmvr-iot-chengzhi`.`te_task_inst`; CREATE TABLE `cvc_touch`.`te_task_inst_flow_version` LIKE `cmvr-iot-chengzhi`.`te_task_inst_flow_version`; CREATE TABLE `cvc_touch`.`te_task_inst_log` LIKE `cmvr-iot-chengzhi`.`te_task_inst_log`; CREATE TABLE `cvc_touch`.`te_task_orchestration` LIKE `cmvr-iot-chengzhi`.`te_task_orchestration`; CREATE TABLE `cvc_touch`.`te_vision_calibration_profile` LIKE `cmvr-iot-chengzhi`.`te_vision_calibration_profile`; CREATE TABLE `cvc_touch`.`te_vision_calibration_record` LIKE `cmvr-iot-chengzhi`.`te_vision_calibration_record`; CREATE TABLE `cvc_touch`.`ti_project` LIKE `cmvr-iot-chengzhi`.`ti_project`; CREATE TABLE `cvc_touch`.`ti_vehicle_config` LIKE `cmvr-iot-chengzhi`.`ti_vehicle_config`; CREATE TABLE `cvc_touch`.`ti_vehicle_function` LIKE `cmvr-iot-chengzhi`.`ti_vehicle_function`; CREATE TABLE `cvc_touch`.`ti_vehicle_ui` LIKE `cmvr-iot-chengzhi`.`ti_vehicle_ui`; CREATE TABLE `cvc_touch`.`tts_corpus_category` LIKE `cmvr-iot-chengzhi`.`tts_corpus_category`; CREATE TABLE `cvc_touch`.`tts_corpus_info` LIKE `cmvr-iot-chengzhi`.`tts_corpus_info`; CREATE TABLE `cvc_touch`.`tts_synthesize_task` LIKE `cmvr-iot-chengzhi`.`tts_synthesize_task`; CREATE TABLE `cvc_touch`.`vi_corpus` LIKE `cmvr-iot-chengzhi`.`vi_corpus`; CREATE TABLE `cvc_touch`.`vi_project` LIKE `cmvr-iot-chengzhi`.`vi_project`; CREATE TABLE `cvc_touch`.`vi_scheme` LIKE `cmvr-iot-chengzhi`.`vi_scheme`; INSERT INTO `cvc_touch`.`sys_config` SELECT * FROM `cmvr-iot-chengzhi`.`sys_config`; INSERT INTO `cvc_touch`.`sys_menu` SELECT * FROM `cmvr-iot-chengzhi`.`sys_menu`; INSERT INTO `cvc_touch`.`sys_dict_type` SELECT * FROM `cmvr-iot-chengzhi`.`sys_dict_type`; INSERT INTO `cvc_touch`.`sys_dict_data` SELECT * FROM `cmvr-iot-chengzhi`.`sys_dict_data`; INSERT INTO `cvc_touch`.`sys_user` SELECT * FROM `cmvr-iot-chengzhi`.`sys_user` WHERE user_id=1; INSERT INTO `cvc_touch`.`sys_dept` SELECT * FROM `cmvr-iot-chengzhi`.`sys_dept` WHERE dept_id IN (SELECT dept_id FROM `cvc_touch`.sys_user); INSERT INTO `cvc_touch`.`sys_user_role` SELECT * FROM `cmvr-iot-chengzhi`.`sys_user_role` WHERE user_id=1; INSERT INTO `cvc_touch`.`sys_role` SELECT * FROM `cmvr-iot-chengzhi`.`sys_role` WHERE role_id IN (SELECT role_id FROM `cvc_touch`.sys_user_role); INSERT INTO `cvc_touch`.`sys_user_post` SELECT * FROM `cmvr-iot-chengzhi`.`sys_user_post` WHERE user_id=1; INSERT INTO `cvc_touch`.`sys_post` SELECT * FROM `cmvr-iot-chengzhi`.`sys_post` WHERE post_id IN (SELECT post_id FROM `cvc_touch`.sys_user_post); INSERT INTO `cvc_touch`.`sys_role_menu` SELECT * FROM `cmvr-iot-chengzhi`.`sys_role_menu` WHERE role_id IN (SELECT role_id FROM `cvc_touch`.sys_role); INSERT INTO `cvc_touch`.`sys_role_dept` SELECT * FROM `cmvr-iot-chengzhi`.`sys_role_dept` WHERE role_id IN (SELECT role_id FROM `cvc_touch`.sys_role);