mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-08 21:15:05 -05:00
Adding id field in quest_completion
This commit is contained in:
committed by
Hammad Jutt
parent
c0cb56be0a
commit
bba8a7fd5d
@@ -51,13 +51,14 @@ CREATE TABLE "public"."quest_skill"(
|
||||
);
|
||||
|
||||
CREATE TABLE "public"."quest_completion"(
|
||||
"id" uuid NOT NULL DEFAULT gen_random_uuid(),
|
||||
"quest_id" uuid NOT NULL,
|
||||
"completed_by_player_id" uuid NOT NULL,
|
||||
"submitted_at" timestamptz NOT NULL DEFAULT now(),
|
||||
"submission_text" text,
|
||||
"submission_link" text,
|
||||
"status" text NOT NULL DEFAULT 'PENDING',
|
||||
PRIMARY KEY ("quest_id","completed_by_player_id") ,
|
||||
PRIMARY KEY ("id") ,
|
||||
FOREIGN KEY ("quest_id") REFERENCES "public"."quest"("id") ON UPDATE restrict ON DELETE restrict,
|
||||
FOREIGN KEY ("completed_by_player_id") REFERENCES "public"."player"("id") ON UPDATE restrict ON DELETE restrict,
|
||||
FOREIGN KEY ("status") REFERENCES "public"."QuestCompletionStatus"("status") ON UPDATE restrict ON DELETE restrict
|
||||
|
||||
Reference in New Issue
Block a user