@danielcok17/prisma-db 1.0.0 → 1.0.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.
Files changed (61) hide show
  1. package/README.md +34 -19
  2. package/dist/index.d.ts +2 -2
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +5 -3
  5. package/dist/index.js.map +1 -1
  6. package/dist/utils.d.ts +4 -2
  7. package/dist/utils.d.ts.map +1 -1
  8. package/dist/utils.js +7 -4
  9. package/dist/utils.js.map +1 -1
  10. package/package.json +8 -7
  11. package/prisma/{schema.prisma → app.prisma} +3 -0
  12. package/prisma/generated/app/client.d.ts +1 -0
  13. package/prisma/generated/app/client.js +4 -0
  14. package/prisma/generated/app/default.d.ts +1 -0
  15. package/prisma/generated/app/default.js +4 -0
  16. package/prisma/generated/app/edge.d.ts +1 -0
  17. package/prisma/generated/app/edge.js +391 -0
  18. package/prisma/generated/app/index-browser.js +377 -0
  19. package/prisma/generated/app/index.d.ts +22435 -0
  20. package/prisma/generated/app/index.js +412 -0
  21. package/prisma/generated/app/libquery_engine-darwin-arm64.dylib.node +0 -0
  22. package/prisma/generated/app/package.json +150 -0
  23. package/prisma/generated/app/runtime/edge-esm.js +34 -0
  24. package/prisma/generated/app/runtime/edge.js +34 -0
  25. package/prisma/generated/app/runtime/index-browser.d.ts +370 -0
  26. package/prisma/generated/app/runtime/index-browser.js +16 -0
  27. package/prisma/generated/app/runtime/library.d.ts +4002 -0
  28. package/prisma/generated/app/runtime/library.js +146 -0
  29. package/prisma/generated/app/runtime/react-native.js +83 -0
  30. package/prisma/generated/app/runtime/wasm-compiler-edge.js +83 -0
  31. package/prisma/generated/app/runtime/wasm-engine-edge.js +35 -0
  32. package/prisma/generated/app/schema.prisma +284 -0
  33. package/prisma/generated/app/wasm.d.ts +1 -0
  34. package/prisma/generated/app/wasm.js +377 -0
  35. package/prisma/generated/law/client.d.ts +1 -0
  36. package/prisma/generated/law/client.js +4 -0
  37. package/prisma/generated/law/default.d.ts +1 -0
  38. package/prisma/generated/law/default.js +4 -0
  39. package/prisma/generated/law/edge.d.ts +1 -0
  40. package/prisma/generated/law/edge.js +251 -0
  41. package/prisma/generated/law/index-browser.js +237 -0
  42. package/prisma/generated/law/index.d.ts +6827 -0
  43. package/prisma/generated/law/index.js +272 -0
  44. package/prisma/generated/law/libquery_engine-darwin-arm64.dylib.node +0 -0
  45. package/prisma/generated/law/package.json +150 -0
  46. package/prisma/generated/law/runtime/edge-esm.js +34 -0
  47. package/prisma/generated/law/runtime/edge.js +34 -0
  48. package/prisma/generated/law/runtime/index-browser.d.ts +370 -0
  49. package/prisma/generated/law/runtime/index-browser.js +16 -0
  50. package/prisma/generated/law/runtime/library.d.ts +4002 -0
  51. package/prisma/generated/law/runtime/library.js +146 -0
  52. package/prisma/generated/law/runtime/react-native.js +83 -0
  53. package/prisma/generated/law/runtime/wasm-compiler-edge.js +83 -0
  54. package/prisma/generated/law/runtime/wasm-engine-edge.js +35 -0
  55. package/prisma/generated/law/schema.prisma +80 -0
  56. package/prisma/generated/law/wasm.d.ts +1 -0
  57. package/prisma/generated/law/wasm.js +237 -0
  58. package/prisma/law.prisma +82 -0
  59. package/prisma/migrations/20250817194531_/migration.sql +372 -0
  60. package/prisma/migrations/migration_lock.toml +3 -0
  61. package/prisma/seed.ts +0 -0
@@ -0,0 +1,284 @@
1
+ generator client {
2
+ provider = "prisma-client-js"
3
+ output = "./generated/app"
4
+ }
5
+
6
+ datasource db {
7
+ provider = "postgresql"
8
+ url = env("POSTGRES_PRISMA_URL")
9
+ directUrl = env("POSTGRES_URL_NON_POOLING")
10
+ }
11
+
12
+ model Account {
13
+ id String @id @default(cuid())
14
+ userId String
15
+ type String
16
+ provider String
17
+ providerAccountId String
18
+ refresh_token String?
19
+ access_token String?
20
+ expires_at Int?
21
+ token_type String?
22
+ scope String?
23
+ id_token String?
24
+ session_state String?
25
+ user User @relation(fields: [userId], references: [id], onDelete: Cascade)
26
+
27
+ @@unique([provider, providerAccountId])
28
+ }
29
+
30
+ model User {
31
+ id String @id @default(cuid())
32
+ name String?
33
+ email String? @unique
34
+ emailVerified DateTime?
35
+ image String?
36
+ createdAt DateTime @default(now())
37
+ messageCount Int @default(100)
38
+ agreedToTerms Boolean @default(false)
39
+ practiceArea String[]
40
+ lawFirm String?
41
+ yearsOfExperience Int?
42
+ // Nové polia pre schvalovanie používateľov
43
+ isApproved Boolean @default(false) // Či je používateľ schválený
44
+ isRejected Boolean @default(false) // Či je používateľ zamietnutý
45
+ approvedAt DateTime? // Kedy bol schválený
46
+ rejectedAt DateTime? // Kedy bol zamietnutý
47
+ approvedBy String? // ID admina, ktorý schválil
48
+ rejectedBy String? // ID admina, ktorý zamietol
49
+ rejectionReason String? // Dôvod zamietnutia
50
+ // Nové polia pre tracking a žiadosť
51
+ referralSource String? // Odkiaľ sa o nás dozvedel (Google, Facebook, LinkedIn, etc.)
52
+ applicationText String? // Text žiadosti o prihlásenie
53
+ approvalRequest UserApprovalRequest?
54
+ accounts Account[]
55
+ answers Answer[]
56
+ conversations Conversation[]
57
+ feedbacks Feedback[]
58
+ pageViews PageView[]
59
+ sessions Session[]
60
+ }
61
+
62
+ // Nový model pre žiadosti o schválenie
63
+ model UserApprovalRequest {
64
+ id String @id @default(cuid())
65
+ userId String @unique
66
+ status ApprovalStatus @default(PENDING)
67
+ submittedAt DateTime @default(now())
68
+ reviewedAt DateTime?
69
+ reviewedBy String? // ID admina, ktorý preskúmal žiadosť
70
+ notes String? // Poznámky admina
71
+ user User @relation(fields: [userId], references: [id], onDelete: Cascade)
72
+
73
+ @@index([status])
74
+ @@index([submittedAt])
75
+ @@index([reviewedAt])
76
+ }
77
+
78
+ // ZJEDNODUŠENÝ Conversation - len metadata, bez duplikátov
79
+ model Conversation {
80
+ id String @id @default(cuid())
81
+ name String
82
+ userId String
83
+ isShareable Boolean @default(false)
84
+ shareUrl String? @unique
85
+ sharedAt DateTime?
86
+ createdAt DateTime @default(now())
87
+ updatedAt DateTime @updatedAt
88
+ // Relácie
89
+ answers Answer[]
90
+ user User @relation(fields: [userId], references: [id])
91
+
92
+ @@index([userId])
93
+ @@index([createdAt])
94
+ }
95
+
96
+ // Hlavný model - všetky správy, bez duplikátov
97
+ model Answer {
98
+ id String @id @default(cuid())
99
+ conversationId String
100
+ messageId String @unique
101
+ role Role
102
+ content String
103
+ question String?
104
+ answer String?
105
+ evaluation String?
106
+ isWelcome Boolean @default(false)
107
+ processingTime Int?
108
+ model String?
109
+ userId String?
110
+ createdAt DateTime @default(now())
111
+ updatedAt DateTime @updatedAt
112
+ // Relácie
113
+ conversation Conversation @relation(fields: [conversationId], references: [id], onDelete: Cascade)
114
+ user User? @relation(fields: [userId], references: [id])
115
+ feedback Feedback?
116
+ references Reference[]
117
+ metrics AnswerMetrics?
118
+
119
+ @@index([conversationId])
120
+ @@index([messageId])
121
+ @@index([role])
122
+ @@index([userId])
123
+ @@index([createdAt])
124
+ }
125
+
126
+ // Nová tabuľka pre metriky odpovedí
127
+ model AnswerMetrics {
128
+ id String @id @default(cuid())
129
+ answerId String @unique
130
+ // Náklady
131
+ apiCost Float? // Celkové náklady (ai_cost + rag_cost)
132
+ aiCost Float? // Náklady len na AI provider volania
133
+ ragCost Float? // Náklady na RAG operácie
134
+ // Volania
135
+ apiCalls Int? // Celkový počet volaní
136
+ aiCalls Int? // Počet AI provider volaní
137
+ ragCalls Int? // Počet RAG operácií
138
+ // Čas a výkon
139
+ apiDuration Int? // Doba spracovania v ms
140
+ // AI Provider a Model
141
+ aiProvider String? // Hlavný AI provider
142
+ aiModel String? // Hlavný AI model
143
+ aiProvidersUsed String[] // Všetky použité AI providery
144
+ aiModelsUsed String[] // Všetky použité AI modely
145
+ // Timestamps
146
+ createdAt DateTime @default(now())
147
+ updatedAt DateTime @updatedAt
148
+ // Relations
149
+ answer Answer @relation(fields: [answerId], references: [id], onDelete: Cascade)
150
+
151
+ @@index([answerId])
152
+ @@index([apiCost])
153
+ @@index([apiDuration])
154
+ @@index([aiProvider])
155
+ @@index([createdAt])
156
+ }
157
+
158
+ model Feedback {
159
+ id String @id @default(cuid())
160
+ answerId String @unique
161
+ rating FeedbackRating
162
+ feedbackTypes String[]
163
+ customFeedback String?
164
+ userId String
165
+ messageContent String?
166
+ createdAt DateTime @default(now())
167
+ answer Answer @relation(fields: [answerId], references: [id], onDelete: Cascade)
168
+ user User @relation(fields: [userId], references: [id])
169
+
170
+ @@index([rating])
171
+ @@index([userId])
172
+ @@index([answerId])
173
+ }
174
+
175
+ // ZJEDNODUŠENÝ Reference - len na Answer, bez duplikátov
176
+ model Reference {
177
+ id String @id @default(cuid())
178
+ answerId String // Len answerId - konzistentné
179
+ type ReferenceType
180
+ title String
181
+ reference String
182
+ summary String?
183
+ url String?
184
+ uuid String?
185
+ relevance Float?
186
+ citationNumber Int?
187
+ metadata Json?
188
+ userId String?
189
+ createdAt DateTime @default(now())
190
+ // Relácie
191
+ answer Answer @relation(fields: [answerId], references: [id], onDelete: Cascade)
192
+
193
+ @@index([answerId])
194
+ @@index([type])
195
+ @@index([reference])
196
+ @@index([userId])
197
+ @@index([createdAt])
198
+ }
199
+
200
+ model PageView {
201
+ id String @id @default(cuid())
202
+ userId String?
203
+ sessionId String
204
+ page String
205
+ path String
206
+ referrer String?
207
+ userAgent String?
208
+ ipAddress String?
209
+ country String?
210
+ city String?
211
+ deviceType String?
212
+ browser String?
213
+ os String?
214
+ screenSize String?
215
+ language String?
216
+ timeOnPage Int?
217
+ isBounce Boolean @default(true)
218
+ createdAt DateTime @default(now())
219
+ session Session @relation(fields: [sessionId], references: [sessionId], onDelete: SetNull)
220
+ user User? @relation(fields: [userId], references: [id])
221
+
222
+ @@index([userId])
223
+ @@index([sessionId])
224
+ @@index([page])
225
+ @@index([createdAt])
226
+ @@index([country])
227
+ @@index([deviceType])
228
+ }
229
+
230
+ model Session {
231
+ id String @id @default(cuid())
232
+ sessionId String @unique
233
+ userId String?
234
+ startedAt DateTime @default(now())
235
+ endedAt DateTime?
236
+ duration Int?
237
+ pageViews PageView[]
238
+ user User? @relation(fields: [userId], references: [id])
239
+
240
+ @@index([sessionId])
241
+ @@index([userId])
242
+ @@index([startedAt])
243
+ }
244
+
245
+ enum Role {
246
+ USER
247
+ ASSISTANT
248
+ SYSTEM
249
+ }
250
+
251
+ enum FeedbackRating {
252
+ LIKE
253
+ DISLIKE
254
+ NEUTRAL
255
+ }
256
+
257
+ enum ReferenceType {
258
+ LAW
259
+ CASE
260
+ REGULATION
261
+ DOCUMENT
262
+ OTHER
263
+ }
264
+
265
+ enum ApprovalStatus {
266
+ PENDING
267
+ APPROVED
268
+ REJECTED
269
+ }
270
+
271
+ // Nový model pre logovanie admin akcií
272
+ model AdminActionLog {
273
+ id String @id @default(cuid())
274
+ action String // APPROVE_USER, REJECT_USER, etc.
275
+ targetUserId String // ID používateľa, na ktorého sa akcia vzťahuje
276
+ adminEmail String // E-mail admina, ktorý vykonal akciu
277
+ details Json? // Ďalšie detaily akcie (reason, notes, etc.)
278
+ createdAt DateTime @default(now())
279
+
280
+ @@index([action])
281
+ @@index([targetUserId])
282
+ @@index([adminEmail])
283
+ @@index([createdAt])
284
+ }
@@ -0,0 +1 @@
1
+ export * from "./index"
@@ -0,0 +1,377 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!!
3
+ /* eslint-disable */
4
+
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+
7
+ const {
8
+ Decimal,
9
+ objectEnumValues,
10
+ makeStrictEnum,
11
+ Public,
12
+ getRuntime,
13
+ skip
14
+ } = require('./runtime/index-browser.js')
15
+
16
+
17
+ const Prisma = {}
18
+
19
+ exports.Prisma = Prisma
20
+ exports.$Enums = {}
21
+
22
+ /**
23
+ * Prisma Client JS version: 6.14.0
24
+ * Query Engine version: 717184b7b35ea05dfa71a3236b7af656013e1e49
25
+ */
26
+ Prisma.prismaVersion = {
27
+ client: "6.14.0",
28
+ engine: "717184b7b35ea05dfa71a3236b7af656013e1e49"
29
+ }
30
+
31
+ Prisma.PrismaClientKnownRequestError = () => {
32
+ const runtimeName = getRuntime().prettyName;
33
+ throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
34
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
35
+ )};
36
+ Prisma.PrismaClientUnknownRequestError = () => {
37
+ const runtimeName = getRuntime().prettyName;
38
+ throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
39
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
40
+ )}
41
+ Prisma.PrismaClientRustPanicError = () => {
42
+ const runtimeName = getRuntime().prettyName;
43
+ throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
44
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
45
+ )}
46
+ Prisma.PrismaClientInitializationError = () => {
47
+ const runtimeName = getRuntime().prettyName;
48
+ throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
49
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
50
+ )}
51
+ Prisma.PrismaClientValidationError = () => {
52
+ const runtimeName = getRuntime().prettyName;
53
+ throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
54
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
55
+ )}
56
+ Prisma.Decimal = Decimal
57
+
58
+ /**
59
+ * Re-export of sql-template-tag
60
+ */
61
+ Prisma.sql = () => {
62
+ const runtimeName = getRuntime().prettyName;
63
+ throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
64
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
65
+ )}
66
+ Prisma.empty = () => {
67
+ const runtimeName = getRuntime().prettyName;
68
+ throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
69
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
70
+ )}
71
+ Prisma.join = () => {
72
+ const runtimeName = getRuntime().prettyName;
73
+ throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
74
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
75
+ )}
76
+ Prisma.raw = () => {
77
+ const runtimeName = getRuntime().prettyName;
78
+ throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
79
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
80
+ )}
81
+ Prisma.validator = Public.validator
82
+
83
+ /**
84
+ * Extensions
85
+ */
86
+ Prisma.getExtensionContext = () => {
87
+ const runtimeName = getRuntime().prettyName;
88
+ throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
89
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
90
+ )}
91
+ Prisma.defineExtension = () => {
92
+ const runtimeName = getRuntime().prettyName;
93
+ throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
94
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
95
+ )}
96
+
97
+ /**
98
+ * Shorthand utilities for JSON filtering
99
+ */
100
+ Prisma.DbNull = objectEnumValues.instances.DbNull
101
+ Prisma.JsonNull = objectEnumValues.instances.JsonNull
102
+ Prisma.AnyNull = objectEnumValues.instances.AnyNull
103
+
104
+ Prisma.NullTypes = {
105
+ DbNull: objectEnumValues.classes.DbNull,
106
+ JsonNull: objectEnumValues.classes.JsonNull,
107
+ AnyNull: objectEnumValues.classes.AnyNull
108
+ }
109
+
110
+
111
+
112
+ /**
113
+ * Enums
114
+ */
115
+
116
+ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
117
+ ReadUncommitted: 'ReadUncommitted',
118
+ ReadCommitted: 'ReadCommitted',
119
+ RepeatableRead: 'RepeatableRead',
120
+ Serializable: 'Serializable'
121
+ });
122
+
123
+ exports.Prisma.AccountScalarFieldEnum = {
124
+ id: 'id',
125
+ userId: 'userId',
126
+ type: 'type',
127
+ provider: 'provider',
128
+ providerAccountId: 'providerAccountId',
129
+ refresh_token: 'refresh_token',
130
+ access_token: 'access_token',
131
+ expires_at: 'expires_at',
132
+ token_type: 'token_type',
133
+ scope: 'scope',
134
+ id_token: 'id_token',
135
+ session_state: 'session_state'
136
+ };
137
+
138
+ exports.Prisma.UserScalarFieldEnum = {
139
+ id: 'id',
140
+ name: 'name',
141
+ email: 'email',
142
+ emailVerified: 'emailVerified',
143
+ image: 'image',
144
+ createdAt: 'createdAt',
145
+ messageCount: 'messageCount',
146
+ agreedToTerms: 'agreedToTerms',
147
+ practiceArea: 'practiceArea',
148
+ lawFirm: 'lawFirm',
149
+ yearsOfExperience: 'yearsOfExperience',
150
+ isApproved: 'isApproved',
151
+ isRejected: 'isRejected',
152
+ approvedAt: 'approvedAt',
153
+ rejectedAt: 'rejectedAt',
154
+ approvedBy: 'approvedBy',
155
+ rejectedBy: 'rejectedBy',
156
+ rejectionReason: 'rejectionReason',
157
+ referralSource: 'referralSource',
158
+ applicationText: 'applicationText'
159
+ };
160
+
161
+ exports.Prisma.UserApprovalRequestScalarFieldEnum = {
162
+ id: 'id',
163
+ userId: 'userId',
164
+ status: 'status',
165
+ submittedAt: 'submittedAt',
166
+ reviewedAt: 'reviewedAt',
167
+ reviewedBy: 'reviewedBy',
168
+ notes: 'notes'
169
+ };
170
+
171
+ exports.Prisma.ConversationScalarFieldEnum = {
172
+ id: 'id',
173
+ name: 'name',
174
+ userId: 'userId',
175
+ isShareable: 'isShareable',
176
+ shareUrl: 'shareUrl',
177
+ sharedAt: 'sharedAt',
178
+ createdAt: 'createdAt',
179
+ updatedAt: 'updatedAt'
180
+ };
181
+
182
+ exports.Prisma.AnswerScalarFieldEnum = {
183
+ id: 'id',
184
+ conversationId: 'conversationId',
185
+ messageId: 'messageId',
186
+ role: 'role',
187
+ content: 'content',
188
+ question: 'question',
189
+ answer: 'answer',
190
+ evaluation: 'evaluation',
191
+ isWelcome: 'isWelcome',
192
+ processingTime: 'processingTime',
193
+ model: 'model',
194
+ userId: 'userId',
195
+ createdAt: 'createdAt',
196
+ updatedAt: 'updatedAt'
197
+ };
198
+
199
+ exports.Prisma.AnswerMetricsScalarFieldEnum = {
200
+ id: 'id',
201
+ answerId: 'answerId',
202
+ apiCost: 'apiCost',
203
+ aiCost: 'aiCost',
204
+ ragCost: 'ragCost',
205
+ apiCalls: 'apiCalls',
206
+ aiCalls: 'aiCalls',
207
+ ragCalls: 'ragCalls',
208
+ apiDuration: 'apiDuration',
209
+ aiProvider: 'aiProvider',
210
+ aiModel: 'aiModel',
211
+ aiProvidersUsed: 'aiProvidersUsed',
212
+ aiModelsUsed: 'aiModelsUsed',
213
+ createdAt: 'createdAt',
214
+ updatedAt: 'updatedAt'
215
+ };
216
+
217
+ exports.Prisma.FeedbackScalarFieldEnum = {
218
+ id: 'id',
219
+ answerId: 'answerId',
220
+ rating: 'rating',
221
+ feedbackTypes: 'feedbackTypes',
222
+ customFeedback: 'customFeedback',
223
+ userId: 'userId',
224
+ messageContent: 'messageContent',
225
+ createdAt: 'createdAt'
226
+ };
227
+
228
+ exports.Prisma.ReferenceScalarFieldEnum = {
229
+ id: 'id',
230
+ answerId: 'answerId',
231
+ type: 'type',
232
+ title: 'title',
233
+ reference: 'reference',
234
+ summary: 'summary',
235
+ url: 'url',
236
+ uuid: 'uuid',
237
+ relevance: 'relevance',
238
+ citationNumber: 'citationNumber',
239
+ metadata: 'metadata',
240
+ userId: 'userId',
241
+ createdAt: 'createdAt'
242
+ };
243
+
244
+ exports.Prisma.PageViewScalarFieldEnum = {
245
+ id: 'id',
246
+ userId: 'userId',
247
+ sessionId: 'sessionId',
248
+ page: 'page',
249
+ path: 'path',
250
+ referrer: 'referrer',
251
+ userAgent: 'userAgent',
252
+ ipAddress: 'ipAddress',
253
+ country: 'country',
254
+ city: 'city',
255
+ deviceType: 'deviceType',
256
+ browser: 'browser',
257
+ os: 'os',
258
+ screenSize: 'screenSize',
259
+ language: 'language',
260
+ timeOnPage: 'timeOnPage',
261
+ isBounce: 'isBounce',
262
+ createdAt: 'createdAt'
263
+ };
264
+
265
+ exports.Prisma.SessionScalarFieldEnum = {
266
+ id: 'id',
267
+ sessionId: 'sessionId',
268
+ userId: 'userId',
269
+ startedAt: 'startedAt',
270
+ endedAt: 'endedAt',
271
+ duration: 'duration'
272
+ };
273
+
274
+ exports.Prisma.AdminActionLogScalarFieldEnum = {
275
+ id: 'id',
276
+ action: 'action',
277
+ targetUserId: 'targetUserId',
278
+ adminEmail: 'adminEmail',
279
+ details: 'details',
280
+ createdAt: 'createdAt'
281
+ };
282
+
283
+ exports.Prisma.SortOrder = {
284
+ asc: 'asc',
285
+ desc: 'desc'
286
+ };
287
+
288
+ exports.Prisma.NullableJsonNullValueInput = {
289
+ DbNull: Prisma.DbNull,
290
+ JsonNull: Prisma.JsonNull
291
+ };
292
+
293
+ exports.Prisma.QueryMode = {
294
+ default: 'default',
295
+ insensitive: 'insensitive'
296
+ };
297
+
298
+ exports.Prisma.NullsOrder = {
299
+ first: 'first',
300
+ last: 'last'
301
+ };
302
+
303
+ exports.Prisma.JsonNullValueFilter = {
304
+ DbNull: Prisma.DbNull,
305
+ JsonNull: Prisma.JsonNull,
306
+ AnyNull: Prisma.AnyNull
307
+ };
308
+ exports.ApprovalStatus = exports.$Enums.ApprovalStatus = {
309
+ PENDING: 'PENDING',
310
+ APPROVED: 'APPROVED',
311
+ REJECTED: 'REJECTED'
312
+ };
313
+
314
+ exports.Role = exports.$Enums.Role = {
315
+ USER: 'USER',
316
+ ASSISTANT: 'ASSISTANT',
317
+ SYSTEM: 'SYSTEM'
318
+ };
319
+
320
+ exports.FeedbackRating = exports.$Enums.FeedbackRating = {
321
+ LIKE: 'LIKE',
322
+ DISLIKE: 'DISLIKE',
323
+ NEUTRAL: 'NEUTRAL'
324
+ };
325
+
326
+ exports.ReferenceType = exports.$Enums.ReferenceType = {
327
+ LAW: 'LAW',
328
+ CASE: 'CASE',
329
+ REGULATION: 'REGULATION',
330
+ DOCUMENT: 'DOCUMENT',
331
+ OTHER: 'OTHER'
332
+ };
333
+
334
+ exports.Prisma.ModelName = {
335
+ Account: 'Account',
336
+ User: 'User',
337
+ UserApprovalRequest: 'UserApprovalRequest',
338
+ Conversation: 'Conversation',
339
+ Answer: 'Answer',
340
+ AnswerMetrics: 'AnswerMetrics',
341
+ Feedback: 'Feedback',
342
+ Reference: 'Reference',
343
+ PageView: 'PageView',
344
+ Session: 'Session',
345
+ AdminActionLog: 'AdminActionLog'
346
+ };
347
+
348
+ /**
349
+ * This is a stub Prisma Client that will error at runtime if called.
350
+ */
351
+ class PrismaClient {
352
+ constructor() {
353
+ return new Proxy(this, {
354
+ get(target, prop) {
355
+ let message
356
+ const runtime = getRuntime()
357
+ if (runtime.isEdge) {
358
+ message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
359
+ - Use Prisma Accelerate: https://pris.ly/d/accelerate
360
+ - Use Driver Adapters: https://pris.ly/d/driver-adapters
361
+ `;
362
+ } else {
363
+ message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
364
+ }
365
+
366
+ message += `
367
+ If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
368
+
369
+ throw new Error(message)
370
+ }
371
+ })
372
+ }
373
+ }
374
+
375
+ exports.PrismaClient = PrismaClient
376
+
377
+ Object.assign(exports, Prisma)
@@ -0,0 +1 @@
1
+ export * from "./index"
@@ -0,0 +1,4 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!!
3
+ /* eslint-disable */
4
+ module.exports = { ...require('.') }
@@ -0,0 +1 @@
1
+ export * from "./index"
@@ -0,0 +1,4 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!!
3
+ /* eslint-disable */
4
+ module.exports = { ...require('.') }
@@ -0,0 +1 @@
1
+ export * from "./default"