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.
22 lines
830 B
22 lines
830 B
DROP TABLE IF EXISTS "public"."t_operation_log";
|
|
|
|
CREATE TABLE "public"."t_operation_log" (
|
|
"id" serial,
|
|
"time" timestamptz NOT NULL,
|
|
"client_type" varchar(512) NOT NULL,
|
|
"content" varchar(255) NOT NULL,
|
|
"parameter" varchar(512),
|
|
"user_id" int4 NOT NULL,
|
|
PRIMARY KEY ("id"),
|
|
CONSTRAINT "operation_log_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."t_user" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION
|
|
);
|
|
|
|
COMMENT ON COLUMN "public"."t_operation_log"."time" IS '操作时间';
|
|
|
|
COMMENT ON COLUMN "public"."t_operation_log"."client_type" IS '客户端类型';
|
|
|
|
COMMENT ON COLUMN "public"."t_operation_log"."content" IS '操作内容';
|
|
|
|
COMMENT ON COLUMN "public"."t_operation_log"."parameter" IS '操作参数';
|
|
|
|
COMMENT ON COLUMN "public"."t_operation_log"."user_id" IS '操作用户ID';
|