diff --git a/scripts/sql/PostgreSQL-sys_dict.sql b/scripts/sql/PostgreSQL-sys_dict.sql deleted file mode 100644 index f6927ff..0000000 --- a/scripts/sql/PostgreSQL-sys_dict.sql +++ /dev/null @@ -1,54 +0,0 @@ -/* - Navicat Premium Data Transfer - - Source Server : postgre-sp - Source Server Type : PostgreSQL - Source Server Version : 110003 - Source Host : localhost:5432 - Source Catalog : sparchetype - Source Schema : public - - Target Server Type : PostgreSQL - Target Server Version : 110003 - File Encoding : 65001 - - Date: 15/06/2019 16:57:59 -*/ - - --- ---------------------------- --- Table structure for sys_dict --- ---------------------------- -DROP TABLE IF EXISTS "public"."sys_dict"; -CREATE TABLE "public"."sys_dict" ( - "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL, - "value" varchar(100) COLLATE "pg_catalog"."default" NOT NULL, - "type" varchar(100) COLLATE "pg_catalog"."default" NOT NULL, - "description" varchar(255) COLLATE "pg_catalog"."default", - "sort_num" int4, - "parent_id" varchar(64) COLLATE "pg_catalog"."default", - "status" char(2) COLLATE "pg_catalog"."default", - "created_by" varchar(64) COLLATE "pg_catalog"."default" DEFAULT ''::character varying, - "created" timestamptz(0), - "last_upd_by" varchar(64) COLLATE "pg_catalog"."default" DEFAULT ''::character varying, - "last_upd" timestamptz(0) -) -; -COMMENT ON COLUMN "public"."sys_dict"."id" IS 'id'; -COMMENT ON COLUMN "public"."sys_dict"."name" IS '标签名'; -COMMENT ON COLUMN "public"."sys_dict"."value" IS '数据值'; -COMMENT ON COLUMN "public"."sys_dict"."type" IS '类型'; -COMMENT ON COLUMN "public"."sys_dict"."description" IS '描述'; -COMMENT ON COLUMN "public"."sys_dict"."sort_num" IS '排序(升序)'; -COMMENT ON COLUMN "public"."sys_dict"."parent_id" IS '父级id'; -COMMENT ON COLUMN "public"."sys_dict"."status" IS '状态:0 删除;1 正常'; -COMMENT ON COLUMN "public"."sys_dict"."created_by" IS '创建人'; -COMMENT ON COLUMN "public"."sys_dict"."created" IS '创建时间'; -COMMENT ON COLUMN "public"."sys_dict"."last_upd_by" IS '最后更新人'; -COMMENT ON COLUMN "public"."sys_dict"."last_upd" IS '最后更新时间'; - --- ---------------------------- --- Primary Key structure for table sys_dict --- ---------------------------- -ALTER TABLE "public"."sys_dict" ADD CONSTRAINT "sys_dict_pkey" PRIMARY KEY ("id"); diff --git a/scripts/sql/PostgreSQL-sys_file.sql b/scripts/sql/PostgreSQL-sys_file.sql deleted file mode 100644 index 16288e9..0000000 --- a/scripts/sql/PostgreSQL-sys_file.sql +++ /dev/null @@ -1,44 +0,0 @@ -/* - Navicat Premium Data Transfer - - Source Server : postgre-sp - Source Server Type : PostgreSQL - Source Server Version : 110003 - Source Host : localhost:5432 - Source Catalog : sparchetype - Source Schema : public - - Target Server Type : PostgreSQL - Target Server Version : 110003 - File Encoding : 65001 - - Date: 15/06/2019 16:58:10 -*/ - - --- ---------------------------- --- Table structure for sys_file --- ---------------------------- -DROP TABLE IF EXISTS "public"."sys_file"; -CREATE TABLE "public"."sys_file" ( - "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "type" char(2) COLLATE "pg_catalog"."default", - "url" varchar(255) COLLATE "pg_catalog"."default", - "created_by" varchar(64) COLLATE "pg_catalog"."default" DEFAULT ''::character varying, - "created" timestamptz(0), - "last_upd_by" varchar(64) COLLATE "pg_catalog"."default" DEFAULT ''::character varying, - "last_upd" timestamptz(0) -) -; -COMMENT ON COLUMN "public"."sys_file"."id" IS 'id'; -COMMENT ON COLUMN "public"."sys_file"."type" IS '文件类型'; -COMMENT ON COLUMN "public"."sys_file"."url" IS 'URL地址'; -COMMENT ON COLUMN "public"."sys_file"."created_by" IS '创建人'; -COMMENT ON COLUMN "public"."sys_file"."created" IS '创建时间'; -COMMENT ON COLUMN "public"."sys_file"."last_upd_by" IS '最后更新人'; -COMMENT ON COLUMN "public"."sys_file"."last_upd" IS '最后更新时间'; - --- ---------------------------- --- Primary Key structure for table sys_file --- ---------------------------- -ALTER TABLE "public"."sys_file" ADD CONSTRAINT "sys_file_pkey" PRIMARY KEY ("id"); diff --git a/scripts/sql/PostgreSQL-sys_menu.sql b/scripts/sql/PostgreSQL-sys_menu.sql deleted file mode 100644 index 5cabcbc..0000000 --- a/scripts/sql/PostgreSQL-sys_menu.sql +++ /dev/null @@ -1,58 +0,0 @@ -/* - Navicat Premium Data Transfer - - Source Server : postgre-sp - Source Server Type : PostgreSQL - Source Server Version : 110003 - Source Host : localhost:5432 - Source Catalog : sparchetype - Source Schema : public - - Target Server Type : PostgreSQL - Target Server Version : 110003 - File Encoding : 65001 - - Date: 15/06/2019 16:58:34 -*/ - - --- ---------------------------- --- Table structure for sys_menu --- ---------------------------- -DROP TABLE IF EXISTS "public"."sys_menu"; -CREATE TABLE "public"."sys_menu" ( - "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "url" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, - "parent_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "grade" char(2) COLLATE "pg_catalog"."default" NOT NULL, - "sort_num" int4 NOT NULL, - "type" char(2) COLLATE "pg_catalog"."default" NOT NULL, - "permission" varchar(255) COLLATE "pg_catalog"."default", - "icon" varchar(255) COLLATE "pg_catalog"."default", - "description" varchar(255) COLLATE "pg_catalog"."default", - "created_by" varchar(64) COLLATE "pg_catalog"."default" DEFAULT ''::character varying, - "created" timestamptz(0), - "last_upd_by" varchar(64) COLLATE "pg_catalog"."default" DEFAULT ''::character varying, - "last_upd" timestamptz(0) -) -; -COMMENT ON COLUMN "public"."sys_menu"."id" IS '菜单id'; -COMMENT ON COLUMN "public"."sys_menu"."name" IS '菜单名称'; -COMMENT ON COLUMN "public"."sys_menu"."url" IS '菜单URL'; -COMMENT ON COLUMN "public"."sys_menu"."parent_id" IS '父菜单ID,一级菜单设为0'; -COMMENT ON COLUMN "public"."sys_menu"."grade" IS '层级:1级、2级、3级......'; -COMMENT ON COLUMN "public"."sys_menu"."sort_num" IS '排序'; -COMMENT ON COLUMN "public"."sys_menu"."type" IS '类型:0 目录;1 菜单;2 按钮'; -COMMENT ON COLUMN "public"."sys_menu"."permission" IS '授权(多个用逗号分隔,如:sys:menu:list,sys:menu:create)'; -COMMENT ON COLUMN "public"."sys_menu"."icon" IS '菜单图标'; -COMMENT ON COLUMN "public"."sys_menu"."description" IS '描述'; -COMMENT ON COLUMN "public"."sys_menu"."created_by" IS '创建人'; -COMMENT ON COLUMN "public"."sys_menu"."created" IS '创建时间'; -COMMENT ON COLUMN "public"."sys_menu"."last_upd_by" IS '最后更新人'; -COMMENT ON COLUMN "public"."sys_menu"."last_upd" IS '最后更新时间'; - --- ---------------------------- --- Primary Key structure for table sys_menu --- ---------------------------- -ALTER TABLE "public"."sys_menu" ADD CONSTRAINT "sys_menu_pkey" PRIMARY KEY ("id"); diff --git a/scripts/sql/PostgreSQL-sys_org.sql b/scripts/sql/PostgreSQL-sys_org.sql deleted file mode 100644 index c8f18fb..0000000 --- a/scripts/sql/PostgreSQL-sys_org.sql +++ /dev/null @@ -1,60 +0,0 @@ -/* - Navicat Premium Data Transfer - - Source Server : postgre-sp - Source Server Type : PostgreSQL - Source Server Version : 110003 - Source Host : localhost:5432 - Source Catalog : sparchetype - Source Schema : public - - Target Server Type : PostgreSQL - Target Server Version : 110003 - File Encoding : 65001 - - Date: 15/06/2019 16:58:42 -*/ - - --- ---------------------------- --- Table structure for sys_org --- ---------------------------- -DROP TABLE IF EXISTS "public"."sys_org"; -CREATE TABLE "public"."sys_org" ( - "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "parent_id" varchar(64) COLLATE "pg_catalog"."default", - "name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "code" varchar(16) COLLATE "pg_catalog"."default" NOT NULL, - "area_id" varchar(64) COLLATE "pg_catalog"."default", - "type" char(2) COLLATE "pg_catalog"."default" NOT NULL, - "grade" char(2) COLLATE "pg_catalog"."default" NOT NULL, - "longitude" varchar(64) COLLATE "pg_catalog"."default", - "latitude" varchar(64) COLLATE "pg_catalog"."default", - "address" varchar(255) COLLATE "pg_catalog"."default", - "zip_code" varchar(32) COLLATE "pg_catalog"."default", - "created_by" varchar(64) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying, - "created" timestamptz(0) NOT NULL, - "last_upd_by" varchar(64) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying, - "last_upd" timestamptz(0) NOT NULL -) -; -COMMENT ON COLUMN "public"."sys_org"."id" IS '部门id'; -COMMENT ON COLUMN "public"."sys_org"."parent_id" IS '父级id'; -COMMENT ON COLUMN "public"."sys_org"."name" IS '角色名称'; -COMMENT ON COLUMN "public"."sys_org"."code" IS '角色编码'; -COMMENT ON COLUMN "public"."sys_org"."area_id" IS '归属区域id'; -COMMENT ON COLUMN "public"."sys_org"."type" IS '机构类型:公司;部门;小组;其他'; -COMMENT ON COLUMN "public"."sys_org"."grade" IS '机构等级:省级;地级;县级;乡级;'; -COMMENT ON COLUMN "public"."sys_org"."longitude" IS '经度'; -COMMENT ON COLUMN "public"."sys_org"."latitude" IS '纬度'; -COMMENT ON COLUMN "public"."sys_org"."address" IS '地址'; -COMMENT ON COLUMN "public"."sys_org"."zip_code" IS '邮政编码'; -COMMENT ON COLUMN "public"."sys_org"."created_by" IS '创建人'; -COMMENT ON COLUMN "public"."sys_org"."created" IS '创建时间'; -COMMENT ON COLUMN "public"."sys_org"."last_upd_by" IS '最后更新人'; -COMMENT ON COLUMN "public"."sys_org"."last_upd" IS '最后更新时间'; - --- ---------------------------- --- Primary Key structure for table sys_org --- ---------------------------- -ALTER TABLE "public"."sys_org" ADD CONSTRAINT "sys_dept_pkey" PRIMARY KEY ("id"); diff --git a/scripts/sql/PostgreSQL-sys_role.sql b/scripts/sql/PostgreSQL-sys_role.sql deleted file mode 100644 index 8e0c45e..0000000 --- a/scripts/sql/PostgreSQL-sys_role.sql +++ /dev/null @@ -1,48 +0,0 @@ -/* - Navicat Premium Data Transfer - - Source Server : postgre-sp - Source Server Type : PostgreSQL - Source Server Version : 110003 - Source Host : localhost:5432 - Source Catalog : sparchetype - Source Schema : public - - Target Server Type : PostgreSQL - Target Server Version : 110003 - File Encoding : 65001 - - Date: 15/06/2019 17:12:16 -*/ - - --- ---------------------------- --- Table structure for sys_role --- ---------------------------- -DROP TABLE IF EXISTS "public"."sys_role"; -CREATE TABLE "public"."sys_role" ( - "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "code" varchar(16) COLLATE "pg_catalog"."default" NOT NULL, - "status" char(2) COLLATE "pg_catalog"."default" NOT NULL, - "description" varchar(255) COLLATE "pg_catalog"."default", - "created_by" varchar(64) COLLATE "pg_catalog"."default", - "created" timestamptz(0), - "last_upd_by" varchar(64) COLLATE "pg_catalog"."default", - "last_upd" timestamptz(0) -) -; -COMMENT ON COLUMN "public"."sys_role"."id" IS '角色id'; -COMMENT ON COLUMN "public"."sys_role"."name" IS '角色名称'; -COMMENT ON COLUMN "public"."sys_role"."code" IS '角色编码'; -COMMENT ON COLUMN "public"."sys_role"."status" IS '状态(0:无效; 1:有效)'; -COMMENT ON COLUMN "public"."sys_role"."description" IS '角色描述'; -COMMENT ON COLUMN "public"."sys_role"."created_by" IS '创建人'; -COMMENT ON COLUMN "public"."sys_role"."created" IS '创建时间'; -COMMENT ON COLUMN "public"."sys_role"."last_upd_by" IS '最后更新人'; -COMMENT ON COLUMN "public"."sys_role"."last_upd" IS '最后更新时间'; - --- ---------------------------- --- Primary Key structure for table sys_role --- ---------------------------- -ALTER TABLE "public"."sys_role" ADD CONSTRAINT "sys_role_pkey" PRIMARY KEY ("id"); diff --git a/scripts/sql/PostgreSQL-sys_role_menu.sql b/scripts/sql/PostgreSQL-sys_role_menu.sql deleted file mode 100644 index 46b38e2..0000000 --- a/scripts/sql/PostgreSQL-sys_role_menu.sql +++ /dev/null @@ -1,44 +0,0 @@ -/* - Navicat Premium Data Transfer - - Source Server : postgre-sp - Source Server Type : PostgreSQL - Source Server Version : 110003 - Source Host : localhost:5432 - Source Catalog : sparchetype - Source Schema : public - - Target Server Type : PostgreSQL - Target Server Version : 110003 - File Encoding : 65001 - - Date: 15/06/2019 17:03:05 -*/ - - --- ---------------------------- --- Table structure for sys_role_menu --- ---------------------------- -DROP TABLE IF EXISTS "public"."sys_role_menu"; -CREATE TABLE "public"."sys_role_menu" ( - "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "role_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "menu_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "created_by" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "created" timestamptz(0) NOT NULL, - "last_upd_by" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "last_upd" timestamptz(0) NOT NULL -) -; -COMMENT ON COLUMN "public"."sys_role_menu"."id" IS '角色菜单id'; -COMMENT ON COLUMN "public"."sys_role_menu"."role_id" IS '角色id'; -COMMENT ON COLUMN "public"."sys_role_menu"."menu_id" IS '角色id'; -COMMENT ON COLUMN "public"."sys_role_menu"."created_by" IS '创建人'; -COMMENT ON COLUMN "public"."sys_role_menu"."created" IS '创建时间'; -COMMENT ON COLUMN "public"."sys_role_menu"."last_upd_by" IS '最后更新人'; -COMMENT ON COLUMN "public"."sys_role_menu"."last_upd" IS '最后更新时间'; - --- ---------------------------- --- Primary Key structure for table sys_role_menu --- ---------------------------- -ALTER TABLE "public"."sys_role_menu" ADD CONSTRAINT "sys_role_menu_pkey" PRIMARY KEY ("id"); diff --git a/scripts/sql/PostgreSQL-sys_user.sql b/scripts/sql/PostgreSQL-sys_user.sql deleted file mode 100644 index c114096..0000000 --- a/scripts/sql/PostgreSQL-sys_user.sql +++ /dev/null @@ -1,78 +0,0 @@ -/* - Navicat Premium Data Transfer - - Source Server : postgre-sp - Source Server Type : PostgreSQL - Source Server Version : 110003 - Source Host : localhost:5432 - Source Catalog : sparchetype - Source Schema : public - - Target Server Type : PostgreSQL - Target Server Version : 110003 - File Encoding : 65001 - - Date: 15/06/2019 17:03:33 -*/ - - --- ---------------------------- --- Table structure for sys_user --- ---------------------------- -DROP TABLE IF EXISTS "public"."sys_user"; -CREATE TABLE "public"."sys_user" ( - "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "name" varchar(64) COLLATE "pg_catalog"."default" DEFAULT ''::character varying, - "username" varchar(128) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying, - "password" varchar(64) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying, - "dept_id" varchar(64) COLLATE "pg_catalog"."default", - "email" varchar(100) COLLATE "pg_catalog"."default", - "mobile" varchar(32) COLLATE "pg_catalog"."default", - "tel" varchar(32) COLLATE "pg_catalog"."default", - "sex" char(2) COLLATE "pg_catalog"."default", - "birthday" timestamptz(0), - "pic_id" varchar(64) COLLATE "pg_catalog"."default", - "id_card" varchar(32) COLLATE "pg_catalog"."default", - "hobby" varchar(255) COLLATE "pg_catalog"."default", - "province" varchar(255) COLLATE "pg_catalog"."default", - "city" varchar(255) COLLATE "pg_catalog"."default", - "district" varchar(255) COLLATE "pg_catalog"."default", - "street" varchar(255) COLLATE "pg_catalog"."default", - "street_number" varchar(255) COLLATE "pg_catalog"."default", - "description" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying, - "status" char(2) COLLATE "pg_catalog"."default" NOT NULL, - "created_by" varchar(64) COLLATE "pg_catalog"."default" DEFAULT ''::character varying, - "created" timestamptz(0), - "last_upd_by" varchar(64) COLLATE "pg_catalog"."default" DEFAULT ''::character varying, - "last_upd" timestamptz(0) -) -; -COMMENT ON COLUMN "public"."sys_user"."id" IS 'id'; -COMMENT ON COLUMN "public"."sys_user"."name" IS '姓名'; -COMMENT ON COLUMN "public"."sys_user"."username" IS '用户名'; -COMMENT ON COLUMN "public"."sys_user"."password" IS '密码'; -COMMENT ON COLUMN "public"."sys_user"."dept_id" IS '部门id'; -COMMENT ON COLUMN "public"."sys_user"."email" IS '邮箱'; -COMMENT ON COLUMN "public"."sys_user"."mobile" IS '手机号'; -COMMENT ON COLUMN "public"."sys_user"."tel" IS '固定电话'; -COMMENT ON COLUMN "public"."sys_user"."sex" IS '0: 女;1: 男;2: 其他'; -COMMENT ON COLUMN "public"."sys_user"."birthday" IS '出生年月日'; -COMMENT ON COLUMN "public"."sys_user"."pic_id" IS '图片id,对应sys_file表中的id'; -COMMENT ON COLUMN "public"."sys_user"."id_card" IS '身份证'; -COMMENT ON COLUMN "public"."sys_user"."hobby" IS '爱好'; -COMMENT ON COLUMN "public"."sys_user"."province" IS '省份'; -COMMENT ON COLUMN "public"."sys_user"."city" IS '城市'; -COMMENT ON COLUMN "public"."sys_user"."district" IS '区县'; -COMMENT ON COLUMN "public"."sys_user"."street" IS '街道'; -COMMENT ON COLUMN "public"."sys_user"."street_number" IS '门牌号'; -COMMENT ON COLUMN "public"."sys_user"."description" IS '角色描述'; -COMMENT ON COLUMN "public"."sys_user"."status" IS '状态:0 删除;1 正常;2 禁用'; -COMMENT ON COLUMN "public"."sys_user"."created_by" IS '创建人'; -COMMENT ON COLUMN "public"."sys_user"."created" IS '创建时间'; -COMMENT ON COLUMN "public"."sys_user"."last_upd_by" IS '最后更新人'; -COMMENT ON COLUMN "public"."sys_user"."last_upd" IS '最后更新时间'; - --- ---------------------------- --- Primary Key structure for table sys_user --- ---------------------------- -ALTER TABLE "public"."sys_user" ADD CONSTRAINT "test_by_sp_pkey" PRIMARY KEY ("id"); diff --git a/scripts/sql/PostgreSQL-sys_user_role.sql b/scripts/sql/PostgreSQL-sys_user_role.sql deleted file mode 100644 index 8f0ceda..0000000 --- a/scripts/sql/PostgreSQL-sys_user_role.sql +++ /dev/null @@ -1,44 +0,0 @@ -/* - Navicat Premium Data Transfer - - Source Server : postgre-sp - Source Server Type : PostgreSQL - Source Server Version : 110003 - Source Host : localhost:5432 - Source Catalog : sparchetype - Source Schema : public - - Target Server Type : PostgreSQL - Target Server Version : 110003 - File Encoding : 65001 - - Date: 15/06/2019 17:11:05 -*/ - - --- ---------------------------- --- Table structure for sys_user_role --- ---------------------------- -DROP TABLE IF EXISTS "public"."sys_user_role"; -CREATE TABLE "public"."sys_user_role" ( - "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "user_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "role_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "created_by" varchar(64) COLLATE "pg_catalog"."default", - "created" timestamptz(0), - "last_upd_by" varchar(64) COLLATE "pg_catalog"."default", - "last_upd" timestamptz(0) -) -; -COMMENT ON COLUMN "public"."sys_user_role"."id" IS '用户角色关联id'; -COMMENT ON COLUMN "public"."sys_user_role"."user_id" IS '用户id'; -COMMENT ON COLUMN "public"."sys_user_role"."role_id" IS '角色id'; -COMMENT ON COLUMN "public"."sys_user_role"."created_by" IS '创建人'; -COMMENT ON COLUMN "public"."sys_user_role"."created" IS '创建时间'; -COMMENT ON COLUMN "public"."sys_user_role"."last_upd_by" IS '最后更新人'; -COMMENT ON COLUMN "public"."sys_user_role"."last_upd" IS '最后更新时间'; - --- ---------------------------- --- Primary Key structure for table sys_user_role --- ---------------------------- -ALTER TABLE "public"."sys_user_role" ADD CONSTRAINT "sys_user_role_pkey" PRIMARY KEY ("id");