@javalabs/prisma-client 1.0.19 → 1.0.21
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/.github/CODEOWNERS +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/migrations/add_reserved_amount.sql +8 -0
- package/package.json +4 -5
- package/prisma/schema.prisma +601 -600
- package/.dockerignore +0 -14
- package/Dockerfile +0 -23
- package/prisma/migrations/add_accepts_partial_payments_to_users.sql +0 -19
- package/prisma/migrations/add_amount_received_to_manual_payments.sql +0 -19
- package/prisma/migrations/add_commission_fields.sql +0 -33
- package/prisma/migrations/complete_partial_payments_migration.sql +0 -53
- package/prisma/migrations/create_settlements_table.sql +0 -60
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
-- Migration: Add reserved_amount column to balances table
|
|
2
|
+
-- Date: 2025-01-31
|
|
3
|
+
|
|
4
|
+
ALTER TABLE balances
|
|
5
|
+
ADD COLUMN reserved_amount DECIMAL(10,2) NOT NULL DEFAULT 0.00;
|
|
6
|
+
|
|
7
|
+
-- Add comment for documentation
|
|
8
|
+
COMMENT ON COLUMN balances.reserved_amount IS 'Amount reserved for pending payouts';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@javalabs/prisma-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "Shared Prisma client for Tupay microservices",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
"migrate:deploy": "prisma migrate deploy",
|
|
16
16
|
"migrate:data": "node dist/scripts/run-migration.js migrate",
|
|
17
17
|
"migrate:data:force": "node dist/scripts/run-migration.js migrate --force",
|
|
18
|
-
"migrate:data:yes": "node dist/scripts/run-migration.js migrate -y"
|
|
19
|
-
"postinstall": "npx prisma generate"
|
|
18
|
+
"migrate:data:yes": "node dist/scripts/run-migration.js migrate -y"
|
|
20
19
|
},
|
|
21
20
|
"prisma": {
|
|
22
21
|
"schema": "prisma/schema.prisma"
|
|
@@ -27,7 +26,7 @@
|
|
|
27
26
|
"dependencies": {
|
|
28
27
|
"@nestjs/common": "^10.0.0",
|
|
29
28
|
"@nestjs/core": "^10.0.0",
|
|
30
|
-
"@prisma/client": "
|
|
29
|
+
"@prisma/client": "6.17.1",
|
|
31
30
|
"bcrypt": "^6.0.0",
|
|
32
31
|
"commander": "^11.1.0",
|
|
33
32
|
"dotenv": "^16.4.7",
|
|
@@ -38,7 +37,7 @@
|
|
|
38
37
|
"@types/bcrypt": "^5.0.2",
|
|
39
38
|
"@types/node": "^20.3.1",
|
|
40
39
|
"@types/pg": "^8.11.11",
|
|
41
|
-
"prisma": "
|
|
40
|
+
"prisma": "6.17.1",
|
|
42
41
|
"typescript": "^5.2.2"
|
|
43
42
|
}
|
|
44
43
|
}
|