This commit is contained in:
2025-06-17 14:46:48 +02:00
parent 5a4bbc5297
commit 1089196226
8 changed files with 80 additions and 35 deletions

View File

@@ -5,7 +5,7 @@ CREATE TABLE "icon"(
"url" VARCHAR(512),
"width" INT4,
"height" INT4,
"state" JSON
"state" JSONB
);
CREATE TABLE "resource"(
@@ -14,7 +14,7 @@ CREATE TABLE "resource"(
"title" VARCHAR(255) NOT NULL,
"url" VARCHAR(512),
"icon" UUID,
"state" JSON,
"state" JSONB,
FOREIGN KEY ("icon") REFERENCES "icon"("id")
);
@@ -23,7 +23,7 @@ CREATE TABLE "recipe"(
"resource" UUID NOT NULL,
"recipe_type" VARCHAR(50) NOT NULL,
"duration" INT4 NOT NULL,
"state" JSON,
"state" JSONB,
FOREIGN KEY ("resource") REFERENCES "resource"("id")
);
@@ -31,7 +31,7 @@ CREATE TABLE "ingredient"(
"id" UUID NOT NULL PRIMARY KEY,
"resource" UUID NOT NULL,
"quantity" INT4 NOT NULL,
"state" JSON,
"state" JSONB,
"recipe" UUID NOT NULL,
FOREIGN KEY ("resource") REFERENCES "resource"("id"),
FOREIGN KEY ("recipe") REFERENCES "recipe"("id")