lang-database 16.0.0 → 17.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.
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `subscriptionExpire` on the `users` table. All the data in the column will be lost.
|
|
5
|
+
- Added the required column `dailyGoalAchieved` to the `userStats` table without a default value. This is not possible if the table is not empty.
|
|
6
|
+
- Added the required column `monthlyGoalAchieved` to the `userStats` table without a default value. This is not possible if the table is not empty.
|
|
7
|
+
- Added the required column `weeklyGoalAchieved` to the `userStats` table without a default value. This is not possible if the table is not empty.
|
|
8
|
+
|
|
9
|
+
*/
|
|
10
|
+
-- AlterTable
|
|
11
|
+
ALTER TABLE "userStats" ADD COLUMN "dailyGoalAchieved" BOOLEAN NOT NULL,
|
|
12
|
+
ADD COLUMN "monthlyGoalAchieved" BOOLEAN NOT NULL,
|
|
13
|
+
ADD COLUMN "weeklyGoalAchieved" BOOLEAN NOT NULL;
|
|
14
|
+
|
|
15
|
+
-- AlterTable
|
|
16
|
+
ALTER TABLE "users" DROP COLUMN "subscriptionExpire";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# Please do not edit this file manually
|
|
2
|
-
# It should be added in your version-control system (
|
|
3
|
-
provider = "postgresql"
|
|
2
|
+
# It should be added in your version-control system (e.g., Git)
|
|
3
|
+
provider = "postgresql"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lang-database",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://bitbucket.org/syke80/lang-database#readme",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@prisma/client": "^6.0
|
|
28
|
-
"prisma": "^6.0
|
|
27
|
+
"@prisma/client": "^6.7.0",
|
|
28
|
+
"prisma": "^6.7.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@prisma/client": ">=
|
|
31
|
+
"@prisma/client": ">=6.7.0"
|
|
32
32
|
}
|
|
33
33
|
}
|
package/schema.prisma
CHANGED
|
@@ -63,9 +63,15 @@ model UserStat {
|
|
|
63
63
|
lastAnswerTimestamp DateTime
|
|
64
64
|
todayActivitySec Int
|
|
65
65
|
thisWeekActivitySec Int
|
|
66
|
-
thisWeekActiveDays Int
|
|
67
66
|
thisMonthActivitySec Int
|
|
67
|
+
|
|
68
|
+
thisWeekActiveDays Int
|
|
68
69
|
thisMonthActiveDays Int
|
|
70
|
+
|
|
71
|
+
dailyGoalAchieved Boolean
|
|
72
|
+
weeklyGoalAchieved Boolean
|
|
73
|
+
monthlyGoalAchieved Boolean
|
|
74
|
+
|
|
69
75
|
cardsDone Int
|
|
70
76
|
|
|
71
77
|
@@id([userId])
|