-
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.
SG - New place for wallet addresses (#380)
* SG - New place for wallet addresses * ci: version bump to 0.90.1-rc-feat-sg-wallet.0 * Remove Id and add index * ci: version bump to 0.90.1-rc-feat-sg-wallet.1 * ci: version bump to 0.91.1-rc-feat-sg-wallet.0 * Add scout id index * ci: version bump to 0.91.1-rc-feat-sg-wallet.1 --------- Co-authored-by: Automated Version Bump <[email protected]>
- Loading branch information
1 parent
0974459
commit a49eb7f
Showing
3 changed files
with
30 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
18 changes: 18 additions & 0 deletions
18
src/prisma/migrations/20241029150825_scout_wallet_addresses/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,18 @@ | ||
-- CreateTable | ||
CREATE TABLE "ScoutWallet" ( | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"address" TEXT NOT NULL, | ||
"scoutId" UUID NOT NULL | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "ScoutWallet_address_key" ON "ScoutWallet"("address"); | ||
|
||
-- CreateIndex | ||
CREATE INDEX "ScoutWallet_address_idx" ON "ScoutWallet"("address"); | ||
|
||
-- CreateIndex | ||
CREATE INDEX "ScoutWallet_scoutId_idx" ON "ScoutWallet"("scoutId"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "ScoutWallet" ADD CONSTRAINT "ScoutWallet_scoutId_fkey" FOREIGN KEY ("scoutId") 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