try create a database

This commit is contained in:
polv committed 2021-10-17 09:36:24 +07:00
1 parent 0908e51791
commit 792fa60030
19 files changed
+112 -22

No files matched your search

Regular → Executable
+2 -2
View File
@@ -4,7 +4,7 @@ CREATE TABLE "user" (
"updatedAt" TIMESTAMPTZ DEFAULT now(),
"identifier" TEXT UNIQUE NOT NULL,
"level.min" INT DEFAULT 1,
"level.max" INT NOT NULL,
"level" INT NOT NULL,
"level.vocabulary.showing" TEXT[],
"quiz.settings" JSONB
);
@@ -17,6 +17,6 @@ CREATE TRIGGER "t_user_updatedAt"
CREATE INDEX "idx_user_updatedAt" ON "user" ("updatedAt");
CREATE INDEX "idx_user_identifier" ON "user" ("identifier");
INSERT INTO "user" ("id", "identifier") VALUES
INSERT INTO "user" ("id", "identifier", "level") VALUES
(uuid_nil(), '', 1),
('00000000-0000-0000-0000-000000000001', 'wanikani', 1);