You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lyr-one-test/sql/contracts20230922zK.sql

123 lines
12 KiB
Java

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- for ea_electronic_contracts
-- ----------------------------
DROP TABLE IF EXISTS `ea_electronic_contracts`;
CREATE TABLE `ea_electronic_contracts` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '',
`create_by` varchar(20) DEFAULT NULL COMMENT '',
`creator` varchar(20) DEFAULT NULL COMMENT '',
`create_time` datetime DEFAULT NULL COMMENT '',
`company_id` bigint unsigned DEFAULT NULL COMMENT 'id',
`company` varchar(30) DEFAULT NULL COMMENT '',
`update_time` datetime DEFAULT NULL COMMENT '',
`dept_id` bigint DEFAULT NULL COMMENT 'id',
`dept_name` varchar(30) DEFAULT NULL COMMENT '',
`contract_code` varchar(64) DEFAULT NULL COMMENT '',
`contract_title` varchar(100) DEFAULT NULL COMMENT '',
`contract_type` varchar(50) DEFAULT NULL COMMENT '',
`signatory` varchar(50) DEFAULT NULL COMMENT '',
`sign_date` date DEFAULT NULL COMMENT '',
`effective_date` date DEFAULT NULL COMMENT '',
`expiry_date` date DEFAULT NULL COMMENT '',
`contract_status` varchar(50) DEFAULT NULL COMMENT '',
`contract_amount` decimal(10,0) DEFAULT NULL COMMENT '',
`contract_attachment` varchar(200) DEFAULT NULL COMMENT '',
`handle_result` varchar(500) DEFAULT NULL COMMENT '',
`year` varchar(20) DEFAULT NULL COMMENT '',
`period` varchar(20) DEFAULT NULL COMMENT '',
`borrow_status` varchar(2) DEFAULT NULL COMMENT '',
`record_time` varchar(20) DEFAULT NULL COMMENT '',
`position` varchar(255) DEFAULT NULL COMMENT '',
`cherks` int DEFAULT NULL COMMENT '',
`record_id` bigint DEFAULT NULL COMMENT 'idid',
`user_id` bigint DEFAULT NULL COMMENT 'id',
`deleted` bit(1) DEFAULT b'0' COMMENT '',
`updater` varchar(20) DEFAULT NULL COMMENT '',
`file_status` varchar(64) DEFAULT NULL COMMENT '',
`tenant_id` bigint NOT NULL COMMENT '/',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='';
-- ----------------------------
-- for ea_electronic_employee
-- ----------------------------
DROP TABLE IF EXISTS `ea_electronic_employee`;
CREATE TABLE `ea_electronic_employee` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '',
`create_by` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`creator` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`create_time` datetime DEFAULT NULL COMMENT '',
`company_id` bigint DEFAULT NULL COMMENT 'id',
`company` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`update_time` datetime DEFAULT NULL COMMENT '',
`dept_id` bigint DEFAULT NULL COMMENT 'id',
`dept_name` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`name` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`gender` varchar(10) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`birthdate` date DEFAULT NULL COMMENT '',
`nationality` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`address` varchar(200) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`contact_number` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`id_card_number` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`passport_number` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`graduation_school` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`major` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`education` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`education_experience` text COLLATE utf8mb4_general_ci COMMENT '',
`work_experience` text COLLATE utf8mb4_general_ci COMMENT '',
`job_title` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`job_level` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`job_description` text COLLATE utf8mb4_general_ci COMMENT '',
`salary` decimal(10,0) DEFAULT NULL COMMENT '',
`health_condition` text COLLATE utf8mb4_general_ci COMMENT '',
`medical_records` text COLLATE utf8mb4_general_ci COMMENT '',
`disease_history` text COLLATE utf8mb4_general_ci COMMENT '',
`social_insurance` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`pension_insurance` decimal(10,0) DEFAULT NULL COMMENT '',
`medical_insurance` decimal(10,0) DEFAULT NULL COMMENT '',
`unemployment_insurance` decimal(10,0) DEFAULT NULL COMMENT '',
`work_injury_insurance` decimal(10,0) DEFAULT NULL COMMENT '',
`leave_records` text COLLATE utf8mb4_general_ci COMMENT '',
`overtime_records` text COLLATE utf8mb4_general_ci COMMENT '',
`welfare_benefits` text COLLATE utf8mb4_general_ci COMMENT '',
`performance_evaluation` text COLLATE utf8mb4_general_ci COMMENT '',
`rewards_punishments` text COLLATE utf8mb4_general_ci COMMENT '',
`training_records` text COLLATE utf8mb4_general_ci COMMENT '',
`personal_description` text COLLATE utf8mb4_general_ci COMMENT '',
`year` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`period` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`borrow_status` varchar(2) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`record_time` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`position` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`cherks` int DEFAULT NULL COMMENT '',
`record_id` bigint DEFAULT NULL COMMENT 'id',
`user_id` bigint DEFAULT NULL COMMENT 'id',
`deleted` bit(1) DEFAULT b'0' COMMENT '',
`updater` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`file_status` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`tenant_id` bigint NOT NULL COMMENT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='';
--
SELECT `id` INTO @menuId FROM `system_menu` WHERE `name`='';
INSERT INTO `lyr-one`.`system_menu` (`name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES ('', '', '2', '0', @menuId, 'electronic-contracts', 'clipboard', 'ea/electronicContracts/index', 'ElectronicContracts', '0', b'1', b'1', b'1', '', '2023-09-20 11:29:50', '', '2023-09-20 15:45:07', b'0');
SET @menuId2 = LAST_INSERT_ID();SET @menuId2 = LAST_INSERT_ID();
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (NULL, '', 'ea:electronic-contracts:query', '3', '1', @menuId2, '', '', '', NULL, '0', b'1', b'1', b'1', '', '2023-09-20 11:29:50', '', '2023-09-20 11:29:50', b'0');
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (NULL, '', 'ea:electronic-contracts:create', '3', '2', @menuId2, '', '', '', NULL, '0', b'1', b'1', b'1', '', '2023-09-20 11:29:50', '', '2023-09-20 11:29:50', b'0');
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (NULL, '', 'ea:electronic-contracts:update', '3', '3', @menuId2, '', '', '', NULL, '0', b'1', b'1', b'1', '', '2023-09-20 11:29:50', '', '2023-09-20 11:29:50', b'0');
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (NULL, '', 'ea:electronic-contracts:delete', '3', '4', @menuId2, '', '', '', NULL, '0', b'1', b'1', b'1', '', '2023-09-20 11:29:50', '', '2023-09-20 11:29:50', b'0');
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (NULL, '', 'ea:electronic-contracts:export', '3', '5', @menuId2, '', '', '', NULL, '0', b'1', b'1', b'1', '', '2023-09-20 11:29:50', '', '2023-09-20 11:29:50', b'0');
--
INSERT INTO `lyr-one`.`system_menu` (`name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES ('', '', '2', '0', @menuId, 'electronic-employee', 'clipboard', 'ea/electronicEmployee/index', 'ElectronicEmployee', '0', b'1', b'1', b'1', '', '2023-09-22 14:53:59', '', '2023-09-22 14:53:59', b'0');
SET @menuId3 = LAST_INSERT_ID();
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (NULL, '', 'ea:electronic-employee:query', '3', '1', @menuId3, '', '', '', NULL, '0', b'1', b'1', b'1', '', '2023-09-22 14:53:59', '', '2023-09-22 14:53:59', b'0');
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (NULL, '', 'ea:electronic-employee:create', '3', '2', @menuId3, '', '', '', NULL, '0', b'1', b'1', b'1', '', '2023-09-22 14:53:59', '', '2023-09-22 14:53:59', b'0');
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (NULL, '', 'ea:electronic-employee:update', '3', '3', @menuId3, '', '', '', NULL, '0', b'1', b'1', b'1', '', '2023-09-22 14:53:59', '', '2023-09-22 14:53:59', b'0');
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (NULL, '', 'ea:electronic-employee:delete', '3', '4', @menuId3, '', '', '', NULL, '0', b'1', b'1', b'1', '', '2023-09-22 14:53:59', '', '2023-09-22 14:53:59', b'0');
INSERT INTO `lyr-one`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (NULL, '', 'ea:electronic-employee:export', '3', '5', @menuId3, '', '', '', NULL, '0', b'1', b'1', b'1', '', '2023-09-22 14:53:59', '', '2023-09-22 14:53:59', b'0');