-
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.
* Builder card activity schema * ci: version bump to 0.89.3-rc-feat-builder-ac.0 * add unique to builder * ci: version bump to 0.89.4-rc-feat-builder-ac.0 --------- Co-authored-by: Automated Version Bump <[email protected]> Co-authored-by: mattcasey <[email protected]>
- Loading branch information
1 parent
d6392cb
commit 67909f1
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
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
13 changes: 13 additions & 0 deletions
13
src/prisma/migrations/20241025164941_add_builder_activity/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,13 @@ | ||
-- CreateTable | ||
CREATE TABLE "BuilderCardActivity" ( | ||
"builderId" UUID NOT NULL, | ||
"last7Days" JSONB NOT NULL, | ||
|
||
CONSTRAINT "BuilderCardActivity_pkey" PRIMARY KEY ("builderId") | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "BuilderCardActivity_builderId_key" ON "BuilderCardActivity"("builderId"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "BuilderCardActivity" ADD CONSTRAINT "BuilderCardActivity_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