Skip to content

Commit 0b8d06e

Browse files
committed
Remap database names for Postgres naming scheme
1 parent 216147c commit 0b8d06e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

prisma/schema.prisma

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ model Module {
2323
2424
created_at DateTime @default(now())
2525
updated_at DateTime @updatedAt
26+
27+
@@map("modules")
2628
}
2729

2830
model Release {
@@ -40,6 +42,8 @@ model Release {
4042
4143
created_at DateTime @default(now())
4244
updated_at DateTime @updatedAt
45+
46+
@@map("releases)
4347
}
4448
4549
model User {
@@ -58,6 +62,8 @@ model User {
5862
5963
created_at DateTime @default(now())
6064
updated_at DateTime @updatedAt
65+
66+
@@map("users")
6167
}
6268
6369
model Email {
@@ -68,6 +74,8 @@ model Email {
6874
timestamp String @db.VarChar(100)
6975
7076
created_at DateTime @default(now())
77+
78+
@@map("emails")
7179
}
7280
7381
model Notification {
@@ -79,6 +87,8 @@ model Notification {
7987
read Boolean
8088
8189
created_at DateTime @default(now())
90+
91+
@@map("notifications")
8292
}
8393
8494
enum EmailType {

0 commit comments

Comments
 (0)