-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added moxie and talent profile models
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
src/prisma/migrations/20241121140531_moxie_talent_profile/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
-- CreateTable | ||
CREATE TABLE "TalentProfile" ( | ||
"id" INTEGER NOT NULL, | ||
"score" INTEGER NOT NULL, | ||
"builderId" UUID NOT NULL, | ||
|
||
CONSTRAINT "TalentProfile_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "MoxieProfile" ( | ||
"id" INTEGER NOT NULL, | ||
"builderId" UUID NOT NULL, | ||
|
||
CONSTRAINT "MoxieProfile_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "TalentProfile_builderId_key" ON "TalentProfile"("builderId"); | ||
|
||
-- CreateIndex | ||
CREATE INDEX "TalentProfile_builderId_idx" ON "TalentProfile"("builderId"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "MoxieProfile_builderId_key" ON "MoxieProfile"("builderId"); | ||
|
||
-- CreateIndex | ||
CREATE INDEX "MoxieProfile_builderId_idx" ON "MoxieProfile"("builderId"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "TalentProfile" ADD CONSTRAINT "TalentProfile_builderId_fkey" FOREIGN KEY ("builderId") REFERENCES "Scout"("id") ON DELETE CASCADE ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "MoxieProfile" ADD CONSTRAINT "MoxieProfile_builderId_fkey" FOREIGN KEY ("builderId") REFERENCES "Scout"("id") ON DELETE CASCADE ON UPDATE CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters