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.
34 lines
825 B
34 lines
825 B
CREATE SEQUENCE "public"."resource_table_resource_seq"
|
|
INCREMENT 1
|
|
MINVALUE 1
|
|
MAXVALUE 9223372036854775807
|
|
START 1
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE "public"."resource" (
|
|
"id" int4 NOT NULL DEFAULT nextval('resource_table_resource_seq'::regclass),
|
|
"name" varchar(255) COLLATE "pg_catalog"."default",
|
|
"code" varchar(255) COLLATE "pg_catalog"."default",
|
|
"parent_id" int4,
|
|
"order" int4,
|
|
"create_time" timestamp(6),
|
|
PRIMARY KEY ("id")
|
|
)
|
|
;
|
|
|
|
ALTER TABLE "public"."resource"
|
|
OWNER TO "postgres";
|
|
|
|
COMMENT ON COLUMN "public"."resource"."name" IS '权限名称';
|
|
|
|
COMMENT ON COLUMN "public"."resource"."code" IS '权限码';
|
|
|
|
COMMENT ON COLUMN "public"."resource"."order" IS '排序';
|
|
|
|
COMMENT ON COLUMN "public"."resource"."parent_id" IS '父级id';
|
|
|
|
COMMENT ON COLUMN "public"."resource"."create_time" IS '创建时间';
|