From f6ffeea23e965c0d4f9e47dc75abb5dfcc786379 Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Tue, 17 Jan 2023 09:19:25 +0800 Subject: [PATCH] =?UTF-8?q?user=20id=20=E4=B8=BB=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/1.0.0/schema/1.init_inspection.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/1.0.0/schema/1.init_inspection.sql b/script/1.0.0/schema/1.init_inspection.sql index 83480a9..7d428ae 100644 --- a/script/1.0.0/schema/1.init_inspection.sql +++ b/script/1.0.0/schema/1.init_inspection.sql @@ -7,7 +7,7 @@ START 1 CACHE 1; DROP TABLE IF EXISTS "public"."user"; CREATE TABLE "public"."user" ( - "id" int4 NOT NULL DEFAULT nextval('user_id_seq'::regclass), + "id" int4 NOT NULL PRIMARY KEY DEFAULT nextval('user_id_seq'::regclass), "name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, "username" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, "password" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,