@danielcok17/prisma-db 1.2.1 → 1.2.2

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.
@@ -38,6 +38,11 @@ export type Conversation = $Result.DefaultSelection<Prisma.$ConversationPayload>
38
38
  *
39
39
  */
40
40
  export type Answer = $Result.DefaultSelection<Prisma.$AnswerPayload>
41
+ /**
42
+ * Model MessageFile
43
+ *
44
+ */
45
+ export type MessageFile = $Result.DefaultSelection<Prisma.$MessageFilePayload>
41
46
  /**
42
47
  * Model AnswerMetrics
43
48
  *
@@ -360,6 +365,16 @@ export class PrismaClient<
360
365
  */
361
366
  get answer(): Prisma.AnswerDelegate<ExtArgs, ClientOptions>;
362
367
 
368
+ /**
369
+ * `prisma.messageFile`: Exposes CRUD operations for the **MessageFile** model.
370
+ * Example usage:
371
+ * ```ts
372
+ * // Fetch zero or more MessageFiles
373
+ * const messageFiles = await prisma.messageFile.findMany()
374
+ * ```
375
+ */
376
+ get messageFile(): Prisma.MessageFileDelegate<ExtArgs, ClientOptions>;
377
+
363
378
  /**
364
379
  * `prisma.answerMetrics`: Exposes CRUD operations for the **AnswerMetrics** model.
365
380
  * Example usage:
@@ -904,6 +919,7 @@ export namespace Prisma {
904
919
  UserApprovalRequest: 'UserApprovalRequest',
905
920
  Conversation: 'Conversation',
906
921
  Answer: 'Answer',
922
+ MessageFile: 'MessageFile',
907
923
  AnswerMetrics: 'AnswerMetrics',
908
924
  Feedback: 'Feedback',
909
925
  Reference: 'Reference',
@@ -932,7 +948,7 @@ export namespace Prisma {
932
948
  omit: GlobalOmitOptions
933
949
  }
934
950
  meta: {
935
- modelProps: "account" | "user" | "userApprovalRequest" | "conversation" | "answer" | "answerMetrics" | "feedback" | "reference" | "pageView" | "session" | "adminActionLog" | "workflowLog" | "workflowStep" | "verificationToken" | "passwordResetToken"
951
+ modelProps: "account" | "user" | "userApprovalRequest" | "conversation" | "answer" | "messageFile" | "answerMetrics" | "feedback" | "reference" | "pageView" | "session" | "adminActionLog" | "workflowLog" | "workflowStep" | "verificationToken" | "passwordResetToken"
936
952
  txIsolationLevel: Prisma.TransactionIsolationLevel
937
953
  }
938
954
  model: {
@@ -1306,6 +1322,80 @@ export namespace Prisma {
1306
1322
  }
1307
1323
  }
1308
1324
  }
1325
+ MessageFile: {
1326
+ payload: Prisma.$MessageFilePayload<ExtArgs>
1327
+ fields: Prisma.MessageFileFieldRefs
1328
+ operations: {
1329
+ findUnique: {
1330
+ args: Prisma.MessageFileFindUniqueArgs<ExtArgs>
1331
+ result: $Utils.PayloadToResult<Prisma.$MessageFilePayload> | null
1332
+ }
1333
+ findUniqueOrThrow: {
1334
+ args: Prisma.MessageFileFindUniqueOrThrowArgs<ExtArgs>
1335
+ result: $Utils.PayloadToResult<Prisma.$MessageFilePayload>
1336
+ }
1337
+ findFirst: {
1338
+ args: Prisma.MessageFileFindFirstArgs<ExtArgs>
1339
+ result: $Utils.PayloadToResult<Prisma.$MessageFilePayload> | null
1340
+ }
1341
+ findFirstOrThrow: {
1342
+ args: Prisma.MessageFileFindFirstOrThrowArgs<ExtArgs>
1343
+ result: $Utils.PayloadToResult<Prisma.$MessageFilePayload>
1344
+ }
1345
+ findMany: {
1346
+ args: Prisma.MessageFileFindManyArgs<ExtArgs>
1347
+ result: $Utils.PayloadToResult<Prisma.$MessageFilePayload>[]
1348
+ }
1349
+ create: {
1350
+ args: Prisma.MessageFileCreateArgs<ExtArgs>
1351
+ result: $Utils.PayloadToResult<Prisma.$MessageFilePayload>
1352
+ }
1353
+ createMany: {
1354
+ args: Prisma.MessageFileCreateManyArgs<ExtArgs>
1355
+ result: BatchPayload
1356
+ }
1357
+ createManyAndReturn: {
1358
+ args: Prisma.MessageFileCreateManyAndReturnArgs<ExtArgs>
1359
+ result: $Utils.PayloadToResult<Prisma.$MessageFilePayload>[]
1360
+ }
1361
+ delete: {
1362
+ args: Prisma.MessageFileDeleteArgs<ExtArgs>
1363
+ result: $Utils.PayloadToResult<Prisma.$MessageFilePayload>
1364
+ }
1365
+ update: {
1366
+ args: Prisma.MessageFileUpdateArgs<ExtArgs>
1367
+ result: $Utils.PayloadToResult<Prisma.$MessageFilePayload>
1368
+ }
1369
+ deleteMany: {
1370
+ args: Prisma.MessageFileDeleteManyArgs<ExtArgs>
1371
+ result: BatchPayload
1372
+ }
1373
+ updateMany: {
1374
+ args: Prisma.MessageFileUpdateManyArgs<ExtArgs>
1375
+ result: BatchPayload
1376
+ }
1377
+ updateManyAndReturn: {
1378
+ args: Prisma.MessageFileUpdateManyAndReturnArgs<ExtArgs>
1379
+ result: $Utils.PayloadToResult<Prisma.$MessageFilePayload>[]
1380
+ }
1381
+ upsert: {
1382
+ args: Prisma.MessageFileUpsertArgs<ExtArgs>
1383
+ result: $Utils.PayloadToResult<Prisma.$MessageFilePayload>
1384
+ }
1385
+ aggregate: {
1386
+ args: Prisma.MessageFileAggregateArgs<ExtArgs>
1387
+ result: $Utils.Optional<AggregateMessageFile>
1388
+ }
1389
+ groupBy: {
1390
+ args: Prisma.MessageFileGroupByArgs<ExtArgs>
1391
+ result: $Utils.Optional<MessageFileGroupByOutputType>[]
1392
+ }
1393
+ count: {
1394
+ args: Prisma.MessageFileCountArgs<ExtArgs>
1395
+ result: $Utils.Optional<MessageFileCountAggregateOutputType> | number
1396
+ }
1397
+ }
1398
+ }
1309
1399
  AnswerMetrics: {
1310
1400
  payload: Prisma.$AnswerMetricsPayload<ExtArgs>
1311
1401
  fields: Prisma.AnswerMetricsFieldRefs
@@ -2147,6 +2237,7 @@ export namespace Prisma {
2147
2237
  userApprovalRequest?: UserApprovalRequestOmit
2148
2238
  conversation?: ConversationOmit
2149
2239
  answer?: AnswerOmit
2240
+ messageFile?: MessageFileOmit
2150
2241
  answerMetrics?: AnswerMetricsOmit
2151
2242
  feedback?: FeedbackOmit
2152
2243
  reference?: ReferenceOmit
@@ -2382,11 +2473,13 @@ export namespace Prisma {
2382
2473
  export type AnswerCountOutputType = {
2383
2474
  references: number
2384
2475
  WorkflowLog: number
2476
+ files: number
2385
2477
  }
2386
2478
 
2387
2479
  export type AnswerCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2388
2480
  references?: boolean | AnswerCountOutputTypeCountReferencesArgs
2389
2481
  WorkflowLog?: boolean | AnswerCountOutputTypeCountWorkflowLogArgs
2482
+ files?: boolean | AnswerCountOutputTypeCountFilesArgs
2390
2483
  }
2391
2484
 
2392
2485
  // Custom InputTypes
@@ -2414,6 +2507,13 @@ export namespace Prisma {
2414
2507
  where?: WorkflowLogWhereInput
2415
2508
  }
2416
2509
 
2510
+ /**
2511
+ * AnswerCountOutputType without action
2512
+ */
2513
+ export type AnswerCountOutputTypeCountFilesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2514
+ where?: MessageFileWhereInput
2515
+ }
2516
+
2417
2517
 
2418
2518
  /**
2419
2519
  * Count Type SessionCountOutputType
@@ -7807,6 +7907,7 @@ export namespace Prisma {
7807
7907
  references?: boolean | Answer$referencesArgs<ExtArgs>
7808
7908
  metrics?: boolean | Answer$metricsArgs<ExtArgs>
7809
7909
  WorkflowLog?: boolean | Answer$WorkflowLogArgs<ExtArgs>
7910
+ files?: boolean | Answer$filesArgs<ExtArgs>
7810
7911
  _count?: boolean | AnswerCountOutputTypeDefaultArgs<ExtArgs>
7811
7912
  }, ExtArgs["result"]["answer"]>
7812
7913
 
@@ -7873,6 +7974,7 @@ export namespace Prisma {
7873
7974
  references?: boolean | Answer$referencesArgs<ExtArgs>
7874
7975
  metrics?: boolean | Answer$metricsArgs<ExtArgs>
7875
7976
  WorkflowLog?: boolean | Answer$WorkflowLogArgs<ExtArgs>
7977
+ files?: boolean | Answer$filesArgs<ExtArgs>
7876
7978
  _count?: boolean | AnswerCountOutputTypeDefaultArgs<ExtArgs>
7877
7979
  }
7878
7980
  export type AnswerIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
@@ -7893,6 +7995,7 @@ export namespace Prisma {
7893
7995
  references: Prisma.$ReferencePayload<ExtArgs>[]
7894
7996
  metrics: Prisma.$AnswerMetricsPayload<ExtArgs> | null
7895
7997
  WorkflowLog: Prisma.$WorkflowLogPayload<ExtArgs>[]
7998
+ files: Prisma.$MessageFilePayload<ExtArgs>[]
7896
7999
  }
7897
8000
  scalars: $Extensions.GetPayloadResult<{
7898
8001
  id: string
@@ -8309,6 +8412,7 @@ export namespace Prisma {
8309
8412
  references<T extends Answer$referencesArgs<ExtArgs> = {}>(args?: Subset<T, Answer$referencesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ReferencePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
8310
8413
  metrics<T extends Answer$metricsArgs<ExtArgs> = {}>(args?: Subset<T, Answer$metricsArgs<ExtArgs>>): Prisma__AnswerMetricsClient<$Result.GetResult<Prisma.$AnswerMetricsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
8311
8414
  WorkflowLog<T extends Answer$WorkflowLogArgs<ExtArgs> = {}>(args?: Subset<T, Answer$WorkflowLogArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WorkflowLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
8415
+ files<T extends Answer$filesArgs<ExtArgs> = {}>(args?: Subset<T, Answer$filesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MessageFilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
8312
8416
  /**
8313
8417
  * Attaches callbacks for the resolution and/or rejection of the Promise.
8314
8418
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -8790,84 +8894,1179 @@ export namespace Prisma {
8790
8894
  */
8791
8895
  export type Answer$referencesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8792
8896
  /**
8793
- * Select specific fields to fetch from the Reference
8897
+ * Select specific fields to fetch from the Reference
8898
+ */
8899
+ select?: ReferenceSelect<ExtArgs> | null
8900
+ /**
8901
+ * Omit specific fields from the Reference
8902
+ */
8903
+ omit?: ReferenceOmit<ExtArgs> | null
8904
+ /**
8905
+ * Choose, which related nodes to fetch as well
8906
+ */
8907
+ include?: ReferenceInclude<ExtArgs> | null
8908
+ where?: ReferenceWhereInput
8909
+ orderBy?: ReferenceOrderByWithRelationInput | ReferenceOrderByWithRelationInput[]
8910
+ cursor?: ReferenceWhereUniqueInput
8911
+ take?: number
8912
+ skip?: number
8913
+ distinct?: ReferenceScalarFieldEnum | ReferenceScalarFieldEnum[]
8914
+ }
8915
+
8916
+ /**
8917
+ * Answer.metrics
8918
+ */
8919
+ export type Answer$metricsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8920
+ /**
8921
+ * Select specific fields to fetch from the AnswerMetrics
8922
+ */
8923
+ select?: AnswerMetricsSelect<ExtArgs> | null
8924
+ /**
8925
+ * Omit specific fields from the AnswerMetrics
8926
+ */
8927
+ omit?: AnswerMetricsOmit<ExtArgs> | null
8928
+ /**
8929
+ * Choose, which related nodes to fetch as well
8930
+ */
8931
+ include?: AnswerMetricsInclude<ExtArgs> | null
8932
+ where?: AnswerMetricsWhereInput
8933
+ }
8934
+
8935
+ /**
8936
+ * Answer.WorkflowLog
8937
+ */
8938
+ export type Answer$WorkflowLogArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8939
+ /**
8940
+ * Select specific fields to fetch from the WorkflowLog
8941
+ */
8942
+ select?: WorkflowLogSelect<ExtArgs> | null
8943
+ /**
8944
+ * Omit specific fields from the WorkflowLog
8945
+ */
8946
+ omit?: WorkflowLogOmit<ExtArgs> | null
8947
+ /**
8948
+ * Choose, which related nodes to fetch as well
8949
+ */
8950
+ include?: WorkflowLogInclude<ExtArgs> | null
8951
+ where?: WorkflowLogWhereInput
8952
+ orderBy?: WorkflowLogOrderByWithRelationInput | WorkflowLogOrderByWithRelationInput[]
8953
+ cursor?: WorkflowLogWhereUniqueInput
8954
+ take?: number
8955
+ skip?: number
8956
+ distinct?: WorkflowLogScalarFieldEnum | WorkflowLogScalarFieldEnum[]
8957
+ }
8958
+
8959
+ /**
8960
+ * Answer.files
8961
+ */
8962
+ export type Answer$filesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8963
+ /**
8964
+ * Select specific fields to fetch from the MessageFile
8965
+ */
8966
+ select?: MessageFileSelect<ExtArgs> | null
8967
+ /**
8968
+ * Omit specific fields from the MessageFile
8969
+ */
8970
+ omit?: MessageFileOmit<ExtArgs> | null
8971
+ /**
8972
+ * Choose, which related nodes to fetch as well
8973
+ */
8974
+ include?: MessageFileInclude<ExtArgs> | null
8975
+ where?: MessageFileWhereInput
8976
+ orderBy?: MessageFileOrderByWithRelationInput | MessageFileOrderByWithRelationInput[]
8977
+ cursor?: MessageFileWhereUniqueInput
8978
+ take?: number
8979
+ skip?: number
8980
+ distinct?: MessageFileScalarFieldEnum | MessageFileScalarFieldEnum[]
8981
+ }
8982
+
8983
+ /**
8984
+ * Answer without action
8985
+ */
8986
+ export type AnswerDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8987
+ /**
8988
+ * Select specific fields to fetch from the Answer
8989
+ */
8990
+ select?: AnswerSelect<ExtArgs> | null
8991
+ /**
8992
+ * Omit specific fields from the Answer
8993
+ */
8994
+ omit?: AnswerOmit<ExtArgs> | null
8995
+ /**
8996
+ * Choose, which related nodes to fetch as well
8997
+ */
8998
+ include?: AnswerInclude<ExtArgs> | null
8999
+ }
9000
+
9001
+
9002
+ /**
9003
+ * Model MessageFile
9004
+ */
9005
+
9006
+ export type AggregateMessageFile = {
9007
+ _count: MessageFileCountAggregateOutputType | null
9008
+ _min: MessageFileMinAggregateOutputType | null
9009
+ _max: MessageFileMaxAggregateOutputType | null
9010
+ }
9011
+
9012
+ export type MessageFileMinAggregateOutputType = {
9013
+ id: string | null
9014
+ answerId: string | null
9015
+ fileName: string | null
9016
+ fileType: string | null
9017
+ base64Data: string | null
9018
+ uploadedAt: Date | null
9019
+ }
9020
+
9021
+ export type MessageFileMaxAggregateOutputType = {
9022
+ id: string | null
9023
+ answerId: string | null
9024
+ fileName: string | null
9025
+ fileType: string | null
9026
+ base64Data: string | null
9027
+ uploadedAt: Date | null
9028
+ }
9029
+
9030
+ export type MessageFileCountAggregateOutputType = {
9031
+ id: number
9032
+ answerId: number
9033
+ fileName: number
9034
+ fileType: number
9035
+ base64Data: number
9036
+ uploadedAt: number
9037
+ _all: number
9038
+ }
9039
+
9040
+
9041
+ export type MessageFileMinAggregateInputType = {
9042
+ id?: true
9043
+ answerId?: true
9044
+ fileName?: true
9045
+ fileType?: true
9046
+ base64Data?: true
9047
+ uploadedAt?: true
9048
+ }
9049
+
9050
+ export type MessageFileMaxAggregateInputType = {
9051
+ id?: true
9052
+ answerId?: true
9053
+ fileName?: true
9054
+ fileType?: true
9055
+ base64Data?: true
9056
+ uploadedAt?: true
9057
+ }
9058
+
9059
+ export type MessageFileCountAggregateInputType = {
9060
+ id?: true
9061
+ answerId?: true
9062
+ fileName?: true
9063
+ fileType?: true
9064
+ base64Data?: true
9065
+ uploadedAt?: true
9066
+ _all?: true
9067
+ }
9068
+
9069
+ export type MessageFileAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9070
+ /**
9071
+ * Filter which MessageFile to aggregate.
9072
+ */
9073
+ where?: MessageFileWhereInput
9074
+ /**
9075
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
9076
+ *
9077
+ * Determine the order of MessageFiles to fetch.
9078
+ */
9079
+ orderBy?: MessageFileOrderByWithRelationInput | MessageFileOrderByWithRelationInput[]
9080
+ /**
9081
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
9082
+ *
9083
+ * Sets the start position
9084
+ */
9085
+ cursor?: MessageFileWhereUniqueInput
9086
+ /**
9087
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
9088
+ *
9089
+ * Take `±n` MessageFiles from the position of the cursor.
9090
+ */
9091
+ take?: number
9092
+ /**
9093
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
9094
+ *
9095
+ * Skip the first `n` MessageFiles.
9096
+ */
9097
+ skip?: number
9098
+ /**
9099
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
9100
+ *
9101
+ * Count returned MessageFiles
9102
+ **/
9103
+ _count?: true | MessageFileCountAggregateInputType
9104
+ /**
9105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
9106
+ *
9107
+ * Select which fields to find the minimum value
9108
+ **/
9109
+ _min?: MessageFileMinAggregateInputType
9110
+ /**
9111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
9112
+ *
9113
+ * Select which fields to find the maximum value
9114
+ **/
9115
+ _max?: MessageFileMaxAggregateInputType
9116
+ }
9117
+
9118
+ export type GetMessageFileAggregateType<T extends MessageFileAggregateArgs> = {
9119
+ [P in keyof T & keyof AggregateMessageFile]: P extends '_count' | 'count'
9120
+ ? T[P] extends true
9121
+ ? number
9122
+ : GetScalarType<T[P], AggregateMessageFile[P]>
9123
+ : GetScalarType<T[P], AggregateMessageFile[P]>
9124
+ }
9125
+
9126
+
9127
+
9128
+
9129
+ export type MessageFileGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9130
+ where?: MessageFileWhereInput
9131
+ orderBy?: MessageFileOrderByWithAggregationInput | MessageFileOrderByWithAggregationInput[]
9132
+ by: MessageFileScalarFieldEnum[] | MessageFileScalarFieldEnum
9133
+ having?: MessageFileScalarWhereWithAggregatesInput
9134
+ take?: number
9135
+ skip?: number
9136
+ _count?: MessageFileCountAggregateInputType | true
9137
+ _min?: MessageFileMinAggregateInputType
9138
+ _max?: MessageFileMaxAggregateInputType
9139
+ }
9140
+
9141
+ export type MessageFileGroupByOutputType = {
9142
+ id: string
9143
+ answerId: string
9144
+ fileName: string
9145
+ fileType: string
9146
+ base64Data: string
9147
+ uploadedAt: Date
9148
+ _count: MessageFileCountAggregateOutputType | null
9149
+ _min: MessageFileMinAggregateOutputType | null
9150
+ _max: MessageFileMaxAggregateOutputType | null
9151
+ }
9152
+
9153
+ type GetMessageFileGroupByPayload<T extends MessageFileGroupByArgs> = Prisma.PrismaPromise<
9154
+ Array<
9155
+ PickEnumerable<MessageFileGroupByOutputType, T['by']> &
9156
+ {
9157
+ [P in ((keyof T) & (keyof MessageFileGroupByOutputType))]: P extends '_count'
9158
+ ? T[P] extends boolean
9159
+ ? number
9160
+ : GetScalarType<T[P], MessageFileGroupByOutputType[P]>
9161
+ : GetScalarType<T[P], MessageFileGroupByOutputType[P]>
9162
+ }
9163
+ >
9164
+ >
9165
+
9166
+
9167
+ export type MessageFileSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
9168
+ id?: boolean
9169
+ answerId?: boolean
9170
+ fileName?: boolean
9171
+ fileType?: boolean
9172
+ base64Data?: boolean
9173
+ uploadedAt?: boolean
9174
+ answer?: boolean | AnswerDefaultArgs<ExtArgs>
9175
+ }, ExtArgs["result"]["messageFile"]>
9176
+
9177
+ export type MessageFileSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
9178
+ id?: boolean
9179
+ answerId?: boolean
9180
+ fileName?: boolean
9181
+ fileType?: boolean
9182
+ base64Data?: boolean
9183
+ uploadedAt?: boolean
9184
+ answer?: boolean | AnswerDefaultArgs<ExtArgs>
9185
+ }, ExtArgs["result"]["messageFile"]>
9186
+
9187
+ export type MessageFileSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
9188
+ id?: boolean
9189
+ answerId?: boolean
9190
+ fileName?: boolean
9191
+ fileType?: boolean
9192
+ base64Data?: boolean
9193
+ uploadedAt?: boolean
9194
+ answer?: boolean | AnswerDefaultArgs<ExtArgs>
9195
+ }, ExtArgs["result"]["messageFile"]>
9196
+
9197
+ export type MessageFileSelectScalar = {
9198
+ id?: boolean
9199
+ answerId?: boolean
9200
+ fileName?: boolean
9201
+ fileType?: boolean
9202
+ base64Data?: boolean
9203
+ uploadedAt?: boolean
9204
+ }
9205
+
9206
+ export type MessageFileOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "answerId" | "fileName" | "fileType" | "base64Data" | "uploadedAt", ExtArgs["result"]["messageFile"]>
9207
+ export type MessageFileInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9208
+ answer?: boolean | AnswerDefaultArgs<ExtArgs>
9209
+ }
9210
+ export type MessageFileIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9211
+ answer?: boolean | AnswerDefaultArgs<ExtArgs>
9212
+ }
9213
+ export type MessageFileIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9214
+ answer?: boolean | AnswerDefaultArgs<ExtArgs>
9215
+ }
9216
+
9217
+ export type $MessageFilePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9218
+ name: "MessageFile"
9219
+ objects: {
9220
+ answer: Prisma.$AnswerPayload<ExtArgs>
9221
+ }
9222
+ scalars: $Extensions.GetPayloadResult<{
9223
+ id: string
9224
+ answerId: string
9225
+ fileName: string
9226
+ fileType: string
9227
+ base64Data: string
9228
+ uploadedAt: Date
9229
+ }, ExtArgs["result"]["messageFile"]>
9230
+ composites: {}
9231
+ }
9232
+
9233
+ type MessageFileGetPayload<S extends boolean | null | undefined | MessageFileDefaultArgs> = $Result.GetResult<Prisma.$MessageFilePayload, S>
9234
+
9235
+ type MessageFileCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
9236
+ Omit<MessageFileFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
9237
+ select?: MessageFileCountAggregateInputType | true
9238
+ }
9239
+
9240
+ export interface MessageFileDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
9241
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MessageFile'], meta: { name: 'MessageFile' } }
9242
+ /**
9243
+ * Find zero or one MessageFile that matches the filter.
9244
+ * @param {MessageFileFindUniqueArgs} args - Arguments to find a MessageFile
9245
+ * @example
9246
+ * // Get one MessageFile
9247
+ * const messageFile = await prisma.messageFile.findUnique({
9248
+ * where: {
9249
+ * // ... provide filter here
9250
+ * }
9251
+ * })
9252
+ */
9253
+ findUnique<T extends MessageFileFindUniqueArgs>(args: SelectSubset<T, MessageFileFindUniqueArgs<ExtArgs>>): Prisma__MessageFileClient<$Result.GetResult<Prisma.$MessageFilePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
9254
+
9255
+ /**
9256
+ * Find one MessageFile that matches the filter or throw an error with `error.code='P2025'`
9257
+ * if no matches were found.
9258
+ * @param {MessageFileFindUniqueOrThrowArgs} args - Arguments to find a MessageFile
9259
+ * @example
9260
+ * // Get one MessageFile
9261
+ * const messageFile = await prisma.messageFile.findUniqueOrThrow({
9262
+ * where: {
9263
+ * // ... provide filter here
9264
+ * }
9265
+ * })
9266
+ */
9267
+ findUniqueOrThrow<T extends MessageFileFindUniqueOrThrowArgs>(args: SelectSubset<T, MessageFileFindUniqueOrThrowArgs<ExtArgs>>): Prisma__MessageFileClient<$Result.GetResult<Prisma.$MessageFilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
9268
+
9269
+ /**
9270
+ * Find the first MessageFile that matches the filter.
9271
+ * Note, that providing `undefined` is treated as the value not being there.
9272
+ * Read more here: https://pris.ly/d/null-undefined
9273
+ * @param {MessageFileFindFirstArgs} args - Arguments to find a MessageFile
9274
+ * @example
9275
+ * // Get one MessageFile
9276
+ * const messageFile = await prisma.messageFile.findFirst({
9277
+ * where: {
9278
+ * // ... provide filter here
9279
+ * }
9280
+ * })
9281
+ */
9282
+ findFirst<T extends MessageFileFindFirstArgs>(args?: SelectSubset<T, MessageFileFindFirstArgs<ExtArgs>>): Prisma__MessageFileClient<$Result.GetResult<Prisma.$MessageFilePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
9283
+
9284
+ /**
9285
+ * Find the first MessageFile that matches the filter or
9286
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
9287
+ * Note, that providing `undefined` is treated as the value not being there.
9288
+ * Read more here: https://pris.ly/d/null-undefined
9289
+ * @param {MessageFileFindFirstOrThrowArgs} args - Arguments to find a MessageFile
9290
+ * @example
9291
+ * // Get one MessageFile
9292
+ * const messageFile = await prisma.messageFile.findFirstOrThrow({
9293
+ * where: {
9294
+ * // ... provide filter here
9295
+ * }
9296
+ * })
9297
+ */
9298
+ findFirstOrThrow<T extends MessageFileFindFirstOrThrowArgs>(args?: SelectSubset<T, MessageFileFindFirstOrThrowArgs<ExtArgs>>): Prisma__MessageFileClient<$Result.GetResult<Prisma.$MessageFilePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
9299
+
9300
+ /**
9301
+ * Find zero or more MessageFiles that matches the filter.
9302
+ * Note, that providing `undefined` is treated as the value not being there.
9303
+ * Read more here: https://pris.ly/d/null-undefined
9304
+ * @param {MessageFileFindManyArgs} args - Arguments to filter and select certain fields only.
9305
+ * @example
9306
+ * // Get all MessageFiles
9307
+ * const messageFiles = await prisma.messageFile.findMany()
9308
+ *
9309
+ * // Get first 10 MessageFiles
9310
+ * const messageFiles = await prisma.messageFile.findMany({ take: 10 })
9311
+ *
9312
+ * // Only select the `id`
9313
+ * const messageFileWithIdOnly = await prisma.messageFile.findMany({ select: { id: true } })
9314
+ *
9315
+ */
9316
+ findMany<T extends MessageFileFindManyArgs>(args?: SelectSubset<T, MessageFileFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MessageFilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
9317
+
9318
+ /**
9319
+ * Create a MessageFile.
9320
+ * @param {MessageFileCreateArgs} args - Arguments to create a MessageFile.
9321
+ * @example
9322
+ * // Create one MessageFile
9323
+ * const MessageFile = await prisma.messageFile.create({
9324
+ * data: {
9325
+ * // ... data to create a MessageFile
9326
+ * }
9327
+ * })
9328
+ *
9329
+ */
9330
+ create<T extends MessageFileCreateArgs>(args: SelectSubset<T, MessageFileCreateArgs<ExtArgs>>): Prisma__MessageFileClient<$Result.GetResult<Prisma.$MessageFilePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
9331
+
9332
+ /**
9333
+ * Create many MessageFiles.
9334
+ * @param {MessageFileCreateManyArgs} args - Arguments to create many MessageFiles.
9335
+ * @example
9336
+ * // Create many MessageFiles
9337
+ * const messageFile = await prisma.messageFile.createMany({
9338
+ * data: [
9339
+ * // ... provide data here
9340
+ * ]
9341
+ * })
9342
+ *
9343
+ */
9344
+ createMany<T extends MessageFileCreateManyArgs>(args?: SelectSubset<T, MessageFileCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
9345
+
9346
+ /**
9347
+ * Create many MessageFiles and returns the data saved in the database.
9348
+ * @param {MessageFileCreateManyAndReturnArgs} args - Arguments to create many MessageFiles.
9349
+ * @example
9350
+ * // Create many MessageFiles
9351
+ * const messageFile = await prisma.messageFile.createManyAndReturn({
9352
+ * data: [
9353
+ * // ... provide data here
9354
+ * ]
9355
+ * })
9356
+ *
9357
+ * // Create many MessageFiles and only return the `id`
9358
+ * const messageFileWithIdOnly = await prisma.messageFile.createManyAndReturn({
9359
+ * select: { id: true },
9360
+ * data: [
9361
+ * // ... provide data here
9362
+ * ]
9363
+ * })
9364
+ * Note, that providing `undefined` is treated as the value not being there.
9365
+ * Read more here: https://pris.ly/d/null-undefined
9366
+ *
9367
+ */
9368
+ createManyAndReturn<T extends MessageFileCreateManyAndReturnArgs>(args?: SelectSubset<T, MessageFileCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MessageFilePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
9369
+
9370
+ /**
9371
+ * Delete a MessageFile.
9372
+ * @param {MessageFileDeleteArgs} args - Arguments to delete one MessageFile.
9373
+ * @example
9374
+ * // Delete one MessageFile
9375
+ * const MessageFile = await prisma.messageFile.delete({
9376
+ * where: {
9377
+ * // ... filter to delete one MessageFile
9378
+ * }
9379
+ * })
9380
+ *
9381
+ */
9382
+ delete<T extends MessageFileDeleteArgs>(args: SelectSubset<T, MessageFileDeleteArgs<ExtArgs>>): Prisma__MessageFileClient<$Result.GetResult<Prisma.$MessageFilePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
9383
+
9384
+ /**
9385
+ * Update one MessageFile.
9386
+ * @param {MessageFileUpdateArgs} args - Arguments to update one MessageFile.
9387
+ * @example
9388
+ * // Update one MessageFile
9389
+ * const messageFile = await prisma.messageFile.update({
9390
+ * where: {
9391
+ * // ... provide filter here
9392
+ * },
9393
+ * data: {
9394
+ * // ... provide data here
9395
+ * }
9396
+ * })
9397
+ *
9398
+ */
9399
+ update<T extends MessageFileUpdateArgs>(args: SelectSubset<T, MessageFileUpdateArgs<ExtArgs>>): Prisma__MessageFileClient<$Result.GetResult<Prisma.$MessageFilePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
9400
+
9401
+ /**
9402
+ * Delete zero or more MessageFiles.
9403
+ * @param {MessageFileDeleteManyArgs} args - Arguments to filter MessageFiles to delete.
9404
+ * @example
9405
+ * // Delete a few MessageFiles
9406
+ * const { count } = await prisma.messageFile.deleteMany({
9407
+ * where: {
9408
+ * // ... provide filter here
9409
+ * }
9410
+ * })
9411
+ *
9412
+ */
9413
+ deleteMany<T extends MessageFileDeleteManyArgs>(args?: SelectSubset<T, MessageFileDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
9414
+
9415
+ /**
9416
+ * Update zero or more MessageFiles.
9417
+ * Note, that providing `undefined` is treated as the value not being there.
9418
+ * Read more here: https://pris.ly/d/null-undefined
9419
+ * @param {MessageFileUpdateManyArgs} args - Arguments to update one or more rows.
9420
+ * @example
9421
+ * // Update many MessageFiles
9422
+ * const messageFile = await prisma.messageFile.updateMany({
9423
+ * where: {
9424
+ * // ... provide filter here
9425
+ * },
9426
+ * data: {
9427
+ * // ... provide data here
9428
+ * }
9429
+ * })
9430
+ *
9431
+ */
9432
+ updateMany<T extends MessageFileUpdateManyArgs>(args: SelectSubset<T, MessageFileUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
9433
+
9434
+ /**
9435
+ * Update zero or more MessageFiles and returns the data updated in the database.
9436
+ * @param {MessageFileUpdateManyAndReturnArgs} args - Arguments to update many MessageFiles.
9437
+ * @example
9438
+ * // Update many MessageFiles
9439
+ * const messageFile = await prisma.messageFile.updateManyAndReturn({
9440
+ * where: {
9441
+ * // ... provide filter here
9442
+ * },
9443
+ * data: [
9444
+ * // ... provide data here
9445
+ * ]
9446
+ * })
9447
+ *
9448
+ * // Update zero or more MessageFiles and only return the `id`
9449
+ * const messageFileWithIdOnly = await prisma.messageFile.updateManyAndReturn({
9450
+ * select: { id: true },
9451
+ * where: {
9452
+ * // ... provide filter here
9453
+ * },
9454
+ * data: [
9455
+ * // ... provide data here
9456
+ * ]
9457
+ * })
9458
+ * Note, that providing `undefined` is treated as the value not being there.
9459
+ * Read more here: https://pris.ly/d/null-undefined
9460
+ *
9461
+ */
9462
+ updateManyAndReturn<T extends MessageFileUpdateManyAndReturnArgs>(args: SelectSubset<T, MessageFileUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MessageFilePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
9463
+
9464
+ /**
9465
+ * Create or update one MessageFile.
9466
+ * @param {MessageFileUpsertArgs} args - Arguments to update or create a MessageFile.
9467
+ * @example
9468
+ * // Update or create a MessageFile
9469
+ * const messageFile = await prisma.messageFile.upsert({
9470
+ * create: {
9471
+ * // ... data to create a MessageFile
9472
+ * },
9473
+ * update: {
9474
+ * // ... in case it already exists, update
9475
+ * },
9476
+ * where: {
9477
+ * // ... the filter for the MessageFile we want to update
9478
+ * }
9479
+ * })
9480
+ */
9481
+ upsert<T extends MessageFileUpsertArgs>(args: SelectSubset<T, MessageFileUpsertArgs<ExtArgs>>): Prisma__MessageFileClient<$Result.GetResult<Prisma.$MessageFilePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
9482
+
9483
+
9484
+ /**
9485
+ * Count the number of MessageFiles.
9486
+ * Note, that providing `undefined` is treated as the value not being there.
9487
+ * Read more here: https://pris.ly/d/null-undefined
9488
+ * @param {MessageFileCountArgs} args - Arguments to filter MessageFiles to count.
9489
+ * @example
9490
+ * // Count the number of MessageFiles
9491
+ * const count = await prisma.messageFile.count({
9492
+ * where: {
9493
+ * // ... the filter for the MessageFiles we want to count
9494
+ * }
9495
+ * })
9496
+ **/
9497
+ count<T extends MessageFileCountArgs>(
9498
+ args?: Subset<T, MessageFileCountArgs>,
9499
+ ): Prisma.PrismaPromise<
9500
+ T extends $Utils.Record<'select', any>
9501
+ ? T['select'] extends true
9502
+ ? number
9503
+ : GetScalarType<T['select'], MessageFileCountAggregateOutputType>
9504
+ : number
9505
+ >
9506
+
9507
+ /**
9508
+ * Allows you to perform aggregations operations on a MessageFile.
9509
+ * Note, that providing `undefined` is treated as the value not being there.
9510
+ * Read more here: https://pris.ly/d/null-undefined
9511
+ * @param {MessageFileAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
9512
+ * @example
9513
+ * // Ordered by age ascending
9514
+ * // Where email contains prisma.io
9515
+ * // Limited to the 10 users
9516
+ * const aggregations = await prisma.user.aggregate({
9517
+ * _avg: {
9518
+ * age: true,
9519
+ * },
9520
+ * where: {
9521
+ * email: {
9522
+ * contains: "prisma.io",
9523
+ * },
9524
+ * },
9525
+ * orderBy: {
9526
+ * age: "asc",
9527
+ * },
9528
+ * take: 10,
9529
+ * })
9530
+ **/
9531
+ aggregate<T extends MessageFileAggregateArgs>(args: Subset<T, MessageFileAggregateArgs>): Prisma.PrismaPromise<GetMessageFileAggregateType<T>>
9532
+
9533
+ /**
9534
+ * Group by MessageFile.
9535
+ * Note, that providing `undefined` is treated as the value not being there.
9536
+ * Read more here: https://pris.ly/d/null-undefined
9537
+ * @param {MessageFileGroupByArgs} args - Group by arguments.
9538
+ * @example
9539
+ * // Group by city, order by createdAt, get count
9540
+ * const result = await prisma.user.groupBy({
9541
+ * by: ['city', 'createdAt'],
9542
+ * orderBy: {
9543
+ * createdAt: true
9544
+ * },
9545
+ * _count: {
9546
+ * _all: true
9547
+ * },
9548
+ * })
9549
+ *
9550
+ **/
9551
+ groupBy<
9552
+ T extends MessageFileGroupByArgs,
9553
+ HasSelectOrTake extends Or<
9554
+ Extends<'skip', Keys<T>>,
9555
+ Extends<'take', Keys<T>>
9556
+ >,
9557
+ OrderByArg extends True extends HasSelectOrTake
9558
+ ? { orderBy: MessageFileGroupByArgs['orderBy'] }
9559
+ : { orderBy?: MessageFileGroupByArgs['orderBy'] },
9560
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
9561
+ ByFields extends MaybeTupleToUnion<T['by']>,
9562
+ ByValid extends Has<ByFields, OrderFields>,
9563
+ HavingFields extends GetHavingFields<T['having']>,
9564
+ HavingValid extends Has<ByFields, HavingFields>,
9565
+ ByEmpty extends T['by'] extends never[] ? True : False,
9566
+ InputErrors extends ByEmpty extends True
9567
+ ? `Error: "by" must not be empty.`
9568
+ : HavingValid extends False
9569
+ ? {
9570
+ [P in HavingFields]: P extends ByFields
9571
+ ? never
9572
+ : P extends string
9573
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
9574
+ : [
9575
+ Error,
9576
+ 'Field ',
9577
+ P,
9578
+ ` in "having" needs to be provided in "by"`,
9579
+ ]
9580
+ }[HavingFields]
9581
+ : 'take' extends Keys<T>
9582
+ ? 'orderBy' extends Keys<T>
9583
+ ? ByValid extends True
9584
+ ? {}
9585
+ : {
9586
+ [P in OrderFields]: P extends ByFields
9587
+ ? never
9588
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
9589
+ }[OrderFields]
9590
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
9591
+ : 'skip' extends Keys<T>
9592
+ ? 'orderBy' extends Keys<T>
9593
+ ? ByValid extends True
9594
+ ? {}
9595
+ : {
9596
+ [P in OrderFields]: P extends ByFields
9597
+ ? never
9598
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
9599
+ }[OrderFields]
9600
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
9601
+ : ByValid extends True
9602
+ ? {}
9603
+ : {
9604
+ [P in OrderFields]: P extends ByFields
9605
+ ? never
9606
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
9607
+ }[OrderFields]
9608
+ >(args: SubsetIntersection<T, MessageFileGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMessageFileGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
9609
+ /**
9610
+ * Fields of the MessageFile model
9611
+ */
9612
+ readonly fields: MessageFileFieldRefs;
9613
+ }
9614
+
9615
+ /**
9616
+ * The delegate class that acts as a "Promise-like" for MessageFile.
9617
+ * Why is this prefixed with `Prisma__`?
9618
+ * Because we want to prevent naming conflicts as mentioned in
9619
+ * https://github.com/prisma/prisma-client-js/issues/707
9620
+ */
9621
+ export interface Prisma__MessageFileClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
9622
+ readonly [Symbol.toStringTag]: "PrismaPromise"
9623
+ answer<T extends AnswerDefaultArgs<ExtArgs> = {}>(args?: Subset<T, AnswerDefaultArgs<ExtArgs>>): Prisma__AnswerClient<$Result.GetResult<Prisma.$AnswerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
9624
+ /**
9625
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
9626
+ * @param onfulfilled The callback to execute when the Promise is resolved.
9627
+ * @param onrejected The callback to execute when the Promise is rejected.
9628
+ * @returns A Promise for the completion of which ever callback is executed.
9629
+ */
9630
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
9631
+ /**
9632
+ * Attaches a callback for only the rejection of the Promise.
9633
+ * @param onrejected The callback to execute when the Promise is rejected.
9634
+ * @returns A Promise for the completion of the callback.
9635
+ */
9636
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
9637
+ /**
9638
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
9639
+ * resolved value cannot be modified from the callback.
9640
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
9641
+ * @returns A Promise for the completion of the callback.
9642
+ */
9643
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
9644
+ }
9645
+
9646
+
9647
+
9648
+
9649
+ /**
9650
+ * Fields of the MessageFile model
9651
+ */
9652
+ interface MessageFileFieldRefs {
9653
+ readonly id: FieldRef<"MessageFile", 'String'>
9654
+ readonly answerId: FieldRef<"MessageFile", 'String'>
9655
+ readonly fileName: FieldRef<"MessageFile", 'String'>
9656
+ readonly fileType: FieldRef<"MessageFile", 'String'>
9657
+ readonly base64Data: FieldRef<"MessageFile", 'String'>
9658
+ readonly uploadedAt: FieldRef<"MessageFile", 'DateTime'>
9659
+ }
9660
+
9661
+
9662
+ // Custom InputTypes
9663
+ /**
9664
+ * MessageFile findUnique
9665
+ */
9666
+ export type MessageFileFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9667
+ /**
9668
+ * Select specific fields to fetch from the MessageFile
9669
+ */
9670
+ select?: MessageFileSelect<ExtArgs> | null
9671
+ /**
9672
+ * Omit specific fields from the MessageFile
9673
+ */
9674
+ omit?: MessageFileOmit<ExtArgs> | null
9675
+ /**
9676
+ * Choose, which related nodes to fetch as well
9677
+ */
9678
+ include?: MessageFileInclude<ExtArgs> | null
9679
+ /**
9680
+ * Filter, which MessageFile to fetch.
9681
+ */
9682
+ where: MessageFileWhereUniqueInput
9683
+ }
9684
+
9685
+ /**
9686
+ * MessageFile findUniqueOrThrow
9687
+ */
9688
+ export type MessageFileFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9689
+ /**
9690
+ * Select specific fields to fetch from the MessageFile
9691
+ */
9692
+ select?: MessageFileSelect<ExtArgs> | null
9693
+ /**
9694
+ * Omit specific fields from the MessageFile
9695
+ */
9696
+ omit?: MessageFileOmit<ExtArgs> | null
9697
+ /**
9698
+ * Choose, which related nodes to fetch as well
9699
+ */
9700
+ include?: MessageFileInclude<ExtArgs> | null
9701
+ /**
9702
+ * Filter, which MessageFile to fetch.
9703
+ */
9704
+ where: MessageFileWhereUniqueInput
9705
+ }
9706
+
9707
+ /**
9708
+ * MessageFile findFirst
9709
+ */
9710
+ export type MessageFileFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9711
+ /**
9712
+ * Select specific fields to fetch from the MessageFile
9713
+ */
9714
+ select?: MessageFileSelect<ExtArgs> | null
9715
+ /**
9716
+ * Omit specific fields from the MessageFile
9717
+ */
9718
+ omit?: MessageFileOmit<ExtArgs> | null
9719
+ /**
9720
+ * Choose, which related nodes to fetch as well
9721
+ */
9722
+ include?: MessageFileInclude<ExtArgs> | null
9723
+ /**
9724
+ * Filter, which MessageFile to fetch.
9725
+ */
9726
+ where?: MessageFileWhereInput
9727
+ /**
9728
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
9729
+ *
9730
+ * Determine the order of MessageFiles to fetch.
9731
+ */
9732
+ orderBy?: MessageFileOrderByWithRelationInput | MessageFileOrderByWithRelationInput[]
9733
+ /**
9734
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
9735
+ *
9736
+ * Sets the position for searching for MessageFiles.
9737
+ */
9738
+ cursor?: MessageFileWhereUniqueInput
9739
+ /**
9740
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
9741
+ *
9742
+ * Take `±n` MessageFiles from the position of the cursor.
9743
+ */
9744
+ take?: number
9745
+ /**
9746
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
9747
+ *
9748
+ * Skip the first `n` MessageFiles.
9749
+ */
9750
+ skip?: number
9751
+ /**
9752
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
9753
+ *
9754
+ * Filter by unique combinations of MessageFiles.
9755
+ */
9756
+ distinct?: MessageFileScalarFieldEnum | MessageFileScalarFieldEnum[]
9757
+ }
9758
+
9759
+ /**
9760
+ * MessageFile findFirstOrThrow
9761
+ */
9762
+ export type MessageFileFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9763
+ /**
9764
+ * Select specific fields to fetch from the MessageFile
9765
+ */
9766
+ select?: MessageFileSelect<ExtArgs> | null
9767
+ /**
9768
+ * Omit specific fields from the MessageFile
9769
+ */
9770
+ omit?: MessageFileOmit<ExtArgs> | null
9771
+ /**
9772
+ * Choose, which related nodes to fetch as well
9773
+ */
9774
+ include?: MessageFileInclude<ExtArgs> | null
9775
+ /**
9776
+ * Filter, which MessageFile to fetch.
9777
+ */
9778
+ where?: MessageFileWhereInput
9779
+ /**
9780
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
9781
+ *
9782
+ * Determine the order of MessageFiles to fetch.
9783
+ */
9784
+ orderBy?: MessageFileOrderByWithRelationInput | MessageFileOrderByWithRelationInput[]
9785
+ /**
9786
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
9787
+ *
9788
+ * Sets the position for searching for MessageFiles.
9789
+ */
9790
+ cursor?: MessageFileWhereUniqueInput
9791
+ /**
9792
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
9793
+ *
9794
+ * Take `±n` MessageFiles from the position of the cursor.
9795
+ */
9796
+ take?: number
9797
+ /**
9798
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
9799
+ *
9800
+ * Skip the first `n` MessageFiles.
9801
+ */
9802
+ skip?: number
9803
+ /**
9804
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
9805
+ *
9806
+ * Filter by unique combinations of MessageFiles.
9807
+ */
9808
+ distinct?: MessageFileScalarFieldEnum | MessageFileScalarFieldEnum[]
9809
+ }
9810
+
9811
+ /**
9812
+ * MessageFile findMany
9813
+ */
9814
+ export type MessageFileFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9815
+ /**
9816
+ * Select specific fields to fetch from the MessageFile
9817
+ */
9818
+ select?: MessageFileSelect<ExtArgs> | null
9819
+ /**
9820
+ * Omit specific fields from the MessageFile
9821
+ */
9822
+ omit?: MessageFileOmit<ExtArgs> | null
9823
+ /**
9824
+ * Choose, which related nodes to fetch as well
9825
+ */
9826
+ include?: MessageFileInclude<ExtArgs> | null
9827
+ /**
9828
+ * Filter, which MessageFiles to fetch.
9829
+ */
9830
+ where?: MessageFileWhereInput
9831
+ /**
9832
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
9833
+ *
9834
+ * Determine the order of MessageFiles to fetch.
9835
+ */
9836
+ orderBy?: MessageFileOrderByWithRelationInput | MessageFileOrderByWithRelationInput[]
9837
+ /**
9838
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
9839
+ *
9840
+ * Sets the position for listing MessageFiles.
9841
+ */
9842
+ cursor?: MessageFileWhereUniqueInput
9843
+ /**
9844
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
9845
+ *
9846
+ * Take `±n` MessageFiles from the position of the cursor.
9847
+ */
9848
+ take?: number
9849
+ /**
9850
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
9851
+ *
9852
+ * Skip the first `n` MessageFiles.
9853
+ */
9854
+ skip?: number
9855
+ distinct?: MessageFileScalarFieldEnum | MessageFileScalarFieldEnum[]
9856
+ }
9857
+
9858
+ /**
9859
+ * MessageFile create
9860
+ */
9861
+ export type MessageFileCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9862
+ /**
9863
+ * Select specific fields to fetch from the MessageFile
9864
+ */
9865
+ select?: MessageFileSelect<ExtArgs> | null
9866
+ /**
9867
+ * Omit specific fields from the MessageFile
9868
+ */
9869
+ omit?: MessageFileOmit<ExtArgs> | null
9870
+ /**
9871
+ * Choose, which related nodes to fetch as well
9872
+ */
9873
+ include?: MessageFileInclude<ExtArgs> | null
9874
+ /**
9875
+ * The data needed to create a MessageFile.
9876
+ */
9877
+ data: XOR<MessageFileCreateInput, MessageFileUncheckedCreateInput>
9878
+ }
9879
+
9880
+ /**
9881
+ * MessageFile createMany
9882
+ */
9883
+ export type MessageFileCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9884
+ /**
9885
+ * The data used to create many MessageFiles.
9886
+ */
9887
+ data: MessageFileCreateManyInput | MessageFileCreateManyInput[]
9888
+ skipDuplicates?: boolean
9889
+ }
9890
+
9891
+ /**
9892
+ * MessageFile createManyAndReturn
9893
+ */
9894
+ export type MessageFileCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9895
+ /**
9896
+ * Select specific fields to fetch from the MessageFile
9897
+ */
9898
+ select?: MessageFileSelectCreateManyAndReturn<ExtArgs> | null
9899
+ /**
9900
+ * Omit specific fields from the MessageFile
9901
+ */
9902
+ omit?: MessageFileOmit<ExtArgs> | null
9903
+ /**
9904
+ * The data used to create many MessageFiles.
9905
+ */
9906
+ data: MessageFileCreateManyInput | MessageFileCreateManyInput[]
9907
+ skipDuplicates?: boolean
9908
+ /**
9909
+ * Choose, which related nodes to fetch as well
9910
+ */
9911
+ include?: MessageFileIncludeCreateManyAndReturn<ExtArgs> | null
9912
+ }
9913
+
9914
+ /**
9915
+ * MessageFile update
9916
+ */
9917
+ export type MessageFileUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9918
+ /**
9919
+ * Select specific fields to fetch from the MessageFile
9920
+ */
9921
+ select?: MessageFileSelect<ExtArgs> | null
9922
+ /**
9923
+ * Omit specific fields from the MessageFile
9924
+ */
9925
+ omit?: MessageFileOmit<ExtArgs> | null
9926
+ /**
9927
+ * Choose, which related nodes to fetch as well
9928
+ */
9929
+ include?: MessageFileInclude<ExtArgs> | null
9930
+ /**
9931
+ * The data needed to update a MessageFile.
9932
+ */
9933
+ data: XOR<MessageFileUpdateInput, MessageFileUncheckedUpdateInput>
9934
+ /**
9935
+ * Choose, which MessageFile to update.
9936
+ */
9937
+ where: MessageFileWhereUniqueInput
9938
+ }
9939
+
9940
+ /**
9941
+ * MessageFile updateMany
9942
+ */
9943
+ export type MessageFileUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9944
+ /**
9945
+ * The data used to update MessageFiles.
9946
+ */
9947
+ data: XOR<MessageFileUpdateManyMutationInput, MessageFileUncheckedUpdateManyInput>
9948
+ /**
9949
+ * Filter which MessageFiles to update
9950
+ */
9951
+ where?: MessageFileWhereInput
9952
+ /**
9953
+ * Limit how many MessageFiles to update.
9954
+ */
9955
+ limit?: number
9956
+ }
9957
+
9958
+ /**
9959
+ * MessageFile updateManyAndReturn
9960
+ */
9961
+ export type MessageFileUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9962
+ /**
9963
+ * Select specific fields to fetch from the MessageFile
9964
+ */
9965
+ select?: MessageFileSelectUpdateManyAndReturn<ExtArgs> | null
9966
+ /**
9967
+ * Omit specific fields from the MessageFile
9968
+ */
9969
+ omit?: MessageFileOmit<ExtArgs> | null
9970
+ /**
9971
+ * The data used to update MessageFiles.
9972
+ */
9973
+ data: XOR<MessageFileUpdateManyMutationInput, MessageFileUncheckedUpdateManyInput>
9974
+ /**
9975
+ * Filter which MessageFiles to update
9976
+ */
9977
+ where?: MessageFileWhereInput
9978
+ /**
9979
+ * Limit how many MessageFiles to update.
9980
+ */
9981
+ limit?: number
9982
+ /**
9983
+ * Choose, which related nodes to fetch as well
9984
+ */
9985
+ include?: MessageFileIncludeUpdateManyAndReturn<ExtArgs> | null
9986
+ }
9987
+
9988
+ /**
9989
+ * MessageFile upsert
9990
+ */
9991
+ export type MessageFileUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9992
+ /**
9993
+ * Select specific fields to fetch from the MessageFile
9994
+ */
9995
+ select?: MessageFileSelect<ExtArgs> | null
9996
+ /**
9997
+ * Omit specific fields from the MessageFile
9998
+ */
9999
+ omit?: MessageFileOmit<ExtArgs> | null
10000
+ /**
10001
+ * Choose, which related nodes to fetch as well
10002
+ */
10003
+ include?: MessageFileInclude<ExtArgs> | null
10004
+ /**
10005
+ * The filter to search for the MessageFile to update in case it exists.
8794
10006
  */
8795
- select?: ReferenceSelect<ExtArgs> | null
10007
+ where: MessageFileWhereUniqueInput
8796
10008
  /**
8797
- * Omit specific fields from the Reference
10009
+ * In case the MessageFile found by the `where` argument doesn't exist, create a new MessageFile with this data.
8798
10010
  */
8799
- omit?: ReferenceOmit<ExtArgs> | null
10011
+ create: XOR<MessageFileCreateInput, MessageFileUncheckedCreateInput>
8800
10012
  /**
8801
- * Choose, which related nodes to fetch as well
10013
+ * In case the MessageFile was found with the provided `where` argument, update it with this data.
8802
10014
  */
8803
- include?: ReferenceInclude<ExtArgs> | null
8804
- where?: ReferenceWhereInput
8805
- orderBy?: ReferenceOrderByWithRelationInput | ReferenceOrderByWithRelationInput[]
8806
- cursor?: ReferenceWhereUniqueInput
8807
- take?: number
8808
- skip?: number
8809
- distinct?: ReferenceScalarFieldEnum | ReferenceScalarFieldEnum[]
10015
+ update: XOR<MessageFileUpdateInput, MessageFileUncheckedUpdateInput>
8810
10016
  }
8811
10017
 
8812
10018
  /**
8813
- * Answer.metrics
10019
+ * MessageFile delete
8814
10020
  */
8815
- export type Answer$metricsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10021
+ export type MessageFileDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8816
10022
  /**
8817
- * Select specific fields to fetch from the AnswerMetrics
10023
+ * Select specific fields to fetch from the MessageFile
8818
10024
  */
8819
- select?: AnswerMetricsSelect<ExtArgs> | null
10025
+ select?: MessageFileSelect<ExtArgs> | null
8820
10026
  /**
8821
- * Omit specific fields from the AnswerMetrics
10027
+ * Omit specific fields from the MessageFile
8822
10028
  */
8823
- omit?: AnswerMetricsOmit<ExtArgs> | null
10029
+ omit?: MessageFileOmit<ExtArgs> | null
8824
10030
  /**
8825
10031
  * Choose, which related nodes to fetch as well
8826
10032
  */
8827
- include?: AnswerMetricsInclude<ExtArgs> | null
8828
- where?: AnswerMetricsWhereInput
10033
+ include?: MessageFileInclude<ExtArgs> | null
10034
+ /**
10035
+ * Filter which MessageFile to delete.
10036
+ */
10037
+ where: MessageFileWhereUniqueInput
8829
10038
  }
8830
10039
 
8831
10040
  /**
8832
- * Answer.WorkflowLog
10041
+ * MessageFile deleteMany
8833
10042
  */
8834
- export type Answer$WorkflowLogArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8835
- /**
8836
- * Select specific fields to fetch from the WorkflowLog
8837
- */
8838
- select?: WorkflowLogSelect<ExtArgs> | null
10043
+ export type MessageFileDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8839
10044
  /**
8840
- * Omit specific fields from the WorkflowLog
10045
+ * Filter which MessageFiles to delete
8841
10046
  */
8842
- omit?: WorkflowLogOmit<ExtArgs> | null
10047
+ where?: MessageFileWhereInput
8843
10048
  /**
8844
- * Choose, which related nodes to fetch as well
10049
+ * Limit how many MessageFiles to delete.
8845
10050
  */
8846
- include?: WorkflowLogInclude<ExtArgs> | null
8847
- where?: WorkflowLogWhereInput
8848
- orderBy?: WorkflowLogOrderByWithRelationInput | WorkflowLogOrderByWithRelationInput[]
8849
- cursor?: WorkflowLogWhereUniqueInput
8850
- take?: number
8851
- skip?: number
8852
- distinct?: WorkflowLogScalarFieldEnum | WorkflowLogScalarFieldEnum[]
10051
+ limit?: number
8853
10052
  }
8854
10053
 
8855
10054
  /**
8856
- * Answer without action
10055
+ * MessageFile without action
8857
10056
  */
8858
- export type AnswerDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10057
+ export type MessageFileDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8859
10058
  /**
8860
- * Select specific fields to fetch from the Answer
10059
+ * Select specific fields to fetch from the MessageFile
8861
10060
  */
8862
- select?: AnswerSelect<ExtArgs> | null
10061
+ select?: MessageFileSelect<ExtArgs> | null
8863
10062
  /**
8864
- * Omit specific fields from the Answer
10063
+ * Omit specific fields from the MessageFile
8865
10064
  */
8866
- omit?: AnswerOmit<ExtArgs> | null
10065
+ omit?: MessageFileOmit<ExtArgs> | null
8867
10066
  /**
8868
10067
  * Choose, which related nodes to fetch as well
8869
10068
  */
8870
- include?: AnswerInclude<ExtArgs> | null
10069
+ include?: MessageFileInclude<ExtArgs> | null
8871
10070
  }
8872
10071
 
8873
10072
 
@@ -20571,6 +21770,18 @@ export namespace Prisma {
20571
21770
  export type AnswerScalarFieldEnum = (typeof AnswerScalarFieldEnum)[keyof typeof AnswerScalarFieldEnum]
20572
21771
 
20573
21772
 
21773
+ export const MessageFileScalarFieldEnum: {
21774
+ id: 'id',
21775
+ answerId: 'answerId',
21776
+ fileName: 'fileName',
21777
+ fileType: 'fileType',
21778
+ base64Data: 'base64Data',
21779
+ uploadedAt: 'uploadedAt'
21780
+ };
21781
+
21782
+ export type MessageFileScalarFieldEnum = (typeof MessageFileScalarFieldEnum)[keyof typeof MessageFileScalarFieldEnum]
21783
+
21784
+
20574
21785
  export const AnswerMetricsScalarFieldEnum: {
20575
21786
  id: 'id',
20576
21787
  answerId: 'answerId',
@@ -21388,6 +22599,7 @@ export namespace Prisma {
21388
22599
  references?: ReferenceListRelationFilter
21389
22600
  metrics?: XOR<AnswerMetricsNullableScalarRelationFilter, AnswerMetricsWhereInput> | null
21390
22601
  WorkflowLog?: WorkflowLogListRelationFilter
22602
+ files?: MessageFileListRelationFilter
21391
22603
  }
21392
22604
 
21393
22605
  export type AnswerOrderByWithRelationInput = {
@@ -21411,6 +22623,7 @@ export namespace Prisma {
21411
22623
  references?: ReferenceOrderByRelationAggregateInput
21412
22624
  metrics?: AnswerMetricsOrderByWithRelationInput
21413
22625
  WorkflowLog?: WorkflowLogOrderByRelationAggregateInput
22626
+ files?: MessageFileOrderByRelationAggregateInput
21414
22627
  }
21415
22628
 
21416
22629
  export type AnswerWhereUniqueInput = Prisma.AtLeast<{
@@ -21437,6 +22650,7 @@ export namespace Prisma {
21437
22650
  references?: ReferenceListRelationFilter
21438
22651
  metrics?: XOR<AnswerMetricsNullableScalarRelationFilter, AnswerMetricsWhereInput> | null
21439
22652
  WorkflowLog?: WorkflowLogListRelationFilter
22653
+ files?: MessageFileListRelationFilter
21440
22654
  }, "id" | "messageId">
21441
22655
 
21442
22656
  export type AnswerOrderByWithAggregationInput = {
@@ -21481,6 +22695,66 @@ export namespace Prisma {
21481
22695
  updatedAt?: DateTimeWithAggregatesFilter<"Answer"> | Date | string
21482
22696
  }
21483
22697
 
22698
+ export type MessageFileWhereInput = {
22699
+ AND?: MessageFileWhereInput | MessageFileWhereInput[]
22700
+ OR?: MessageFileWhereInput[]
22701
+ NOT?: MessageFileWhereInput | MessageFileWhereInput[]
22702
+ id?: StringFilter<"MessageFile"> | string
22703
+ answerId?: StringFilter<"MessageFile"> | string
22704
+ fileName?: StringFilter<"MessageFile"> | string
22705
+ fileType?: StringFilter<"MessageFile"> | string
22706
+ base64Data?: StringFilter<"MessageFile"> | string
22707
+ uploadedAt?: DateTimeFilter<"MessageFile"> | Date | string
22708
+ answer?: XOR<AnswerScalarRelationFilter, AnswerWhereInput>
22709
+ }
22710
+
22711
+ export type MessageFileOrderByWithRelationInput = {
22712
+ id?: SortOrder
22713
+ answerId?: SortOrder
22714
+ fileName?: SortOrder
22715
+ fileType?: SortOrder
22716
+ base64Data?: SortOrder
22717
+ uploadedAt?: SortOrder
22718
+ answer?: AnswerOrderByWithRelationInput
22719
+ }
22720
+
22721
+ export type MessageFileWhereUniqueInput = Prisma.AtLeast<{
22722
+ id?: string
22723
+ AND?: MessageFileWhereInput | MessageFileWhereInput[]
22724
+ OR?: MessageFileWhereInput[]
22725
+ NOT?: MessageFileWhereInput | MessageFileWhereInput[]
22726
+ answerId?: StringFilter<"MessageFile"> | string
22727
+ fileName?: StringFilter<"MessageFile"> | string
22728
+ fileType?: StringFilter<"MessageFile"> | string
22729
+ base64Data?: StringFilter<"MessageFile"> | string
22730
+ uploadedAt?: DateTimeFilter<"MessageFile"> | Date | string
22731
+ answer?: XOR<AnswerScalarRelationFilter, AnswerWhereInput>
22732
+ }, "id">
22733
+
22734
+ export type MessageFileOrderByWithAggregationInput = {
22735
+ id?: SortOrder
22736
+ answerId?: SortOrder
22737
+ fileName?: SortOrder
22738
+ fileType?: SortOrder
22739
+ base64Data?: SortOrder
22740
+ uploadedAt?: SortOrder
22741
+ _count?: MessageFileCountOrderByAggregateInput
22742
+ _max?: MessageFileMaxOrderByAggregateInput
22743
+ _min?: MessageFileMinOrderByAggregateInput
22744
+ }
22745
+
22746
+ export type MessageFileScalarWhereWithAggregatesInput = {
22747
+ AND?: MessageFileScalarWhereWithAggregatesInput | MessageFileScalarWhereWithAggregatesInput[]
22748
+ OR?: MessageFileScalarWhereWithAggregatesInput[]
22749
+ NOT?: MessageFileScalarWhereWithAggregatesInput | MessageFileScalarWhereWithAggregatesInput[]
22750
+ id?: StringWithAggregatesFilter<"MessageFile"> | string
22751
+ answerId?: StringWithAggregatesFilter<"MessageFile"> | string
22752
+ fileName?: StringWithAggregatesFilter<"MessageFile"> | string
22753
+ fileType?: StringWithAggregatesFilter<"MessageFile"> | string
22754
+ base64Data?: StringWithAggregatesFilter<"MessageFile"> | string
22755
+ uploadedAt?: DateTimeWithAggregatesFilter<"MessageFile"> | Date | string
22756
+ }
22757
+
21484
22758
  export type AnswerMetricsWhereInput = {
21485
22759
  AND?: AnswerMetricsWhereInput | AnswerMetricsWhereInput[]
21486
22760
  OR?: AnswerMetricsWhereInput[]
@@ -22807,6 +24081,7 @@ export namespace Prisma {
22807
24081
  references?: ReferenceCreateNestedManyWithoutAnswerInput
22808
24082
  metrics?: AnswerMetricsCreateNestedOneWithoutAnswerInput
22809
24083
  WorkflowLog?: WorkflowLogCreateNestedManyWithoutAnswerInput
24084
+ files?: MessageFileCreateNestedManyWithoutAnswerInput
22810
24085
  }
22811
24086
 
22812
24087
  export type AnswerUncheckedCreateInput = {
@@ -22828,6 +24103,7 @@ export namespace Prisma {
22828
24103
  references?: ReferenceUncheckedCreateNestedManyWithoutAnswerInput
22829
24104
  metrics?: AnswerMetricsUncheckedCreateNestedOneWithoutAnswerInput
22830
24105
  WorkflowLog?: WorkflowLogUncheckedCreateNestedManyWithoutAnswerInput
24106
+ files?: MessageFileUncheckedCreateNestedManyWithoutAnswerInput
22831
24107
  }
22832
24108
 
22833
24109
  export type AnswerUpdateInput = {
@@ -22849,6 +24125,7 @@ export namespace Prisma {
22849
24125
  references?: ReferenceUpdateManyWithoutAnswerNestedInput
22850
24126
  metrics?: AnswerMetricsUpdateOneWithoutAnswerNestedInput
22851
24127
  WorkflowLog?: WorkflowLogUpdateManyWithoutAnswerNestedInput
24128
+ files?: MessageFileUpdateManyWithoutAnswerNestedInput
22852
24129
  }
22853
24130
 
22854
24131
  export type AnswerUncheckedUpdateInput = {
@@ -22870,6 +24147,7 @@ export namespace Prisma {
22870
24147
  references?: ReferenceUncheckedUpdateManyWithoutAnswerNestedInput
22871
24148
  metrics?: AnswerMetricsUncheckedUpdateOneWithoutAnswerNestedInput
22872
24149
  WorkflowLog?: WorkflowLogUncheckedUpdateManyWithoutAnswerNestedInput
24150
+ files?: MessageFileUncheckedUpdateManyWithoutAnswerNestedInput
22873
24151
  }
22874
24152
 
22875
24153
  export type AnswerCreateManyInput = {
@@ -22921,6 +24199,68 @@ export namespace Prisma {
22921
24199
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
22922
24200
  }
22923
24201
 
24202
+ export type MessageFileCreateInput = {
24203
+ id?: string
24204
+ fileName: string
24205
+ fileType: string
24206
+ base64Data: string
24207
+ uploadedAt?: Date | string
24208
+ answer: AnswerCreateNestedOneWithoutFilesInput
24209
+ }
24210
+
24211
+ export type MessageFileUncheckedCreateInput = {
24212
+ id?: string
24213
+ answerId: string
24214
+ fileName: string
24215
+ fileType: string
24216
+ base64Data: string
24217
+ uploadedAt?: Date | string
24218
+ }
24219
+
24220
+ export type MessageFileUpdateInput = {
24221
+ id?: StringFieldUpdateOperationsInput | string
24222
+ fileName?: StringFieldUpdateOperationsInput | string
24223
+ fileType?: StringFieldUpdateOperationsInput | string
24224
+ base64Data?: StringFieldUpdateOperationsInput | string
24225
+ uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24226
+ answer?: AnswerUpdateOneRequiredWithoutFilesNestedInput
24227
+ }
24228
+
24229
+ export type MessageFileUncheckedUpdateInput = {
24230
+ id?: StringFieldUpdateOperationsInput | string
24231
+ answerId?: StringFieldUpdateOperationsInput | string
24232
+ fileName?: StringFieldUpdateOperationsInput | string
24233
+ fileType?: StringFieldUpdateOperationsInput | string
24234
+ base64Data?: StringFieldUpdateOperationsInput | string
24235
+ uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24236
+ }
24237
+
24238
+ export type MessageFileCreateManyInput = {
24239
+ id?: string
24240
+ answerId: string
24241
+ fileName: string
24242
+ fileType: string
24243
+ base64Data: string
24244
+ uploadedAt?: Date | string
24245
+ }
24246
+
24247
+ export type MessageFileUpdateManyMutationInput = {
24248
+ id?: StringFieldUpdateOperationsInput | string
24249
+ fileName?: StringFieldUpdateOperationsInput | string
24250
+ fileType?: StringFieldUpdateOperationsInput | string
24251
+ base64Data?: StringFieldUpdateOperationsInput | string
24252
+ uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24253
+ }
24254
+
24255
+ export type MessageFileUncheckedUpdateManyInput = {
24256
+ id?: StringFieldUpdateOperationsInput | string
24257
+ answerId?: StringFieldUpdateOperationsInput | string
24258
+ fileName?: StringFieldUpdateOperationsInput | string
24259
+ fileType?: StringFieldUpdateOperationsInput | string
24260
+ base64Data?: StringFieldUpdateOperationsInput | string
24261
+ uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24262
+ }
24263
+
22924
24264
  export type AnswerMetricsCreateInput = {
22925
24265
  id?: string
22926
24266
  apiCost?: number | null
@@ -24383,10 +25723,20 @@ export namespace Prisma {
24383
25723
  isNot?: AnswerMetricsWhereInput | null
24384
25724
  }
24385
25725
 
25726
+ export type MessageFileListRelationFilter = {
25727
+ every?: MessageFileWhereInput
25728
+ some?: MessageFileWhereInput
25729
+ none?: MessageFileWhereInput
25730
+ }
25731
+
24386
25732
  export type ReferenceOrderByRelationAggregateInput = {
24387
25733
  _count?: SortOrder
24388
25734
  }
24389
25735
 
25736
+ export type MessageFileOrderByRelationAggregateInput = {
25737
+ _count?: SortOrder
25738
+ }
25739
+
24390
25740
  export type AnswerCountOrderByAggregateInput = {
24391
25741
  id?: SortOrder
24392
25742
  conversationId?: SortOrder
@@ -24456,6 +25806,38 @@ export namespace Prisma {
24456
25806
  _max?: NestedEnumRoleFilter<$PrismaModel>
24457
25807
  }
24458
25808
 
25809
+ export type AnswerScalarRelationFilter = {
25810
+ is?: AnswerWhereInput
25811
+ isNot?: AnswerWhereInput
25812
+ }
25813
+
25814
+ export type MessageFileCountOrderByAggregateInput = {
25815
+ id?: SortOrder
25816
+ answerId?: SortOrder
25817
+ fileName?: SortOrder
25818
+ fileType?: SortOrder
25819
+ base64Data?: SortOrder
25820
+ uploadedAt?: SortOrder
25821
+ }
25822
+
25823
+ export type MessageFileMaxOrderByAggregateInput = {
25824
+ id?: SortOrder
25825
+ answerId?: SortOrder
25826
+ fileName?: SortOrder
25827
+ fileType?: SortOrder
25828
+ base64Data?: SortOrder
25829
+ uploadedAt?: SortOrder
25830
+ }
25831
+
25832
+ export type MessageFileMinOrderByAggregateInput = {
25833
+ id?: SortOrder
25834
+ answerId?: SortOrder
25835
+ fileName?: SortOrder
25836
+ fileType?: SortOrder
25837
+ base64Data?: SortOrder
25838
+ uploadedAt?: SortOrder
25839
+ }
25840
+
24459
25841
  export type FloatNullableFilter<$PrismaModel = never> = {
24460
25842
  equals?: number | FloatFieldRefInput<$PrismaModel> | null
24461
25843
  in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
@@ -24467,11 +25849,6 @@ export namespace Prisma {
24467
25849
  not?: NestedFloatNullableFilter<$PrismaModel> | number | null
24468
25850
  }
24469
25851
 
24470
- export type AnswerScalarRelationFilter = {
24471
- is?: AnswerWhereInput
24472
- isNot?: AnswerWhereInput
24473
- }
24474
-
24475
25852
  export type AnswerMetricsCountOrderByAggregateInput = {
24476
25853
  id?: SortOrder
24477
25854
  answerId?: SortOrder
@@ -25701,6 +27078,13 @@ export namespace Prisma {
25701
27078
  connect?: WorkflowLogWhereUniqueInput | WorkflowLogWhereUniqueInput[]
25702
27079
  }
25703
27080
 
27081
+ export type MessageFileCreateNestedManyWithoutAnswerInput = {
27082
+ create?: XOR<MessageFileCreateWithoutAnswerInput, MessageFileUncheckedCreateWithoutAnswerInput> | MessageFileCreateWithoutAnswerInput[] | MessageFileUncheckedCreateWithoutAnswerInput[]
27083
+ connectOrCreate?: MessageFileCreateOrConnectWithoutAnswerInput | MessageFileCreateOrConnectWithoutAnswerInput[]
27084
+ createMany?: MessageFileCreateManyAnswerInputEnvelope
27085
+ connect?: MessageFileWhereUniqueInput | MessageFileWhereUniqueInput[]
27086
+ }
27087
+
25704
27088
  export type FeedbackUncheckedCreateNestedOneWithoutAnswerInput = {
25705
27089
  create?: XOR<FeedbackCreateWithoutAnswerInput, FeedbackUncheckedCreateWithoutAnswerInput>
25706
27090
  connectOrCreate?: FeedbackCreateOrConnectWithoutAnswerInput
@@ -25727,6 +27111,13 @@ export namespace Prisma {
25727
27111
  connect?: WorkflowLogWhereUniqueInput | WorkflowLogWhereUniqueInput[]
25728
27112
  }
25729
27113
 
27114
+ export type MessageFileUncheckedCreateNestedManyWithoutAnswerInput = {
27115
+ create?: XOR<MessageFileCreateWithoutAnswerInput, MessageFileUncheckedCreateWithoutAnswerInput> | MessageFileCreateWithoutAnswerInput[] | MessageFileUncheckedCreateWithoutAnswerInput[]
27116
+ connectOrCreate?: MessageFileCreateOrConnectWithoutAnswerInput | MessageFileCreateOrConnectWithoutAnswerInput[]
27117
+ createMany?: MessageFileCreateManyAnswerInputEnvelope
27118
+ connect?: MessageFileWhereUniqueInput | MessageFileWhereUniqueInput[]
27119
+ }
27120
+
25730
27121
  export type EnumRoleFieldUpdateOperationsInput = {
25731
27122
  set?: $Enums.Role
25732
27123
  }
@@ -25797,6 +27188,20 @@ export namespace Prisma {
25797
27188
  deleteMany?: WorkflowLogScalarWhereInput | WorkflowLogScalarWhereInput[]
25798
27189
  }
25799
27190
 
27191
+ export type MessageFileUpdateManyWithoutAnswerNestedInput = {
27192
+ create?: XOR<MessageFileCreateWithoutAnswerInput, MessageFileUncheckedCreateWithoutAnswerInput> | MessageFileCreateWithoutAnswerInput[] | MessageFileUncheckedCreateWithoutAnswerInput[]
27193
+ connectOrCreate?: MessageFileCreateOrConnectWithoutAnswerInput | MessageFileCreateOrConnectWithoutAnswerInput[]
27194
+ upsert?: MessageFileUpsertWithWhereUniqueWithoutAnswerInput | MessageFileUpsertWithWhereUniqueWithoutAnswerInput[]
27195
+ createMany?: MessageFileCreateManyAnswerInputEnvelope
27196
+ set?: MessageFileWhereUniqueInput | MessageFileWhereUniqueInput[]
27197
+ disconnect?: MessageFileWhereUniqueInput | MessageFileWhereUniqueInput[]
27198
+ delete?: MessageFileWhereUniqueInput | MessageFileWhereUniqueInput[]
27199
+ connect?: MessageFileWhereUniqueInput | MessageFileWhereUniqueInput[]
27200
+ update?: MessageFileUpdateWithWhereUniqueWithoutAnswerInput | MessageFileUpdateWithWhereUniqueWithoutAnswerInput[]
27201
+ updateMany?: MessageFileUpdateManyWithWhereWithoutAnswerInput | MessageFileUpdateManyWithWhereWithoutAnswerInput[]
27202
+ deleteMany?: MessageFileScalarWhereInput | MessageFileScalarWhereInput[]
27203
+ }
27204
+
25800
27205
  export type FeedbackUncheckedUpdateOneWithoutAnswerNestedInput = {
25801
27206
  create?: XOR<FeedbackCreateWithoutAnswerInput, FeedbackUncheckedCreateWithoutAnswerInput>
25802
27207
  connectOrCreate?: FeedbackCreateOrConnectWithoutAnswerInput
@@ -25845,6 +27250,34 @@ export namespace Prisma {
25845
27250
  deleteMany?: WorkflowLogScalarWhereInput | WorkflowLogScalarWhereInput[]
25846
27251
  }
25847
27252
 
27253
+ export type MessageFileUncheckedUpdateManyWithoutAnswerNestedInput = {
27254
+ create?: XOR<MessageFileCreateWithoutAnswerInput, MessageFileUncheckedCreateWithoutAnswerInput> | MessageFileCreateWithoutAnswerInput[] | MessageFileUncheckedCreateWithoutAnswerInput[]
27255
+ connectOrCreate?: MessageFileCreateOrConnectWithoutAnswerInput | MessageFileCreateOrConnectWithoutAnswerInput[]
27256
+ upsert?: MessageFileUpsertWithWhereUniqueWithoutAnswerInput | MessageFileUpsertWithWhereUniqueWithoutAnswerInput[]
27257
+ createMany?: MessageFileCreateManyAnswerInputEnvelope
27258
+ set?: MessageFileWhereUniqueInput | MessageFileWhereUniqueInput[]
27259
+ disconnect?: MessageFileWhereUniqueInput | MessageFileWhereUniqueInput[]
27260
+ delete?: MessageFileWhereUniqueInput | MessageFileWhereUniqueInput[]
27261
+ connect?: MessageFileWhereUniqueInput | MessageFileWhereUniqueInput[]
27262
+ update?: MessageFileUpdateWithWhereUniqueWithoutAnswerInput | MessageFileUpdateWithWhereUniqueWithoutAnswerInput[]
27263
+ updateMany?: MessageFileUpdateManyWithWhereWithoutAnswerInput | MessageFileUpdateManyWithWhereWithoutAnswerInput[]
27264
+ deleteMany?: MessageFileScalarWhereInput | MessageFileScalarWhereInput[]
27265
+ }
27266
+
27267
+ export type AnswerCreateNestedOneWithoutFilesInput = {
27268
+ create?: XOR<AnswerCreateWithoutFilesInput, AnswerUncheckedCreateWithoutFilesInput>
27269
+ connectOrCreate?: AnswerCreateOrConnectWithoutFilesInput
27270
+ connect?: AnswerWhereUniqueInput
27271
+ }
27272
+
27273
+ export type AnswerUpdateOneRequiredWithoutFilesNestedInput = {
27274
+ create?: XOR<AnswerCreateWithoutFilesInput, AnswerUncheckedCreateWithoutFilesInput>
27275
+ connectOrCreate?: AnswerCreateOrConnectWithoutFilesInput
27276
+ upsert?: AnswerUpsertWithoutFilesInput
27277
+ connect?: AnswerWhereUniqueInput
27278
+ update?: XOR<XOR<AnswerUpdateToOneWithWhereWithoutFilesInput, AnswerUpdateWithoutFilesInput>, AnswerUncheckedUpdateWithoutFilesInput>
27279
+ }
27280
+
25848
27281
  export type AnswerMetricsCreateaiProvidersUsedInput = {
25849
27282
  set: string[]
25850
27283
  }
@@ -26820,6 +28253,7 @@ export namespace Prisma {
26820
28253
  references?: ReferenceCreateNestedManyWithoutAnswerInput
26821
28254
  metrics?: AnswerMetricsCreateNestedOneWithoutAnswerInput
26822
28255
  WorkflowLog?: WorkflowLogCreateNestedManyWithoutAnswerInput
28256
+ files?: MessageFileCreateNestedManyWithoutAnswerInput
26823
28257
  }
26824
28258
 
26825
28259
  export type AnswerUncheckedCreateWithoutUserInput = {
@@ -26840,6 +28274,7 @@ export namespace Prisma {
26840
28274
  references?: ReferenceUncheckedCreateNestedManyWithoutAnswerInput
26841
28275
  metrics?: AnswerMetricsUncheckedCreateNestedOneWithoutAnswerInput
26842
28276
  WorkflowLog?: WorkflowLogUncheckedCreateNestedManyWithoutAnswerInput
28277
+ files?: MessageFileUncheckedCreateNestedManyWithoutAnswerInput
26843
28278
  }
26844
28279
 
26845
28280
  export type AnswerCreateOrConnectWithoutUserInput = {
@@ -27568,6 +29003,7 @@ export namespace Prisma {
27568
29003
  references?: ReferenceCreateNestedManyWithoutAnswerInput
27569
29004
  metrics?: AnswerMetricsCreateNestedOneWithoutAnswerInput
27570
29005
  WorkflowLog?: WorkflowLogCreateNestedManyWithoutAnswerInput
29006
+ files?: MessageFileCreateNestedManyWithoutAnswerInput
27571
29007
  }
27572
29008
 
27573
29009
  export type AnswerUncheckedCreateWithoutConversationInput = {
@@ -27588,6 +29024,7 @@ export namespace Prisma {
27588
29024
  references?: ReferenceUncheckedCreateNestedManyWithoutAnswerInput
27589
29025
  metrics?: AnswerMetricsUncheckedCreateNestedOneWithoutAnswerInput
27590
29026
  WorkflowLog?: WorkflowLogUncheckedCreateNestedManyWithoutAnswerInput
29027
+ files?: MessageFileUncheckedCreateNestedManyWithoutAnswerInput
27591
29028
  }
27592
29029
 
27593
29030
  export type AnswerCreateOrConnectWithoutConversationInput = {
@@ -28064,6 +29501,32 @@ export namespace Prisma {
28064
29501
  skipDuplicates?: boolean
28065
29502
  }
28066
29503
 
29504
+ export type MessageFileCreateWithoutAnswerInput = {
29505
+ id?: string
29506
+ fileName: string
29507
+ fileType: string
29508
+ base64Data: string
29509
+ uploadedAt?: Date | string
29510
+ }
29511
+
29512
+ export type MessageFileUncheckedCreateWithoutAnswerInput = {
29513
+ id?: string
29514
+ fileName: string
29515
+ fileType: string
29516
+ base64Data: string
29517
+ uploadedAt?: Date | string
29518
+ }
29519
+
29520
+ export type MessageFileCreateOrConnectWithoutAnswerInput = {
29521
+ where: MessageFileWhereUniqueInput
29522
+ create: XOR<MessageFileCreateWithoutAnswerInput, MessageFileUncheckedCreateWithoutAnswerInput>
29523
+ }
29524
+
29525
+ export type MessageFileCreateManyAnswerInputEnvelope = {
29526
+ data: MessageFileCreateManyAnswerInput | MessageFileCreateManyAnswerInput[]
29527
+ skipDuplicates?: boolean
29528
+ }
29529
+
28067
29530
  export type ConversationUpsertWithoutAnswersInput = {
28068
29531
  update: XOR<ConversationUpdateWithoutAnswersInput, ConversationUncheckedUpdateWithoutAnswersInput>
28069
29532
  create: XOR<ConversationCreateWithoutAnswersInput, ConversationUncheckedCreateWithoutAnswersInput>
@@ -28307,6 +29770,134 @@ export namespace Prisma {
28307
29770
  data: XOR<WorkflowLogUpdateManyMutationInput, WorkflowLogUncheckedUpdateManyWithoutAnswerInput>
28308
29771
  }
28309
29772
 
29773
+ export type MessageFileUpsertWithWhereUniqueWithoutAnswerInput = {
29774
+ where: MessageFileWhereUniqueInput
29775
+ update: XOR<MessageFileUpdateWithoutAnswerInput, MessageFileUncheckedUpdateWithoutAnswerInput>
29776
+ create: XOR<MessageFileCreateWithoutAnswerInput, MessageFileUncheckedCreateWithoutAnswerInput>
29777
+ }
29778
+
29779
+ export type MessageFileUpdateWithWhereUniqueWithoutAnswerInput = {
29780
+ where: MessageFileWhereUniqueInput
29781
+ data: XOR<MessageFileUpdateWithoutAnswerInput, MessageFileUncheckedUpdateWithoutAnswerInput>
29782
+ }
29783
+
29784
+ export type MessageFileUpdateManyWithWhereWithoutAnswerInput = {
29785
+ where: MessageFileScalarWhereInput
29786
+ data: XOR<MessageFileUpdateManyMutationInput, MessageFileUncheckedUpdateManyWithoutAnswerInput>
29787
+ }
29788
+
29789
+ export type MessageFileScalarWhereInput = {
29790
+ AND?: MessageFileScalarWhereInput | MessageFileScalarWhereInput[]
29791
+ OR?: MessageFileScalarWhereInput[]
29792
+ NOT?: MessageFileScalarWhereInput | MessageFileScalarWhereInput[]
29793
+ id?: StringFilter<"MessageFile"> | string
29794
+ answerId?: StringFilter<"MessageFile"> | string
29795
+ fileName?: StringFilter<"MessageFile"> | string
29796
+ fileType?: StringFilter<"MessageFile"> | string
29797
+ base64Data?: StringFilter<"MessageFile"> | string
29798
+ uploadedAt?: DateTimeFilter<"MessageFile"> | Date | string
29799
+ }
29800
+
29801
+ export type AnswerCreateWithoutFilesInput = {
29802
+ id?: string
29803
+ messageId: string
29804
+ role: $Enums.Role
29805
+ content: string
29806
+ question?: string | null
29807
+ answer?: string | null
29808
+ evaluation?: string | null
29809
+ isWelcome?: boolean
29810
+ processingTime?: number | null
29811
+ model?: string | null
29812
+ createdAt?: Date | string
29813
+ updatedAt?: Date | string
29814
+ conversation: ConversationCreateNestedOneWithoutAnswersInput
29815
+ user?: UserCreateNestedOneWithoutAnswersInput
29816
+ feedback?: FeedbackCreateNestedOneWithoutAnswerInput
29817
+ references?: ReferenceCreateNestedManyWithoutAnswerInput
29818
+ metrics?: AnswerMetricsCreateNestedOneWithoutAnswerInput
29819
+ WorkflowLog?: WorkflowLogCreateNestedManyWithoutAnswerInput
29820
+ }
29821
+
29822
+ export type AnswerUncheckedCreateWithoutFilesInput = {
29823
+ id?: string
29824
+ conversationId: string
29825
+ messageId: string
29826
+ role: $Enums.Role
29827
+ content: string
29828
+ question?: string | null
29829
+ answer?: string | null
29830
+ evaluation?: string | null
29831
+ isWelcome?: boolean
29832
+ processingTime?: number | null
29833
+ model?: string | null
29834
+ userId?: string | null
29835
+ createdAt?: Date | string
29836
+ updatedAt?: Date | string
29837
+ feedback?: FeedbackUncheckedCreateNestedOneWithoutAnswerInput
29838
+ references?: ReferenceUncheckedCreateNestedManyWithoutAnswerInput
29839
+ metrics?: AnswerMetricsUncheckedCreateNestedOneWithoutAnswerInput
29840
+ WorkflowLog?: WorkflowLogUncheckedCreateNestedManyWithoutAnswerInput
29841
+ }
29842
+
29843
+ export type AnswerCreateOrConnectWithoutFilesInput = {
29844
+ where: AnswerWhereUniqueInput
29845
+ create: XOR<AnswerCreateWithoutFilesInput, AnswerUncheckedCreateWithoutFilesInput>
29846
+ }
29847
+
29848
+ export type AnswerUpsertWithoutFilesInput = {
29849
+ update: XOR<AnswerUpdateWithoutFilesInput, AnswerUncheckedUpdateWithoutFilesInput>
29850
+ create: XOR<AnswerCreateWithoutFilesInput, AnswerUncheckedCreateWithoutFilesInput>
29851
+ where?: AnswerWhereInput
29852
+ }
29853
+
29854
+ export type AnswerUpdateToOneWithWhereWithoutFilesInput = {
29855
+ where?: AnswerWhereInput
29856
+ data: XOR<AnswerUpdateWithoutFilesInput, AnswerUncheckedUpdateWithoutFilesInput>
29857
+ }
29858
+
29859
+ export type AnswerUpdateWithoutFilesInput = {
29860
+ id?: StringFieldUpdateOperationsInput | string
29861
+ messageId?: StringFieldUpdateOperationsInput | string
29862
+ role?: EnumRoleFieldUpdateOperationsInput | $Enums.Role
29863
+ content?: StringFieldUpdateOperationsInput | string
29864
+ question?: NullableStringFieldUpdateOperationsInput | string | null
29865
+ answer?: NullableStringFieldUpdateOperationsInput | string | null
29866
+ evaluation?: NullableStringFieldUpdateOperationsInput | string | null
29867
+ isWelcome?: BoolFieldUpdateOperationsInput | boolean
29868
+ processingTime?: NullableIntFieldUpdateOperationsInput | number | null
29869
+ model?: NullableStringFieldUpdateOperationsInput | string | null
29870
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29871
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
29872
+ conversation?: ConversationUpdateOneRequiredWithoutAnswersNestedInput
29873
+ user?: UserUpdateOneWithoutAnswersNestedInput
29874
+ feedback?: FeedbackUpdateOneWithoutAnswerNestedInput
29875
+ references?: ReferenceUpdateManyWithoutAnswerNestedInput
29876
+ metrics?: AnswerMetricsUpdateOneWithoutAnswerNestedInput
29877
+ WorkflowLog?: WorkflowLogUpdateManyWithoutAnswerNestedInput
29878
+ }
29879
+
29880
+ export type AnswerUncheckedUpdateWithoutFilesInput = {
29881
+ id?: StringFieldUpdateOperationsInput | string
29882
+ conversationId?: StringFieldUpdateOperationsInput | string
29883
+ messageId?: StringFieldUpdateOperationsInput | string
29884
+ role?: EnumRoleFieldUpdateOperationsInput | $Enums.Role
29885
+ content?: StringFieldUpdateOperationsInput | string
29886
+ question?: NullableStringFieldUpdateOperationsInput | string | null
29887
+ answer?: NullableStringFieldUpdateOperationsInput | string | null
29888
+ evaluation?: NullableStringFieldUpdateOperationsInput | string | null
29889
+ isWelcome?: BoolFieldUpdateOperationsInput | boolean
29890
+ processingTime?: NullableIntFieldUpdateOperationsInput | number | null
29891
+ model?: NullableStringFieldUpdateOperationsInput | string | null
29892
+ userId?: NullableStringFieldUpdateOperationsInput | string | null
29893
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29894
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
29895
+ feedback?: FeedbackUncheckedUpdateOneWithoutAnswerNestedInput
29896
+ references?: ReferenceUncheckedUpdateManyWithoutAnswerNestedInput
29897
+ metrics?: AnswerMetricsUncheckedUpdateOneWithoutAnswerNestedInput
29898
+ WorkflowLog?: WorkflowLogUncheckedUpdateManyWithoutAnswerNestedInput
29899
+ }
29900
+
28310
29901
  export type AnswerCreateWithoutMetricsInput = {
28311
29902
  id?: string
28312
29903
  messageId: string
@@ -28325,6 +29916,7 @@ export namespace Prisma {
28325
29916
  feedback?: FeedbackCreateNestedOneWithoutAnswerInput
28326
29917
  references?: ReferenceCreateNestedManyWithoutAnswerInput
28327
29918
  WorkflowLog?: WorkflowLogCreateNestedManyWithoutAnswerInput
29919
+ files?: MessageFileCreateNestedManyWithoutAnswerInput
28328
29920
  }
28329
29921
 
28330
29922
  export type AnswerUncheckedCreateWithoutMetricsInput = {
@@ -28345,6 +29937,7 @@ export namespace Prisma {
28345
29937
  feedback?: FeedbackUncheckedCreateNestedOneWithoutAnswerInput
28346
29938
  references?: ReferenceUncheckedCreateNestedManyWithoutAnswerInput
28347
29939
  WorkflowLog?: WorkflowLogUncheckedCreateNestedManyWithoutAnswerInput
29940
+ files?: MessageFileUncheckedCreateNestedManyWithoutAnswerInput
28348
29941
  }
28349
29942
 
28350
29943
  export type AnswerCreateOrConnectWithoutMetricsInput = {
@@ -28381,6 +29974,7 @@ export namespace Prisma {
28381
29974
  feedback?: FeedbackUpdateOneWithoutAnswerNestedInput
28382
29975
  references?: ReferenceUpdateManyWithoutAnswerNestedInput
28383
29976
  WorkflowLog?: WorkflowLogUpdateManyWithoutAnswerNestedInput
29977
+ files?: MessageFileUpdateManyWithoutAnswerNestedInput
28384
29978
  }
28385
29979
 
28386
29980
  export type AnswerUncheckedUpdateWithoutMetricsInput = {
@@ -28401,6 +29995,7 @@ export namespace Prisma {
28401
29995
  feedback?: FeedbackUncheckedUpdateOneWithoutAnswerNestedInput
28402
29996
  references?: ReferenceUncheckedUpdateManyWithoutAnswerNestedInput
28403
29997
  WorkflowLog?: WorkflowLogUncheckedUpdateManyWithoutAnswerNestedInput
29998
+ files?: MessageFileUncheckedUpdateManyWithoutAnswerNestedInput
28404
29999
  }
28405
30000
 
28406
30001
  export type AnswerCreateWithoutFeedbackInput = {
@@ -28421,6 +30016,7 @@ export namespace Prisma {
28421
30016
  references?: ReferenceCreateNestedManyWithoutAnswerInput
28422
30017
  metrics?: AnswerMetricsCreateNestedOneWithoutAnswerInput
28423
30018
  WorkflowLog?: WorkflowLogCreateNestedManyWithoutAnswerInput
30019
+ files?: MessageFileCreateNestedManyWithoutAnswerInput
28424
30020
  }
28425
30021
 
28426
30022
  export type AnswerUncheckedCreateWithoutFeedbackInput = {
@@ -28441,6 +30037,7 @@ export namespace Prisma {
28441
30037
  references?: ReferenceUncheckedCreateNestedManyWithoutAnswerInput
28442
30038
  metrics?: AnswerMetricsUncheckedCreateNestedOneWithoutAnswerInput
28443
30039
  WorkflowLog?: WorkflowLogUncheckedCreateNestedManyWithoutAnswerInput
30040
+ files?: MessageFileUncheckedCreateNestedManyWithoutAnswerInput
28444
30041
  }
28445
30042
 
28446
30043
  export type AnswerCreateOrConnectWithoutFeedbackInput = {
@@ -28548,6 +30145,7 @@ export namespace Prisma {
28548
30145
  references?: ReferenceUpdateManyWithoutAnswerNestedInput
28549
30146
  metrics?: AnswerMetricsUpdateOneWithoutAnswerNestedInput
28550
30147
  WorkflowLog?: WorkflowLogUpdateManyWithoutAnswerNestedInput
30148
+ files?: MessageFileUpdateManyWithoutAnswerNestedInput
28551
30149
  }
28552
30150
 
28553
30151
  export type AnswerUncheckedUpdateWithoutFeedbackInput = {
@@ -28568,6 +30166,7 @@ export namespace Prisma {
28568
30166
  references?: ReferenceUncheckedUpdateManyWithoutAnswerNestedInput
28569
30167
  metrics?: AnswerMetricsUncheckedUpdateOneWithoutAnswerNestedInput
28570
30168
  WorkflowLog?: WorkflowLogUncheckedUpdateManyWithoutAnswerNestedInput
30169
+ files?: MessageFileUncheckedUpdateManyWithoutAnswerNestedInput
28571
30170
  }
28572
30171
 
28573
30172
  export type UserUpsertWithoutFeedbacksInput = {
@@ -28665,6 +30264,7 @@ export namespace Prisma {
28665
30264
  feedback?: FeedbackCreateNestedOneWithoutAnswerInput
28666
30265
  metrics?: AnswerMetricsCreateNestedOneWithoutAnswerInput
28667
30266
  WorkflowLog?: WorkflowLogCreateNestedManyWithoutAnswerInput
30267
+ files?: MessageFileCreateNestedManyWithoutAnswerInput
28668
30268
  }
28669
30269
 
28670
30270
  export type AnswerUncheckedCreateWithoutReferencesInput = {
@@ -28685,6 +30285,7 @@ export namespace Prisma {
28685
30285
  feedback?: FeedbackUncheckedCreateNestedOneWithoutAnswerInput
28686
30286
  metrics?: AnswerMetricsUncheckedCreateNestedOneWithoutAnswerInput
28687
30287
  WorkflowLog?: WorkflowLogUncheckedCreateNestedManyWithoutAnswerInput
30288
+ files?: MessageFileUncheckedCreateNestedManyWithoutAnswerInput
28688
30289
  }
28689
30290
 
28690
30291
  export type AnswerCreateOrConnectWithoutReferencesInput = {
@@ -28721,6 +30322,7 @@ export namespace Prisma {
28721
30322
  feedback?: FeedbackUpdateOneWithoutAnswerNestedInput
28722
30323
  metrics?: AnswerMetricsUpdateOneWithoutAnswerNestedInput
28723
30324
  WorkflowLog?: WorkflowLogUpdateManyWithoutAnswerNestedInput
30325
+ files?: MessageFileUpdateManyWithoutAnswerNestedInput
28724
30326
  }
28725
30327
 
28726
30328
  export type AnswerUncheckedUpdateWithoutReferencesInput = {
@@ -28741,6 +30343,7 @@ export namespace Prisma {
28741
30343
  feedback?: FeedbackUncheckedUpdateOneWithoutAnswerNestedInput
28742
30344
  metrics?: AnswerMetricsUncheckedUpdateOneWithoutAnswerNestedInput
28743
30345
  WorkflowLog?: WorkflowLogUncheckedUpdateManyWithoutAnswerNestedInput
30346
+ files?: MessageFileUncheckedUpdateManyWithoutAnswerNestedInput
28744
30347
  }
28745
30348
 
28746
30349
  export type SessionCreateWithoutPageViewsInput = {
@@ -29400,6 +31003,7 @@ export namespace Prisma {
29400
31003
  feedback?: FeedbackCreateNestedOneWithoutAnswerInput
29401
31004
  references?: ReferenceCreateNestedManyWithoutAnswerInput
29402
31005
  metrics?: AnswerMetricsCreateNestedOneWithoutAnswerInput
31006
+ files?: MessageFileCreateNestedManyWithoutAnswerInput
29403
31007
  }
29404
31008
 
29405
31009
  export type AnswerUncheckedCreateWithoutWorkflowLogInput = {
@@ -29420,6 +31024,7 @@ export namespace Prisma {
29420
31024
  feedback?: FeedbackUncheckedCreateNestedOneWithoutAnswerInput
29421
31025
  references?: ReferenceUncheckedCreateNestedManyWithoutAnswerInput
29422
31026
  metrics?: AnswerMetricsUncheckedCreateNestedOneWithoutAnswerInput
31027
+ files?: MessageFileUncheckedCreateNestedManyWithoutAnswerInput
29423
31028
  }
29424
31029
 
29425
31030
  export type AnswerCreateOrConnectWithoutWorkflowLogInput = {
@@ -29637,6 +31242,7 @@ export namespace Prisma {
29637
31242
  feedback?: FeedbackUpdateOneWithoutAnswerNestedInput
29638
31243
  references?: ReferenceUpdateManyWithoutAnswerNestedInput
29639
31244
  metrics?: AnswerMetricsUpdateOneWithoutAnswerNestedInput
31245
+ files?: MessageFileUpdateManyWithoutAnswerNestedInput
29640
31246
  }
29641
31247
 
29642
31248
  export type AnswerUncheckedUpdateWithoutWorkflowLogInput = {
@@ -29657,6 +31263,7 @@ export namespace Prisma {
29657
31263
  feedback?: FeedbackUncheckedUpdateOneWithoutAnswerNestedInput
29658
31264
  references?: ReferenceUncheckedUpdateManyWithoutAnswerNestedInput
29659
31265
  metrics?: AnswerMetricsUncheckedUpdateOneWithoutAnswerNestedInput
31266
+ files?: MessageFileUncheckedUpdateManyWithoutAnswerNestedInput
29660
31267
  }
29661
31268
 
29662
31269
  export type WorkflowLogCreateWithoutStepsInput = {
@@ -30194,6 +31801,7 @@ export namespace Prisma {
30194
31801
  references?: ReferenceUpdateManyWithoutAnswerNestedInput
30195
31802
  metrics?: AnswerMetricsUpdateOneWithoutAnswerNestedInput
30196
31803
  WorkflowLog?: WorkflowLogUpdateManyWithoutAnswerNestedInput
31804
+ files?: MessageFileUpdateManyWithoutAnswerNestedInput
30197
31805
  }
30198
31806
 
30199
31807
  export type AnswerUncheckedUpdateWithoutUserInput = {
@@ -30214,6 +31822,7 @@ export namespace Prisma {
30214
31822
  references?: ReferenceUncheckedUpdateManyWithoutAnswerNestedInput
30215
31823
  metrics?: AnswerMetricsUncheckedUpdateOneWithoutAnswerNestedInput
30216
31824
  WorkflowLog?: WorkflowLogUncheckedUpdateManyWithoutAnswerNestedInput
31825
+ files?: MessageFileUncheckedUpdateManyWithoutAnswerNestedInput
30217
31826
  }
30218
31827
 
30219
31828
  export type AnswerUncheckedUpdateManyWithoutUserInput = {
@@ -30520,6 +32129,7 @@ export namespace Prisma {
30520
32129
  references?: ReferenceUpdateManyWithoutAnswerNestedInput
30521
32130
  metrics?: AnswerMetricsUpdateOneWithoutAnswerNestedInput
30522
32131
  WorkflowLog?: WorkflowLogUpdateManyWithoutAnswerNestedInput
32132
+ files?: MessageFileUpdateManyWithoutAnswerNestedInput
30523
32133
  }
30524
32134
 
30525
32135
  export type AnswerUncheckedUpdateWithoutConversationInput = {
@@ -30540,6 +32150,7 @@ export namespace Prisma {
30540
32150
  references?: ReferenceUncheckedUpdateManyWithoutAnswerNestedInput
30541
32151
  metrics?: AnswerMetricsUncheckedUpdateOneWithoutAnswerNestedInput
30542
32152
  WorkflowLog?: WorkflowLogUncheckedUpdateManyWithoutAnswerNestedInput
32153
+ files?: MessageFileUncheckedUpdateManyWithoutAnswerNestedInput
30543
32154
  }
30544
32155
 
30545
32156
  export type AnswerUncheckedUpdateManyWithoutConversationInput = {
@@ -30627,6 +32238,14 @@ export namespace Prisma {
30627
32238
  metadata?: NullableJsonNullValueInput | InputJsonValue
30628
32239
  }
30629
32240
 
32241
+ export type MessageFileCreateManyAnswerInput = {
32242
+ id?: string
32243
+ fileName: string
32244
+ fileType: string
32245
+ base64Data: string
32246
+ uploadedAt?: Date | string
32247
+ }
32248
+
30630
32249
  export type ReferenceUpdateWithoutAnswerInput = {
30631
32250
  id?: StringFieldUpdateOperationsInput | string
30632
32251
  type?: EnumReferenceTypeFieldUpdateOperationsInput | $Enums.ReferenceType
@@ -30713,6 +32332,30 @@ export namespace Prisma {
30713
32332
  metadata?: NullableJsonNullValueInput | InputJsonValue
30714
32333
  }
30715
32334
 
32335
+ export type MessageFileUpdateWithoutAnswerInput = {
32336
+ id?: StringFieldUpdateOperationsInput | string
32337
+ fileName?: StringFieldUpdateOperationsInput | string
32338
+ fileType?: StringFieldUpdateOperationsInput | string
32339
+ base64Data?: StringFieldUpdateOperationsInput | string
32340
+ uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string
32341
+ }
32342
+
32343
+ export type MessageFileUncheckedUpdateWithoutAnswerInput = {
32344
+ id?: StringFieldUpdateOperationsInput | string
32345
+ fileName?: StringFieldUpdateOperationsInput | string
32346
+ fileType?: StringFieldUpdateOperationsInput | string
32347
+ base64Data?: StringFieldUpdateOperationsInput | string
32348
+ uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string
32349
+ }
32350
+
32351
+ export type MessageFileUncheckedUpdateManyWithoutAnswerInput = {
32352
+ id?: StringFieldUpdateOperationsInput | string
32353
+ fileName?: StringFieldUpdateOperationsInput | string
32354
+ fileType?: StringFieldUpdateOperationsInput | string
32355
+ base64Data?: StringFieldUpdateOperationsInput | string
32356
+ uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string
32357
+ }
32358
+
30716
32359
  export type PageViewCreateManySessionInput = {
30717
32360
  id?: string
30718
32361
  userId?: string | null