This commit is contained in:
Stefan committed 2025-06-17 14:46:48 +02:00
1 parent 5a4bbc5297
commit 1089196226
8 files changed
+80 -35

No files matched your search

+4 -4
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")