-- ----------------------------
-- Sequence structure for tbl_org_oid_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."tbl_org_oid_seq";
CREATE SEQUENCE "public"."tbl_org_oid_seq"
INCREMENT 1
MINVALUE  1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
ALTER SEQUENCE "public"."tbl_org_oid_seq" OWNER TO "postgres";

-- ----------------------------
-- Sequence structure for tbl_org_property_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."tbl_org_property_id_seq";
CREATE SEQUENCE "public"."tbl_org_property_id_seq"
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1;
ALTER SEQUENCE "public"."tbl_org_property_id_seq" OWNER TO "postgres";

-- ----------------------------
-- Sequence structure for tbl_sys_menu_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."tbl_sys_menu_id_seq";
CREATE SEQUENCE "public"."tbl_sys_menu_id_seq"
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1;
ALTER SEQUENCE "public"."tbl_sys_menu_id_seq" OWNER TO "postgres";

-- ----------------------------
-- Sequence structure for tbl_sys_role_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."tbl_sys_role_id_seq";
CREATE SEQUENCE "public"."tbl_sys_role_id_seq"
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1;
ALTER SEQUENCE "public"."tbl_sys_role_id_seq" OWNER TO "postgres";

-- ----------------------------
-- Sequence structure for tbl_sys_user_uid_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."tbl_sys_user_uid_seq";
CREATE SEQUENCE "public"."tbl_sys_user_uid_seq"
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1;
ALTER SEQUENCE "public"."tbl_sys_user_uid_seq" OWNER TO "postgres";

-- ----------------------------
-- Table structure for tbl_org
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_org";
CREATE TABLE "public"."tbl_org" (
  "oid" int4 NOT NULL DEFAULT nextval('tbl_org_oid_seq'::regclass),
  "name" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "fullname" varchar(255) COLLATE "pg_catalog"."default",
  "type" int4,
  "level" int2,
  "poid" int4,
  "geom" varchar COLLATE "pg_catalog"."default",
  "orderby" int4 DEFAULT 0,
  "path" varchar(255) COLLATE "pg_catalog"."default",
  "wkt" text COLLATE "pg_catalog"."default",
  "oid_path" varchar(255) COLLATE "pg_catalog"."default",
  "ref_oid" varchar COLLATE "pg_catalog"."default",
  "geo_json" text COLLATE "pg_catalog"."default",
  "remark" varchar(255) COLLATE "pg_catalog"."default",
  "ref_code" varchar(255) COLLATE "pg_catalog"."default",
  "district_oid" int4,
  "del_flag" int2 DEFAULT 0,
  "del_key" int4 DEFAULT 0,
  "zzd_org_code" varchar(64) COLLATE "pg_catalog"."default",
  "create_time" timestamp(6) DEFAULT now(),
  "update_time" timestamp(6) DEFAULT now(),
  "district_code" varchar(255) COLLATE "pg_catalog"."default",
  "org_property_id" int4
)
;
ALTER TABLE "public"."tbl_org" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_org"."oid" IS '组织id';
COMMENT ON COLUMN "public"."tbl_org"."name" IS '名称';
COMMENT ON COLUMN "public"."tbl_org"."fullname" IS '全称';
COMMENT ON COLUMN "public"."tbl_org"."type" IS '类型';
COMMENT ON COLUMN "public"."tbl_org"."level" IS '等级';
COMMENT ON COLUMN "public"."tbl_org"."poid" IS '父组织编码';
COMMENT ON COLUMN "public"."tbl_org"."orderby" IS '排序';
COMMENT ON COLUMN "public"."tbl_org"."path" IS '组织路径';
COMMENT ON COLUMN "public"."tbl_org"."wkt" IS '边界数据';
COMMENT ON COLUMN "public"."tbl_org"."oid_path" IS '组织id路径';
COMMENT ON COLUMN "public"."tbl_org"."remark" IS '备注';
COMMENT ON COLUMN "public"."tbl_org"."district_oid" IS '行政区域id';
COMMENT ON COLUMN "public"."tbl_org"."del_flag" IS '删除标记,1:已删除,0:正常';
COMMENT ON COLUMN "public"."tbl_org"."del_key" IS '逻辑删除辅助字段';
COMMENT ON COLUMN "public"."tbl_org"."zzd_org_code" IS '专有钉钉部门code';
COMMENT ON COLUMN "public"."tbl_org"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."tbl_org"."update_time" IS '更新时间';
COMMENT ON COLUMN "public"."tbl_org"."district_code" IS '行政区划编码';
COMMENT ON COLUMN "public"."tbl_org"."org_property_id" IS '组织属性id';
COMMENT ON TABLE "public"."tbl_org" IS '组织信息';

-- ----------------------------
-- Table structure for tbl_org_property
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_org_property";
CREATE TABLE "public"."tbl_org_property" (
  "id" int4 NOT NULL DEFAULT nextval('tbl_org_property_id_seq'::regclass),
  "pid" int4 DEFAULT 0,
  "name" varchar(255) COLLATE "pg_catalog"."default",
  "icon" varchar(255) COLLATE "pg_catalog"."default",
  "del_flag" int2 DEFAULT 0,
  "del_key" int4 DEFAULT 0,
  "create_time" timestamp(6) DEFAULT CURRENT_TIMESTAMP,
  "update_time" timestamp(6) DEFAULT CURRENT_TIMESTAMP,
  "code_length" int4,
  "level" int4
)
;
ALTER TABLE "public"."tbl_org_property" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_org_property"."id" IS '主键id';
COMMENT ON COLUMN "public"."tbl_org_property"."pid" IS '上级id';
COMMENT ON COLUMN "public"."tbl_org_property"."name" IS '属性名称';
COMMENT ON COLUMN "public"."tbl_org_property"."icon" IS '图标';
COMMENT ON COLUMN "public"."tbl_org_property"."del_flag" IS '删除标记,1:已删除,0:正常';
COMMENT ON COLUMN "public"."tbl_org_property"."del_key" IS '辅助删除key';
COMMENT ON COLUMN "public"."tbl_org_property"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."tbl_org_property"."update_time" IS '更新时间';
COMMENT ON COLUMN "public"."tbl_org_property"."code_length" IS '编码长度';
COMMENT ON TABLE "public"."tbl_org_property" IS '组织属性表';

-- ----------------------------
-- Table structure for tbl_org_user_mapper
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_org_user_mapper";
CREATE TABLE "public"."tbl_org_user_mapper" (
  "oid" int4 NOT NULL,
  "uid" int4 NOT NULL,
  "role_id" int4 NOT NULL,
  "flag_enabled" int2 DEFAULT 1,
  "orderby" int2,
  "update_time" timestamp(6) DEFAULT now()
)
;
ALTER TABLE "public"."tbl_org_user_mapper" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_org_user_mapper"."oid" IS '组织id';
COMMENT ON COLUMN "public"."tbl_org_user_mapper"."uid" IS '用户id';
COMMENT ON COLUMN "public"."tbl_org_user_mapper"."role_id" IS '角色id';
COMMENT ON COLUMN "public"."tbl_org_user_mapper"."flag_enabled" IS '是否开启';
COMMENT ON COLUMN "public"."tbl_org_user_mapper"."orderby" IS '排序字段';
COMMENT ON COLUMN "public"."tbl_org_user_mapper"."update_time" IS '更新时间';
COMMENT ON TABLE "public"."tbl_org_user_mapper" IS '组织用户关联信息';

-- ----------------------------
-- Table structure for tbl_sys_menu
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_sys_menu";
CREATE TABLE "public"."tbl_sys_menu" (
  "id" int4 NOT NULL DEFAULT nextval('tbl_sys_menu_id_seq'::regclass),
  "name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "pid" int4 NOT NULL,
  "permission" varchar(255) COLLATE "pg_catalog"."default",
  "url" varchar(255) COLLATE "pg_catalog"."default",
  "type" int2,
  "sort_order" int2,
  "create_time" timestamp(6) DEFAULT now(),
  "update_time" timestamp(6) DEFAULT now(),
  "del_flag" int2 DEFAULT 0,
  "del_key" int4 DEFAULT 0,
  "icon" varchar(255) COLLATE "pg_catalog"."default",
  "is_hidden" bool DEFAULT false,
  "component" varchar(255) COLLATE "pg_catalog"."default",
  "layout" bool DEFAULT false,
  "redirect" varchar(255) COLLATE "pg_catalog"."default",
  "target" varchar(255) COLLATE "pg_catalog"."default",
  "category" varchar(255) COLLATE "pg_catalog"."default",
  "is_default" bool DEFAULT false,
  "path_name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "enabled" int2
)
;
ALTER TABLE "public"."tbl_sys_menu" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_sys_menu"."id" IS 'ID';
COMMENT ON COLUMN "public"."tbl_sys_menu"."name" IS '菜单名称';
COMMENT ON COLUMN "public"."tbl_sys_menu"."pid" IS '菜单父id';
COMMENT ON COLUMN "public"."tbl_sys_menu"."permission" IS '菜单权限标识';
COMMENT ON COLUMN "public"."tbl_sys_menu"."url" IS '前端路由标识路径';
COMMENT ON COLUMN "public"."tbl_sys_menu"."type" IS '类型';
COMMENT ON COLUMN "public"."tbl_sys_menu"."sort_order" IS '排序值';
COMMENT ON COLUMN "public"."tbl_sys_menu"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."tbl_sys_menu"."update_time" IS '更新时间';
COMMENT ON COLUMN "public"."tbl_sys_menu"."del_flag" IS '删除标记,1:已删除,0:正常';
COMMENT ON COLUMN "public"."tbl_sys_menu"."del_key" IS '逻辑删除辅助字段';
COMMENT ON COLUMN "public"."tbl_sys_menu"."icon" IS '菜单图标';
COMMENT ON COLUMN "public"."tbl_sys_menu"."is_hidden" IS '是否隐藏';
COMMENT ON COLUMN "public"."tbl_sys_menu"."component" IS '组件地址';
COMMENT ON COLUMN "public"."tbl_sys_menu"."layout" IS '布局是否可见';
COMMENT ON COLUMN "public"."tbl_sys_menu"."redirect" IS '跳转地址';
COMMENT ON COLUMN "public"."tbl_sys_menu"."target" IS '目标地址';
COMMENT ON COLUMN "public"."tbl_sys_menu"."category" IS '所属分类';
COMMENT ON COLUMN "public"."tbl_sys_menu"."is_default" IS '是否默认';
COMMENT ON COLUMN "public"."tbl_sys_menu"."path_name" IS '菜单路径';
COMMENT ON COLUMN "public"."tbl_sys_menu"."enabled" IS '是否启用1-启动，0-禁用';
COMMENT ON TABLE "public"."tbl_sys_menu" IS '系统菜单';

-- ----------------------------
-- Table structure for tbl_sys_role
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_sys_role";
CREATE TABLE "public"."tbl_sys_role" (
  "id" int4 NOT NULL DEFAULT nextval('tbl_sys_role_id_seq'::regclass),
  "role_name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "role_code" varchar(255) COLLATE "pg_catalog"."default",
  "role_desc" varchar(255) COLLATE "pg_catalog"."default",
  "ds_type" int2,
  "ds_scope" int2,
  "del_flag" int2 NOT NULL DEFAULT 0,
  "del_key" int2 NOT NULL DEFAULT 0,
  "create_time" timestamp(6) NOT NULL DEFAULT now(),
  "update_time" timestamp(6) NOT NULL DEFAULT now(),
  "is_default" int2 DEFAULT 0,
  "p_id" int4,
  "level" int2
)
;
ALTER TABLE "public"."tbl_sys_role" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_sys_role"."id" IS 'ID';
COMMENT ON COLUMN "public"."tbl_sys_role"."role_name" IS '角色名称';
COMMENT ON COLUMN "public"."tbl_sys_role"."role_code" IS '角色标识';
COMMENT ON COLUMN "public"."tbl_sys_role"."role_desc" IS '角色描述';
COMMENT ON COLUMN "public"."tbl_sys_role"."ds_type" IS '数据权限类型';
COMMENT ON COLUMN "public"."tbl_sys_role"."ds_scope" IS '数据权限作用范围';
COMMENT ON COLUMN "public"."tbl_sys_role"."del_flag" IS '删除标记,1:已删除,0:正常';
COMMENT ON COLUMN "public"."tbl_sys_role"."del_key" IS '逻辑删除辅助字段';
COMMENT ON COLUMN "public"."tbl_sys_role"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."tbl_sys_role"."update_time" IS '更新时间';
COMMENT ON COLUMN "public"."tbl_sys_role"."is_default" IS '是否默认';
COMMENT ON COLUMN "public"."tbl_sys_role"."p_id" IS '父角色id';
COMMENT ON COLUMN "public"."tbl_sys_role"."level" IS '角色等级';
COMMENT ON TABLE "public"."tbl_sys_role" IS '系统角色';

-- ----------------------------
-- Table structure for tbl_sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_sys_role_menu";
CREATE TABLE "public"."tbl_sys_role_menu" (
  "role_id" int4 NOT NULL,
  "menu_id" int4 NOT NULL
)
;
ALTER TABLE "public"."tbl_sys_role_menu" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_sys_role_menu"."role_id" IS '角色id';
COMMENT ON COLUMN "public"."tbl_sys_role_menu"."menu_id" IS '菜单id';
COMMENT ON TABLE "public"."tbl_sys_role_menu" IS '系统角色菜单权限';

-- ----------------------------
-- Table structure for tbl_sys_user
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_sys_user";
CREATE TABLE "public"."tbl_sys_user" (
  "id" int4 NOT NULL DEFAULT nextval('tbl_sys_user_uid_seq'::regclass),
  "login_name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "password" varchar(255) COLLATE "pg_catalog"."default",
  "name" varchar(255) COLLATE "pg_catalog"."default",
  "mobile" varchar(255) COLLATE "pg_catalog"."default",
  "nickname" varchar(255) COLLATE "pg_catalog"."default",
  "avatar_url" varchar(255) COLLATE "pg_catalog"."default",
  "email" varchar(255) COLLATE "pg_catalog"."default",
  "zzd_id" varchar(20) COLLATE "pg_catalog"."default",
  "wx_mp_openid" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int2 NOT NULL DEFAULT 0,
  "del_key" int2 NOT NULL DEFAULT 0,
  "remark" varchar(255) COLLATE "pg_catalog"."default",
  "create_time" timestamp(6) NOT NULL DEFAULT now(),
  "update_time" timestamp(6) NOT NULL DEFAULT now(),
  "pwd_last_updated_time" timestamp(0) DEFAULT now(),
  "ding_talk_uid" varchar(30) COLLATE "pg_catalog"."default",
  "wx_unionid" varchar COLLATE "pg_catalog"."default",
  "wx_ma_openid" varchar(255) COLLATE "pg_catalog"."default",
  "sync_id" varchar(32) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "public"."tbl_sys_user" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_sys_user"."id" IS 'ID';
COMMENT ON COLUMN "public"."tbl_sys_user"."login_name" IS '用户登陆名';
COMMENT ON COLUMN "public"."tbl_sys_user"."password" IS '登陆密码';
COMMENT ON COLUMN "public"."tbl_sys_user"."name" IS '用户真实姓名';
COMMENT ON COLUMN "public"."tbl_sys_user"."mobile" IS '用户联系方式';
COMMENT ON COLUMN "public"."tbl_sys_user"."nickname" IS '拓展字段:昵称';
COMMENT ON COLUMN "public"."tbl_sys_user"."avatar_url" IS '拓展字段:头像';
COMMENT ON COLUMN "public"."tbl_sys_user"."email" IS '拓展字段:邮箱';
COMMENT ON COLUMN "public"."tbl_sys_user"."zzd_id" IS '浙政钉ID';
COMMENT ON COLUMN "public"."tbl_sys_user"."wx_mp_openid" IS '微信服务号openID';
COMMENT ON COLUMN "public"."tbl_sys_user"."del_flag" IS '删除标记,1:已删除,0:正常';
COMMENT ON COLUMN "public"."tbl_sys_user"."del_key" IS '逻辑删除辅助字段';
COMMENT ON COLUMN "public"."tbl_sys_user"."remark" IS '备注';
COMMENT ON COLUMN "public"."tbl_sys_user"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."tbl_sys_user"."update_time" IS '更新时间';
COMMENT ON COLUMN "public"."tbl_sys_user"."pwd_last_updated_time" IS '最近一次密码更新的时间';
COMMENT ON COLUMN "public"."tbl_sys_user"."ding_talk_uid" IS '普通钉钉userid';
COMMENT ON COLUMN "public"."tbl_sys_user"."wx_unionid" IS '微信unionId';
COMMENT ON COLUMN "public"."tbl_sys_user"."wx_ma_openid" IS '微信小程序openID';
COMMENT ON COLUMN "public"."tbl_sys_user"."sync_id" IS '三方同步来的用户唯一id';
COMMENT ON TABLE "public"."tbl_sys_user" IS '系统用户';

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_org_oid_seq"
OWNED BY "public"."tbl_org"."oid";
SELECT setval('"public"."tbl_org_oid_seq"', 1, true);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_org_property_id_seq"
OWNED BY "public"."tbl_org_property"."id";
SELECT setval('"public"."tbl_org_property_id_seq"', 14, true);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_sys_menu_id_seq"
OWNED BY "public"."tbl_sys_menu"."id";
SELECT setval('"public"."tbl_sys_menu_id_seq"', 527, true);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_sys_role_id_seq"
OWNED BY "public"."tbl_sys_role"."id";
SELECT setval('"public"."tbl_sys_role_id_seq"', 55, true);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_sys_user_uid_seq"
OWNED BY "public"."tbl_sys_user"."id";
SELECT setval('"public"."tbl_sys_user_uid_seq"', 1, true);

-- ----------------------------
-- Primary Key structure for table tbl_org
-- ----------------------------
ALTER TABLE "public"."tbl_org" ADD CONSTRAINT "tbl_org_pkey" PRIMARY KEY ("oid");

-- ----------------------------
-- Primary Key structure for table tbl_org_property
-- ----------------------------
ALTER TABLE "public"."tbl_org_property" ADD CONSTRAINT "tbl_org_property_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Uniques structure for table tbl_org_user_mapper
-- ----------------------------
ALTER TABLE "public"."tbl_org_user_mapper" ADD CONSTRAINT "uk_uid_oid_rid" UNIQUE ("uid", "oid", "role_id");

-- ----------------------------
-- Primary Key structure for table tbl_sys_menu
-- ----------------------------
ALTER TABLE "public"."tbl_sys_menu" ADD CONSTRAINT "tbl_sys_menu_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table tbl_sys_role
-- ----------------------------
ALTER TABLE "public"."tbl_sys_role" ADD CONSTRAINT "tbl_sys_role_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table tbl_sys_role_menu
-- ----------------------------
CREATE UNIQUE INDEX "uk_role_menu" ON "public"."tbl_sys_role_menu" USING btree (
  "role_id" "pg_catalog"."int4_ops" ASC NULLS LAST,
  "menu_id" "pg_catalog"."int4_ops" ASC NULLS LAST
);

-- ----------------------------
-- Uniques structure for table tbl_sys_role_menu
-- ----------------------------
ALTER TABLE "public"."tbl_sys_role_menu" ADD CONSTRAINT "uk_role_id_menu_id" UNIQUE ("role_id", "menu_id");

-- ----------------------------
-- Primary Key structure for table tbl_sys_user
-- ----------------------------
ALTER TABLE "public"."tbl_sys_user" ADD CONSTRAINT "tbl_sys_user_pkey" PRIMARY KEY ("id");

INSERT INTO "public"."tbl_org_property" ("id", "pid", "name", "icon", "del_flag", "del_key", "create_time", "update_time", "code_length", "level") VALUES (2, 1, '市级', '#custom-icon-zuzhijiagou_line', 0, NULL, '2023-05-25 20:34:45.457474', '2023-05-26 14:39:41.834843', 4, 2);
INSERT INTO "public"."tbl_org_property" ("id", "pid", "name", "icon", "del_flag", "del_key", "create_time", "update_time", "code_length", "level") VALUES (3, 2, '区县', '#custom-icon-zuzhijiagou_line', 0, NULL, '2023-05-26 09:28:10.733255', '2023-05-26 14:39:43.825991', 6, 3);
INSERT INTO "public"."tbl_org_property" ("id", "pid", "name", "icon", "del_flag", "del_key", "create_time", "update_time", "code_length", "level") VALUES (4, 3, '镇街', '#custom-icon-zuzhijiagouxiaji_line', 0, NULL, '2023-05-26 09:28:33.483954', '2023-05-26 14:40:50.925796', 9, 4);
INSERT INTO "public"."tbl_org_property" ("id", "pid", "name", "icon", "del_flag", "del_key", "create_time", "update_time", "code_length", "level") VALUES (5, 4, '村社', '#custom-icon-zuzhijiagouxiaji_line', 0, NULL, '2023-05-26 09:28:57.510577', '2023-05-26 14:40:49.618191', 12, 5);
INSERT INTO "public"."tbl_org_property" ("id", "pid", "name", "icon", "del_flag", "del_key", "create_time", "update_time", "code_length", "level") VALUES (6, 5, '网格', '#custom-icon-zuzhijiagouxiaji_line', 0, NULL, '2023-05-26 09:29:37.739113', '2023-05-26 14:40:42.502202', 15, 6);
INSERT INTO "public"."tbl_org_property" ("id", "pid", "name", "icon", "del_flag", "del_key", "create_time", "update_time", "code_length", "level") VALUES (7, 3, '县处级', '#custom-icon-bumen_line', 0, NULL, '2023-05-26 11:33:25.214739', '2023-05-26 14:40:10.648003', 6, 4);
INSERT INTO "public"."tbl_org_property" ("id", "pid", "name", "icon", "del_flag", "del_key", "create_time", "update_time", "code_length", "level") VALUES (1, 0, '省级', '#custom-icon-zuzhijiagou_line', 0, NULL, '2023-05-25 20:33:09.794654', '2023-05-26 18:14:35.146941', 2, 1);
INSERT INTO "public"."tbl_org" ("oid", "name", "fullname", "type", "level", "poid", "geom", "orderby", "path", "wkt", "oid_path", "ref_oid", "geo_json", "remark", "ref_code", "district_oid", "del_flag", "del_key", "zzd_org_code", "create_time", "update_time", "district_code", "org_property_id") VALUES (1, '临平区', '临平区', 1, 1, NULL, NULL, NULL, '/临平区/', '', '/1/', 1, NULL, NULL, NULL, NULL, 0, 0, NULL, NOW(), NOW(), '330113', 3);
INSERT INTO "public"."tbl_sys_role" ("id", "role_name", "role_code", "role_desc", "ds_type", "ds_scope", "del_flag", "del_key", "create_time", "update_time", "is_default", "p_id", "level") VALUES (1, '超级管理员', 'ROLE_ADMIN', '超级管理员', NULL, NULL, 0, 0, NOW(), NOW(), 0, NULL, 1);
INSERT INTO "public"."tbl_sys_user" ("id", "login_name", "password", "name", "mobile", "nickname", "avatar_url", "email", "zzd_id", "wx_mp_openid", "del_flag", "del_key", "remark", "create_time", "update_time", "pwd_last_updated_time", "ding_talk_uid", "wx_unionid", "wx_ma_openid", "sync_id") VALUES (1, 'maquan', '$2a$10$O.yzHwCtJ8HLslOjeo5ZMep5iUPnzP1Hh4GXmM0wrwb7Km/BxdTU6', '超级管理员', '13626677352', NULL, NULL, NULL, '78220191', NULL, 0, 0, NULL, NOW(), NOW(), NOW(), NULL, NULL, 'otJBt6RNJqj5Z4PJ1APiZh-u5V04', NULL);
INSERT INTO "public"."tbl_org_user_mapper" ("oid", "uid", "role_id", "flag_enabled", "orderby", "update_time") VALUES (1, 1, 1, 1, 1, NOW());
