mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 05:37:20 +01:00
01_init schema changes
This commit is contained in:
parent
561770a469
commit
b1074c893a
4 changed files with 5 additions and 8 deletions
|
|
@ -1,6 +1,3 @@
|
|||
-- CreateExtension
|
||||
CREATE EXTENSION IF NOT EXISTS "pgcrypto";
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "user" (
|
||||
"user_id" UUID NOT NULL,
|
||||
|
|
@ -25,7 +22,7 @@ CREATE TABLE "session" (
|
|||
"screen" VARCHAR(11),
|
||||
"language" VARCHAR(35),
|
||||
"country" CHAR(2),
|
||||
"subdivision1" CHAR(3),
|
||||
"subdivision1" VARCHAR(20),
|
||||
"subdivision2" VARCHAR(50),
|
||||
"city" VARCHAR(50),
|
||||
"created_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,
|
||||
|
|
@ -196,4 +193,4 @@ CREATE INDEX "team_website_team_id_idx" ON "team_website"("team_id");
|
|||
CREATE INDEX "team_website_website_id_idx" ON "team_website"("website_id");
|
||||
|
||||
-- AddSystemUser
|
||||
INSERT INTO "user" (user_id, username, role, password) VALUES ('41e2b680-648e-4b09-bcd7-3e2b10c06264' , 'admin', 'admin', '$2b$10$BUli0c.muyCW1ErNJc3jL.vFRFtFJWrT8/GcR4A.sUdCznaXiqFXa');
|
||||
INSERT INTO "user" (user_id, username, role, password) VALUES ('41e2b680-648e-4b09-bcd7-3e2b10c06264' , 'admin', 'admin', '$2b$10$BUli0c.muyCW1ErNJc3jL.vFRFtFJWrT8/GcR4A.sUdCznaXiqFXa');
|
||||
Loading…
Add table
Add a link
Reference in a new issue