Skip to content

Commit cbbc87e

Browse files
Merge pull request #57 from subhamBharadwaz/reminder
chore: 🚧 Prisma schema
2 parents d84c83a + 70e79a5 commit cbbc87e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@editorjs/paragraph": "^2.9.0",
4242
"@editorjs/table": "^2.2.2",
4343
"@hookform/resolvers": "^3.1.1",
44-
"@prisma/client": "^5.0.0",
44+
"@prisma/client": "^4.16.2",
4545
"@radix-ui/react-accessible-icon": "^1.0.3",
4646
"@radix-ui/react-alert-dialog": "^1.0.4",
4747
"@radix-ui/react-aspect-ratio": "^1.0.3",
@@ -126,6 +126,6 @@
126126
"prettier": "^2.8.8",
127127
"prettier-plugin-tailwindcss": "^0.3.0",
128128
"pretty-quick": "^3.1.3",
129-
"prisma": "^5.0.0"
129+
"prisma": "^4.16.2"
130130
}
131131
}

prisma/schema.prisma

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ model User {
2727
stripeSubscriptionId String? @unique @map(name: "stripe_subscription_id")
2828
stripePriceId String? @map(name: "stripe_price_id")
2929
stripeCurrentPeriodEnd DateTime? @map(name: "stripe_current_period_end")
30+
31+
@@map(name: "users")
3032
}
3133

3234
model JournalEntry {
@@ -40,6 +42,7 @@ model JournalEntry {
4042
user User @relation(fields: [userId], references: [id])
4143
4244
@@unique([userId, id])
45+
@@map(name: "journal_entries")
4346
}
4447

4548
model Reminder {
@@ -52,6 +55,7 @@ model Reminder {
5255
user User @relation(fields: [userId], references: [id])
5356
5457
@@unique([userId])
58+
@@map("reminders")
5559
}
5660

5761
enum ReminderType {

0 commit comments

Comments
 (0)