mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 15:35:35 +00:00
ajout @@map sur les models Prisma pour forcer le nom
This commit is contained in:
@@ -16,6 +16,8 @@ model User {
|
||||
email String @unique
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@map("user")
|
||||
}
|
||||
|
||||
model Category {
|
||||
@@ -25,6 +27,8 @@ model Category {
|
||||
nextCategoryId Int @default(0)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@map("category")
|
||||
}
|
||||
|
||||
model Link {
|
||||
@@ -37,4 +41,6 @@ model Link {
|
||||
favorite Boolean @default(false)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@map("link")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user