This commit is contained in:
Jamie Curnow
2023-05-31 13:52:58 +10:00
parent 94b6971ef7
commit 4b4c7baea4
14 changed files with 54 additions and 27 deletions

View File

@ -139,7 +139,7 @@ CREATE TABLE "upstream" (
"created_at" BIGINT NOT NULL DEFAULT 0,
"updated_at" BIGINT NOT NULL DEFAULT 0,
"is_deleted" INTEGER NOT NULL DEFAULT 0, -- int on purpose, gormism
"user_id" INTEGER NOT NULL REFERENCES "user"("id"),
"user_id" INTEGER NOT NULL REFERENCES "user"("id") ON DELETE CASCADE,
"name" VARCHAR(50) NOT NULL,
"nginx_template_id" INTEGER NOT NULL REFERENCES "nginx_template"("id") ON DELETE CASCADE,
"ip_hash" BOOLEAN NOT NULL DEFAULT FALSE,