Skip to content

Commit

Permalink
feat: add redemption claimed
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan committed Aug 15, 2023
1 parent 641cdb9 commit 1121654
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Redemption" ADD COLUMN "claimed" BOOL NOT NULL DEFAULT false;
1 change: 1 addition & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ model Voucher {
model Redemption {
id String @id @default(cuid())
timestamp DateTime @default(now())
claimed Boolean @default(false)
voucherId String
voucher Voucher @relation(fields: [voucherId], references: [id], onDelete: Cascade)
Expand Down

0 comments on commit 1121654

Please sign in to comment.