lang-database 6.3.0 → 7.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 +6 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lang-database",
3
- "version": "6.3.0",
3
+ "version": "7.0.0",
4
4
  "description": "",
5
5
  "main": "generated/prisma-client/index.js",
6
6
  "types": "generated/prisma-client/index.d.ts",
package/schema.prisma CHANGED
@@ -70,7 +70,7 @@ model User {
70
70
  name String
71
71
  password String?
72
72
  googleUser GoogleUser?
73
- achivements Achivement[]
73
+ achievements Achievement[]
74
74
  purchases Purchase[]
75
75
  packs Pack[]
76
76
  userCards UserCard[]
@@ -81,25 +81,26 @@ model User {
81
81
  @@map("users")
82
82
  }
83
83
 
84
- model Achivement {
84
+ model Achievement {
85
85
  id String @id @default(cuid())
86
86
  user User @relation(fields: [userId], references: [id])
87
87
  userId String
88
88
  badge Boolean
89
- type AchivementType
89
+ type AchievementType
90
90
  info String
91
91
  timestamp DateTime
92
92
  dismissed Boolean @default(false)
93
- @@map("achivements")
93
+ @@map("achievements")
94
94
  }
95
95
 
96
- enum AchivementType {
96
+ enum AchievementType {
97
97
  Today15Min
98
98
  Weekly15Min
99
99
  Monthly15Min
100
100
  CardDone
101
101
  DeckDone
102
102
  DeckAlreadyKnown
103
+ @@map("AchievementType")
103
104
  }
104
105
 
105
106
  model Team {