-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SG - New place for wallet addresses #380
Merged
Merged
Changes from 2 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
50f5ff5
SG - New place for wallet addresses
valentinludu cd7ef92
ci: version bump to 0.90.1-rc-feat-sg-wallet.0
gh-action-bump-version de63f65
Remove Id and add index
valentinludu 8b4e33b
Merge branch 'feat/sg-wallet-addresses' of https://github.com/charmve…
valentinludu f934a05
ci: version bump to 0.90.1-rc-feat-sg-wallet.1
gh-action-bump-version 5404d62
Merge branch 'main' of https://github.com/charmverse/core into feat/s…
valentinludu e5b434a
Merge branch 'feat/sg-wallet-addresses' of https://github.com/charmve…
valentinludu 26daf12
Merge branch 'main' of https://github.com/charmverse/core into feat/s…
valentinludu 3bca409
ci: version bump to 0.91.1-rc-feat-sg-wallet.0
gh-action-bump-version 4e8b2ba
Add scout id index
valentinludu 8c77afa
Merge branch 'feat/sg-wallet-addresses' of https://github.com/charmve…
valentinludu ea65a0b
ci: version bump to 0.91.1-rc-feat-sg-wallet.1
gh-action-bump-version File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
15 changes: 15 additions & 0 deletions
15
src/prisma/migrations/20241028184042_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,15 @@ | ||
-- CreateTable | ||
CREATE TABLE "ScoutWallet" ( | ||
"id" UUID NOT NULL, | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"address" TEXT NOT NULL, | ||
"scoutId" UUID NOT NULL, | ||
|
||
CONSTRAINT "ScoutWallet_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "ScoutWallet_address_key" ON "ScoutWallet"("address"); | ||
|
||
-- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1356,46 +1356,46 @@ model ProposalEvaluationPermission { | |
} | ||
|
||
model ProposalEvaluation { | ||
id String @id @default(uuid()) @db.Uuid | ||
index Int // tells us what order | ||
title String | ||
type ProposalEvaluationType | ||
completedAt DateTime? | ||
declinedAt DateTime? // Required to keep track of when the evaluation was declined for an appealable step | ||
snapshotId String? | ||
snapshotExpiry DateTime? | ||
decidedBy String? @db.Uuid | ||
decider User? @relation(fields: [decidedBy], references: [id], onDelete: SetNull, name: "decidedBy") | ||
proposalId String @db.Uuid | ||
proposal Proposal @relation(fields: [proposalId], references: [id], onDelete: Cascade) | ||
voteSettings Json? | ||
voteId String? @unique @db.Uuid | ||
vote Vote? @relation(fields: [voteId], references: [id], onDelete: SetNull) | ||
actionLabels Json? | ||
notificationLabels Json? | ||
requiredReviews Int @default(1) | ||
finalStep Boolean? | ||
appealRequiredReviews Int? | ||
appealable Boolean? @default(false) | ||
appealedAt DateTime? | ||
appealedBy String? @db.Uuid | ||
appealReason String? | ||
appealer User? @relation(fields: [appealedBy], references: [id], onDelete: SetNull, name: "appealedBy") | ||
shareReviews Boolean? @default(false) | ||
dueDate DateTime? | ||
id String @id @default(uuid()) @db.Uuid | ||
index Int // tells us what order | ||
title String | ||
type ProposalEvaluationType | ||
completedAt DateTime? | ||
declinedAt DateTime? // Required to keep track of when the evaluation was declined for an appealable step | ||
snapshotId String? | ||
snapshotExpiry DateTime? | ||
decidedBy String? @db.Uuid | ||
decider User? @relation(fields: [decidedBy], references: [id], onDelete: SetNull, name: "decidedBy") | ||
proposalId String @db.Uuid | ||
proposal Proposal @relation(fields: [proposalId], references: [id], onDelete: Cascade) | ||
voteSettings Json? | ||
voteId String? @unique @db.Uuid | ||
vote Vote? @relation(fields: [voteId], references: [id], onDelete: SetNull) | ||
actionLabels Json? | ||
notificationLabels Json? | ||
requiredReviews Int @default(1) | ||
finalStep Boolean? | ||
appealRequiredReviews Int? | ||
appealable Boolean? @default(false) | ||
appealedAt DateTime? | ||
appealedBy String? @db.Uuid | ||
appealReason String? | ||
appealer User? @relation(fields: [appealedBy], references: [id], onDelete: SetNull, name: "appealedBy") | ||
shareReviews Boolean? @default(false) | ||
dueDate DateTime? | ||
showAuthorResultsOnRubricFail Boolean? | ||
rubricCriteria ProposalRubricCriteria[] | ||
rubricAnswers ProposalRubricCriteriaAnswer[] | ||
draftRubricAnswers DraftProposalRubricCriteriaAnswer[] | ||
result ProposalEvaluationResult? | ||
reviewers ProposalReviewer[] | ||
appealReviewers ProposalAppealReviewer[] | ||
permissions ProposalEvaluationPermission[] | ||
proposalNotification ProposalNotification[] | ||
reviews ProposalEvaluationReview[] | ||
appealReviews ProposalEvaluationAppealReview[] | ||
documentsToSign DocumentToSign[] | ||
evaluationApprovers ProposalEvaluationApprover[] | ||
rubricCriteria ProposalRubricCriteria[] | ||
rubricAnswers ProposalRubricCriteriaAnswer[] | ||
draftRubricAnswers DraftProposalRubricCriteriaAnswer[] | ||
result ProposalEvaluationResult? | ||
reviewers ProposalReviewer[] | ||
appealReviewers ProposalAppealReviewer[] | ||
permissions ProposalEvaluationPermission[] | ||
proposalNotification ProposalNotification[] | ||
reviews ProposalEvaluationReview[] | ||
appealReviews ProposalEvaluationAppealReview[] | ||
documentsToSign DocumentToSign[] | ||
evaluationApprovers ProposalEvaluationApprover[] | ||
|
||
@@index([proposalId]) | ||
@@index([index]) | ||
|
@@ -2804,6 +2804,7 @@ model Scout { | |
agreedToTermsAt DateTime? | ||
onboardedAt DateTime? | ||
currentBalance Int @default(0) | ||
scoutWallet ScoutWallet[] | ||
strikes BuilderStrike[] | ||
events BuilderEvent[] | ||
githubUser GithubUser[] | ||
|
@@ -3166,3 +3167,11 @@ model BuilderCardActivity { | |
|
||
@@unique([builderId]) | ||
} | ||
|
||
model ScoutWallet { | ||
id String @id @default(uuid()) @db.Uuid | ||
createdAt DateTime @default(now()) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good idea to store this |
||
address String @unique | ||
scoutId String @db.Uuid | ||
scout Scout @relation(fields: [scoutId], references: [id], onDelete: Cascade) | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we don't even need an id?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I think it is not necessary. I removed id and added address as an index since we will search by address on login