电子档案附件sql

new
cyl 1 year ago
parent 3bca7d8034
commit a737144e26

@ -0,0 +1,106 @@
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50717
Source Host : localhost:3306
Source Schema : lyr-one
Target Server Type : MySQL
Target Server Version : 50717
File Encoding : 65001
Date: 13/10/2023 09:51:58
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for ea_electronic_attachment
-- ----------------------------
DROP TABLE IF EXISTS `ea_electronic_attachment`;
CREATE TABLE `ea_electronic_attachment` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '',
`business_id` bigint(20) NOT NULL COMMENT 'id',
`business_type` varchar(30) NOT NULL COMMENT '',
`create_time` datetime DEFAULT NULL COMMENT '',
`updater` varchar(64) DEFAULT NULL COMMENT '',
`update_time` datetime DEFAULT NULL COMMENT '',
`create_by` varchar(20) DEFAULT NULL COMMENT '',
`creator` varchar(20) DEFAULT NULL COMMENT '',
`company_id` bigint(20) DEFAULT NULL COMMENT 'id',
`company` varchar(30) DEFAULT NULL COMMENT '',
`del_status` varchar(2) DEFAULT '0' COMMENT '',
`suffix` varchar(10) DEFAULT NULL COMMENT '',
`file_url` varchar(255) DEFAULT NULL COMMENT '',
`file_ap` varchar(255) DEFAULT NULL COMMENT '',
`flow_code` varchar(40) DEFAULT NULL COMMENT '',
`user_id` bigint(20) DEFAULT NULL COMMENT 'id',
`deleted` bit(1) DEFAULT b'0' COMMENT '',
`note` varchar(255) DEFAULT NULL COMMENT '',
`dept_id` bigint(20) DEFAULT NULL COMMENT 'id',
`dept_name` varchar(30) DEFAULT NULL COMMENT '',
`tenant_id` bigint(20) NOT NULL COMMENT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COMMENT='';
-- SQL
INSERT INTO system_menu(
name, permission, type, sort, parent_id,
path, icon, component, status, component_name
)
VALUES (
'', '', 2, 0, 2379,
'electronic-attachment', '', 'ea/electronicAttachment/index', 0, 'ElectronicAttachment'
);
-- ID
-- MySQL OraclePostgreSQLSQLServer @parentId
SELECT @parentId := LAST_INSERT_ID();
-- SQL
INSERT INTO system_menu(
name, permission, type, sort, parent_id,
path, icon, component, status
)
VALUES (
'', 'ea:electronic-attachment:query', 3, 1, @parentId,
'', '', '', 0
);
INSERT INTO system_menu(
name, permission, type, sort, parent_id,
path, icon, component, status
)
VALUES (
'', 'ea:electronic-attachment:create', 3, 2, @parentId,
'', '', '', 0
);
INSERT INTO system_menu(
name, permission, type, sort, parent_id,
path, icon, component, status
)
VALUES (
'', 'ea:electronic-attachment:update', 3, 3, @parentId,
'', '', '', 0
);
INSERT INTO system_menu(
name, permission, type, sort, parent_id,
path, icon, component, status
)
VALUES (
'', 'ea:electronic-attachment:delete', 3, 4, @parentId,
'', '', '', 0
);
INSERT INTO system_menu(
name, permission, type, sort, parent_id,
path, icon, component, status
)
VALUES (
'', 'ea:electronic-attachment:export', 3, 5, @parentId,
'', '', '', 0
);
Loading…
Cancel
Save