@danielcok17/prisma-db 1.0.5 → 1.1.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.
- package/package.json +3 -3
- package/prisma/app.prisma +32 -0
- package/prisma/generated/app/default.js +1 -1
- package/prisma/generated/app/edge.js +29 -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 +29 -10
- package/prisma/generated/app/libquery_engine-darwin-arm64.dylib.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 +60 -28
- 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 +139 -99
- package/prisma/generated/law/default.js +1 -1
- package/prisma/generated/law/edge.js +6 -6
- package/prisma/generated/law/index-browser.js +4 -4
- package/prisma/generated/law/index.d.ts +6 -2
- package/prisma/generated/law/index.js +6 -6
- package/prisma/generated/law/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/prisma/generated/law/package.json +36 -3
- 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/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 +106 -85
- 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.0
|
|
3
|
+
"version": "1.1.0",
|
|
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
|
@@ -33,6 +33,8 @@ model User {
|
|
|
33
33
|
email String? @unique
|
|
34
34
|
emailVerified DateTime?
|
|
35
35
|
image String?
|
|
36
|
+
// Credentials authentication fields
|
|
37
|
+
password String? // Hashed password pre credentials login
|
|
36
38
|
createdAt DateTime @default(now())
|
|
37
39
|
messageCount Int @default(100)
|
|
38
40
|
agreedToTerms Boolean @default(false)
|
|
@@ -58,6 +60,8 @@ model User {
|
|
|
58
60
|
pageViews PageView[]
|
|
59
61
|
sessions Session[]
|
|
60
62
|
workflowLogs WorkflowLog[]
|
|
63
|
+
verificationTokens VerificationToken[]
|
|
64
|
+
passwordResetTokens PasswordResetToken[]
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
// Nový model pre žiadosti o schválenie
|
|
@@ -360,3 +364,31 @@ enum StepType {
|
|
|
360
364
|
DATA_PERSISTENCE
|
|
361
365
|
ERROR_HANDLING
|
|
362
366
|
}
|
|
367
|
+
|
|
368
|
+
// Email verification tokens
|
|
369
|
+
model VerificationToken {
|
|
370
|
+
id String @id @default(cuid())
|
|
371
|
+
userId String
|
|
372
|
+
token String @unique
|
|
373
|
+
expires DateTime
|
|
374
|
+
createdAt DateTime @default(now())
|
|
375
|
+
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
376
|
+
|
|
377
|
+
@@index([token])
|
|
378
|
+
@@index([userId])
|
|
379
|
+
@@index([expires])
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
// Password reset tokens
|
|
383
|
+
model PasswordResetToken {
|
|
384
|
+
id String @id @default(cuid())
|
|
385
|
+
userId String
|
|
386
|
+
token String @unique
|
|
387
|
+
expires DateTime
|
|
388
|
+
createdAt DateTime @default(now())
|
|
389
|
+
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
390
|
+
|
|
391
|
+
@@index([token])
|
|
392
|
+
@@index([userId])
|
|
393
|
+
@@index([expires])
|
|
394
|
+
}
|