-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.prisma
More file actions
30 lines (27 loc) · 740 Bytes
/
schema.prisma
File metadata and controls
30 lines (27 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
datasource db {
// could be postgresql or mysql
provider = "sqlite"
url = "file:./.database/database.db"
}
generator db {
provider = "go run github.com/steebchen/prisma-client-go"
}
model Word {
id String @id @default(cuid())
chatId BigInt
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
word String
translate String
rememberLevel Int @default(0)
nextRemindAt DateTime
remindedAt DateTime @default(now())
Users User? @relation(fields: [usersChatId], references: [chatId])
usersChatId BigInt?
}
model User {
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
chatId BigInt @id
words Word[]
}