We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c3e7953 + 44a18a2 commit 625e5d0Copy full SHA for 625e5d0
2 files changed
packages/db/prisma/migrations/20251205130019_add_created_at_to_invitation/migration.sql
@@ -0,0 +1,3 @@
1
+-- AlterTable: Add createdAt column to Invitation model
2
+ALTER TABLE "Invitation" ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
3
+
packages/db/prisma/schema/auth.prisma
@@ -122,6 +122,7 @@ model Invitation {
122
expiresAt DateTime
123
inviterId String
124
user User @relation(fields: [inviterId], references: [id], onDelete: Cascade)
125
+ createdAt DateTime @default(now())
126
}
127
128
// This is only for the app to consume, shouldn't be enforced by DB
0 commit comments