lang-database 9.1.0 → 10.0.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schema.prisma +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lang-database",
3
- "version": "9.1.0",
3
+ "version": "10.0.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/schema.prisma CHANGED
@@ -30,18 +30,19 @@ model UserCard {
30
30
  userId String
31
31
  card Card @relation(fields: [cardId], references: [id], onDelete: Cascade)
32
32
  cardId String
33
+ reverse Boolean
33
34
  currentInterval Int?
34
35
  dueDate DateTime?
35
- reverse Boolean @default(false)
36
36
  done Boolean @default(false)
37
37
 
38
- @@id([userId, cardId])
38
+ @@id([userId, cardId, reverse])
39
39
  @@map("userCards")
40
40
  }
41
41
 
42
42
  model Category {
43
43
  id String @id @default(cuid())
44
44
  name String
45
+ order Int?
45
46
  packs Pack[]
46
47
  @@map("categories")
47
48
  }