@danielcok17/prisma-db 1.0.5 → 1.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 +3 -3
- package/prisma/app.prisma +35 -2
- package/prisma/generated/app/default.js +1 -1
- package/prisma/generated/app/edge.js +33 -10
- package/prisma/generated/app/index-browser.js +24 -5
- package/prisma/generated/app/index.d.ts +4795 -1404
- package/prisma/generated/app/index.js +37 -10
- package/prisma/generated/app/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/prisma/generated/app/libquery_engine-linux-musl-openssl-3.0.x.so.node +0 -0
- package/prisma/generated/app/package.json +37 -4
- package/prisma/generated/app/query_engine_bg.js +2 -0
- package/prisma/generated/app/query_engine_bg.wasm +0 -0
- package/prisma/generated/app/runtime/edge-esm.js +16 -16
- package/prisma/generated/app/runtime/edge.js +16 -16
- package/prisma/generated/app/runtime/library.d.ts +1 -0
- package/prisma/generated/app/runtime/library.js +45 -45
- package/prisma/generated/app/runtime/react-native.js +28 -28
- package/prisma/generated/app/runtime/wasm-compiler-edge.js +27 -26
- package/prisma/generated/app/runtime/wasm-engine-edge.js +18 -17
- package/prisma/generated/app/schema.prisma +63 -30
- package/prisma/generated/app/wasm-edge-light-loader.mjs +4 -0
- package/prisma/generated/app/wasm-worker-loader.mjs +4 -0
- package/prisma/generated/app/wasm.d.ts +1 -1
- package/prisma/generated/app/wasm.js +143 -99
- package/prisma/generated/law/default.js +1 -1
- package/prisma/generated/law/edge.js +12 -8
- package/prisma/generated/law/index-browser.js +4 -4
- package/prisma/generated/law/index.d.ts +6 -2
- package/prisma/generated/law/index.js +16 -8
- package/prisma/generated/law/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/prisma/generated/law/libquery_engine-linux-musl-openssl-3.0.x.so.node +0 -0
- package/prisma/generated/law/package.json +37 -4
- package/prisma/generated/law/query_engine_bg.js +2 -0
- package/prisma/generated/law/query_engine_bg.wasm +0 -0
- package/prisma/generated/law/runtime/edge-esm.js +16 -16
- package/prisma/generated/law/runtime/edge.js +16 -16
- package/prisma/generated/law/runtime/library.d.ts +1 -0
- package/prisma/generated/law/runtime/library.js +45 -45
- package/prisma/generated/law/runtime/react-native.js +28 -28
- package/prisma/generated/law/runtime/wasm-compiler-edge.js +27 -26
- package/prisma/generated/law/runtime/wasm-engine-edge.js +18 -17
- package/prisma/generated/law/schema.prisma +3 -2
- package/prisma/generated/law/wasm-edge-light-loader.mjs +4 -0
- package/prisma/generated/law/wasm-worker-loader.mjs +4 -0
- package/prisma/generated/law/wasm.d.ts +1 -1
- package/prisma/generated/law/wasm.js +110 -85
- package/prisma/law.prisma +3 -2
- package/prisma/migrations/20251009213916_add_email_authentication/migration.sql +54 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielcok17/prisma-db",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Shared Prisma schema for Legal AI applications",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"node": ">=18.18"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@prisma/client": "^6.
|
|
38
|
+
"@prisma/client": "^6.17.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^24.3.0",
|
|
42
|
-
"prisma": "^6.
|
|
42
|
+
"prisma": "^6.17.0",
|
|
43
43
|
"tsx": "^4.0.0",
|
|
44
44
|
"typescript": "^5.0.0"
|
|
45
45
|
}
|
package/prisma/app.prisma
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
generator client {
|
|
2
|
-
provider
|
|
3
|
-
output
|
|
2
|
+
provider = "prisma-client-js"
|
|
3
|
+
output = "./generated/app"
|
|
4
|
+
binaryTargets = ["native", "linux-musl-openssl-3.0.x"]
|
|
4
5
|
}
|
|
5
6
|
|
|
6
7
|
datasource db {
|
|
@@ -33,6 +34,8 @@ model User {
|
|
|
33
34
|
email String? @unique
|
|
34
35
|
emailVerified DateTime?
|
|
35
36
|
image String?
|
|
37
|
+
// Credentials authentication fields
|
|
38
|
+
password String? // Hashed password pre credentials login
|
|
36
39
|
createdAt DateTime @default(now())
|
|
37
40
|
messageCount Int @default(100)
|
|
38
41
|
agreedToTerms Boolean @default(false)
|
|
@@ -58,6 +61,8 @@ model User {
|
|
|
58
61
|
pageViews PageView[]
|
|
59
62
|
sessions Session[]
|
|
60
63
|
workflowLogs WorkflowLog[]
|
|
64
|
+
verificationTokens VerificationToken[]
|
|
65
|
+
passwordResetTokens PasswordResetToken[]
|
|
61
66
|
}
|
|
62
67
|
|
|
63
68
|
// Nový model pre žiadosti o schválenie
|
|
@@ -360,3 +365,31 @@ enum StepType {
|
|
|
360
365
|
DATA_PERSISTENCE
|
|
361
366
|
ERROR_HANDLING
|
|
362
367
|
}
|
|
368
|
+
|
|
369
|
+
// Email verification tokens
|
|
370
|
+
model VerificationToken {
|
|
371
|
+
id String @id @default(cuid())
|
|
372
|
+
userId String
|
|
373
|
+
token String @unique
|
|
374
|
+
expires DateTime
|
|
375
|
+
createdAt DateTime @default(now())
|
|
376
|
+
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
377
|
+
|
|
378
|
+
@@index([token])
|
|
379
|
+
@@index([userId])
|
|
380
|
+
@@index([expires])
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
// Password reset tokens
|
|
384
|
+
model PasswordResetToken {
|
|
385
|
+
id String @id @default(cuid())
|
|
386
|
+
userId String
|
|
387
|
+
token String @unique
|
|
388
|
+
expires DateTime
|
|
389
|
+
createdAt DateTime @default(now())
|
|
390
|
+
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
391
|
+
|
|
392
|
+
@@index([token])
|
|
393
|
+
@@index([userId])
|
|
394
|
+
@@index([expires])
|
|
395
|
+
}
|