You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1109 lines
50 KiB
1109 lines
50 KiB
/* |
|
Navicat Premium Data Transfer |
|
|
|
Source Server : bladex |
|
Source Server Type : Oracle |
|
Source Server Version : 110200 |
|
Source Host : 192.168.1.182:1521 |
|
Source Schema : BLADEX |
|
|
|
Target Server Type : Oracle |
|
Target Server Version : 110200 |
|
File Encoding : 65001 |
|
|
|
Date: 01/03/2019 13:50:03 |
|
*/ |
|
|
|
|
|
-- ---------------------------- |
|
-- Table structure for BLADE_CODE |
|
-- ---------------------------- |
|
DROP TABLE "BLADEX"."BLADE_CODE"; |
|
CREATE TABLE "BLADEX"."BLADE_CODE" ( |
|
"ID" NUMBER(11) NOT NULL , |
|
"TENANT_CODE" NVARCHAR2(12) , |
|
"SERVICE_NAME" NVARCHAR2(64) , |
|
"CODE_NAME" NVARCHAR2(64) , |
|
"TABLE_NAME" NVARCHAR2(64) , |
|
"TABLE_PREFIX" NVARCHAR2(64) , |
|
"PK_NAME" NVARCHAR2(32) , |
|
"PACKAGE_NAME" NVARCHAR2(500) , |
|
"API_PATH" NCLOB , |
|
"WEB_PATH" NCLOB , |
|
"IS_DELETED" NUMBER(11) DEFAULT 0 |
|
) |
|
TABLESPACE "USERS" |
|
LOGGING |
|
NOCOMPRESS |
|
PCTFREE 10 |
|
INITRANS 1 |
|
STORAGE ( |
|
INITIAL 65536 |
|
NEXT 1048576 |
|
MINEXTENTS 1 |
|
MAXEXTENTS 2147483645 |
|
BUFFER_POOL DEFAULT |
|
) |
|
PARALLEL 1 |
|
NOCACHE |
|
DISABLE ROW MOVEMENT |
|
; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_CODE"."ID" IS '主键'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_CODE"."SERVICE_NAME" IS '服务名称'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_CODE"."CODE_NAME" IS '模块名称'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_CODE"."TABLE_NAME" IS '表名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_CODE"."TABLE_PREFIX" IS '表前缀'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_CODE"."PK_NAME" IS '主键名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_CODE"."PACKAGE_NAME" IS '后端包名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_CODE"."API_PATH" IS '后端路径'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_CODE"."WEB_PATH" IS '前端路径'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_CODE"."IS_DELETED" IS '是否已删除'; |
|
|
|
-- ---------------------------- |
|
-- Records of BLADE_CODE |
|
-- ---------------------------- |
|
INSERT INTO "BLADEX"."BLADE_CODE" VALUES ('1', '000000', 'blade-demo', '通知公告', 'blade_notice', 'blade_', 'id', 'org.springblade.desktop', 'D:\Develop\Git\SpringBlade\blade-ops\blade-develop', 'D:\Develop\Git\Saber', '0'); |
|
|
|
-- ---------------------------- |
|
-- Table structure for BLADE_DEPT |
|
-- ---------------------------- |
|
DROP TABLE "BLADEX"."BLADE_DEPT"; |
|
CREATE TABLE "BLADEX"."BLADE_DEPT" ( |
|
"ID" NUMBER(11) NOT NULL , |
|
"TENANT_CODE" NVARCHAR2(12) , |
|
"PARENT_ID" NUMBER(11) DEFAULT 0 , |
|
"DEPT_NAME" NVARCHAR2(45) , |
|
"FULL_NAME" NVARCHAR2(45) , |
|
"SORT" NUMBER(11) , |
|
"REMARK" NVARCHAR2(255) , |
|
"IS_DELETED" NUMBER(11) DEFAULT 0 |
|
) |
|
TABLESPACE "USERS" |
|
LOGGING |
|
NOCOMPRESS |
|
PCTFREE 10 |
|
INITRANS 1 |
|
STORAGE ( |
|
INITIAL 65536 |
|
NEXT 1048576 |
|
MINEXTENTS 1 |
|
MAXEXTENTS 2147483645 |
|
BUFFER_POOL DEFAULT |
|
) |
|
PARALLEL 1 |
|
NOCACHE |
|
DISABLE ROW MOVEMENT |
|
; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_DEPT"."ID" IS '主键'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_DEPT"."PARENT_ID" IS '父主键'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_DEPT"."DEPT_NAME" IS '部门名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_DEPT"."FULL_NAME" IS '部门全程'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_DEPT"."SORT" IS '排序'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_DEPT"."REMARK" IS '备注'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_DEPT"."IS_DELETED" IS '是否已删除'; |
|
|
|
-- ---------------------------- |
|
-- Records of BLADE_DEPT |
|
-- ---------------------------- |
|
INSERT INTO "BLADEX"."BLADE_DEPT" VALUES ('4', '000000', '1', '杭州刀锋', '杭州刀锋', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DEPT" VALUES ('5', '000000', '1', '福建刀锋', '福建刀锋', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DEPT" VALUES ('1', '000000', '0', '刀锋科技', '江苏刀锋科技有限公司', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DEPT" VALUES ('2', '000000', '1', '常州刀锋', '常州刀锋科技有限公司', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DEPT" VALUES ('3', '000000', '1', '苏州刀锋', '苏州刀锋科技有限公司', '1', NULL, '0'); |
|
|
|
-- ---------------------------- |
|
-- Table structure for BLADE_DICT |
|
-- ---------------------------- |
|
DROP TABLE "BLADEX"."BLADE_DICT"; |
|
CREATE TABLE "BLADEX"."BLADE_DICT" ( |
|
"ID" NUMBER(11) NOT NULL , |
|
"TENANT_CODE" NVARCHAR2(12) , |
|
"PARENT_ID" NUMBER(11) DEFAULT 0 , |
|
"CODE" NVARCHAR2(255) , |
|
"DICT_KEY" NUMBER(11) , |
|
"DICT_VALUE" NVARCHAR2(255) , |
|
"SORT" NUMBER(11) , |
|
"REMARK" NVARCHAR2(255) , |
|
"IS_DELETED" NUMBER(11) DEFAULT 0 |
|
) |
|
TABLESPACE "USERS" |
|
LOGGING |
|
NOCOMPRESS |
|
PCTFREE 10 |
|
INITRANS 1 |
|
STORAGE ( |
|
INITIAL 65536 |
|
NEXT 1048576 |
|
MINEXTENTS 1 |
|
MAXEXTENTS 2147483645 |
|
BUFFER_POOL DEFAULT |
|
) |
|
PARALLEL 1 |
|
NOCACHE |
|
DISABLE ROW MOVEMENT |
|
; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_DICT"."ID" IS '主键'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_DICT"."PARENT_ID" IS '父主键'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_DICT"."CODE" IS '字典码'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_DICT"."DICT_KEY" IS '字典值'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_DICT"."DICT_VALUE" IS '字典名称'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_DICT"."SORT" IS '排序'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_DICT"."REMARK" IS '字典备注'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_DICT"."IS_DELETED" IS '是否已删除'; |
|
|
|
-- ---------------------------- |
|
-- Records of BLADE_DICT |
|
-- ---------------------------- |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('1', '000000', '0', 'sex', '-1', '性别', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('2', '000000', '1', 'sex', '1', '男', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('3', '000000', '1', 'sex', '2', '女', '2', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('4', '000000', '0', 'notice', '-1', '通知类型', '2', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('5', '000000', '4', 'notice', '1', '发布通知', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('6', '000000', '4', 'notice', '2', '批转通知', '2', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('7', '000000', '4', 'notice', '3', '转发通知', '3', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('8', '000000', '4', 'notice', '4', '指示通知', '4', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('9', '000000', '4', 'notice', '5', '任免通知', '5', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('10', '000000', '4', 'notice', '6', '事务通知', '6', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('11', '000000', '0', 'menu_category', '-1', '菜单类型', '3', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('12', '000000', '11', 'menu_category', '1', '菜单', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('13', '000000', '11', 'menu_category', '2', '按钮', '2', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('14', '000000', '0', 'button_func', '-1', '按钮功能', '4', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('15', '000000', '14', 'button_func', '1', '工具栏', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('16', '000000', '14', 'button_func', '2', '操作栏', '2', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('17', '000000', '14', 'button_func', '3', '工具操作栏', '3', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('18', '000000', '0', 'yes_no', '-1', '是否', '5', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('19', '000000', '18', 'yes_no', '1', '否', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('20', '000000', '18', 'yes_no', '2', '是', '2', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('21', '000000', '0', 'is_enable', '-1', '是否启用', '0', NULL, NULL); |
|
INSERT INTO "BLADEX"."BLADE_DICT" VALUES ('22', '000000', '0', 'is_enable', '-1', '是否启用', '0', NULL, '1'); |
|
|
|
|
|
-- ---------------------------- |
|
-- Table structure for BLADE_LOG_API |
|
-- ---------------------------- |
|
DROP TABLE "BLADEX"."BLADE_LOG_API"; |
|
CREATE TABLE "BLADEX"."BLADE_LOG_API" ( |
|
"ID" NUMBER(20) NOT NULL , |
|
"TENANT_CODE" NVARCHAR2(12) , |
|
"SERVICE_ID" NVARCHAR2(32) , |
|
"SERVER_HOST" NVARCHAR2(255) , |
|
"SERVER_IP" NVARCHAR2(255) , |
|
"ENV" NVARCHAR2(255) , |
|
"TYPE" NCHAR(1) DEFAULT 1 , |
|
"TITLE" NVARCHAR2(255) , |
|
"METHOD" NVARCHAR2(10) , |
|
"REQUEST_URI" NVARCHAR2(255) , |
|
"USER_AGENT" NVARCHAR2(1000) , |
|
"REMOTE_IP" NVARCHAR2(255) , |
|
"METHOD_CLASS" NVARCHAR2(255) , |
|
"METHOD_NAME" NVARCHAR2(255) , |
|
"PARAMS" NCLOB , |
|
"TIME" NVARCHAR2(64) , |
|
"CREATE_BY" NVARCHAR2(64) , |
|
"CREATE_TIME" DATE |
|
) |
|
TABLESPACE "USERS" |
|
LOGGING |
|
NOCOMPRESS |
|
PCTFREE 10 |
|
INITRANS 1 |
|
STORAGE ( |
|
INITIAL 65536 |
|
NEXT 1048576 |
|
MINEXTENTS 1 |
|
MAXEXTENTS 2147483645 |
|
BUFFER_POOL DEFAULT |
|
) |
|
PARALLEL 1 |
|
NOCACHE |
|
DISABLE ROW MOVEMENT |
|
; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."ID" IS '编号'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."SERVICE_ID" IS '服务ID'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."SERVER_HOST" IS '服务器名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."SERVER_IP" IS '服务器IP地址'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."ENV" IS '服务器环境'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."TYPE" IS '日志类型'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."TITLE" IS '日志标题'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."METHOD" IS '操作方式'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."REQUEST_URI" IS '请求URI'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."USER_AGENT" IS '用户代理'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."REMOTE_IP" IS '操作IP地址'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."METHOD_CLASS" IS '方法类'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."METHOD_NAME" IS '方法名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."PARAMS" IS '操作提交的数据'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."TIME" IS '执行时间'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."CREATE_BY" IS '创建者'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_API"."CREATE_TIME" IS '创建时间'; |
|
|
|
-- ---------------------------- |
|
-- Table structure for BLADE_LOG_ERROR |
|
-- ---------------------------- |
|
DROP TABLE "BLADEX"."BLADE_LOG_ERROR"; |
|
CREATE TABLE "BLADEX"."BLADE_LOG_ERROR" ( |
|
"ID" NUMBER(20) NOT NULL , |
|
"TENANT_CODE" NVARCHAR2(12) , |
|
"SERVICE_ID" NVARCHAR2(32) , |
|
"SERVER_HOST" NVARCHAR2(255) , |
|
"SERVER_IP" NVARCHAR2(255) , |
|
"ENV" NVARCHAR2(255) , |
|
"METHOD" NVARCHAR2(10) , |
|
"REQUEST_URI" NVARCHAR2(255) , |
|
"USER_AGENT" NVARCHAR2(1000) , |
|
"STACK_TRACE" NCLOB , |
|
"EXCEPTION_NAME" NVARCHAR2(255) , |
|
"MESSAGE" NCLOB , |
|
"LINE_NUMBER" NUMBER(11) , |
|
"METHOD_CLASS" NVARCHAR2(255) , |
|
"FILE_NAME" NVARCHAR2(1000) , |
|
"METHOD_NAME" NVARCHAR2(255) , |
|
"PARAMS" NCLOB , |
|
"CREATE_BY" NVARCHAR2(64) , |
|
"CREATE_TIME" DATE |
|
) |
|
TABLESPACE "USERS" |
|
LOGGING |
|
NOCOMPRESS |
|
PCTFREE 10 |
|
INITRANS 1 |
|
STORAGE ( |
|
INITIAL 65536 |
|
NEXT 1048576 |
|
MINEXTENTS 1 |
|
MAXEXTENTS 2147483645 |
|
BUFFER_POOL DEFAULT |
|
) |
|
PARALLEL 1 |
|
NOCACHE |
|
DISABLE ROW MOVEMENT |
|
; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."ID" IS '编号'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."SERVICE_ID" IS '服务ID'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."SERVER_HOST" IS '服务器名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."SERVER_IP" IS '服务器IP地址'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."ENV" IS '系统环境'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."METHOD" IS '操作方式'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."REQUEST_URI" IS '请求URI'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."USER_AGENT" IS '用户代理'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."STACK_TRACE" IS '堆栈'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."EXCEPTION_NAME" IS '异常名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."MESSAGE" IS '异常信息'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."LINE_NUMBER" IS '错误行数'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."METHOD_CLASS" IS '方法类'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."FILE_NAME" IS '文件名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."METHOD_NAME" IS '方法名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."PARAMS" IS '操作提交的数据'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."CREATE_BY" IS '创建者'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."CREATE_TIME" IS '创建时间'; |
|
|
|
-- ---------------------------- |
|
-- Table structure for BLADE_LOG_USUAL |
|
-- ---------------------------- |
|
DROP TABLE "BLADEX"."BLADE_LOG_USUAL"; |
|
CREATE TABLE "BLADEX"."BLADE_LOG_USUAL" ( |
|
"ID" NUMBER(20) NOT NULL , |
|
"TENANT_CODE" NVARCHAR2(12) , |
|
"SERVICE_ID" NVARCHAR2(32) , |
|
"SERVER_HOST" NVARCHAR2(255) , |
|
"SERVER_IP" NVARCHAR2(255) , |
|
"ENV" NVARCHAR2(255) , |
|
"LOG_LEVEL" NVARCHAR2(10) , |
|
"LOG_ID" NVARCHAR2(100) , |
|
"LOG_DATA" NCLOB , |
|
"METHOD" NVARCHAR2(10) , |
|
"REQUEST_URI" NVARCHAR2(255) , |
|
"USER_AGENT" NVARCHAR2(1000) , |
|
"PARAMS" NCLOB , |
|
"CREATE_BY" NVARCHAR2(64) , |
|
"CREATE_TIME" DATE |
|
) |
|
TABLESPACE "USERS" |
|
LOGGING |
|
NOCOMPRESS |
|
PCTFREE 10 |
|
INITRANS 1 |
|
STORAGE ( |
|
BUFFER_POOL DEFAULT |
|
) |
|
PARALLEL 1 |
|
NOCACHE |
|
DISABLE ROW MOVEMENT |
|
; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_USUAL"."ID" IS '编号'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_USUAL"."SERVICE_ID" IS '服务ID'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_USUAL"."SERVER_HOST" IS '服务器名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_USUAL"."SERVER_IP" IS '服务器IP地址'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_USUAL"."ENV" IS '系统环境'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_USUAL"."LOG_LEVEL" IS '日志级别'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_USUAL"."LOG_ID" IS '日志业务id'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_USUAL"."LOG_DATA" IS '日志数据'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_USUAL"."METHOD" IS '操作方式'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_USUAL"."REQUEST_URI" IS '请求URI'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_USUAL"."USER_AGENT" IS '用户代理'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_USUAL"."PARAMS" IS '操作提交的数据'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_USUAL"."CREATE_BY" IS '创建者'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_USUAL"."CREATE_TIME" IS '创建时间'; |
|
|
|
-- ---------------------------- |
|
-- Table structure for BLADE_MENU |
|
-- ---------------------------- |
|
DROP TABLE "BLADEX"."BLADE_MENU"; |
|
CREATE TABLE "BLADEX"."BLADE_MENU" ( |
|
"ID" NUMBER(11) NOT NULL , |
|
"TENANT_CODE" NVARCHAR2(12) , |
|
"PARENT_ID" NUMBER(11) DEFAULT 0 , |
|
"CODE" NVARCHAR2(255) , |
|
"NAME" NVARCHAR2(255) , |
|
"ALIAS" NVARCHAR2(255) , |
|
"PATH" NVARCHAR2(255) , |
|
"SOURCE" NVARCHAR2(255) , |
|
"SORT" NUMBER(11) , |
|
"CATEGORY" NUMBER(11) , |
|
"ACTION" NUMBER(11) DEFAULT 0 , |
|
"IS_OPEN" NUMBER(11) DEFAULT 0 , |
|
"REMARK" NVARCHAR2(255) , |
|
"IS_DELETED" NUMBER(11) DEFAULT 0 |
|
) |
|
TABLESPACE "USERS" |
|
LOGGING |
|
NOCOMPRESS |
|
PCTFREE 10 |
|
INITRANS 1 |
|
STORAGE ( |
|
INITIAL 65536 |
|
NEXT 1048576 |
|
MINEXTENTS 1 |
|
MAXEXTENTS 2147483645 |
|
BUFFER_POOL DEFAULT |
|
) |
|
PARALLEL 1 |
|
NOCACHE |
|
DISABLE ROW MOVEMENT |
|
; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_MENU"."ID" IS '主键'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_MENU"."PARENT_ID" IS '父级菜单'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_MENU"."CODE" IS '菜单编号'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_MENU"."NAME" IS '菜单名称'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_MENU"."ALIAS" IS '菜单别名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_MENU"."PATH" IS '请求地址'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_MENU"."SOURCE" IS '菜单资源'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_MENU"."SORT" IS '排序'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_MENU"."CATEGORY" IS '菜单类型'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_MENU"."ACTION" IS '操作按钮类型'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_MENU"."IS_OPEN" IS '是否打开新页面'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_MENU"."REMARK" IS '备注'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_MENU"."IS_DELETED" IS '是否已删除'; |
|
|
|
-- ---------------------------- |
|
-- Records of BLADE_MENU |
|
-- ---------------------------- |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('57', '000000', '0', 'viewTop', 'viewTop', 'viewTop', '/viewTop', NULL, '0', '1', '0', '0', NULL, '1'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('1', '000000', '0', 'desk', '工作台', 'menu', '/desk', 'desktop', '1', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('2', '000000', '1', 'notice', '通知公告', 'menu', '/desk/notice', NULL, '1', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('3', '000000', '0', 'system', '系统管理', 'menu', '/system', 'setting', '2', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('4', '000000', '3', 'user', '用户管理', 'menu', '/system/user', NULL, '1', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('5', '000000', '3', 'dept', '部门管理', 'menu', '/system/dept', NULL, '2', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('6', '000000', '3', 'dict', '字典管理', 'menu', '/system/dict', NULL, '3', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('7', '000000', '3', 'menu', '菜单管理', 'menu', '/system/menu', NULL, '4', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('8', '000000', '3', 'role', '角色管理', 'menu', '/system/role', NULL, '5', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('9', '000000', '3', 'param', '参数管理', 'menu', '/system/param', NULL, '6', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('10', '000000', '0', 'monitor', '系统监控', 'menu', '/monitor', 'fund', '3', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('11', '000000', '10', 'doc', '接口文档', 'menu', 'http://localhost:8800/doc.html', NULL, '1', '1', '0', '2', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('12', '000000', '10', 'admin', '服务治理', 'menu', 'http://localhost:7002', NULL, '2', '1', '0', '2', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('13', '000000', '10', 'log', '日志管理', 'menu', '/monitor/log', NULL, '3', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('14', '000000', '13', 'log_usual', '通用日志', 'menu', '/monitor/log/usual', NULL, '1', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('15', '000000', '13', 'log_api', '接口日志', 'menu', '/monitor/log/api', NULL, '2', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('16', '000000', '13', 'log_error', '错误日志', 'menu', '/monitor/log/error', NULL, '3', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('17', '000000', '0', 'tool', '研发工具', 'menu', '/tool', 'tool', '4', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('18', '000000', '17', 'code', '代码生成', 'menu', '/tool/code', NULL, '1', '1', '0', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('19', '000000', '2', 'notice_add', '新增', 'add', '/desk/notice/add', 'plus', '1', '2', '1', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('20', '000000', '2', 'notice_edit', '修改', 'edit', '/desk/notice/edit', 'form', '2', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('21', '000000', '2', 'notice_delete', '删除', 'delete', '/api/blade-desk/notice/remove', 'delete', '3', '2', '3', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('22', '000000', '2', 'notice_view', '查看', 'view', '/desk/notice/view', 'file-text', '4', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('23', '000000', '4', 'user_add', '新增', 'add', '/system/user/add', 'plus', '1', '2', '1', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('24', '000000', '4', 'user_edit', '修改', 'edit', '/system/user/edit', 'form', '2', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('25', '000000', '4', 'user_delete', '删除', 'delete', '/api/blade-user/remove', 'delete', '3', '2', '3', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('26', '000000', '4', 'user_role', '角色配置', 'role', NULL, 'user-add', '4', '2', '1', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('27', '000000', '4', 'user_reset', '密码重置', 'reset-password', '/api/blade-user/reset-password', 'retweet', '5', '2', '1', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('28', '000000', '4', 'user_view', '查看', 'view', '/system/user/view', 'file-text', '6', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('29', '000000', '5', 'dept_add', '新增', 'add', '/system/dept/add', 'plus', '1', '2', '1', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('30', '000000', '5', 'dept_edit', '修改', 'edit', '/system/dept/edit', 'form', '2', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('31', '000000', '5', 'dept_delete', '删除', 'delete', '/api/blade-system/dept/remove', 'delete', '3', '2', '3', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('32', '000000', '5', 'dept_view', '查看', 'view', '/system/dept/view', 'file-text', '4', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('33', '000000', '6', 'dict_add', '新增', 'add', '/system/dict/add', 'plus', '1', '2', '1', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('34', '000000', '6', 'dict_edit', '修改', 'edit', '/system/dict/edit', 'form', '2', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('35', '000000', '6', 'dict_delete', '删除', 'delete', '/api/blade-system/dict/remove', 'delete', '3', '2', '3', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('36', '000000', '6', 'dict_view', '查看', 'view', '/system/dict/view', 'file-text', '4', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('37', '000000', '7', 'menu_add', '新增', 'add', '/system/menu/add', 'plus', '1', '2', '1', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('38', '000000', '7', 'menu_edit', '修改', 'edit', '/system/menu/edit', 'form', '2', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('39', '000000', '7', 'menu_delete', '删除', 'delete', '/api/blade-system/menu/remove', 'delete', '3', '2', '3', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('40', '000000', '7', 'menu_view', '查看', 'view', '/system/menu/view', 'file-text', '4', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('41', '000000', '8', 'role_add', '新增', 'add', '/system/role/add', 'plus', '1', '2', '1', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('42', '000000', '8', 'role_edit', '修改', 'edit', '/system/role/edit', 'form', '2', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('43', '000000', '8', 'role_delete', '删除', 'delete', '/api/blade-system/role/remove', 'delete', '3', '2', '3', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('44', '000000', '8', 'role_view', '查看', 'view', '/system/role/view', 'file-text', '4', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('45', '000000', '9', 'param_add', '新增', 'add', '/system/param/add', 'plus', '1', '2', '1', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('46', '000000', '9', 'param_edit', '修改', 'edit', '/system/param/edit', 'form', '2', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('47', '000000', '9', 'param_delete', '删除', 'delete', '/api/blade-system/param/remove', 'delete', '3', '2', '3', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('48', '000000', '9', 'param_view', '查看', 'view', '/system/param/view', 'file-text', '4', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('49', '000000', '14', 'log_usual_view', '查看', 'view', '/monitor/log/usual/view', 'file-text', '4', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('50', '000000', '15', 'log_api_view', '查看', 'view', '/monitor/log/api/view', 'file-text', '4', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('51', '000000', '16', 'log_error_view', '查看', 'view', '/monitor/log/error/view', 'file-text', '4', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('52', '000000', '18', 'code_add', '新增', 'add', '/tool/code/add', 'plus', '1', '2', '1', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('53', '000000', '18', 'code_edit', '修改', 'edit', '/tool/code/edit', 'form', '2', '2', '2', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('54', '000000', '18', 'code_delete', '删除', 'delete', '/api/blade-system/code/remove', 'delete', '3', '2', '3', '1', NULL, '0'); |
|
INSERT INTO "BLADEX"."BLADE_MENU" VALUES ('55', '000000', '18', 'code_view', '查看', 'view', '/tool/code/view', 'file-text', '4', '2', '2', '1', NULL, '0'); |
|
|
|
-- ---------------------------- |
|
-- Table structure for BLADE_NOTICE |
|
-- ---------------------------- |
|
DROP TABLE "BLADEX"."BLADE_NOTICE"; |
|
CREATE TABLE "BLADEX"."BLADE_NOTICE" ( |
|
"ID" NUMBER(11) NOT NULL , |
|
"TENANT_CODE" NVARCHAR2(12) , |
|
"TITLE" NVARCHAR2(255) , |
|
"CATEGORY" NUMBER(11) , |
|
"RELEASE_TIME" DATE , |
|
"CONTENT" NVARCHAR2(255) , |
|
"CREATE_USER" NUMBER(11) , |
|
"CREATE_TIME" DATE , |
|
"UPDATE_USER" NUMBER(11) , |
|
"UPDATE_TIME" DATE , |
|
"STATUS" NUMBER(11) , |
|
"IS_DELETED" NUMBER(11) |
|
) |
|
TABLESPACE "USERS" |
|
LOGGING |
|
NOCOMPRESS |
|
PCTFREE 10 |
|
INITRANS 1 |
|
STORAGE ( |
|
INITIAL 65536 |
|
NEXT 1048576 |
|
MINEXTENTS 1 |
|
MAXEXTENTS 2147483645 |
|
BUFFER_POOL DEFAULT |
|
) |
|
PARALLEL 1 |
|
NOCACHE |
|
DISABLE ROW MOVEMENT |
|
; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_NOTICE"."ID" IS '主键'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_NOTICE"."TITLE" IS '标题'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_NOTICE"."CATEGORY" IS '类型'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_NOTICE"."RELEASE_TIME" IS '发布时间'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_NOTICE"."CONTENT" IS '内容'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_NOTICE"."CREATE_USER" IS '创建人'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_NOTICE"."CREATE_TIME" IS '创建时间'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_NOTICE"."UPDATE_USER" IS '修改人'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_NOTICE"."UPDATE_TIME" IS '修改时间'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_NOTICE"."STATUS" IS '状态'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_NOTICE"."IS_DELETED" IS '是否已删除'; |
|
|
|
-- ---------------------------- |
|
-- Records of BLADE_NOTICE |
|
-- ---------------------------- |
|
INSERT INTO "BLADEX"."BLADE_NOTICE" VALUES ('3', '通告测试', '-1', TO_DATE('2019-03-01 12:00:00', 'SYYYY-MM-DD HH24:MI:SS'), '通告测试', '1', TO_DATE('2019-03-01 12:21:08', 'SYYYY-MM-DD HH24:MI:SS'), '1', TO_DATE('2019-03-01 12:21:08', 'SYYYY-MM-DD HH24:MI:SS'), '1', '0'); |
|
|
|
-- ---------------------------- |
|
-- Table structure for BLADE_PARAM |
|
-- ---------------------------- |
|
DROP TABLE "BLADEX"."BLADE_PARAM"; |
|
CREATE TABLE "BLADEX"."BLADE_PARAM" ( |
|
"ID" NUMBER(11) NOT NULL , |
|
"TENANT_CODE" NVARCHAR2(12) , |
|
"PARAM_NAME" NVARCHAR2(255) , |
|
"PARAM_KEY" NVARCHAR2(255) , |
|
"PARAM_VALUE" NVARCHAR2(255) , |
|
"REMARK" NVARCHAR2(255) , |
|
"CREATE_USER" NUMBER(11) , |
|
"CREATE_TIME" DATE , |
|
"UPDATE_USER" NUMBER(11) , |
|
"UPDATE_TIME" DATE , |
|
"STATUS" NUMBER(11) , |
|
"IS_DELETED" NUMBER(11) DEFAULT 0 |
|
) |
|
TABLESPACE "USERS" |
|
LOGGING |
|
NOCOMPRESS |
|
PCTFREE 10 |
|
INITRANS 1 |
|
STORAGE ( |
|
INITIAL 65536 |
|
NEXT 1048576 |
|
MINEXTENTS 1 |
|
MAXEXTENTS 2147483645 |
|
BUFFER_POOL DEFAULT |
|
) |
|
PARALLEL 1 |
|
NOCACHE |
|
DISABLE ROW MOVEMENT |
|
; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_PARAM"."ID" IS '主键'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_PARAM"."PARAM_NAME" IS '参数名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_PARAM"."PARAM_KEY" IS '参数键'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_PARAM"."PARAM_VALUE" IS '参数值'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_PARAM"."REMARK" IS '备注'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_PARAM"."CREATE_USER" IS '创建人'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_PARAM"."CREATE_TIME" IS '创建时间'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_PARAM"."UPDATE_USER" IS '修改人'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_PARAM"."UPDATE_TIME" IS '修改时间'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_PARAM"."STATUS" IS '状态'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_PARAM"."IS_DELETED" IS '是否已删除'; |
|
|
|
-- ---------------------------- |
|
-- Records of BLADE_PARAM |
|
-- ---------------------------- |
|
INSERT INTO "BLADEX"."BLADE_PARAM" VALUES ('3', '000000', '默认账号', 'account.initAccount', 'admin10', NULL, '1', TO_DATE('2019-03-01 13:39:45', 'SYYYY-MM-DD HH24:MI:SS'), '1', TO_DATE('2019-03-01 13:39:48', 'SYYYY-MM-DD HH24:MI:SS'), '1', '1'); |
|
INSERT INTO "BLADEX"."BLADE_PARAM" VALUES ('1', '000000', '是否开启注册功能', 'account.registerUser', 'true', '开启注册', '1', TO_DATE('2018-12-28 12:19:01', 'SYYYY-MM-DD HH24:MI:SS'), '1', TO_DATE('2018-12-28 12:19:01', 'SYYYY-MM-DD HH24:MI:SS'), '1', '0'); |
|
INSERT INTO "BLADEX"."BLADE_PARAM" VALUES ('2', '000000', '账号初始密码', 'account.initPassword', '123456', '初始密码', '1', TO_DATE('2018-12-28 12:19:01', 'SYYYY-MM-DD HH24:MI:SS'), '1', TO_DATE('2018-12-28 12:19:01', 'SYYYY-MM-DD HH24:MI:SS'), '1', '0'); |
|
|
|
-- ---------------------------- |
|
-- Table structure for BLADE_ROLE |
|
-- ---------------------------- |
|
DROP TABLE "BLADEX"."BLADE_ROLE"; |
|
CREATE TABLE "BLADEX"."BLADE_ROLE" ( |
|
"ID" NUMBER(11) NOT NULL , |
|
"TENANT_CODE" NVARCHAR2(12) , |
|
"PARENT_ID" NUMBER(11) DEFAULT 0 , |
|
"ROLE_NAME" NVARCHAR2(255) , |
|
"SORT" NUMBER(11) , |
|
"ROLE_ALIAS" NVARCHAR2(255) , |
|
"IS_DELETED" NUMBER(11) DEFAULT 0 |
|
) |
|
TABLESPACE "USERS" |
|
LOGGING |
|
NOCOMPRESS |
|
PCTFREE 10 |
|
INITRANS 1 |
|
STORAGE ( |
|
INITIAL 65536 |
|
NEXT 1048576 |
|
MINEXTENTS 1 |
|
MAXEXTENTS 2147483645 |
|
BUFFER_POOL DEFAULT |
|
) |
|
PARALLEL 1 |
|
NOCACHE |
|
DISABLE ROW MOVEMENT |
|
; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_ROLE"."ID" IS '主键'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_ROLE"."PARENT_ID" IS '父主键'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_ROLE"."ROLE_NAME" IS '角色名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_ROLE"."SORT" IS '排序'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_ROLE"."ROLE_ALIAS" IS '角色别名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_ROLE"."IS_DELETED" IS '是否已删除'; |
|
|
|
-- ---------------------------- |
|
-- Records of BLADE_ROLE |
|
-- ---------------------------- |
|
INSERT INTO "BLADEX"."BLADE_ROLE" VALUES ('1', '000000', '0', '超级管理员', '1', 'admin', '0'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE" VALUES ('2', '000000', '0', '系统管理员', '0', 'system', '0'); |
|
|
|
-- ---------------------------- |
|
-- Table structure for BLADE_ROLE_MENU |
|
-- ---------------------------- |
|
DROP TABLE "BLADEX"."BLADE_ROLE_MENU"; |
|
CREATE TABLE "BLADEX"."BLADE_ROLE_MENU" ( |
|
"ID" NUMBER(11) NOT NULL , |
|
"TENANT_CODE" NVARCHAR2(12) , |
|
"MENU_ID" NUMBER(11) , |
|
"ROLE_ID" NUMBER(11) |
|
) |
|
TABLESPACE "USERS" |
|
LOGGING |
|
NOCOMPRESS |
|
PCTFREE 10 |
|
INITRANS 1 |
|
STORAGE ( |
|
INITIAL 65536 |
|
NEXT 1048576 |
|
MINEXTENTS 1 |
|
MAXEXTENTS 2147483645 |
|
BUFFER_POOL DEFAULT |
|
) |
|
PARALLEL 1 |
|
NOCACHE |
|
DISABLE ROW MOVEMENT |
|
; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_ROLE_MENU"."ID" IS '主键'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_ROLE_MENU"."MENU_ID" IS '菜单id'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_ROLE_MENU"."ROLE_ID" IS '角色id'; |
|
|
|
-- ---------------------------- |
|
-- Records of BLADE_ROLE_MENU |
|
-- ---------------------------- |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('1', '000000', '1', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('2', '000000', '2', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('3', '000000', '3', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('4', '000000', '4', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('5', '000000', '5', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('6', '000000', '6', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('7', '000000', '7', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('8', '000000', '8', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('9', '000000', '9', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('10', '000000', '10', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('11', '000000', '11', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('12', '000000', '12', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('13', '000000', '13', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('14', '000000', '14', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('15', '000000', '15', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('16', '000000', '16', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('17', '000000', '17', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('18', '000000', '18', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('19', '000000', '19', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('20', '000000', '20', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('21', '000000', '21', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('22', '000000', '22', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('23', '000000', '23', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('24', '000000', '24', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('25', '000000', '25', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('26', '000000', '26', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('27', '000000', '27', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('28', '000000', '28', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('29', '000000', '29', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('30', '000000', '30', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('31', '000000', '31', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('32', '000000', '32', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('33', '000000', '33', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('34', '000000', '34', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('35', '000000', '35', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('36', '000000', '36', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('37', '000000', '37', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('38', '000000', '38', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('39', '000000', '39', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('40', '000000', '40', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('41', '000000', '41', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('42', '000000', '42', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('43', '000000', '43', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('44', '000000', '44', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('45', '000000', '45', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('46', '000000', '46', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('47', '000000', '47', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('48', '000000', '48', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('49', '000000', '49', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('50', '000000', '50', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('51', '000000', '51', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('52', '000000', '52', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('53', '000000', '53', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('54', '000000', '54', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('55', '000000', '55', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('56', '000000', '56', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('57', '000000', '57', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('58', '000000', '58', '1'); |
|
INSERT INTO "BLADEX"."BLADE_ROLE_MENU" VALUES ('59', '000000', '59', '1'); |
|
|
|
-- ---------------------------- |
|
-- Table structure for BLADE_USER |
|
-- ---------------------------- |
|
DROP TABLE "BLADEX"."BLADE_USER"; |
|
CREATE TABLE "BLADEX"."BLADE_USER" ( |
|
"ID" NUMBER(11) NOT NULL , |
|
"TENANT_CODE" NVARCHAR2(12) , |
|
"ACCOUNT" NVARCHAR2(45) , |
|
"PASSWORD" NVARCHAR2(45) , |
|
"NAME" NVARCHAR2(20) , |
|
"REAL_NAME" NVARCHAR2(10) , |
|
"EMAIL" NVARCHAR2(45) , |
|
"PHONE" NVARCHAR2(45) , |
|
"BIRTHDAY" DATE , |
|
"SEX" NUMBER(6) , |
|
"ROLE_ID" NVARCHAR2(255) , |
|
"DEPT_ID" NVARCHAR2(255) , |
|
"CREATE_USER" NUMBER(11) , |
|
"CREATE_TIME" DATE , |
|
"UPDATE_USER" NUMBER(11) , |
|
"UPDATE_TIME" DATE , |
|
"STATUS" NUMBER(11) , |
|
"IS_DELETED" NUMBER(11) DEFAULT 0 |
|
) |
|
TABLESPACE "USERS" |
|
LOGGING |
|
NOCOMPRESS |
|
PCTFREE 10 |
|
INITRANS 1 |
|
STORAGE ( |
|
INITIAL 65536 |
|
NEXT 1048576 |
|
MINEXTENTS 1 |
|
MAXEXTENTS 2147483645 |
|
BUFFER_POOL DEFAULT |
|
) |
|
PARALLEL 1 |
|
NOCACHE |
|
DISABLE ROW MOVEMENT |
|
; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."ID" IS '主键'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."ACCOUNT" IS '账号'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."PASSWORD" IS '密码'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."NAME" IS '昵称'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."REAL_NAME" IS '真名'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."EMAIL" IS '邮箱'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."PHONE" IS '手机'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."BIRTHDAY" IS '生日'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."SEX" IS '性别'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."ROLE_ID" IS '角色id'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."DEPT_ID" IS '部门id'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."CREATE_USER" IS '创建人'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."CREATE_TIME" IS '创建时间'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."UPDATE_USER" IS '修改人'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."UPDATE_TIME" IS '修改时间'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."STATUS" IS '状态'; |
|
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."IS_DELETED" IS '是否已删除'; |
|
|
|
-- ---------------------------- |
|
-- Records of BLADE_USER |
|
-- ---------------------------- |
|
INSERT INTO "BLADEX"."BLADE_USER" VALUES ('3', '000000', 'admin02', '10470c3b4b1fed12c3baac014be15fac67c6e815', 'admin02', 'admin02', NULL, '15605912555', NULL, '1', '1', '2', '1', TO_DATE('2019-03-01 12:59:06', 'SYYYY-MM-DD HH24:MI:SS'), '1', TO_DATE('2019-03-01 12:59:06', 'SYYYY-MM-DD HH24:MI:SS'), '1', '0'); |
|
INSERT INTO "BLADEX"."BLADE_USER" VALUES ('1', '000000', 'admin', '90b9aa7e25f80cf4f64e990b78a9fc5ebd6cecad', '管理员', '管理员', 'admin@ronrisoft.com.cn', '15605912544', TO_DATE('2015-09-08 00:00:00', 'SYYYY-MM-DD HH24:MI:SS'), '1', '1', '2', '1', TO_DATE('2018-05-01 10:47:12', 'SYYYY-MM-DD HH24:MI:SS'), '1', TO_DATE('2019-02-24 01:00:20', 'SYYYY-MM-DD HH24:MI:SS'), '1', '0'); |
|
INSERT INTO "BLADEX"."BLADE_USER" VALUES ('2', '000000', 'admin01', '10470c3b4b1fed12c3baac014be15fac67c6e815', 'admin01', 'admin01', '493559828@qq.com', '15605912544', TO_DATE('2019-02-24 12:00:00', 'SYYYY-MM-DD HH24:MI:SS'), '1', '1', '2', '1', TO_DATE('2019-02-24 00:56:12', 'SYYYY-MM-DD HH24:MI:SS'), '1', TO_DATE('2019-03-01 11:45:06', 'SYYYY-MM-DD HH24:MI:SS'), '1', '0'); |
|
|
|
-- ---------------------------- |
|
-- Sequence structure for CODE_ID_SEQ |
|
-- ---------------------------- |
|
DROP SEQUENCE "BLADEX"."CODE_ID_SEQ"; |
|
CREATE SEQUENCE "BLADEX"."CODE_ID_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 NOCACHE; |
|
|
|
-- ---------------------------- |
|
-- Sequence structure for DEPT_ID_SEQ |
|
-- ---------------------------- |
|
DROP SEQUENCE "BLADEX"."DEPT_ID_SEQ"; |
|
CREATE SEQUENCE "BLADEX"."DEPT_ID_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 NOCACHE; |
|
|
|
-- ---------------------------- |
|
-- Sequence structure for DICT_ID_SEQ |
|
-- ---------------------------- |
|
DROP SEQUENCE "BLADEX"."DICT_ID_SEQ"; |
|
CREATE SEQUENCE "BLADEX"."DICT_ID_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 NOCACHE; |
|
|
|
-- ---------------------------- |
|
-- Sequence structure for LOG_ID_SEQ |
|
-- ---------------------------- |
|
DROP SEQUENCE "BLADEX"."LOG_ID_SEQ"; |
|
CREATE SEQUENCE "BLADEX"."LOG_ID_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 NOCACHE; |
|
|
|
-- ---------------------------- |
|
-- Sequence structure for MENU_ID_SEQ |
|
-- ---------------------------- |
|
DROP SEQUENCE "BLADEX"."MENU_ID_SEQ"; |
|
CREATE SEQUENCE "BLADEX"."MENU_ID_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 NOCACHE; |
|
|
|
-- ---------------------------- |
|
-- Sequence structure for NOTICE_ID_SEQ |
|
-- ---------------------------- |
|
DROP SEQUENCE "BLADEX"."NOTICE_ID_SEQ"; |
|
CREATE SEQUENCE "BLADEX"."NOTICE_ID_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 CACHE 20; |
|
|
|
-- ---------------------------- |
|
-- Sequence structure for PARAM_ID_SEQ |
|
-- ---------------------------- |
|
DROP SEQUENCE "BLADEX"."PARAM_ID_SEQ"; |
|
CREATE SEQUENCE "BLADEX"."PARAM_ID_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 NOCACHE; |
|
|
|
-- ---------------------------- |
|
-- Sequence structure for ROLE_ID_SEQ |
|
-- ---------------------------- |
|
DROP SEQUENCE "BLADEX"."ROLE_ID_SEQ"; |
|
CREATE SEQUENCE "BLADEX"."ROLE_ID_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 NOCACHE; |
|
|
|
-- ---------------------------- |
|
-- Sequence structure for ROLE_MENU_ID_SEQ |
|
-- ---------------------------- |
|
DROP SEQUENCE "BLADEX"."ROLE_MENU_ID_SEQ"; |
|
CREATE SEQUENCE "BLADEX"."ROLE_MENU_ID_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 NOCACHE; |
|
|
|
-- ---------------------------- |
|
-- Sequence structure for USER_ID_SEQ |
|
-- ---------------------------- |
|
DROP SEQUENCE "BLADEX"."USER_ID_SEQ"; |
|
CREATE SEQUENCE "BLADEX"."USER_ID_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 NOCACHE; |
|
|
|
-- ---------------------------- |
|
-- Primary Key structure for table BLADE_CODE |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_CODE" ADD CONSTRAINT "SYS_C0014581" PRIMARY KEY ("ID"); |
|
|
|
-- ---------------------------- |
|
-- Checks structure for table BLADE_CODE |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_CODE" ADD CONSTRAINT "SYS_C0014568" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; |
|
|
|
-- ---------------------------- |
|
-- Triggers structure for table BLADE_CODE |
|
-- ---------------------------- |
|
CREATE TRIGGER "BLADEX"."TRI_CODE_ID" BEFORE INSERT ON "BLADEX"."BLADE_CODE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW |
|
declare |
|
nextid number; |
|
begin |
|
IF :new.id IS NULL or :new.id=0 THEN --id是列名 |
|
select code_id_seq.nextval -- **_id_seq正是刚才创建的序列 |
|
into nextid |
|
from dual; |
|
:new.id:=nextid; |
|
end if; |
|
end tri_code_id; |
|
/ |
|
|
|
-- ---------------------------- |
|
-- Primary Key structure for table BLADE_DEPT |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_DEPT" ADD CONSTRAINT "SYS_C0014582" PRIMARY KEY ("ID"); |
|
|
|
-- ---------------------------- |
|
-- Checks structure for table BLADE_DEPT |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_DEPT" ADD CONSTRAINT "SYS_C0014569" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; |
|
|
|
-- ---------------------------- |
|
-- Triggers structure for table BLADE_DEPT |
|
-- ---------------------------- |
|
CREATE TRIGGER "BLADEX"."TRI_DEPT_ID" BEFORE INSERT ON "BLADEX"."BLADE_DEPT" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW |
|
declare |
|
nextid number; |
|
begin |
|
IF :new.id IS NULL or :new.id=0 THEN --id是列名 |
|
select dept_id_seq.nextval -- **_id_seq正是刚才创建的序列 |
|
into nextid |
|
from dual; |
|
:new.id:=nextid; |
|
end if; |
|
end tri_dept_id; |
|
/ |
|
|
|
-- ---------------------------- |
|
-- Primary Key structure for table BLADE_DICT |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_DICT" ADD CONSTRAINT "SYS_C0014583" PRIMARY KEY ("ID"); |
|
|
|
-- ---------------------------- |
|
-- Checks structure for table BLADE_DICT |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_DICT" ADD CONSTRAINT "SYS_C0014570" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; |
|
|
|
-- ---------------------------- |
|
-- Triggers structure for table BLADE_DICT |
|
-- ---------------------------- |
|
CREATE TRIGGER "BLADEX"."TRI_DICT_ID" BEFORE INSERT ON "BLADEX"."BLADE_DICT" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW |
|
declare |
|
nextid number; |
|
begin |
|
IF :new.id IS NULL or :new.id=0 THEN --id是列名 |
|
select dict_id_seq.nextval -- **_id_seq正是刚才创建的序列 |
|
into nextid |
|
from dual; |
|
:new.id:=nextid; |
|
end if; |
|
end tri_dict_id; |
|
/ |
|
|
|
-- ---------------------------- |
|
-- Primary Key structure for table BLADE_LOG |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_LOG" ADD CONSTRAINT "SYS_C0014584" PRIMARY KEY ("ID"); |
|
|
|
-- ---------------------------- |
|
-- Checks structure for table BLADE_LOG |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_LOG" ADD CONSTRAINT "SYS_C0014571" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; |
|
|
|
-- ---------------------------- |
|
-- Triggers structure for table BLADE_LOG |
|
-- ---------------------------- |
|
CREATE TRIGGER "BLADEX"."TRI_LOG_ID" BEFORE INSERT ON "BLADEX"."BLADE_LOG" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW |
|
declare |
|
nextid number; |
|
begin |
|
IF :new.id IS NULL or :new.id=0 THEN --id是列名 |
|
select log_id_seq.nextval -- **_id_seq正是刚才创建的序列 |
|
into nextid |
|
from dual; |
|
:new.id:=nextid; |
|
end if; |
|
end tri_log_id; |
|
/ |
|
|
|
-- ---------------------------- |
|
-- Primary Key structure for table BLADE_LOG_API |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_LOG_API" ADD CONSTRAINT "SYS_C0014585" PRIMARY KEY ("ID"); |
|
|
|
-- ---------------------------- |
|
-- Checks structure for table BLADE_LOG_API |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_LOG_API" ADD CONSTRAINT "SYS_C0014572" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; |
|
|
|
-- ---------------------------- |
|
-- Primary Key structure for table BLADE_LOG_ERROR |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_LOG_ERROR" ADD CONSTRAINT "SYS_C0014586" PRIMARY KEY ("ID"); |
|
|
|
-- ---------------------------- |
|
-- Checks structure for table BLADE_LOG_ERROR |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_LOG_ERROR" ADD CONSTRAINT "SYS_C0014573" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; |
|
|
|
-- ---------------------------- |
|
-- Primary Key structure for table BLADE_LOG_USUAL |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_LOG_USUAL" ADD CONSTRAINT "SYS_C0014587" PRIMARY KEY ("ID"); |
|
|
|
-- ---------------------------- |
|
-- Checks structure for table BLADE_LOG_USUAL |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_LOG_USUAL" ADD CONSTRAINT "SYS_C0014574" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; |
|
|
|
-- ---------------------------- |
|
-- Primary Key structure for table BLADE_MENU |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_MENU" ADD CONSTRAINT "SYS_C0014588" PRIMARY KEY ("ID"); |
|
|
|
-- ---------------------------- |
|
-- Checks structure for table BLADE_MENU |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_MENU" ADD CONSTRAINT "SYS_C0014575" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; |
|
|
|
-- ---------------------------- |
|
-- Triggers structure for table BLADE_MENU |
|
-- ---------------------------- |
|
CREATE TRIGGER "BLADEX"."TRI_MENU_ID" BEFORE INSERT ON "BLADEX"."BLADE_MENU" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW |
|
declare |
|
nextid number; |
|
begin |
|
IF :new.id IS NULL or :new.id=0 THEN --id是列名 |
|
select menu_id_seq.nextval -- **_id_seq正是刚才创建的序列 |
|
into nextid |
|
from dual; |
|
:new.id:=nextid; |
|
end if; |
|
end tri_menu_id; |
|
/ |
|
|
|
-- ---------------------------- |
|
-- Primary Key structure for table BLADE_NOTICE |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_NOTICE" ADD CONSTRAINT "SYS_C0014589" PRIMARY KEY ("ID"); |
|
|
|
-- ---------------------------- |
|
-- Checks structure for table BLADE_NOTICE |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_NOTICE" ADD CONSTRAINT "SYS_C0014576" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; |
|
|
|
-- ---------------------------- |
|
-- Triggers structure for table BLADE_NOTICE |
|
-- ---------------------------- |
|
CREATE TRIGGER "BLADEX"."TRI_NOTICE_ID" BEFORE INSERT ON "BLADEX"."BLADE_NOTICE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW |
|
declare |
|
nextid number; |
|
begin |
|
IF :new.id IS NULL or :new.id=0 THEN |
|
select notice_id_Seq.nextval |
|
into nextid |
|
from sys.dual; |
|
:new.id:=nextid; |
|
end if; |
|
end tri_notice_id; |
|
/ |
|
|
|
-- ---------------------------- |
|
-- Primary Key structure for table BLADE_PARAM |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_PARAM" ADD CONSTRAINT "SYS_C0014590" PRIMARY KEY ("ID"); |
|
|
|
-- ---------------------------- |
|
-- Checks structure for table BLADE_PARAM |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_PARAM" ADD CONSTRAINT "SYS_C0014577" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; |
|
|
|
-- ---------------------------- |
|
-- Triggers structure for table BLADE_PARAM |
|
-- ---------------------------- |
|
CREATE TRIGGER "BLADEX"."TRI_PARAM_ID" BEFORE INSERT ON "BLADEX"."BLADE_PARAM" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW |
|
declare |
|
nextid number; |
|
begin |
|
IF :new.id IS NULL or :new.id=0 THEN --id是列名 |
|
select param_id_seq.nextval -- **_id_seq正是刚才创建的序列 |
|
into nextid |
|
from dual; |
|
:new.id:=nextid; |
|
end if; |
|
end tri_param_id; |
|
/ |
|
|
|
-- ---------------------------- |
|
-- Primary Key structure for table BLADE_ROLE |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_ROLE" ADD CONSTRAINT "SYS_C0014591" PRIMARY KEY ("ID"); |
|
|
|
-- ---------------------------- |
|
-- Checks structure for table BLADE_ROLE |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_ROLE" ADD CONSTRAINT "SYS_C0014578" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; |
|
|
|
-- ---------------------------- |
|
-- Triggers structure for table BLADE_ROLE |
|
-- ---------------------------- |
|
CREATE TRIGGER "BLADEX"."TRI_ROLE_ID" BEFORE INSERT ON "BLADEX"."BLADE_ROLE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW |
|
declare |
|
nextid number; |
|
begin |
|
IF :new.id IS NULL or :new.id=0 THEN --id是列名 |
|
select role_id_seq.nextval --user_id_seq正是刚才创建的序列 |
|
into nextid |
|
from dual; |
|
:new.id:=nextid; |
|
end if; |
|
end tri_role_id; |
|
/ |
|
|
|
-- ---------------------------- |
|
-- Primary Key structure for table BLADE_ROLE_MENU |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_ROLE_MENU" ADD CONSTRAINT "SYS_C0014592" PRIMARY KEY ("ID"); |
|
|
|
-- ---------------------------- |
|
-- Checks structure for table BLADE_ROLE_MENU |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_ROLE_MENU" ADD CONSTRAINT "SYS_C0014579" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; |
|
|
|
-- ---------------------------- |
|
-- Triggers structure for table BLADE_ROLE_MENU |
|
-- ---------------------------- |
|
CREATE TRIGGER "BLADEX"."TRI_ROLE_MENU_ID" BEFORE INSERT ON "BLADEX"."BLADE_ROLE_MENU" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW |
|
declare |
|
nextid number; |
|
begin |
|
IF :new.id IS NULL or :new.id=0 THEN --id是列名 |
|
select role_menu_id_seq.nextval --user_id_seq正是刚才创建的序列 |
|
into nextid |
|
from dual; |
|
:new.id:=nextid; |
|
end if; |
|
end tri_role_menu_id; |
|
/ |
|
|
|
-- ---------------------------- |
|
-- Primary Key structure for table BLADE_USER |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_USER" ADD CONSTRAINT "SYS_C0014593" PRIMARY KEY ("ID"); |
|
|
|
-- ---------------------------- |
|
-- Checks structure for table BLADE_USER |
|
-- ---------------------------- |
|
ALTER TABLE "BLADEX"."BLADE_USER" ADD CONSTRAINT "SYS_C0014580" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; |
|
|
|
-- ---------------------------- |
|
-- Triggers structure for table BLADE_USER |
|
-- ---------------------------- |
|
CREATE TRIGGER "BLADEX"."TRI_USER_ID" BEFORE INSERT ON "BLADEX"."BLADE_USER" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW |
|
declare |
|
nextid number; |
|
begin |
|
IF :new.id IS NULL or :new.id=0 THEN --id是列名 |
|
select user_id_seq.nextval --user_id_seq正是刚才创建的序列 |
|
into nextid |
|
from dual; |
|
:new.id:=nextid; |
|
end if; |
|
end tri_user_id; |
|
/
|
|
|