lang-database 9.0.2 → 9.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/schema.prisma +3 -1
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -30,11 +30,12 @@ model UserCard {
|
|
|
30
30
|
userId String
|
|
31
31
|
card Card @relation(fields: [cardId], references: [id], onDelete: Cascade)
|
|
32
32
|
cardId String
|
|
33
|
+
reverse Boolean @default(false)
|
|
33
34
|
currentInterval Int?
|
|
34
35
|
dueDate DateTime?
|
|
35
36
|
done Boolean @default(false)
|
|
36
37
|
|
|
37
|
-
@@id([userId, cardId])
|
|
38
|
+
@@id([userId, cardId, reverse])
|
|
38
39
|
@@map("userCards")
|
|
39
40
|
}
|
|
40
41
|
|
|
@@ -139,6 +140,7 @@ model UserAnswer {
|
|
|
139
140
|
userId String
|
|
140
141
|
card Card @relation(fields: [cardId], references: [id], onDelete: Cascade)
|
|
141
142
|
cardId String
|
|
143
|
+
reverse Boolean @default(false)
|
|
142
144
|
answer Answer
|
|
143
145
|
timestamp DateTime
|
|
144
146
|
@@map("userAnswers")
|