procbay-schema 1.0.171 → 1.0.175

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/package.json +13 -22
  2. package/prisma/migrations/20260518124524_added_new_template_builder_changes/migration.sql +26 -0
  3. package/prisma/schema.prisma +17 -7
  4. package/scripts/sync-schemas.js +1 -5
  5. package/src/create-prisma-client.js +9 -49
  6. package/src/prisma/client.d.ts +1 -0
  7. package/src/prisma/client.js +4 -0
  8. package/src/prisma/default.d.ts +1 -0
  9. package/src/prisma/default.js +4 -0
  10. package/src/prisma/edge.d.ts +1 -0
  11. package/src/prisma/edge.js +2911 -0
  12. package/src/{generated/prisma/internal/prismaNamespaceBrowser.ts → prisma/index-browser.js} +991 -739
  13. package/src/prisma/index.d.ts +286785 -0
  14. package/src/prisma/index.js +2940 -2
  15. package/src/prisma/libquery_engine-darwin.dylib.node +0 -0
  16. package/src/prisma/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  17. package/src/prisma/package.json +140 -0
  18. package/src/prisma/query_engine-windows.dll.node +0 -0
  19. package/src/prisma/runtime/edge-esm.js +34 -0
  20. package/src/prisma/runtime/edge.js +34 -0
  21. package/src/prisma/runtime/index-browser.d.ts +370 -0
  22. package/src/prisma/runtime/index-browser.js +16 -0
  23. package/src/prisma/runtime/library.d.ts +3647 -0
  24. package/src/prisma/runtime/library.js +146 -0
  25. package/src/prisma/runtime/react-native.js +83 -0
  26. package/src/prisma/runtime/wasm.js +35 -0
  27. package/src/prisma/schema.prisma +3831 -0
  28. package/src/prisma/wasm.d.ts +1 -0
  29. package/src/prisma/wasm.js +2873 -0
  30. package/prisma/migrations/20260515130204_updated_user_approval_management_schema/migration.sql +0 -55
  31. package/prisma.config.js +0 -19
  32. package/src/generated/prisma/browser.ts +0 -574
  33. package/src/generated/prisma/client.bundle.mjs +0 -6733
  34. package/src/generated/prisma/client.ts +0 -598
  35. package/src/generated/prisma/commonInputTypes.ts +0 -2911
  36. package/src/generated/prisma/enums.ts +0 -730
  37. package/src/generated/prisma/internal/class.ts +0 -1304
  38. package/src/generated/prisma/internal/prismaNamespace.ts +0 -12506
  39. package/src/generated/prisma/models/ActivityLog.ts +0 -1590
  40. package/src/generated/prisma/models/AdminAlert.ts +0 -1547
  41. package/src/generated/prisma/models/ApprovalCondition.ts +0 -2085
  42. package/src/generated/prisma/models/ApprovalDelegation.ts +0 -3057
  43. package/src/generated/prisma/models/ApprovalDelegationDelegate.ts +0 -1784
  44. package/src/generated/prisma/models/ApprovalHierarchy.ts +0 -3083
  45. package/src/generated/prisma/models/ApprovalJourney.ts +0 -2867
  46. package/src/generated/prisma/models/ApprovalLevel.ts +0 -2335
  47. package/src/generated/prisma/models/ApprovalLevelEscalation.ts +0 -2128
  48. package/src/generated/prisma/models/ApprovalLevelEscalationUser.ts +0 -1863
  49. package/src/generated/prisma/models/ApprovalLevelUser.ts +0 -1863
  50. package/src/generated/prisma/models/ApprovalManagement.ts +0 -1728
  51. package/src/generated/prisma/models/Attribute.ts +0 -2075
  52. package/src/generated/prisma/models/AttributeValue.ts +0 -1882
  53. package/src/generated/prisma/models/Bid.ts +0 -2719
  54. package/src/generated/prisma/models/BidLog.ts +0 -3560
  55. package/src/generated/prisma/models/BlanketPurchaseOrder.ts +0 -3527
  56. package/src/generated/prisma/models/BlanketPurchaseOrderItem.ts +0 -2532
  57. package/src/generated/prisma/models/BlanketPurchaseOrderRelease.ts +0 -2713
  58. package/src/generated/prisma/models/BoqEventItem.ts +0 -4056
  59. package/src/generated/prisma/models/Budget.ts +0 -1954
  60. package/src/generated/prisma/models/BudgetHold.ts +0 -1904
  61. package/src/generated/prisma/models/BusinessEntity.ts +0 -3901
  62. package/src/generated/prisma/models/BusinessEntityDepartment.ts +0 -2032
  63. package/src/generated/prisma/models/BusinessEntityLocation.ts +0 -1567
  64. package/src/generated/prisma/models/Catalogue.ts +0 -2081
  65. package/src/generated/prisma/models/CatalogueCart.ts +0 -2305
  66. package/src/generated/prisma/models/CatalogueVendor.ts +0 -2252
  67. package/src/generated/prisma/models/Category.ts +0 -3091
  68. package/src/generated/prisma/models/CategoryBudget.ts +0 -2690
  69. package/src/generated/prisma/models/City.ts +0 -2180
  70. package/src/generated/prisma/models/Cms.ts +0 -1492
  71. package/src/generated/prisma/models/ContactUs.ts +0 -1654
  72. package/src/generated/prisma/models/Conversation.ts +0 -2389
  73. package/src/generated/prisma/models/ConversationParticipant.ts +0 -1833
  74. package/src/generated/prisma/models/CounterOffer.ts +0 -2156
  75. package/src/generated/prisma/models/Country.ts +0 -3394
  76. package/src/generated/prisma/models/Currency.ts +0 -1642
  77. package/src/generated/prisma/models/CustomerNotification.ts +0 -1653
  78. package/src/generated/prisma/models/Department.ts +0 -2372
  79. package/src/generated/prisma/models/DepartmentBudget.ts +0 -2494
  80. package/src/generated/prisma/models/DynamicForm.ts +0 -2021
  81. package/src/generated/prisma/models/EmailTemplate.ts +0 -1516
  82. package/src/generated/prisma/models/Event.ts +0 -6819
  83. package/src/generated/prisma/models/EventConfigurations.ts +0 -1736
  84. package/src/generated/prisma/models/EventCriteria.ts +0 -2134
  85. package/src/generated/prisma/models/EventItems.ts +0 -2821
  86. package/src/generated/prisma/models/EventRfiForm.ts +0 -2020
  87. package/src/generated/prisma/models/EventRfiFormLog.ts +0 -2608
  88. package/src/generated/prisma/models/EventStrategies.ts +0 -1857
  89. package/src/generated/prisma/models/EventVendorCriteria.ts +0 -2186
  90. package/src/generated/prisma/models/EventVendors.ts +0 -3446
  91. package/src/generated/prisma/models/Expense.ts +0 -1625
  92. package/src/generated/prisma/models/ExportLog.ts +0 -1822
  93. package/src/generated/prisma/models/Faq.ts +0 -1753
  94. package/src/generated/prisma/models/FaqCategory.ts +0 -1610
  95. package/src/generated/prisma/models/FiscalYear.ts +0 -1460
  96. package/src/generated/prisma/models/FormMaster.ts +0 -1831
  97. package/src/generated/prisma/models/GRN.ts +0 -3354
  98. package/src/generated/prisma/models/GRNItem.ts +0 -2119
  99. package/src/generated/prisma/models/Industry.ts +0 -1642
  100. package/src/generated/prisma/models/Invoice.ts +0 -2949
  101. package/src/generated/prisma/models/InvoiceItem.ts +0 -2397
  102. package/src/generated/prisma/models/Item.ts +0 -10644
  103. package/src/generated/prisma/models/ItemAttribute.ts +0 -1750
  104. package/src/generated/prisma/models/ItemAttributeValue.ts +0 -1802
  105. package/src/generated/prisma/models/ItemDocument.ts +0 -1590
  106. package/src/generated/prisma/models/Location.ts +0 -2711
  107. package/src/generated/prisma/models/Message.ts +0 -2744
  108. package/src/generated/prisma/models/MessageRecipient.ts +0 -1759
  109. package/src/generated/prisma/models/Module.ts +0 -1630
  110. package/src/generated/prisma/models/Permission.ts +0 -1640
  111. package/src/generated/prisma/models/PurchaseIntake.ts +0 -4672
  112. package/src/generated/prisma/models/PurchaseIntakeItem.ts +0 -2366
  113. package/src/generated/prisma/models/PurchaseOrder.ts +0 -4012
  114. package/src/generated/prisma/models/PurchaseOrderActivityLog.ts +0 -1720
  115. package/src/generated/prisma/models/PurchaseOrderItem.ts +0 -2623
  116. package/src/generated/prisma/models/Quotation.ts +0 -3207
  117. package/src/generated/prisma/models/QuotationLog.ts +0 -3239
  118. package/src/generated/prisma/models/Region.ts +0 -1746
  119. package/src/generated/prisma/models/RequestedCatalogue.ts +0 -1618
  120. package/src/generated/prisma/models/RequestedCatalogueDetails.ts +0 -2252
  121. package/src/generated/prisma/models/Role.ts +0 -1907
  122. package/src/generated/prisma/models/RolePermission.ts +0 -1737
  123. package/src/generated/prisma/models/SendBack.ts +0 -1830
  124. package/src/generated/prisma/models/SerialNumberConfiguration.ts +0 -1254
  125. package/src/generated/prisma/models/SmtpConfig.ts +0 -1522
  126. package/src/generated/prisma/models/State.ts +0 -2174
  127. package/src/generated/prisma/models/Strategies.ts +0 -1791
  128. package/src/generated/prisma/models/SubModule.ts +0 -1450
  129. package/src/generated/prisma/models/Subregion.ts +0 -1870
  130. package/src/generated/prisma/models/SupportCategory.ts +0 -1712
  131. package/src/generated/prisma/models/SupportTicket.ts +0 -2478
  132. package/src/generated/prisma/models/SupportingDocument.ts +0 -2283
  133. package/src/generated/prisma/models/Template.ts +0 -2429
  134. package/src/generated/prisma/models/TemplateField.ts +0 -1916
  135. package/src/generated/prisma/models/TemplateStrategies.ts +0 -1614
  136. package/src/generated/prisma/models/TenantConfiguration.ts +0 -1694
  137. package/src/generated/prisma/models/TicketAssignment.ts +0 -1742
  138. package/src/generated/prisma/models/TicketHistory.ts +0 -1789
  139. package/src/generated/prisma/models/TicketReply.ts +0 -1640
  140. package/src/generated/prisma/models/Uom.ts +0 -1752
  141. package/src/generated/prisma/models/UomCategory.ts +0 -1558
  142. package/src/generated/prisma/models/UploadLog.ts +0 -1731
  143. package/src/generated/prisma/models/User.ts +0 -19397
  144. package/src/generated/prisma/models/UserDepartmentEntity.ts +0 -2099
  145. package/src/generated/prisma/models/UserEventConfiguration.ts +0 -1370
  146. package/src/generated/prisma/models/UserLoginActivity.ts +0 -1693
  147. package/src/generated/prisma/models/UserRole.ts +0 -1696
  148. package/src/generated/prisma/models/UserVendorSocketTokens.ts +0 -1450
  149. package/src/generated/prisma/models/VendorReference.ts +0 -1707
  150. package/src/generated/prisma/models.ts +0 -122
@@ -1,2744 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * This file exports the `Message` model and its related types.
8
- *
9
- * 🟢 You can import this file directly.
10
- */
11
- import type * as runtime from "@prisma/client/runtime/client"
12
- import type * as $Enums from "../enums.ts"
13
- import type * as Prisma from "../internal/prismaNamespace.ts"
14
-
15
- /**
16
- * Model Message
17
- *
18
- */
19
- export type MessageModel = runtime.Types.Result.DefaultSelection<Prisma.$MessagePayload>
20
-
21
- export type AggregateMessage = {
22
- _count: MessageCountAggregateOutputType | null
23
- _avg: MessageAvgAggregateOutputType | null
24
- _sum: MessageSumAggregateOutputType | null
25
- _min: MessageMinAggregateOutputType | null
26
- _max: MessageMaxAggregateOutputType | null
27
- }
28
-
29
- export type MessageAvgAggregateOutputType = {
30
- id: number | null
31
- conversation_id: number | null
32
- sender_user_id: number | null
33
- sender_vendor_id: number | null
34
- created_by: number | null
35
- updated_by: number | null
36
- reply_to_message_id: number | null
37
- }
38
-
39
- export type MessageSumAggregateOutputType = {
40
- id: number | null
41
- conversation_id: number | null
42
- sender_user_id: number | null
43
- sender_vendor_id: number | null
44
- created_by: number | null
45
- updated_by: number | null
46
- reply_to_message_id: number | null
47
- }
48
-
49
- export type MessageMinAggregateOutputType = {
50
- id: number | null
51
- uuid: string | null
52
- conversation_id: number | null
53
- sender_type: $Enums.MessageSenderType | null
54
- sender_user_id: number | null
55
- sender_vendor_id: number | null
56
- broadcast_type: $Enums.MessageBroadcastType | null
57
- message_type: $Enums.MessageType | null
58
- content: string | null
59
- is_edited: boolean | null
60
- edited_at: Date | null
61
- is_deleted: boolean | null
62
- deleted_at: Date | null
63
- created_at: Date | null
64
- created_by: number | null
65
- updated_at: Date | null
66
- updated_by: number | null
67
- reply_to_message_id: number | null
68
- }
69
-
70
- export type MessageMaxAggregateOutputType = {
71
- id: number | null
72
- uuid: string | null
73
- conversation_id: number | null
74
- sender_type: $Enums.MessageSenderType | null
75
- sender_user_id: number | null
76
- sender_vendor_id: number | null
77
- broadcast_type: $Enums.MessageBroadcastType | null
78
- message_type: $Enums.MessageType | null
79
- content: string | null
80
- is_edited: boolean | null
81
- edited_at: Date | null
82
- is_deleted: boolean | null
83
- deleted_at: Date | null
84
- created_at: Date | null
85
- created_by: number | null
86
- updated_at: Date | null
87
- updated_by: number | null
88
- reply_to_message_id: number | null
89
- }
90
-
91
- export type MessageCountAggregateOutputType = {
92
- id: number
93
- uuid: number
94
- conversation_id: number
95
- sender_type: number
96
- sender_user_id: number
97
- sender_vendor_id: number
98
- broadcast_type: number
99
- message_type: number
100
- content: number
101
- file: number
102
- is_edited: number
103
- edited_at: number
104
- is_deleted: number
105
- deleted_at: number
106
- created_at: number
107
- created_by: number
108
- updated_at: number
109
- updated_by: number
110
- reply_to_message_id: number
111
- _all: number
112
- }
113
-
114
-
115
- export type MessageAvgAggregateInputType = {
116
- id?: true
117
- conversation_id?: true
118
- sender_user_id?: true
119
- sender_vendor_id?: true
120
- created_by?: true
121
- updated_by?: true
122
- reply_to_message_id?: true
123
- }
124
-
125
- export type MessageSumAggregateInputType = {
126
- id?: true
127
- conversation_id?: true
128
- sender_user_id?: true
129
- sender_vendor_id?: true
130
- created_by?: true
131
- updated_by?: true
132
- reply_to_message_id?: true
133
- }
134
-
135
- export type MessageMinAggregateInputType = {
136
- id?: true
137
- uuid?: true
138
- conversation_id?: true
139
- sender_type?: true
140
- sender_user_id?: true
141
- sender_vendor_id?: true
142
- broadcast_type?: true
143
- message_type?: true
144
- content?: true
145
- is_edited?: true
146
- edited_at?: true
147
- is_deleted?: true
148
- deleted_at?: true
149
- created_at?: true
150
- created_by?: true
151
- updated_at?: true
152
- updated_by?: true
153
- reply_to_message_id?: true
154
- }
155
-
156
- export type MessageMaxAggregateInputType = {
157
- id?: true
158
- uuid?: true
159
- conversation_id?: true
160
- sender_type?: true
161
- sender_user_id?: true
162
- sender_vendor_id?: true
163
- broadcast_type?: true
164
- message_type?: true
165
- content?: true
166
- is_edited?: true
167
- edited_at?: true
168
- is_deleted?: true
169
- deleted_at?: true
170
- created_at?: true
171
- created_by?: true
172
- updated_at?: true
173
- updated_by?: true
174
- reply_to_message_id?: true
175
- }
176
-
177
- export type MessageCountAggregateInputType = {
178
- id?: true
179
- uuid?: true
180
- conversation_id?: true
181
- sender_type?: true
182
- sender_user_id?: true
183
- sender_vendor_id?: true
184
- broadcast_type?: true
185
- message_type?: true
186
- content?: true
187
- file?: true
188
- is_edited?: true
189
- edited_at?: true
190
- is_deleted?: true
191
- deleted_at?: true
192
- created_at?: true
193
- created_by?: true
194
- updated_at?: true
195
- updated_by?: true
196
- reply_to_message_id?: true
197
- _all?: true
198
- }
199
-
200
- export type MessageAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
201
- /**
202
- * Filter which Message to aggregate.
203
- */
204
- where?: Prisma.MessageWhereInput
205
- /**
206
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
207
- *
208
- * Determine the order of Messages to fetch.
209
- */
210
- orderBy?: Prisma.MessageOrderByWithRelationInput | Prisma.MessageOrderByWithRelationInput[]
211
- /**
212
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
213
- *
214
- * Sets the start position
215
- */
216
- cursor?: Prisma.MessageWhereUniqueInput
217
- /**
218
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
219
- *
220
- * Take `±n` Messages from the position of the cursor.
221
- */
222
- take?: number
223
- /**
224
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
225
- *
226
- * Skip the first `n` Messages.
227
- */
228
- skip?: number
229
- /**
230
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
231
- *
232
- * Count returned Messages
233
- **/
234
- _count?: true | MessageCountAggregateInputType
235
- /**
236
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
237
- *
238
- * Select which fields to average
239
- **/
240
- _avg?: MessageAvgAggregateInputType
241
- /**
242
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
243
- *
244
- * Select which fields to sum
245
- **/
246
- _sum?: MessageSumAggregateInputType
247
- /**
248
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
249
- *
250
- * Select which fields to find the minimum value
251
- **/
252
- _min?: MessageMinAggregateInputType
253
- /**
254
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
255
- *
256
- * Select which fields to find the maximum value
257
- **/
258
- _max?: MessageMaxAggregateInputType
259
- }
260
-
261
- export type GetMessageAggregateType<T extends MessageAggregateArgs> = {
262
- [P in keyof T & keyof AggregateMessage]: P extends '_count' | 'count'
263
- ? T[P] extends true
264
- ? number
265
- : Prisma.GetScalarType<T[P], AggregateMessage[P]>
266
- : Prisma.GetScalarType<T[P], AggregateMessage[P]>
267
- }
268
-
269
-
270
-
271
-
272
- export type MessageGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
273
- where?: Prisma.MessageWhereInput
274
- orderBy?: Prisma.MessageOrderByWithAggregationInput | Prisma.MessageOrderByWithAggregationInput[]
275
- by: Prisma.MessageScalarFieldEnum[] | Prisma.MessageScalarFieldEnum
276
- having?: Prisma.MessageScalarWhereWithAggregatesInput
277
- take?: number
278
- skip?: number
279
- _count?: MessageCountAggregateInputType | true
280
- _avg?: MessageAvgAggregateInputType
281
- _sum?: MessageSumAggregateInputType
282
- _min?: MessageMinAggregateInputType
283
- _max?: MessageMaxAggregateInputType
284
- }
285
-
286
- export type MessageGroupByOutputType = {
287
- id: number
288
- uuid: string | null
289
- conversation_id: number
290
- sender_type: $Enums.MessageSenderType
291
- sender_user_id: number | null
292
- sender_vendor_id: number | null
293
- broadcast_type: $Enums.MessageBroadcastType
294
- message_type: $Enums.MessageType
295
- content: string | null
296
- file: runtime.JsonValue | null
297
- is_edited: boolean
298
- edited_at: Date | null
299
- is_deleted: boolean
300
- deleted_at: Date | null
301
- created_at: Date
302
- created_by: number | null
303
- updated_at: Date | null
304
- updated_by: number | null
305
- reply_to_message_id: number | null
306
- _count: MessageCountAggregateOutputType | null
307
- _avg: MessageAvgAggregateOutputType | null
308
- _sum: MessageSumAggregateOutputType | null
309
- _min: MessageMinAggregateOutputType | null
310
- _max: MessageMaxAggregateOutputType | null
311
- }
312
-
313
- export type GetMessageGroupByPayload<T extends MessageGroupByArgs> = Prisma.PrismaPromise<
314
- Array<
315
- Prisma.PickEnumerable<MessageGroupByOutputType, T['by']> &
316
- {
317
- [P in ((keyof T) & (keyof MessageGroupByOutputType))]: P extends '_count'
318
- ? T[P] extends boolean
319
- ? number
320
- : Prisma.GetScalarType<T[P], MessageGroupByOutputType[P]>
321
- : Prisma.GetScalarType<T[P], MessageGroupByOutputType[P]>
322
- }
323
- >
324
- >
325
-
326
-
327
-
328
- export type MessageWhereInput = {
329
- AND?: Prisma.MessageWhereInput | Prisma.MessageWhereInput[]
330
- OR?: Prisma.MessageWhereInput[]
331
- NOT?: Prisma.MessageWhereInput | Prisma.MessageWhereInput[]
332
- id?: Prisma.IntFilter<"Message"> | number
333
- uuid?: Prisma.StringNullableFilter<"Message"> | string | null
334
- conversation_id?: Prisma.IntFilter<"Message"> | number
335
- sender_type?: Prisma.EnumMessageSenderTypeFilter<"Message"> | $Enums.MessageSenderType
336
- sender_user_id?: Prisma.IntNullableFilter<"Message"> | number | null
337
- sender_vendor_id?: Prisma.IntNullableFilter<"Message"> | number | null
338
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFilter<"Message"> | $Enums.MessageBroadcastType
339
- message_type?: Prisma.EnumMessageTypeFilter<"Message"> | $Enums.MessageType
340
- content?: Prisma.StringNullableFilter<"Message"> | string | null
341
- file?: Prisma.JsonNullableFilter<"Message">
342
- is_edited?: Prisma.BoolFilter<"Message"> | boolean
343
- edited_at?: Prisma.DateTimeNullableFilter<"Message"> | Date | string | null
344
- is_deleted?: Prisma.BoolFilter<"Message"> | boolean
345
- deleted_at?: Prisma.DateTimeNullableFilter<"Message"> | Date | string | null
346
- created_at?: Prisma.DateTimeFilter<"Message"> | Date | string
347
- created_by?: Prisma.IntNullableFilter<"Message"> | number | null
348
- updated_at?: Prisma.DateTimeNullableFilter<"Message"> | Date | string | null
349
- updated_by?: Prisma.IntNullableFilter<"Message"> | number | null
350
- reply_to_message_id?: Prisma.IntNullableFilter<"Message"> | number | null
351
- conversation?: Prisma.XOR<Prisma.ConversationScalarRelationFilter, Prisma.ConversationWhereInput>
352
- sender_user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
353
- reply_to_message?: Prisma.XOR<Prisma.MessageNullableScalarRelationFilter, Prisma.MessageWhereInput> | null
354
- replies?: Prisma.MessageListRelationFilter
355
- recipients?: Prisma.MessageRecipientListRelationFilter
356
- }
357
-
358
- export type MessageOrderByWithRelationInput = {
359
- id?: Prisma.SortOrder
360
- uuid?: Prisma.SortOrderInput | Prisma.SortOrder
361
- conversation_id?: Prisma.SortOrder
362
- sender_type?: Prisma.SortOrder
363
- sender_user_id?: Prisma.SortOrderInput | Prisma.SortOrder
364
- sender_vendor_id?: Prisma.SortOrderInput | Prisma.SortOrder
365
- broadcast_type?: Prisma.SortOrder
366
- message_type?: Prisma.SortOrder
367
- content?: Prisma.SortOrderInput | Prisma.SortOrder
368
- file?: Prisma.SortOrderInput | Prisma.SortOrder
369
- is_edited?: Prisma.SortOrder
370
- edited_at?: Prisma.SortOrderInput | Prisma.SortOrder
371
- is_deleted?: Prisma.SortOrder
372
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
373
- created_at?: Prisma.SortOrder
374
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
375
- updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
376
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
377
- reply_to_message_id?: Prisma.SortOrderInput | Prisma.SortOrder
378
- conversation?: Prisma.ConversationOrderByWithRelationInput
379
- sender_user?: Prisma.UserOrderByWithRelationInput
380
- reply_to_message?: Prisma.MessageOrderByWithRelationInput
381
- replies?: Prisma.MessageOrderByRelationAggregateInput
382
- recipients?: Prisma.MessageRecipientOrderByRelationAggregateInput
383
- }
384
-
385
- export type MessageWhereUniqueInput = Prisma.AtLeast<{
386
- id?: number
387
- uuid?: string
388
- AND?: Prisma.MessageWhereInput | Prisma.MessageWhereInput[]
389
- OR?: Prisma.MessageWhereInput[]
390
- NOT?: Prisma.MessageWhereInput | Prisma.MessageWhereInput[]
391
- conversation_id?: Prisma.IntFilter<"Message"> | number
392
- sender_type?: Prisma.EnumMessageSenderTypeFilter<"Message"> | $Enums.MessageSenderType
393
- sender_user_id?: Prisma.IntNullableFilter<"Message"> | number | null
394
- sender_vendor_id?: Prisma.IntNullableFilter<"Message"> | number | null
395
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFilter<"Message"> | $Enums.MessageBroadcastType
396
- message_type?: Prisma.EnumMessageTypeFilter<"Message"> | $Enums.MessageType
397
- content?: Prisma.StringNullableFilter<"Message"> | string | null
398
- file?: Prisma.JsonNullableFilter<"Message">
399
- is_edited?: Prisma.BoolFilter<"Message"> | boolean
400
- edited_at?: Prisma.DateTimeNullableFilter<"Message"> | Date | string | null
401
- is_deleted?: Prisma.BoolFilter<"Message"> | boolean
402
- deleted_at?: Prisma.DateTimeNullableFilter<"Message"> | Date | string | null
403
- created_at?: Prisma.DateTimeFilter<"Message"> | Date | string
404
- created_by?: Prisma.IntNullableFilter<"Message"> | number | null
405
- updated_at?: Prisma.DateTimeNullableFilter<"Message"> | Date | string | null
406
- updated_by?: Prisma.IntNullableFilter<"Message"> | number | null
407
- reply_to_message_id?: Prisma.IntNullableFilter<"Message"> | number | null
408
- conversation?: Prisma.XOR<Prisma.ConversationScalarRelationFilter, Prisma.ConversationWhereInput>
409
- sender_user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
410
- reply_to_message?: Prisma.XOR<Prisma.MessageNullableScalarRelationFilter, Prisma.MessageWhereInput> | null
411
- replies?: Prisma.MessageListRelationFilter
412
- recipients?: Prisma.MessageRecipientListRelationFilter
413
- }, "id" | "uuid">
414
-
415
- export type MessageOrderByWithAggregationInput = {
416
- id?: Prisma.SortOrder
417
- uuid?: Prisma.SortOrderInput | Prisma.SortOrder
418
- conversation_id?: Prisma.SortOrder
419
- sender_type?: Prisma.SortOrder
420
- sender_user_id?: Prisma.SortOrderInput | Prisma.SortOrder
421
- sender_vendor_id?: Prisma.SortOrderInput | Prisma.SortOrder
422
- broadcast_type?: Prisma.SortOrder
423
- message_type?: Prisma.SortOrder
424
- content?: Prisma.SortOrderInput | Prisma.SortOrder
425
- file?: Prisma.SortOrderInput | Prisma.SortOrder
426
- is_edited?: Prisma.SortOrder
427
- edited_at?: Prisma.SortOrderInput | Prisma.SortOrder
428
- is_deleted?: Prisma.SortOrder
429
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
430
- created_at?: Prisma.SortOrder
431
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
432
- updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
433
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
434
- reply_to_message_id?: Prisma.SortOrderInput | Prisma.SortOrder
435
- _count?: Prisma.MessageCountOrderByAggregateInput
436
- _avg?: Prisma.MessageAvgOrderByAggregateInput
437
- _max?: Prisma.MessageMaxOrderByAggregateInput
438
- _min?: Prisma.MessageMinOrderByAggregateInput
439
- _sum?: Prisma.MessageSumOrderByAggregateInput
440
- }
441
-
442
- export type MessageScalarWhereWithAggregatesInput = {
443
- AND?: Prisma.MessageScalarWhereWithAggregatesInput | Prisma.MessageScalarWhereWithAggregatesInput[]
444
- OR?: Prisma.MessageScalarWhereWithAggregatesInput[]
445
- NOT?: Prisma.MessageScalarWhereWithAggregatesInput | Prisma.MessageScalarWhereWithAggregatesInput[]
446
- id?: Prisma.IntWithAggregatesFilter<"Message"> | number
447
- uuid?: Prisma.StringNullableWithAggregatesFilter<"Message"> | string | null
448
- conversation_id?: Prisma.IntWithAggregatesFilter<"Message"> | number
449
- sender_type?: Prisma.EnumMessageSenderTypeWithAggregatesFilter<"Message"> | $Enums.MessageSenderType
450
- sender_user_id?: Prisma.IntNullableWithAggregatesFilter<"Message"> | number | null
451
- sender_vendor_id?: Prisma.IntNullableWithAggregatesFilter<"Message"> | number | null
452
- broadcast_type?: Prisma.EnumMessageBroadcastTypeWithAggregatesFilter<"Message"> | $Enums.MessageBroadcastType
453
- message_type?: Prisma.EnumMessageTypeWithAggregatesFilter<"Message"> | $Enums.MessageType
454
- content?: Prisma.StringNullableWithAggregatesFilter<"Message"> | string | null
455
- file?: Prisma.JsonNullableWithAggregatesFilter<"Message">
456
- is_edited?: Prisma.BoolWithAggregatesFilter<"Message"> | boolean
457
- edited_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Message"> | Date | string | null
458
- is_deleted?: Prisma.BoolWithAggregatesFilter<"Message"> | boolean
459
- deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Message"> | Date | string | null
460
- created_at?: Prisma.DateTimeWithAggregatesFilter<"Message"> | Date | string
461
- created_by?: Prisma.IntNullableWithAggregatesFilter<"Message"> | number | null
462
- updated_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Message"> | Date | string | null
463
- updated_by?: Prisma.IntNullableWithAggregatesFilter<"Message"> | number | null
464
- reply_to_message_id?: Prisma.IntNullableWithAggregatesFilter<"Message"> | number | null
465
- }
466
-
467
- export type MessageCreateInput = {
468
- uuid?: string | null
469
- sender_type: $Enums.MessageSenderType
470
- sender_vendor_id?: number | null
471
- broadcast_type?: $Enums.MessageBroadcastType
472
- message_type?: $Enums.MessageType
473
- content?: string | null
474
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
475
- is_edited?: boolean
476
- edited_at?: Date | string | null
477
- is_deleted?: boolean
478
- deleted_at?: Date | string | null
479
- created_at?: Date | string
480
- created_by?: number | null
481
- updated_at?: Date | string | null
482
- updated_by?: number | null
483
- conversation: Prisma.ConversationCreateNestedOneWithoutMessagesInput
484
- sender_user?: Prisma.UserCreateNestedOneWithoutMessages_sentInput
485
- reply_to_message?: Prisma.MessageCreateNestedOneWithoutRepliesInput
486
- replies?: Prisma.MessageCreateNestedManyWithoutReply_to_messageInput
487
- recipients?: Prisma.MessageRecipientCreateNestedManyWithoutMessageInput
488
- }
489
-
490
- export type MessageUncheckedCreateInput = {
491
- id?: number
492
- uuid?: string | null
493
- conversation_id: number
494
- sender_type: $Enums.MessageSenderType
495
- sender_user_id?: number | null
496
- sender_vendor_id?: number | null
497
- broadcast_type?: $Enums.MessageBroadcastType
498
- message_type?: $Enums.MessageType
499
- content?: string | null
500
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
501
- is_edited?: boolean
502
- edited_at?: Date | string | null
503
- is_deleted?: boolean
504
- deleted_at?: Date | string | null
505
- created_at?: Date | string
506
- created_by?: number | null
507
- updated_at?: Date | string | null
508
- updated_by?: number | null
509
- reply_to_message_id?: number | null
510
- replies?: Prisma.MessageUncheckedCreateNestedManyWithoutReply_to_messageInput
511
- recipients?: Prisma.MessageRecipientUncheckedCreateNestedManyWithoutMessageInput
512
- }
513
-
514
- export type MessageUpdateInput = {
515
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
516
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
517
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
518
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
519
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
520
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
521
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
522
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
523
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
524
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
525
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
526
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
527
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
528
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
529
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
530
- conversation?: Prisma.ConversationUpdateOneRequiredWithoutMessagesNestedInput
531
- sender_user?: Prisma.UserUpdateOneWithoutMessages_sentNestedInput
532
- reply_to_message?: Prisma.MessageUpdateOneWithoutRepliesNestedInput
533
- replies?: Prisma.MessageUpdateManyWithoutReply_to_messageNestedInput
534
- recipients?: Prisma.MessageRecipientUpdateManyWithoutMessageNestedInput
535
- }
536
-
537
- export type MessageUncheckedUpdateInput = {
538
- id?: Prisma.IntFieldUpdateOperationsInput | number
539
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
540
- conversation_id?: Prisma.IntFieldUpdateOperationsInput | number
541
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
542
- sender_user_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
543
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
544
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
545
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
546
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
547
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
548
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
549
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
550
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
551
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
552
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
553
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
554
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
555
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
556
- reply_to_message_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
557
- replies?: Prisma.MessageUncheckedUpdateManyWithoutReply_to_messageNestedInput
558
- recipients?: Prisma.MessageRecipientUncheckedUpdateManyWithoutMessageNestedInput
559
- }
560
-
561
- export type MessageCreateManyInput = {
562
- id?: number
563
- uuid?: string | null
564
- conversation_id: number
565
- sender_type: $Enums.MessageSenderType
566
- sender_user_id?: number | null
567
- sender_vendor_id?: number | null
568
- broadcast_type?: $Enums.MessageBroadcastType
569
- message_type?: $Enums.MessageType
570
- content?: string | null
571
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
572
- is_edited?: boolean
573
- edited_at?: Date | string | null
574
- is_deleted?: boolean
575
- deleted_at?: Date | string | null
576
- created_at?: Date | string
577
- created_by?: number | null
578
- updated_at?: Date | string | null
579
- updated_by?: number | null
580
- reply_to_message_id?: number | null
581
- }
582
-
583
- export type MessageUpdateManyMutationInput = {
584
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
585
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
586
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
587
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
588
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
589
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
590
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
591
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
592
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
593
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
594
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
595
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
596
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
597
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
598
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
599
- }
600
-
601
- export type MessageUncheckedUpdateManyInput = {
602
- id?: Prisma.IntFieldUpdateOperationsInput | number
603
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
604
- conversation_id?: Prisma.IntFieldUpdateOperationsInput | number
605
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
606
- sender_user_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
607
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
608
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
609
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
610
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
611
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
612
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
613
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
614
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
615
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
616
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
617
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
618
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
619
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
620
- reply_to_message_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
621
- }
622
-
623
- export type MessageListRelationFilter = {
624
- every?: Prisma.MessageWhereInput
625
- some?: Prisma.MessageWhereInput
626
- none?: Prisma.MessageWhereInput
627
- }
628
-
629
- export type MessageOrderByRelationAggregateInput = {
630
- _count?: Prisma.SortOrder
631
- }
632
-
633
- export type MessageNullableScalarRelationFilter = {
634
- is?: Prisma.MessageWhereInput | null
635
- isNot?: Prisma.MessageWhereInput | null
636
- }
637
-
638
- export type MessageCountOrderByAggregateInput = {
639
- id?: Prisma.SortOrder
640
- uuid?: Prisma.SortOrder
641
- conversation_id?: Prisma.SortOrder
642
- sender_type?: Prisma.SortOrder
643
- sender_user_id?: Prisma.SortOrder
644
- sender_vendor_id?: Prisma.SortOrder
645
- broadcast_type?: Prisma.SortOrder
646
- message_type?: Prisma.SortOrder
647
- content?: Prisma.SortOrder
648
- file?: Prisma.SortOrder
649
- is_edited?: Prisma.SortOrder
650
- edited_at?: Prisma.SortOrder
651
- is_deleted?: Prisma.SortOrder
652
- deleted_at?: Prisma.SortOrder
653
- created_at?: Prisma.SortOrder
654
- created_by?: Prisma.SortOrder
655
- updated_at?: Prisma.SortOrder
656
- updated_by?: Prisma.SortOrder
657
- reply_to_message_id?: Prisma.SortOrder
658
- }
659
-
660
- export type MessageAvgOrderByAggregateInput = {
661
- id?: Prisma.SortOrder
662
- conversation_id?: Prisma.SortOrder
663
- sender_user_id?: Prisma.SortOrder
664
- sender_vendor_id?: Prisma.SortOrder
665
- created_by?: Prisma.SortOrder
666
- updated_by?: Prisma.SortOrder
667
- reply_to_message_id?: Prisma.SortOrder
668
- }
669
-
670
- export type MessageMaxOrderByAggregateInput = {
671
- id?: Prisma.SortOrder
672
- uuid?: Prisma.SortOrder
673
- conversation_id?: Prisma.SortOrder
674
- sender_type?: Prisma.SortOrder
675
- sender_user_id?: Prisma.SortOrder
676
- sender_vendor_id?: Prisma.SortOrder
677
- broadcast_type?: Prisma.SortOrder
678
- message_type?: Prisma.SortOrder
679
- content?: Prisma.SortOrder
680
- is_edited?: Prisma.SortOrder
681
- edited_at?: Prisma.SortOrder
682
- is_deleted?: Prisma.SortOrder
683
- deleted_at?: Prisma.SortOrder
684
- created_at?: Prisma.SortOrder
685
- created_by?: Prisma.SortOrder
686
- updated_at?: Prisma.SortOrder
687
- updated_by?: Prisma.SortOrder
688
- reply_to_message_id?: Prisma.SortOrder
689
- }
690
-
691
- export type MessageMinOrderByAggregateInput = {
692
- id?: Prisma.SortOrder
693
- uuid?: Prisma.SortOrder
694
- conversation_id?: Prisma.SortOrder
695
- sender_type?: Prisma.SortOrder
696
- sender_user_id?: Prisma.SortOrder
697
- sender_vendor_id?: Prisma.SortOrder
698
- broadcast_type?: Prisma.SortOrder
699
- message_type?: Prisma.SortOrder
700
- content?: Prisma.SortOrder
701
- is_edited?: Prisma.SortOrder
702
- edited_at?: Prisma.SortOrder
703
- is_deleted?: Prisma.SortOrder
704
- deleted_at?: Prisma.SortOrder
705
- created_at?: Prisma.SortOrder
706
- created_by?: Prisma.SortOrder
707
- updated_at?: Prisma.SortOrder
708
- updated_by?: Prisma.SortOrder
709
- reply_to_message_id?: Prisma.SortOrder
710
- }
711
-
712
- export type MessageSumOrderByAggregateInput = {
713
- id?: Prisma.SortOrder
714
- conversation_id?: Prisma.SortOrder
715
- sender_user_id?: Prisma.SortOrder
716
- sender_vendor_id?: Prisma.SortOrder
717
- created_by?: Prisma.SortOrder
718
- updated_by?: Prisma.SortOrder
719
- reply_to_message_id?: Prisma.SortOrder
720
- }
721
-
722
- export type MessageScalarRelationFilter = {
723
- is?: Prisma.MessageWhereInput
724
- isNot?: Prisma.MessageWhereInput
725
- }
726
-
727
- export type MessageCreateNestedManyWithoutSender_userInput = {
728
- create?: Prisma.XOR<Prisma.MessageCreateWithoutSender_userInput, Prisma.MessageUncheckedCreateWithoutSender_userInput> | Prisma.MessageCreateWithoutSender_userInput[] | Prisma.MessageUncheckedCreateWithoutSender_userInput[]
729
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutSender_userInput | Prisma.MessageCreateOrConnectWithoutSender_userInput[]
730
- createMany?: Prisma.MessageCreateManySender_userInputEnvelope
731
- connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
732
- }
733
-
734
- export type MessageUncheckedCreateNestedManyWithoutSender_userInput = {
735
- create?: Prisma.XOR<Prisma.MessageCreateWithoutSender_userInput, Prisma.MessageUncheckedCreateWithoutSender_userInput> | Prisma.MessageCreateWithoutSender_userInput[] | Prisma.MessageUncheckedCreateWithoutSender_userInput[]
736
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutSender_userInput | Prisma.MessageCreateOrConnectWithoutSender_userInput[]
737
- createMany?: Prisma.MessageCreateManySender_userInputEnvelope
738
- connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
739
- }
740
-
741
- export type MessageUpdateManyWithoutSender_userNestedInput = {
742
- create?: Prisma.XOR<Prisma.MessageCreateWithoutSender_userInput, Prisma.MessageUncheckedCreateWithoutSender_userInput> | Prisma.MessageCreateWithoutSender_userInput[] | Prisma.MessageUncheckedCreateWithoutSender_userInput[]
743
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutSender_userInput | Prisma.MessageCreateOrConnectWithoutSender_userInput[]
744
- upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutSender_userInput | Prisma.MessageUpsertWithWhereUniqueWithoutSender_userInput[]
745
- createMany?: Prisma.MessageCreateManySender_userInputEnvelope
746
- set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
747
- disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
748
- delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
749
- connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
750
- update?: Prisma.MessageUpdateWithWhereUniqueWithoutSender_userInput | Prisma.MessageUpdateWithWhereUniqueWithoutSender_userInput[]
751
- updateMany?: Prisma.MessageUpdateManyWithWhereWithoutSender_userInput | Prisma.MessageUpdateManyWithWhereWithoutSender_userInput[]
752
- deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[]
753
- }
754
-
755
- export type MessageUncheckedUpdateManyWithoutSender_userNestedInput = {
756
- create?: Prisma.XOR<Prisma.MessageCreateWithoutSender_userInput, Prisma.MessageUncheckedCreateWithoutSender_userInput> | Prisma.MessageCreateWithoutSender_userInput[] | Prisma.MessageUncheckedCreateWithoutSender_userInput[]
757
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutSender_userInput | Prisma.MessageCreateOrConnectWithoutSender_userInput[]
758
- upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutSender_userInput | Prisma.MessageUpsertWithWhereUniqueWithoutSender_userInput[]
759
- createMany?: Prisma.MessageCreateManySender_userInputEnvelope
760
- set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
761
- disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
762
- delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
763
- connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
764
- update?: Prisma.MessageUpdateWithWhereUniqueWithoutSender_userInput | Prisma.MessageUpdateWithWhereUniqueWithoutSender_userInput[]
765
- updateMany?: Prisma.MessageUpdateManyWithWhereWithoutSender_userInput | Prisma.MessageUpdateManyWithWhereWithoutSender_userInput[]
766
- deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[]
767
- }
768
-
769
- export type MessageCreateNestedManyWithoutConversationInput = {
770
- create?: Prisma.XOR<Prisma.MessageCreateWithoutConversationInput, Prisma.MessageUncheckedCreateWithoutConversationInput> | Prisma.MessageCreateWithoutConversationInput[] | Prisma.MessageUncheckedCreateWithoutConversationInput[]
771
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutConversationInput | Prisma.MessageCreateOrConnectWithoutConversationInput[]
772
- createMany?: Prisma.MessageCreateManyConversationInputEnvelope
773
- connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
774
- }
775
-
776
- export type MessageUncheckedCreateNestedManyWithoutConversationInput = {
777
- create?: Prisma.XOR<Prisma.MessageCreateWithoutConversationInput, Prisma.MessageUncheckedCreateWithoutConversationInput> | Prisma.MessageCreateWithoutConversationInput[] | Prisma.MessageUncheckedCreateWithoutConversationInput[]
778
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutConversationInput | Prisma.MessageCreateOrConnectWithoutConversationInput[]
779
- createMany?: Prisma.MessageCreateManyConversationInputEnvelope
780
- connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
781
- }
782
-
783
- export type MessageUpdateManyWithoutConversationNestedInput = {
784
- create?: Prisma.XOR<Prisma.MessageCreateWithoutConversationInput, Prisma.MessageUncheckedCreateWithoutConversationInput> | Prisma.MessageCreateWithoutConversationInput[] | Prisma.MessageUncheckedCreateWithoutConversationInput[]
785
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutConversationInput | Prisma.MessageCreateOrConnectWithoutConversationInput[]
786
- upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutConversationInput | Prisma.MessageUpsertWithWhereUniqueWithoutConversationInput[]
787
- createMany?: Prisma.MessageCreateManyConversationInputEnvelope
788
- set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
789
- disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
790
- delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
791
- connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
792
- update?: Prisma.MessageUpdateWithWhereUniqueWithoutConversationInput | Prisma.MessageUpdateWithWhereUniqueWithoutConversationInput[]
793
- updateMany?: Prisma.MessageUpdateManyWithWhereWithoutConversationInput | Prisma.MessageUpdateManyWithWhereWithoutConversationInput[]
794
- deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[]
795
- }
796
-
797
- export type MessageUncheckedUpdateManyWithoutConversationNestedInput = {
798
- create?: Prisma.XOR<Prisma.MessageCreateWithoutConversationInput, Prisma.MessageUncheckedCreateWithoutConversationInput> | Prisma.MessageCreateWithoutConversationInput[] | Prisma.MessageUncheckedCreateWithoutConversationInput[]
799
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutConversationInput | Prisma.MessageCreateOrConnectWithoutConversationInput[]
800
- upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutConversationInput | Prisma.MessageUpsertWithWhereUniqueWithoutConversationInput[]
801
- createMany?: Prisma.MessageCreateManyConversationInputEnvelope
802
- set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
803
- disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
804
- delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
805
- connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
806
- update?: Prisma.MessageUpdateWithWhereUniqueWithoutConversationInput | Prisma.MessageUpdateWithWhereUniqueWithoutConversationInput[]
807
- updateMany?: Prisma.MessageUpdateManyWithWhereWithoutConversationInput | Prisma.MessageUpdateManyWithWhereWithoutConversationInput[]
808
- deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[]
809
- }
810
-
811
- export type MessageCreateNestedOneWithoutRepliesInput = {
812
- create?: Prisma.XOR<Prisma.MessageCreateWithoutRepliesInput, Prisma.MessageUncheckedCreateWithoutRepliesInput>
813
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutRepliesInput
814
- connect?: Prisma.MessageWhereUniqueInput
815
- }
816
-
817
- export type MessageCreateNestedManyWithoutReply_to_messageInput = {
818
- create?: Prisma.XOR<Prisma.MessageCreateWithoutReply_to_messageInput, Prisma.MessageUncheckedCreateWithoutReply_to_messageInput> | Prisma.MessageCreateWithoutReply_to_messageInput[] | Prisma.MessageUncheckedCreateWithoutReply_to_messageInput[]
819
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutReply_to_messageInput | Prisma.MessageCreateOrConnectWithoutReply_to_messageInput[]
820
- createMany?: Prisma.MessageCreateManyReply_to_messageInputEnvelope
821
- connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
822
- }
823
-
824
- export type MessageUncheckedCreateNestedManyWithoutReply_to_messageInput = {
825
- create?: Prisma.XOR<Prisma.MessageCreateWithoutReply_to_messageInput, Prisma.MessageUncheckedCreateWithoutReply_to_messageInput> | Prisma.MessageCreateWithoutReply_to_messageInput[] | Prisma.MessageUncheckedCreateWithoutReply_to_messageInput[]
826
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutReply_to_messageInput | Prisma.MessageCreateOrConnectWithoutReply_to_messageInput[]
827
- createMany?: Prisma.MessageCreateManyReply_to_messageInputEnvelope
828
- connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
829
- }
830
-
831
- export type EnumMessageSenderTypeFieldUpdateOperationsInput = {
832
- set?: $Enums.MessageSenderType
833
- }
834
-
835
- export type EnumMessageBroadcastTypeFieldUpdateOperationsInput = {
836
- set?: $Enums.MessageBroadcastType
837
- }
838
-
839
- export type EnumMessageTypeFieldUpdateOperationsInput = {
840
- set?: $Enums.MessageType
841
- }
842
-
843
- export type MessageUpdateOneWithoutRepliesNestedInput = {
844
- create?: Prisma.XOR<Prisma.MessageCreateWithoutRepliesInput, Prisma.MessageUncheckedCreateWithoutRepliesInput>
845
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutRepliesInput
846
- upsert?: Prisma.MessageUpsertWithoutRepliesInput
847
- disconnect?: Prisma.MessageWhereInput | boolean
848
- delete?: Prisma.MessageWhereInput | boolean
849
- connect?: Prisma.MessageWhereUniqueInput
850
- update?: Prisma.XOR<Prisma.XOR<Prisma.MessageUpdateToOneWithWhereWithoutRepliesInput, Prisma.MessageUpdateWithoutRepliesInput>, Prisma.MessageUncheckedUpdateWithoutRepliesInput>
851
- }
852
-
853
- export type MessageUpdateManyWithoutReply_to_messageNestedInput = {
854
- create?: Prisma.XOR<Prisma.MessageCreateWithoutReply_to_messageInput, Prisma.MessageUncheckedCreateWithoutReply_to_messageInput> | Prisma.MessageCreateWithoutReply_to_messageInput[] | Prisma.MessageUncheckedCreateWithoutReply_to_messageInput[]
855
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutReply_to_messageInput | Prisma.MessageCreateOrConnectWithoutReply_to_messageInput[]
856
- upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutReply_to_messageInput | Prisma.MessageUpsertWithWhereUniqueWithoutReply_to_messageInput[]
857
- createMany?: Prisma.MessageCreateManyReply_to_messageInputEnvelope
858
- set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
859
- disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
860
- delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
861
- connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
862
- update?: Prisma.MessageUpdateWithWhereUniqueWithoutReply_to_messageInput | Prisma.MessageUpdateWithWhereUniqueWithoutReply_to_messageInput[]
863
- updateMany?: Prisma.MessageUpdateManyWithWhereWithoutReply_to_messageInput | Prisma.MessageUpdateManyWithWhereWithoutReply_to_messageInput[]
864
- deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[]
865
- }
866
-
867
- export type MessageUncheckedUpdateManyWithoutReply_to_messageNestedInput = {
868
- create?: Prisma.XOR<Prisma.MessageCreateWithoutReply_to_messageInput, Prisma.MessageUncheckedCreateWithoutReply_to_messageInput> | Prisma.MessageCreateWithoutReply_to_messageInput[] | Prisma.MessageUncheckedCreateWithoutReply_to_messageInput[]
869
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutReply_to_messageInput | Prisma.MessageCreateOrConnectWithoutReply_to_messageInput[]
870
- upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutReply_to_messageInput | Prisma.MessageUpsertWithWhereUniqueWithoutReply_to_messageInput[]
871
- createMany?: Prisma.MessageCreateManyReply_to_messageInputEnvelope
872
- set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
873
- disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
874
- delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
875
- connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[]
876
- update?: Prisma.MessageUpdateWithWhereUniqueWithoutReply_to_messageInput | Prisma.MessageUpdateWithWhereUniqueWithoutReply_to_messageInput[]
877
- updateMany?: Prisma.MessageUpdateManyWithWhereWithoutReply_to_messageInput | Prisma.MessageUpdateManyWithWhereWithoutReply_to_messageInput[]
878
- deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[]
879
- }
880
-
881
- export type MessageCreateNestedOneWithoutRecipientsInput = {
882
- create?: Prisma.XOR<Prisma.MessageCreateWithoutRecipientsInput, Prisma.MessageUncheckedCreateWithoutRecipientsInput>
883
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutRecipientsInput
884
- connect?: Prisma.MessageWhereUniqueInput
885
- }
886
-
887
- export type MessageUpdateOneRequiredWithoutRecipientsNestedInput = {
888
- create?: Prisma.XOR<Prisma.MessageCreateWithoutRecipientsInput, Prisma.MessageUncheckedCreateWithoutRecipientsInput>
889
- connectOrCreate?: Prisma.MessageCreateOrConnectWithoutRecipientsInput
890
- upsert?: Prisma.MessageUpsertWithoutRecipientsInput
891
- connect?: Prisma.MessageWhereUniqueInput
892
- update?: Prisma.XOR<Prisma.XOR<Prisma.MessageUpdateToOneWithWhereWithoutRecipientsInput, Prisma.MessageUpdateWithoutRecipientsInput>, Prisma.MessageUncheckedUpdateWithoutRecipientsInput>
893
- }
894
-
895
- export type MessageCreateWithoutSender_userInput = {
896
- uuid?: string | null
897
- sender_type: $Enums.MessageSenderType
898
- sender_vendor_id?: number | null
899
- broadcast_type?: $Enums.MessageBroadcastType
900
- message_type?: $Enums.MessageType
901
- content?: string | null
902
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
903
- is_edited?: boolean
904
- edited_at?: Date | string | null
905
- is_deleted?: boolean
906
- deleted_at?: Date | string | null
907
- created_at?: Date | string
908
- created_by?: number | null
909
- updated_at?: Date | string | null
910
- updated_by?: number | null
911
- conversation: Prisma.ConversationCreateNestedOneWithoutMessagesInput
912
- reply_to_message?: Prisma.MessageCreateNestedOneWithoutRepliesInput
913
- replies?: Prisma.MessageCreateNestedManyWithoutReply_to_messageInput
914
- recipients?: Prisma.MessageRecipientCreateNestedManyWithoutMessageInput
915
- }
916
-
917
- export type MessageUncheckedCreateWithoutSender_userInput = {
918
- id?: number
919
- uuid?: string | null
920
- conversation_id: number
921
- sender_type: $Enums.MessageSenderType
922
- sender_vendor_id?: number | null
923
- broadcast_type?: $Enums.MessageBroadcastType
924
- message_type?: $Enums.MessageType
925
- content?: string | null
926
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
927
- is_edited?: boolean
928
- edited_at?: Date | string | null
929
- is_deleted?: boolean
930
- deleted_at?: Date | string | null
931
- created_at?: Date | string
932
- created_by?: number | null
933
- updated_at?: Date | string | null
934
- updated_by?: number | null
935
- reply_to_message_id?: number | null
936
- replies?: Prisma.MessageUncheckedCreateNestedManyWithoutReply_to_messageInput
937
- recipients?: Prisma.MessageRecipientUncheckedCreateNestedManyWithoutMessageInput
938
- }
939
-
940
- export type MessageCreateOrConnectWithoutSender_userInput = {
941
- where: Prisma.MessageWhereUniqueInput
942
- create: Prisma.XOR<Prisma.MessageCreateWithoutSender_userInput, Prisma.MessageUncheckedCreateWithoutSender_userInput>
943
- }
944
-
945
- export type MessageCreateManySender_userInputEnvelope = {
946
- data: Prisma.MessageCreateManySender_userInput | Prisma.MessageCreateManySender_userInput[]
947
- skipDuplicates?: boolean
948
- }
949
-
950
- export type MessageUpsertWithWhereUniqueWithoutSender_userInput = {
951
- where: Prisma.MessageWhereUniqueInput
952
- update: Prisma.XOR<Prisma.MessageUpdateWithoutSender_userInput, Prisma.MessageUncheckedUpdateWithoutSender_userInput>
953
- create: Prisma.XOR<Prisma.MessageCreateWithoutSender_userInput, Prisma.MessageUncheckedCreateWithoutSender_userInput>
954
- }
955
-
956
- export type MessageUpdateWithWhereUniqueWithoutSender_userInput = {
957
- where: Prisma.MessageWhereUniqueInput
958
- data: Prisma.XOR<Prisma.MessageUpdateWithoutSender_userInput, Prisma.MessageUncheckedUpdateWithoutSender_userInput>
959
- }
960
-
961
- export type MessageUpdateManyWithWhereWithoutSender_userInput = {
962
- where: Prisma.MessageScalarWhereInput
963
- data: Prisma.XOR<Prisma.MessageUpdateManyMutationInput, Prisma.MessageUncheckedUpdateManyWithoutSender_userInput>
964
- }
965
-
966
- export type MessageScalarWhereInput = {
967
- AND?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[]
968
- OR?: Prisma.MessageScalarWhereInput[]
969
- NOT?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[]
970
- id?: Prisma.IntFilter<"Message"> | number
971
- uuid?: Prisma.StringNullableFilter<"Message"> | string | null
972
- conversation_id?: Prisma.IntFilter<"Message"> | number
973
- sender_type?: Prisma.EnumMessageSenderTypeFilter<"Message"> | $Enums.MessageSenderType
974
- sender_user_id?: Prisma.IntNullableFilter<"Message"> | number | null
975
- sender_vendor_id?: Prisma.IntNullableFilter<"Message"> | number | null
976
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFilter<"Message"> | $Enums.MessageBroadcastType
977
- message_type?: Prisma.EnumMessageTypeFilter<"Message"> | $Enums.MessageType
978
- content?: Prisma.StringNullableFilter<"Message"> | string | null
979
- file?: Prisma.JsonNullableFilter<"Message">
980
- is_edited?: Prisma.BoolFilter<"Message"> | boolean
981
- edited_at?: Prisma.DateTimeNullableFilter<"Message"> | Date | string | null
982
- is_deleted?: Prisma.BoolFilter<"Message"> | boolean
983
- deleted_at?: Prisma.DateTimeNullableFilter<"Message"> | Date | string | null
984
- created_at?: Prisma.DateTimeFilter<"Message"> | Date | string
985
- created_by?: Prisma.IntNullableFilter<"Message"> | number | null
986
- updated_at?: Prisma.DateTimeNullableFilter<"Message"> | Date | string | null
987
- updated_by?: Prisma.IntNullableFilter<"Message"> | number | null
988
- reply_to_message_id?: Prisma.IntNullableFilter<"Message"> | number | null
989
- }
990
-
991
- export type MessageCreateWithoutConversationInput = {
992
- uuid?: string | null
993
- sender_type: $Enums.MessageSenderType
994
- sender_vendor_id?: number | null
995
- broadcast_type?: $Enums.MessageBroadcastType
996
- message_type?: $Enums.MessageType
997
- content?: string | null
998
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
999
- is_edited?: boolean
1000
- edited_at?: Date | string | null
1001
- is_deleted?: boolean
1002
- deleted_at?: Date | string | null
1003
- created_at?: Date | string
1004
- created_by?: number | null
1005
- updated_at?: Date | string | null
1006
- updated_by?: number | null
1007
- sender_user?: Prisma.UserCreateNestedOneWithoutMessages_sentInput
1008
- reply_to_message?: Prisma.MessageCreateNestedOneWithoutRepliesInput
1009
- replies?: Prisma.MessageCreateNestedManyWithoutReply_to_messageInput
1010
- recipients?: Prisma.MessageRecipientCreateNestedManyWithoutMessageInput
1011
- }
1012
-
1013
- export type MessageUncheckedCreateWithoutConversationInput = {
1014
- id?: number
1015
- uuid?: string | null
1016
- sender_type: $Enums.MessageSenderType
1017
- sender_user_id?: number | null
1018
- sender_vendor_id?: number | null
1019
- broadcast_type?: $Enums.MessageBroadcastType
1020
- message_type?: $Enums.MessageType
1021
- content?: string | null
1022
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1023
- is_edited?: boolean
1024
- edited_at?: Date | string | null
1025
- is_deleted?: boolean
1026
- deleted_at?: Date | string | null
1027
- created_at?: Date | string
1028
- created_by?: number | null
1029
- updated_at?: Date | string | null
1030
- updated_by?: number | null
1031
- reply_to_message_id?: number | null
1032
- replies?: Prisma.MessageUncheckedCreateNestedManyWithoutReply_to_messageInput
1033
- recipients?: Prisma.MessageRecipientUncheckedCreateNestedManyWithoutMessageInput
1034
- }
1035
-
1036
- export type MessageCreateOrConnectWithoutConversationInput = {
1037
- where: Prisma.MessageWhereUniqueInput
1038
- create: Prisma.XOR<Prisma.MessageCreateWithoutConversationInput, Prisma.MessageUncheckedCreateWithoutConversationInput>
1039
- }
1040
-
1041
- export type MessageCreateManyConversationInputEnvelope = {
1042
- data: Prisma.MessageCreateManyConversationInput | Prisma.MessageCreateManyConversationInput[]
1043
- skipDuplicates?: boolean
1044
- }
1045
-
1046
- export type MessageUpsertWithWhereUniqueWithoutConversationInput = {
1047
- where: Prisma.MessageWhereUniqueInput
1048
- update: Prisma.XOR<Prisma.MessageUpdateWithoutConversationInput, Prisma.MessageUncheckedUpdateWithoutConversationInput>
1049
- create: Prisma.XOR<Prisma.MessageCreateWithoutConversationInput, Prisma.MessageUncheckedCreateWithoutConversationInput>
1050
- }
1051
-
1052
- export type MessageUpdateWithWhereUniqueWithoutConversationInput = {
1053
- where: Prisma.MessageWhereUniqueInput
1054
- data: Prisma.XOR<Prisma.MessageUpdateWithoutConversationInput, Prisma.MessageUncheckedUpdateWithoutConversationInput>
1055
- }
1056
-
1057
- export type MessageUpdateManyWithWhereWithoutConversationInput = {
1058
- where: Prisma.MessageScalarWhereInput
1059
- data: Prisma.XOR<Prisma.MessageUpdateManyMutationInput, Prisma.MessageUncheckedUpdateManyWithoutConversationInput>
1060
- }
1061
-
1062
- export type MessageCreateWithoutRepliesInput = {
1063
- uuid?: string | null
1064
- sender_type: $Enums.MessageSenderType
1065
- sender_vendor_id?: number | null
1066
- broadcast_type?: $Enums.MessageBroadcastType
1067
- message_type?: $Enums.MessageType
1068
- content?: string | null
1069
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1070
- is_edited?: boolean
1071
- edited_at?: Date | string | null
1072
- is_deleted?: boolean
1073
- deleted_at?: Date | string | null
1074
- created_at?: Date | string
1075
- created_by?: number | null
1076
- updated_at?: Date | string | null
1077
- updated_by?: number | null
1078
- conversation: Prisma.ConversationCreateNestedOneWithoutMessagesInput
1079
- sender_user?: Prisma.UserCreateNestedOneWithoutMessages_sentInput
1080
- reply_to_message?: Prisma.MessageCreateNestedOneWithoutRepliesInput
1081
- recipients?: Prisma.MessageRecipientCreateNestedManyWithoutMessageInput
1082
- }
1083
-
1084
- export type MessageUncheckedCreateWithoutRepliesInput = {
1085
- id?: number
1086
- uuid?: string | null
1087
- conversation_id: number
1088
- sender_type: $Enums.MessageSenderType
1089
- sender_user_id?: number | null
1090
- sender_vendor_id?: number | null
1091
- broadcast_type?: $Enums.MessageBroadcastType
1092
- message_type?: $Enums.MessageType
1093
- content?: string | null
1094
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1095
- is_edited?: boolean
1096
- edited_at?: Date | string | null
1097
- is_deleted?: boolean
1098
- deleted_at?: Date | string | null
1099
- created_at?: Date | string
1100
- created_by?: number | null
1101
- updated_at?: Date | string | null
1102
- updated_by?: number | null
1103
- reply_to_message_id?: number | null
1104
- recipients?: Prisma.MessageRecipientUncheckedCreateNestedManyWithoutMessageInput
1105
- }
1106
-
1107
- export type MessageCreateOrConnectWithoutRepliesInput = {
1108
- where: Prisma.MessageWhereUniqueInput
1109
- create: Prisma.XOR<Prisma.MessageCreateWithoutRepliesInput, Prisma.MessageUncheckedCreateWithoutRepliesInput>
1110
- }
1111
-
1112
- export type MessageCreateWithoutReply_to_messageInput = {
1113
- uuid?: string | null
1114
- sender_type: $Enums.MessageSenderType
1115
- sender_vendor_id?: number | null
1116
- broadcast_type?: $Enums.MessageBroadcastType
1117
- message_type?: $Enums.MessageType
1118
- content?: string | null
1119
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1120
- is_edited?: boolean
1121
- edited_at?: Date | string | null
1122
- is_deleted?: boolean
1123
- deleted_at?: Date | string | null
1124
- created_at?: Date | string
1125
- created_by?: number | null
1126
- updated_at?: Date | string | null
1127
- updated_by?: number | null
1128
- conversation: Prisma.ConversationCreateNestedOneWithoutMessagesInput
1129
- sender_user?: Prisma.UserCreateNestedOneWithoutMessages_sentInput
1130
- replies?: Prisma.MessageCreateNestedManyWithoutReply_to_messageInput
1131
- recipients?: Prisma.MessageRecipientCreateNestedManyWithoutMessageInput
1132
- }
1133
-
1134
- export type MessageUncheckedCreateWithoutReply_to_messageInput = {
1135
- id?: number
1136
- uuid?: string | null
1137
- conversation_id: number
1138
- sender_type: $Enums.MessageSenderType
1139
- sender_user_id?: number | null
1140
- sender_vendor_id?: number | null
1141
- broadcast_type?: $Enums.MessageBroadcastType
1142
- message_type?: $Enums.MessageType
1143
- content?: string | null
1144
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1145
- is_edited?: boolean
1146
- edited_at?: Date | string | null
1147
- is_deleted?: boolean
1148
- deleted_at?: Date | string | null
1149
- created_at?: Date | string
1150
- created_by?: number | null
1151
- updated_at?: Date | string | null
1152
- updated_by?: number | null
1153
- replies?: Prisma.MessageUncheckedCreateNestedManyWithoutReply_to_messageInput
1154
- recipients?: Prisma.MessageRecipientUncheckedCreateNestedManyWithoutMessageInput
1155
- }
1156
-
1157
- export type MessageCreateOrConnectWithoutReply_to_messageInput = {
1158
- where: Prisma.MessageWhereUniqueInput
1159
- create: Prisma.XOR<Prisma.MessageCreateWithoutReply_to_messageInput, Prisma.MessageUncheckedCreateWithoutReply_to_messageInput>
1160
- }
1161
-
1162
- export type MessageCreateManyReply_to_messageInputEnvelope = {
1163
- data: Prisma.MessageCreateManyReply_to_messageInput | Prisma.MessageCreateManyReply_to_messageInput[]
1164
- skipDuplicates?: boolean
1165
- }
1166
-
1167
- export type MessageUpsertWithoutRepliesInput = {
1168
- update: Prisma.XOR<Prisma.MessageUpdateWithoutRepliesInput, Prisma.MessageUncheckedUpdateWithoutRepliesInput>
1169
- create: Prisma.XOR<Prisma.MessageCreateWithoutRepliesInput, Prisma.MessageUncheckedCreateWithoutRepliesInput>
1170
- where?: Prisma.MessageWhereInput
1171
- }
1172
-
1173
- export type MessageUpdateToOneWithWhereWithoutRepliesInput = {
1174
- where?: Prisma.MessageWhereInput
1175
- data: Prisma.XOR<Prisma.MessageUpdateWithoutRepliesInput, Prisma.MessageUncheckedUpdateWithoutRepliesInput>
1176
- }
1177
-
1178
- export type MessageUpdateWithoutRepliesInput = {
1179
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1180
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
1181
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1182
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
1183
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
1184
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1185
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1186
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
1187
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1188
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1189
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1190
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1191
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1192
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1193
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1194
- conversation?: Prisma.ConversationUpdateOneRequiredWithoutMessagesNestedInput
1195
- sender_user?: Prisma.UserUpdateOneWithoutMessages_sentNestedInput
1196
- reply_to_message?: Prisma.MessageUpdateOneWithoutRepliesNestedInput
1197
- recipients?: Prisma.MessageRecipientUpdateManyWithoutMessageNestedInput
1198
- }
1199
-
1200
- export type MessageUncheckedUpdateWithoutRepliesInput = {
1201
- id?: Prisma.IntFieldUpdateOperationsInput | number
1202
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1203
- conversation_id?: Prisma.IntFieldUpdateOperationsInput | number
1204
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
1205
- sender_user_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1206
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1207
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
1208
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
1209
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1210
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1211
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
1212
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1213
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1214
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1215
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1216
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1217
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1218
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1219
- reply_to_message_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1220
- recipients?: Prisma.MessageRecipientUncheckedUpdateManyWithoutMessageNestedInput
1221
- }
1222
-
1223
- export type MessageUpsertWithWhereUniqueWithoutReply_to_messageInput = {
1224
- where: Prisma.MessageWhereUniqueInput
1225
- update: Prisma.XOR<Prisma.MessageUpdateWithoutReply_to_messageInput, Prisma.MessageUncheckedUpdateWithoutReply_to_messageInput>
1226
- create: Prisma.XOR<Prisma.MessageCreateWithoutReply_to_messageInput, Prisma.MessageUncheckedCreateWithoutReply_to_messageInput>
1227
- }
1228
-
1229
- export type MessageUpdateWithWhereUniqueWithoutReply_to_messageInput = {
1230
- where: Prisma.MessageWhereUniqueInput
1231
- data: Prisma.XOR<Prisma.MessageUpdateWithoutReply_to_messageInput, Prisma.MessageUncheckedUpdateWithoutReply_to_messageInput>
1232
- }
1233
-
1234
- export type MessageUpdateManyWithWhereWithoutReply_to_messageInput = {
1235
- where: Prisma.MessageScalarWhereInput
1236
- data: Prisma.XOR<Prisma.MessageUpdateManyMutationInput, Prisma.MessageUncheckedUpdateManyWithoutReply_to_messageInput>
1237
- }
1238
-
1239
- export type MessageCreateWithoutRecipientsInput = {
1240
- uuid?: string | null
1241
- sender_type: $Enums.MessageSenderType
1242
- sender_vendor_id?: number | null
1243
- broadcast_type?: $Enums.MessageBroadcastType
1244
- message_type?: $Enums.MessageType
1245
- content?: string | null
1246
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1247
- is_edited?: boolean
1248
- edited_at?: Date | string | null
1249
- is_deleted?: boolean
1250
- deleted_at?: Date | string | null
1251
- created_at?: Date | string
1252
- created_by?: number | null
1253
- updated_at?: Date | string | null
1254
- updated_by?: number | null
1255
- conversation: Prisma.ConversationCreateNestedOneWithoutMessagesInput
1256
- sender_user?: Prisma.UserCreateNestedOneWithoutMessages_sentInput
1257
- reply_to_message?: Prisma.MessageCreateNestedOneWithoutRepliesInput
1258
- replies?: Prisma.MessageCreateNestedManyWithoutReply_to_messageInput
1259
- }
1260
-
1261
- export type MessageUncheckedCreateWithoutRecipientsInput = {
1262
- id?: number
1263
- uuid?: string | null
1264
- conversation_id: number
1265
- sender_type: $Enums.MessageSenderType
1266
- sender_user_id?: number | null
1267
- sender_vendor_id?: number | null
1268
- broadcast_type?: $Enums.MessageBroadcastType
1269
- message_type?: $Enums.MessageType
1270
- content?: string | null
1271
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1272
- is_edited?: boolean
1273
- edited_at?: Date | string | null
1274
- is_deleted?: boolean
1275
- deleted_at?: Date | string | null
1276
- created_at?: Date | string
1277
- created_by?: number | null
1278
- updated_at?: Date | string | null
1279
- updated_by?: number | null
1280
- reply_to_message_id?: number | null
1281
- replies?: Prisma.MessageUncheckedCreateNestedManyWithoutReply_to_messageInput
1282
- }
1283
-
1284
- export type MessageCreateOrConnectWithoutRecipientsInput = {
1285
- where: Prisma.MessageWhereUniqueInput
1286
- create: Prisma.XOR<Prisma.MessageCreateWithoutRecipientsInput, Prisma.MessageUncheckedCreateWithoutRecipientsInput>
1287
- }
1288
-
1289
- export type MessageUpsertWithoutRecipientsInput = {
1290
- update: Prisma.XOR<Prisma.MessageUpdateWithoutRecipientsInput, Prisma.MessageUncheckedUpdateWithoutRecipientsInput>
1291
- create: Prisma.XOR<Prisma.MessageCreateWithoutRecipientsInput, Prisma.MessageUncheckedCreateWithoutRecipientsInput>
1292
- where?: Prisma.MessageWhereInput
1293
- }
1294
-
1295
- export type MessageUpdateToOneWithWhereWithoutRecipientsInput = {
1296
- where?: Prisma.MessageWhereInput
1297
- data: Prisma.XOR<Prisma.MessageUpdateWithoutRecipientsInput, Prisma.MessageUncheckedUpdateWithoutRecipientsInput>
1298
- }
1299
-
1300
- export type MessageUpdateWithoutRecipientsInput = {
1301
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1302
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
1303
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1304
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
1305
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
1306
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1307
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1308
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
1309
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1310
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1311
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1312
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1313
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1314
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1315
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1316
- conversation?: Prisma.ConversationUpdateOneRequiredWithoutMessagesNestedInput
1317
- sender_user?: Prisma.UserUpdateOneWithoutMessages_sentNestedInput
1318
- reply_to_message?: Prisma.MessageUpdateOneWithoutRepliesNestedInput
1319
- replies?: Prisma.MessageUpdateManyWithoutReply_to_messageNestedInput
1320
- }
1321
-
1322
- export type MessageUncheckedUpdateWithoutRecipientsInput = {
1323
- id?: Prisma.IntFieldUpdateOperationsInput | number
1324
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1325
- conversation_id?: Prisma.IntFieldUpdateOperationsInput | number
1326
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
1327
- sender_user_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1328
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1329
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
1330
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
1331
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1332
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1333
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
1334
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1335
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1336
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1337
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1338
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1339
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1340
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1341
- reply_to_message_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1342
- replies?: Prisma.MessageUncheckedUpdateManyWithoutReply_to_messageNestedInput
1343
- }
1344
-
1345
- export type MessageCreateManySender_userInput = {
1346
- id?: number
1347
- uuid?: string | null
1348
- conversation_id: number
1349
- sender_type: $Enums.MessageSenderType
1350
- sender_vendor_id?: number | null
1351
- broadcast_type?: $Enums.MessageBroadcastType
1352
- message_type?: $Enums.MessageType
1353
- content?: string | null
1354
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1355
- is_edited?: boolean
1356
- edited_at?: Date | string | null
1357
- is_deleted?: boolean
1358
- deleted_at?: Date | string | null
1359
- created_at?: Date | string
1360
- created_by?: number | null
1361
- updated_at?: Date | string | null
1362
- updated_by?: number | null
1363
- reply_to_message_id?: number | null
1364
- }
1365
-
1366
- export type MessageUpdateWithoutSender_userInput = {
1367
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1368
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
1369
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1370
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
1371
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
1372
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1373
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1374
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
1375
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1376
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1377
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1378
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1379
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1380
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1381
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1382
- conversation?: Prisma.ConversationUpdateOneRequiredWithoutMessagesNestedInput
1383
- reply_to_message?: Prisma.MessageUpdateOneWithoutRepliesNestedInput
1384
- replies?: Prisma.MessageUpdateManyWithoutReply_to_messageNestedInput
1385
- recipients?: Prisma.MessageRecipientUpdateManyWithoutMessageNestedInput
1386
- }
1387
-
1388
- export type MessageUncheckedUpdateWithoutSender_userInput = {
1389
- id?: Prisma.IntFieldUpdateOperationsInput | number
1390
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1391
- conversation_id?: Prisma.IntFieldUpdateOperationsInput | number
1392
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
1393
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1394
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
1395
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
1396
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1397
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1398
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
1399
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1400
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1401
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1402
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1403
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1404
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1405
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1406
- reply_to_message_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1407
- replies?: Prisma.MessageUncheckedUpdateManyWithoutReply_to_messageNestedInput
1408
- recipients?: Prisma.MessageRecipientUncheckedUpdateManyWithoutMessageNestedInput
1409
- }
1410
-
1411
- export type MessageUncheckedUpdateManyWithoutSender_userInput = {
1412
- id?: Prisma.IntFieldUpdateOperationsInput | number
1413
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1414
- conversation_id?: Prisma.IntFieldUpdateOperationsInput | number
1415
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
1416
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1417
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
1418
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
1419
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1420
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1421
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
1422
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1423
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1424
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1425
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1426
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1427
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1428
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1429
- reply_to_message_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1430
- }
1431
-
1432
- export type MessageCreateManyConversationInput = {
1433
- id?: number
1434
- uuid?: string | null
1435
- sender_type: $Enums.MessageSenderType
1436
- sender_user_id?: number | null
1437
- sender_vendor_id?: number | null
1438
- broadcast_type?: $Enums.MessageBroadcastType
1439
- message_type?: $Enums.MessageType
1440
- content?: string | null
1441
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1442
- is_edited?: boolean
1443
- edited_at?: Date | string | null
1444
- is_deleted?: boolean
1445
- deleted_at?: Date | string | null
1446
- created_at?: Date | string
1447
- created_by?: number | null
1448
- updated_at?: Date | string | null
1449
- updated_by?: number | null
1450
- reply_to_message_id?: number | null
1451
- }
1452
-
1453
- export type MessageUpdateWithoutConversationInput = {
1454
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1455
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
1456
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1457
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
1458
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
1459
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1460
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1461
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
1462
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1463
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1464
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1465
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1466
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1467
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1468
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1469
- sender_user?: Prisma.UserUpdateOneWithoutMessages_sentNestedInput
1470
- reply_to_message?: Prisma.MessageUpdateOneWithoutRepliesNestedInput
1471
- replies?: Prisma.MessageUpdateManyWithoutReply_to_messageNestedInput
1472
- recipients?: Prisma.MessageRecipientUpdateManyWithoutMessageNestedInput
1473
- }
1474
-
1475
- export type MessageUncheckedUpdateWithoutConversationInput = {
1476
- id?: Prisma.IntFieldUpdateOperationsInput | number
1477
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1478
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
1479
- sender_user_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1480
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1481
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
1482
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
1483
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1484
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1485
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
1486
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1487
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1488
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1489
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1490
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1491
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1492
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1493
- reply_to_message_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1494
- replies?: Prisma.MessageUncheckedUpdateManyWithoutReply_to_messageNestedInput
1495
- recipients?: Prisma.MessageRecipientUncheckedUpdateManyWithoutMessageNestedInput
1496
- }
1497
-
1498
- export type MessageUncheckedUpdateManyWithoutConversationInput = {
1499
- id?: Prisma.IntFieldUpdateOperationsInput | number
1500
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1501
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
1502
- sender_user_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1503
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1504
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
1505
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
1506
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1507
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1508
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
1509
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1510
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1511
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1512
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1513
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1514
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1515
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1516
- reply_to_message_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1517
- }
1518
-
1519
- export type MessageCreateManyReply_to_messageInput = {
1520
- id?: number
1521
- uuid?: string | null
1522
- conversation_id: number
1523
- sender_type: $Enums.MessageSenderType
1524
- sender_user_id?: number | null
1525
- sender_vendor_id?: number | null
1526
- broadcast_type?: $Enums.MessageBroadcastType
1527
- message_type?: $Enums.MessageType
1528
- content?: string | null
1529
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1530
- is_edited?: boolean
1531
- edited_at?: Date | string | null
1532
- is_deleted?: boolean
1533
- deleted_at?: Date | string | null
1534
- created_at?: Date | string
1535
- created_by?: number | null
1536
- updated_at?: Date | string | null
1537
- updated_by?: number | null
1538
- }
1539
-
1540
- export type MessageUpdateWithoutReply_to_messageInput = {
1541
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1542
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
1543
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1544
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
1545
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
1546
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1547
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1548
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
1549
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1550
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1551
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1552
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1553
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1554
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1555
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1556
- conversation?: Prisma.ConversationUpdateOneRequiredWithoutMessagesNestedInput
1557
- sender_user?: Prisma.UserUpdateOneWithoutMessages_sentNestedInput
1558
- replies?: Prisma.MessageUpdateManyWithoutReply_to_messageNestedInput
1559
- recipients?: Prisma.MessageRecipientUpdateManyWithoutMessageNestedInput
1560
- }
1561
-
1562
- export type MessageUncheckedUpdateWithoutReply_to_messageInput = {
1563
- id?: Prisma.IntFieldUpdateOperationsInput | number
1564
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1565
- conversation_id?: Prisma.IntFieldUpdateOperationsInput | number
1566
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
1567
- sender_user_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1568
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1569
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
1570
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
1571
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1572
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1573
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
1574
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1575
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1576
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1577
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1578
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1579
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1580
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1581
- replies?: Prisma.MessageUncheckedUpdateManyWithoutReply_to_messageNestedInput
1582
- recipients?: Prisma.MessageRecipientUncheckedUpdateManyWithoutMessageNestedInput
1583
- }
1584
-
1585
- export type MessageUncheckedUpdateManyWithoutReply_to_messageInput = {
1586
- id?: Prisma.IntFieldUpdateOperationsInput | number
1587
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1588
- conversation_id?: Prisma.IntFieldUpdateOperationsInput | number
1589
- sender_type?: Prisma.EnumMessageSenderTypeFieldUpdateOperationsInput | $Enums.MessageSenderType
1590
- sender_user_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1591
- sender_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1592
- broadcast_type?: Prisma.EnumMessageBroadcastTypeFieldUpdateOperationsInput | $Enums.MessageBroadcastType
1593
- message_type?: Prisma.EnumMessageTypeFieldUpdateOperationsInput | $Enums.MessageType
1594
- content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1595
- file?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1596
- is_edited?: Prisma.BoolFieldUpdateOperationsInput | boolean
1597
- edited_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1598
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1599
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1600
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1601
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1602
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1603
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1604
- }
1605
-
1606
-
1607
- /**
1608
- * Count Type MessageCountOutputType
1609
- */
1610
-
1611
- export type MessageCountOutputType = {
1612
- replies: number
1613
- recipients: number
1614
- }
1615
-
1616
- export type MessageCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1617
- replies?: boolean | MessageCountOutputTypeCountRepliesArgs
1618
- recipients?: boolean | MessageCountOutputTypeCountRecipientsArgs
1619
- }
1620
-
1621
- /**
1622
- * MessageCountOutputType without action
1623
- */
1624
- export type MessageCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1625
- /**
1626
- * Select specific fields to fetch from the MessageCountOutputType
1627
- */
1628
- select?: Prisma.MessageCountOutputTypeSelect<ExtArgs> | null
1629
- }
1630
-
1631
- /**
1632
- * MessageCountOutputType without action
1633
- */
1634
- export type MessageCountOutputTypeCountRepliesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1635
- where?: Prisma.MessageWhereInput
1636
- }
1637
-
1638
- /**
1639
- * MessageCountOutputType without action
1640
- */
1641
- export type MessageCountOutputTypeCountRecipientsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1642
- where?: Prisma.MessageRecipientWhereInput
1643
- }
1644
-
1645
-
1646
- export type MessageSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1647
- id?: boolean
1648
- uuid?: boolean
1649
- conversation_id?: boolean
1650
- sender_type?: boolean
1651
- sender_user_id?: boolean
1652
- sender_vendor_id?: boolean
1653
- broadcast_type?: boolean
1654
- message_type?: boolean
1655
- content?: boolean
1656
- file?: boolean
1657
- is_edited?: boolean
1658
- edited_at?: boolean
1659
- is_deleted?: boolean
1660
- deleted_at?: boolean
1661
- created_at?: boolean
1662
- created_by?: boolean
1663
- updated_at?: boolean
1664
- updated_by?: boolean
1665
- reply_to_message_id?: boolean
1666
- conversation?: boolean | Prisma.ConversationDefaultArgs<ExtArgs>
1667
- sender_user?: boolean | Prisma.Message$sender_userArgs<ExtArgs>
1668
- reply_to_message?: boolean | Prisma.Message$reply_to_messageArgs<ExtArgs>
1669
- replies?: boolean | Prisma.Message$repliesArgs<ExtArgs>
1670
- recipients?: boolean | Prisma.Message$recipientsArgs<ExtArgs>
1671
- _count?: boolean | Prisma.MessageCountOutputTypeDefaultArgs<ExtArgs>
1672
- }, ExtArgs["result"]["message"]>
1673
-
1674
- export type MessageSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1675
- id?: boolean
1676
- uuid?: boolean
1677
- conversation_id?: boolean
1678
- sender_type?: boolean
1679
- sender_user_id?: boolean
1680
- sender_vendor_id?: boolean
1681
- broadcast_type?: boolean
1682
- message_type?: boolean
1683
- content?: boolean
1684
- file?: boolean
1685
- is_edited?: boolean
1686
- edited_at?: boolean
1687
- is_deleted?: boolean
1688
- deleted_at?: boolean
1689
- created_at?: boolean
1690
- created_by?: boolean
1691
- updated_at?: boolean
1692
- updated_by?: boolean
1693
- reply_to_message_id?: boolean
1694
- conversation?: boolean | Prisma.ConversationDefaultArgs<ExtArgs>
1695
- sender_user?: boolean | Prisma.Message$sender_userArgs<ExtArgs>
1696
- reply_to_message?: boolean | Prisma.Message$reply_to_messageArgs<ExtArgs>
1697
- }, ExtArgs["result"]["message"]>
1698
-
1699
- export type MessageSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1700
- id?: boolean
1701
- uuid?: boolean
1702
- conversation_id?: boolean
1703
- sender_type?: boolean
1704
- sender_user_id?: boolean
1705
- sender_vendor_id?: boolean
1706
- broadcast_type?: boolean
1707
- message_type?: boolean
1708
- content?: boolean
1709
- file?: boolean
1710
- is_edited?: boolean
1711
- edited_at?: boolean
1712
- is_deleted?: boolean
1713
- deleted_at?: boolean
1714
- created_at?: boolean
1715
- created_by?: boolean
1716
- updated_at?: boolean
1717
- updated_by?: boolean
1718
- reply_to_message_id?: boolean
1719
- conversation?: boolean | Prisma.ConversationDefaultArgs<ExtArgs>
1720
- sender_user?: boolean | Prisma.Message$sender_userArgs<ExtArgs>
1721
- reply_to_message?: boolean | Prisma.Message$reply_to_messageArgs<ExtArgs>
1722
- }, ExtArgs["result"]["message"]>
1723
-
1724
- export type MessageSelectScalar = {
1725
- id?: boolean
1726
- uuid?: boolean
1727
- conversation_id?: boolean
1728
- sender_type?: boolean
1729
- sender_user_id?: boolean
1730
- sender_vendor_id?: boolean
1731
- broadcast_type?: boolean
1732
- message_type?: boolean
1733
- content?: boolean
1734
- file?: boolean
1735
- is_edited?: boolean
1736
- edited_at?: boolean
1737
- is_deleted?: boolean
1738
- deleted_at?: boolean
1739
- created_at?: boolean
1740
- created_by?: boolean
1741
- updated_at?: boolean
1742
- updated_by?: boolean
1743
- reply_to_message_id?: boolean
1744
- }
1745
-
1746
- export type MessageOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "conversation_id" | "sender_type" | "sender_user_id" | "sender_vendor_id" | "broadcast_type" | "message_type" | "content" | "file" | "is_edited" | "edited_at" | "is_deleted" | "deleted_at" | "created_at" | "created_by" | "updated_at" | "updated_by" | "reply_to_message_id", ExtArgs["result"]["message"]>
1747
- export type MessageInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1748
- conversation?: boolean | Prisma.ConversationDefaultArgs<ExtArgs>
1749
- sender_user?: boolean | Prisma.Message$sender_userArgs<ExtArgs>
1750
- reply_to_message?: boolean | Prisma.Message$reply_to_messageArgs<ExtArgs>
1751
- replies?: boolean | Prisma.Message$repliesArgs<ExtArgs>
1752
- recipients?: boolean | Prisma.Message$recipientsArgs<ExtArgs>
1753
- _count?: boolean | Prisma.MessageCountOutputTypeDefaultArgs<ExtArgs>
1754
- }
1755
- export type MessageIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1756
- conversation?: boolean | Prisma.ConversationDefaultArgs<ExtArgs>
1757
- sender_user?: boolean | Prisma.Message$sender_userArgs<ExtArgs>
1758
- reply_to_message?: boolean | Prisma.Message$reply_to_messageArgs<ExtArgs>
1759
- }
1760
- export type MessageIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1761
- conversation?: boolean | Prisma.ConversationDefaultArgs<ExtArgs>
1762
- sender_user?: boolean | Prisma.Message$sender_userArgs<ExtArgs>
1763
- reply_to_message?: boolean | Prisma.Message$reply_to_messageArgs<ExtArgs>
1764
- }
1765
-
1766
- export type $MessagePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1767
- name: "Message"
1768
- objects: {
1769
- conversation: Prisma.$ConversationPayload<ExtArgs>
1770
- sender_user: Prisma.$UserPayload<ExtArgs> | null
1771
- reply_to_message: Prisma.$MessagePayload<ExtArgs> | null
1772
- replies: Prisma.$MessagePayload<ExtArgs>[]
1773
- recipients: Prisma.$MessageRecipientPayload<ExtArgs>[]
1774
- }
1775
- scalars: runtime.Types.Extensions.GetPayloadResult<{
1776
- id: number
1777
- uuid: string | null
1778
- conversation_id: number
1779
- sender_type: $Enums.MessageSenderType
1780
- sender_user_id: number | null
1781
- sender_vendor_id: number | null
1782
- broadcast_type: $Enums.MessageBroadcastType
1783
- message_type: $Enums.MessageType
1784
- content: string | null
1785
- file: runtime.JsonValue | null
1786
- is_edited: boolean
1787
- edited_at: Date | null
1788
- is_deleted: boolean
1789
- deleted_at: Date | null
1790
- created_at: Date
1791
- created_by: number | null
1792
- updated_at: Date | null
1793
- updated_by: number | null
1794
- reply_to_message_id: number | null
1795
- }, ExtArgs["result"]["message"]>
1796
- composites: {}
1797
- }
1798
-
1799
- export type MessageGetPayload<S extends boolean | null | undefined | MessageDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MessagePayload, S>
1800
-
1801
- export type MessageCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1802
- Omit<MessageFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1803
- select?: MessageCountAggregateInputType | true
1804
- }
1805
-
1806
- export interface MessageDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1807
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Message'], meta: { name: 'Message' } }
1808
- /**
1809
- * Find zero or one Message that matches the filter.
1810
- * @param {MessageFindUniqueArgs} args - Arguments to find a Message
1811
- * @example
1812
- * // Get one Message
1813
- * const message = await prisma.message.findUnique({
1814
- * where: {
1815
- * // ... provide filter here
1816
- * }
1817
- * })
1818
- */
1819
- findUnique<T extends MessageFindUniqueArgs>(args: Prisma.SelectSubset<T, MessageFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1820
-
1821
- /**
1822
- * Find one Message that matches the filter or throw an error with `error.code='P2025'`
1823
- * if no matches were found.
1824
- * @param {MessageFindUniqueOrThrowArgs} args - Arguments to find a Message
1825
- * @example
1826
- * // Get one Message
1827
- * const message = await prisma.message.findUniqueOrThrow({
1828
- * where: {
1829
- * // ... provide filter here
1830
- * }
1831
- * })
1832
- */
1833
- findUniqueOrThrow<T extends MessageFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MessageFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1834
-
1835
- /**
1836
- * Find the first Message that matches the filter.
1837
- * Note, that providing `undefined` is treated as the value not being there.
1838
- * Read more here: https://pris.ly/d/null-undefined
1839
- * @param {MessageFindFirstArgs} args - Arguments to find a Message
1840
- * @example
1841
- * // Get one Message
1842
- * const message = await prisma.message.findFirst({
1843
- * where: {
1844
- * // ... provide filter here
1845
- * }
1846
- * })
1847
- */
1848
- findFirst<T extends MessageFindFirstArgs>(args?: Prisma.SelectSubset<T, MessageFindFirstArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1849
-
1850
- /**
1851
- * Find the first Message that matches the filter or
1852
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1853
- * Note, that providing `undefined` is treated as the value not being there.
1854
- * Read more here: https://pris.ly/d/null-undefined
1855
- * @param {MessageFindFirstOrThrowArgs} args - Arguments to find a Message
1856
- * @example
1857
- * // Get one Message
1858
- * const message = await prisma.message.findFirstOrThrow({
1859
- * where: {
1860
- * // ... provide filter here
1861
- * }
1862
- * })
1863
- */
1864
- findFirstOrThrow<T extends MessageFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MessageFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1865
-
1866
- /**
1867
- * Find zero or more Messages that matches the filter.
1868
- * Note, that providing `undefined` is treated as the value not being there.
1869
- * Read more here: https://pris.ly/d/null-undefined
1870
- * @param {MessageFindManyArgs} args - Arguments to filter and select certain fields only.
1871
- * @example
1872
- * // Get all Messages
1873
- * const messages = await prisma.message.findMany()
1874
- *
1875
- * // Get first 10 Messages
1876
- * const messages = await prisma.message.findMany({ take: 10 })
1877
- *
1878
- * // Only select the `id`
1879
- * const messageWithIdOnly = await prisma.message.findMany({ select: { id: true } })
1880
- *
1881
- */
1882
- findMany<T extends MessageFindManyArgs>(args?: Prisma.SelectSubset<T, MessageFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1883
-
1884
- /**
1885
- * Create a Message.
1886
- * @param {MessageCreateArgs} args - Arguments to create a Message.
1887
- * @example
1888
- * // Create one Message
1889
- * const Message = await prisma.message.create({
1890
- * data: {
1891
- * // ... data to create a Message
1892
- * }
1893
- * })
1894
- *
1895
- */
1896
- create<T extends MessageCreateArgs>(args: Prisma.SelectSubset<T, MessageCreateArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1897
-
1898
- /**
1899
- * Create many Messages.
1900
- * @param {MessageCreateManyArgs} args - Arguments to create many Messages.
1901
- * @example
1902
- * // Create many Messages
1903
- * const message = await prisma.message.createMany({
1904
- * data: [
1905
- * // ... provide data here
1906
- * ]
1907
- * })
1908
- *
1909
- */
1910
- createMany<T extends MessageCreateManyArgs>(args?: Prisma.SelectSubset<T, MessageCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1911
-
1912
- /**
1913
- * Create many Messages and returns the data saved in the database.
1914
- * @param {MessageCreateManyAndReturnArgs} args - Arguments to create many Messages.
1915
- * @example
1916
- * // Create many Messages
1917
- * const message = await prisma.message.createManyAndReturn({
1918
- * data: [
1919
- * // ... provide data here
1920
- * ]
1921
- * })
1922
- *
1923
- * // Create many Messages and only return the `id`
1924
- * const messageWithIdOnly = await prisma.message.createManyAndReturn({
1925
- * select: { id: true },
1926
- * data: [
1927
- * // ... provide data here
1928
- * ]
1929
- * })
1930
- * Note, that providing `undefined` is treated as the value not being there.
1931
- * Read more here: https://pris.ly/d/null-undefined
1932
- *
1933
- */
1934
- createManyAndReturn<T extends MessageCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MessageCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1935
-
1936
- /**
1937
- * Delete a Message.
1938
- * @param {MessageDeleteArgs} args - Arguments to delete one Message.
1939
- * @example
1940
- * // Delete one Message
1941
- * const Message = await prisma.message.delete({
1942
- * where: {
1943
- * // ... filter to delete one Message
1944
- * }
1945
- * })
1946
- *
1947
- */
1948
- delete<T extends MessageDeleteArgs>(args: Prisma.SelectSubset<T, MessageDeleteArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1949
-
1950
- /**
1951
- * Update one Message.
1952
- * @param {MessageUpdateArgs} args - Arguments to update one Message.
1953
- * @example
1954
- * // Update one Message
1955
- * const message = await prisma.message.update({
1956
- * where: {
1957
- * // ... provide filter here
1958
- * },
1959
- * data: {
1960
- * // ... provide data here
1961
- * }
1962
- * })
1963
- *
1964
- */
1965
- update<T extends MessageUpdateArgs>(args: Prisma.SelectSubset<T, MessageUpdateArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1966
-
1967
- /**
1968
- * Delete zero or more Messages.
1969
- * @param {MessageDeleteManyArgs} args - Arguments to filter Messages to delete.
1970
- * @example
1971
- * // Delete a few Messages
1972
- * const { count } = await prisma.message.deleteMany({
1973
- * where: {
1974
- * // ... provide filter here
1975
- * }
1976
- * })
1977
- *
1978
- */
1979
- deleteMany<T extends MessageDeleteManyArgs>(args?: Prisma.SelectSubset<T, MessageDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1980
-
1981
- /**
1982
- * Update zero or more Messages.
1983
- * Note, that providing `undefined` is treated as the value not being there.
1984
- * Read more here: https://pris.ly/d/null-undefined
1985
- * @param {MessageUpdateManyArgs} args - Arguments to update one or more rows.
1986
- * @example
1987
- * // Update many Messages
1988
- * const message = await prisma.message.updateMany({
1989
- * where: {
1990
- * // ... provide filter here
1991
- * },
1992
- * data: {
1993
- * // ... provide data here
1994
- * }
1995
- * })
1996
- *
1997
- */
1998
- updateMany<T extends MessageUpdateManyArgs>(args: Prisma.SelectSubset<T, MessageUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1999
-
2000
- /**
2001
- * Update zero or more Messages and returns the data updated in the database.
2002
- * @param {MessageUpdateManyAndReturnArgs} args - Arguments to update many Messages.
2003
- * @example
2004
- * // Update many Messages
2005
- * const message = await prisma.message.updateManyAndReturn({
2006
- * where: {
2007
- * // ... provide filter here
2008
- * },
2009
- * data: [
2010
- * // ... provide data here
2011
- * ]
2012
- * })
2013
- *
2014
- * // Update zero or more Messages and only return the `id`
2015
- * const messageWithIdOnly = await prisma.message.updateManyAndReturn({
2016
- * select: { id: true },
2017
- * where: {
2018
- * // ... provide filter here
2019
- * },
2020
- * data: [
2021
- * // ... provide data here
2022
- * ]
2023
- * })
2024
- * Note, that providing `undefined` is treated as the value not being there.
2025
- * Read more here: https://pris.ly/d/null-undefined
2026
- *
2027
- */
2028
- updateManyAndReturn<T extends MessageUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MessageUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
2029
-
2030
- /**
2031
- * Create or update one Message.
2032
- * @param {MessageUpsertArgs} args - Arguments to update or create a Message.
2033
- * @example
2034
- * // Update or create a Message
2035
- * const message = await prisma.message.upsert({
2036
- * create: {
2037
- * // ... data to create a Message
2038
- * },
2039
- * update: {
2040
- * // ... in case it already exists, update
2041
- * },
2042
- * where: {
2043
- * // ... the filter for the Message we want to update
2044
- * }
2045
- * })
2046
- */
2047
- upsert<T extends MessageUpsertArgs>(args: Prisma.SelectSubset<T, MessageUpsertArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
2048
-
2049
-
2050
- /**
2051
- * Count the number of Messages.
2052
- * Note, that providing `undefined` is treated as the value not being there.
2053
- * Read more here: https://pris.ly/d/null-undefined
2054
- * @param {MessageCountArgs} args - Arguments to filter Messages to count.
2055
- * @example
2056
- * // Count the number of Messages
2057
- * const count = await prisma.message.count({
2058
- * where: {
2059
- * // ... the filter for the Messages we want to count
2060
- * }
2061
- * })
2062
- **/
2063
- count<T extends MessageCountArgs>(
2064
- args?: Prisma.Subset<T, MessageCountArgs>,
2065
- ): Prisma.PrismaPromise<
2066
- T extends runtime.Types.Utils.Record<'select', any>
2067
- ? T['select'] extends true
2068
- ? number
2069
- : Prisma.GetScalarType<T['select'], MessageCountAggregateOutputType>
2070
- : number
2071
- >
2072
-
2073
- /**
2074
- * Allows you to perform aggregations operations on a Message.
2075
- * Note, that providing `undefined` is treated as the value not being there.
2076
- * Read more here: https://pris.ly/d/null-undefined
2077
- * @param {MessageAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
2078
- * @example
2079
- * // Ordered by age ascending
2080
- * // Where email contains prisma.io
2081
- * // Limited to the 10 users
2082
- * const aggregations = await prisma.user.aggregate({
2083
- * _avg: {
2084
- * age: true,
2085
- * },
2086
- * where: {
2087
- * email: {
2088
- * contains: "prisma.io",
2089
- * },
2090
- * },
2091
- * orderBy: {
2092
- * age: "asc",
2093
- * },
2094
- * take: 10,
2095
- * })
2096
- **/
2097
- aggregate<T extends MessageAggregateArgs>(args: Prisma.Subset<T, MessageAggregateArgs>): Prisma.PrismaPromise<GetMessageAggregateType<T>>
2098
-
2099
- /**
2100
- * Group by Message.
2101
- * Note, that providing `undefined` is treated as the value not being there.
2102
- * Read more here: https://pris.ly/d/null-undefined
2103
- * @param {MessageGroupByArgs} args - Group by arguments.
2104
- * @example
2105
- * // Group by city, order by createdAt, get count
2106
- * const result = await prisma.user.groupBy({
2107
- * by: ['city', 'createdAt'],
2108
- * orderBy: {
2109
- * createdAt: true
2110
- * },
2111
- * _count: {
2112
- * _all: true
2113
- * },
2114
- * })
2115
- *
2116
- **/
2117
- groupBy<
2118
- T extends MessageGroupByArgs,
2119
- HasSelectOrTake extends Prisma.Or<
2120
- Prisma.Extends<'skip', Prisma.Keys<T>>,
2121
- Prisma.Extends<'take', Prisma.Keys<T>>
2122
- >,
2123
- OrderByArg extends Prisma.True extends HasSelectOrTake
2124
- ? { orderBy: MessageGroupByArgs['orderBy'] }
2125
- : { orderBy?: MessageGroupByArgs['orderBy'] },
2126
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
2127
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
2128
- ByValid extends Prisma.Has<ByFields, OrderFields>,
2129
- HavingFields extends Prisma.GetHavingFields<T['having']>,
2130
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
2131
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
2132
- InputErrors extends ByEmpty extends Prisma.True
2133
- ? `Error: "by" must not be empty.`
2134
- : HavingValid extends Prisma.False
2135
- ? {
2136
- [P in HavingFields]: P extends ByFields
2137
- ? never
2138
- : P extends string
2139
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
2140
- : [
2141
- Error,
2142
- 'Field ',
2143
- P,
2144
- ` in "having" needs to be provided in "by"`,
2145
- ]
2146
- }[HavingFields]
2147
- : 'take' extends Prisma.Keys<T>
2148
- ? 'orderBy' extends Prisma.Keys<T>
2149
- ? ByValid extends Prisma.True
2150
- ? {}
2151
- : {
2152
- [P in OrderFields]: P extends ByFields
2153
- ? never
2154
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
2155
- }[OrderFields]
2156
- : 'Error: If you provide "take", you also need to provide "orderBy"'
2157
- : 'skip' extends Prisma.Keys<T>
2158
- ? 'orderBy' extends Prisma.Keys<T>
2159
- ? ByValid extends Prisma.True
2160
- ? {}
2161
- : {
2162
- [P in OrderFields]: P extends ByFields
2163
- ? never
2164
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
2165
- }[OrderFields]
2166
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
2167
- : ByValid extends Prisma.True
2168
- ? {}
2169
- : {
2170
- [P in OrderFields]: P extends ByFields
2171
- ? never
2172
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
2173
- }[OrderFields]
2174
- >(args: Prisma.SubsetIntersection<T, MessageGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMessageGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
2175
- /**
2176
- * Fields of the Message model
2177
- */
2178
- readonly fields: MessageFieldRefs;
2179
- }
2180
-
2181
- /**
2182
- * The delegate class that acts as a "Promise-like" for Message.
2183
- * Why is this prefixed with `Prisma__`?
2184
- * Because we want to prevent naming conflicts as mentioned in
2185
- * https://github.com/prisma/prisma-client-js/issues/707
2186
- */
2187
- export interface Prisma__MessageClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
2188
- readonly [Symbol.toStringTag]: "PrismaPromise"
2189
- conversation<T extends Prisma.ConversationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConversationDefaultArgs<ExtArgs>>): Prisma.Prisma__ConversationClient<runtime.Types.Result.GetResult<Prisma.$ConversationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
2190
- sender_user<T extends Prisma.Message$sender_userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Message$sender_userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
2191
- reply_to_message<T extends Prisma.Message$reply_to_messageArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Message$reply_to_messageArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
2192
- replies<T extends Prisma.Message$repliesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Message$repliesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2193
- recipients<T extends Prisma.Message$recipientsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Message$recipientsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessageRecipientPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2194
- /**
2195
- * Attaches callbacks for the resolution and/or rejection of the Promise.
2196
- * @param onfulfilled The callback to execute when the Promise is resolved.
2197
- * @param onrejected The callback to execute when the Promise is rejected.
2198
- * @returns A Promise for the completion of which ever callback is executed.
2199
- */
2200
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
2201
- /**
2202
- * Attaches a callback for only the rejection of the Promise.
2203
- * @param onrejected The callback to execute when the Promise is rejected.
2204
- * @returns A Promise for the completion of the callback.
2205
- */
2206
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
2207
- /**
2208
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
2209
- * resolved value cannot be modified from the callback.
2210
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
2211
- * @returns A Promise for the completion of the callback.
2212
- */
2213
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
2214
- }
2215
-
2216
-
2217
-
2218
-
2219
- /**
2220
- * Fields of the Message model
2221
- */
2222
- export interface MessageFieldRefs {
2223
- readonly id: Prisma.FieldRef<"Message", 'Int'>
2224
- readonly uuid: Prisma.FieldRef<"Message", 'String'>
2225
- readonly conversation_id: Prisma.FieldRef<"Message", 'Int'>
2226
- readonly sender_type: Prisma.FieldRef<"Message", 'MessageSenderType'>
2227
- readonly sender_user_id: Prisma.FieldRef<"Message", 'Int'>
2228
- readonly sender_vendor_id: Prisma.FieldRef<"Message", 'Int'>
2229
- readonly broadcast_type: Prisma.FieldRef<"Message", 'MessageBroadcastType'>
2230
- readonly message_type: Prisma.FieldRef<"Message", 'MessageType'>
2231
- readonly content: Prisma.FieldRef<"Message", 'String'>
2232
- readonly file: Prisma.FieldRef<"Message", 'Json'>
2233
- readonly is_edited: Prisma.FieldRef<"Message", 'Boolean'>
2234
- readonly edited_at: Prisma.FieldRef<"Message", 'DateTime'>
2235
- readonly is_deleted: Prisma.FieldRef<"Message", 'Boolean'>
2236
- readonly deleted_at: Prisma.FieldRef<"Message", 'DateTime'>
2237
- readonly created_at: Prisma.FieldRef<"Message", 'DateTime'>
2238
- readonly created_by: Prisma.FieldRef<"Message", 'Int'>
2239
- readonly updated_at: Prisma.FieldRef<"Message", 'DateTime'>
2240
- readonly updated_by: Prisma.FieldRef<"Message", 'Int'>
2241
- readonly reply_to_message_id: Prisma.FieldRef<"Message", 'Int'>
2242
- }
2243
-
2244
-
2245
- // Custom InputTypes
2246
- /**
2247
- * Message findUnique
2248
- */
2249
- export type MessageFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2250
- /**
2251
- * Select specific fields to fetch from the Message
2252
- */
2253
- select?: Prisma.MessageSelect<ExtArgs> | null
2254
- /**
2255
- * Omit specific fields from the Message
2256
- */
2257
- omit?: Prisma.MessageOmit<ExtArgs> | null
2258
- /**
2259
- * Choose, which related nodes to fetch as well
2260
- */
2261
- include?: Prisma.MessageInclude<ExtArgs> | null
2262
- /**
2263
- * Filter, which Message to fetch.
2264
- */
2265
- where: Prisma.MessageWhereUniqueInput
2266
- }
2267
-
2268
- /**
2269
- * Message findUniqueOrThrow
2270
- */
2271
- export type MessageFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2272
- /**
2273
- * Select specific fields to fetch from the Message
2274
- */
2275
- select?: Prisma.MessageSelect<ExtArgs> | null
2276
- /**
2277
- * Omit specific fields from the Message
2278
- */
2279
- omit?: Prisma.MessageOmit<ExtArgs> | null
2280
- /**
2281
- * Choose, which related nodes to fetch as well
2282
- */
2283
- include?: Prisma.MessageInclude<ExtArgs> | null
2284
- /**
2285
- * Filter, which Message to fetch.
2286
- */
2287
- where: Prisma.MessageWhereUniqueInput
2288
- }
2289
-
2290
- /**
2291
- * Message findFirst
2292
- */
2293
- export type MessageFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2294
- /**
2295
- * Select specific fields to fetch from the Message
2296
- */
2297
- select?: Prisma.MessageSelect<ExtArgs> | null
2298
- /**
2299
- * Omit specific fields from the Message
2300
- */
2301
- omit?: Prisma.MessageOmit<ExtArgs> | null
2302
- /**
2303
- * Choose, which related nodes to fetch as well
2304
- */
2305
- include?: Prisma.MessageInclude<ExtArgs> | null
2306
- /**
2307
- * Filter, which Message to fetch.
2308
- */
2309
- where?: Prisma.MessageWhereInput
2310
- /**
2311
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2312
- *
2313
- * Determine the order of Messages to fetch.
2314
- */
2315
- orderBy?: Prisma.MessageOrderByWithRelationInput | Prisma.MessageOrderByWithRelationInput[]
2316
- /**
2317
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2318
- *
2319
- * Sets the position for searching for Messages.
2320
- */
2321
- cursor?: Prisma.MessageWhereUniqueInput
2322
- /**
2323
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2324
- *
2325
- * Take `±n` Messages from the position of the cursor.
2326
- */
2327
- take?: number
2328
- /**
2329
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2330
- *
2331
- * Skip the first `n` Messages.
2332
- */
2333
- skip?: number
2334
- /**
2335
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2336
- *
2337
- * Filter by unique combinations of Messages.
2338
- */
2339
- distinct?: Prisma.MessageScalarFieldEnum | Prisma.MessageScalarFieldEnum[]
2340
- }
2341
-
2342
- /**
2343
- * Message findFirstOrThrow
2344
- */
2345
- export type MessageFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2346
- /**
2347
- * Select specific fields to fetch from the Message
2348
- */
2349
- select?: Prisma.MessageSelect<ExtArgs> | null
2350
- /**
2351
- * Omit specific fields from the Message
2352
- */
2353
- omit?: Prisma.MessageOmit<ExtArgs> | null
2354
- /**
2355
- * Choose, which related nodes to fetch as well
2356
- */
2357
- include?: Prisma.MessageInclude<ExtArgs> | null
2358
- /**
2359
- * Filter, which Message to fetch.
2360
- */
2361
- where?: Prisma.MessageWhereInput
2362
- /**
2363
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2364
- *
2365
- * Determine the order of Messages to fetch.
2366
- */
2367
- orderBy?: Prisma.MessageOrderByWithRelationInput | Prisma.MessageOrderByWithRelationInput[]
2368
- /**
2369
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2370
- *
2371
- * Sets the position for searching for Messages.
2372
- */
2373
- cursor?: Prisma.MessageWhereUniqueInput
2374
- /**
2375
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2376
- *
2377
- * Take `±n` Messages from the position of the cursor.
2378
- */
2379
- take?: number
2380
- /**
2381
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2382
- *
2383
- * Skip the first `n` Messages.
2384
- */
2385
- skip?: number
2386
- /**
2387
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2388
- *
2389
- * Filter by unique combinations of Messages.
2390
- */
2391
- distinct?: Prisma.MessageScalarFieldEnum | Prisma.MessageScalarFieldEnum[]
2392
- }
2393
-
2394
- /**
2395
- * Message findMany
2396
- */
2397
- export type MessageFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2398
- /**
2399
- * Select specific fields to fetch from the Message
2400
- */
2401
- select?: Prisma.MessageSelect<ExtArgs> | null
2402
- /**
2403
- * Omit specific fields from the Message
2404
- */
2405
- omit?: Prisma.MessageOmit<ExtArgs> | null
2406
- /**
2407
- * Choose, which related nodes to fetch as well
2408
- */
2409
- include?: Prisma.MessageInclude<ExtArgs> | null
2410
- /**
2411
- * Filter, which Messages to fetch.
2412
- */
2413
- where?: Prisma.MessageWhereInput
2414
- /**
2415
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2416
- *
2417
- * Determine the order of Messages to fetch.
2418
- */
2419
- orderBy?: Prisma.MessageOrderByWithRelationInput | Prisma.MessageOrderByWithRelationInput[]
2420
- /**
2421
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2422
- *
2423
- * Sets the position for listing Messages.
2424
- */
2425
- cursor?: Prisma.MessageWhereUniqueInput
2426
- /**
2427
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2428
- *
2429
- * Take `±n` Messages from the position of the cursor.
2430
- */
2431
- take?: number
2432
- /**
2433
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2434
- *
2435
- * Skip the first `n` Messages.
2436
- */
2437
- skip?: number
2438
- /**
2439
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2440
- *
2441
- * Filter by unique combinations of Messages.
2442
- */
2443
- distinct?: Prisma.MessageScalarFieldEnum | Prisma.MessageScalarFieldEnum[]
2444
- }
2445
-
2446
- /**
2447
- * Message create
2448
- */
2449
- export type MessageCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2450
- /**
2451
- * Select specific fields to fetch from the Message
2452
- */
2453
- select?: Prisma.MessageSelect<ExtArgs> | null
2454
- /**
2455
- * Omit specific fields from the Message
2456
- */
2457
- omit?: Prisma.MessageOmit<ExtArgs> | null
2458
- /**
2459
- * Choose, which related nodes to fetch as well
2460
- */
2461
- include?: Prisma.MessageInclude<ExtArgs> | null
2462
- /**
2463
- * The data needed to create a Message.
2464
- */
2465
- data: Prisma.XOR<Prisma.MessageCreateInput, Prisma.MessageUncheckedCreateInput>
2466
- }
2467
-
2468
- /**
2469
- * Message createMany
2470
- */
2471
- export type MessageCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2472
- /**
2473
- * The data used to create many Messages.
2474
- */
2475
- data: Prisma.MessageCreateManyInput | Prisma.MessageCreateManyInput[]
2476
- skipDuplicates?: boolean
2477
- }
2478
-
2479
- /**
2480
- * Message createManyAndReturn
2481
- */
2482
- export type MessageCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2483
- /**
2484
- * Select specific fields to fetch from the Message
2485
- */
2486
- select?: Prisma.MessageSelectCreateManyAndReturn<ExtArgs> | null
2487
- /**
2488
- * Omit specific fields from the Message
2489
- */
2490
- omit?: Prisma.MessageOmit<ExtArgs> | null
2491
- /**
2492
- * The data used to create many Messages.
2493
- */
2494
- data: Prisma.MessageCreateManyInput | Prisma.MessageCreateManyInput[]
2495
- skipDuplicates?: boolean
2496
- /**
2497
- * Choose, which related nodes to fetch as well
2498
- */
2499
- include?: Prisma.MessageIncludeCreateManyAndReturn<ExtArgs> | null
2500
- }
2501
-
2502
- /**
2503
- * Message update
2504
- */
2505
- export type MessageUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2506
- /**
2507
- * Select specific fields to fetch from the Message
2508
- */
2509
- select?: Prisma.MessageSelect<ExtArgs> | null
2510
- /**
2511
- * Omit specific fields from the Message
2512
- */
2513
- omit?: Prisma.MessageOmit<ExtArgs> | null
2514
- /**
2515
- * Choose, which related nodes to fetch as well
2516
- */
2517
- include?: Prisma.MessageInclude<ExtArgs> | null
2518
- /**
2519
- * The data needed to update a Message.
2520
- */
2521
- data: Prisma.XOR<Prisma.MessageUpdateInput, Prisma.MessageUncheckedUpdateInput>
2522
- /**
2523
- * Choose, which Message to update.
2524
- */
2525
- where: Prisma.MessageWhereUniqueInput
2526
- }
2527
-
2528
- /**
2529
- * Message updateMany
2530
- */
2531
- export type MessageUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2532
- /**
2533
- * The data used to update Messages.
2534
- */
2535
- data: Prisma.XOR<Prisma.MessageUpdateManyMutationInput, Prisma.MessageUncheckedUpdateManyInput>
2536
- /**
2537
- * Filter which Messages to update
2538
- */
2539
- where?: Prisma.MessageWhereInput
2540
- /**
2541
- * Limit how many Messages to update.
2542
- */
2543
- limit?: number
2544
- }
2545
-
2546
- /**
2547
- * Message updateManyAndReturn
2548
- */
2549
- export type MessageUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2550
- /**
2551
- * Select specific fields to fetch from the Message
2552
- */
2553
- select?: Prisma.MessageSelectUpdateManyAndReturn<ExtArgs> | null
2554
- /**
2555
- * Omit specific fields from the Message
2556
- */
2557
- omit?: Prisma.MessageOmit<ExtArgs> | null
2558
- /**
2559
- * The data used to update Messages.
2560
- */
2561
- data: Prisma.XOR<Prisma.MessageUpdateManyMutationInput, Prisma.MessageUncheckedUpdateManyInput>
2562
- /**
2563
- * Filter which Messages to update
2564
- */
2565
- where?: Prisma.MessageWhereInput
2566
- /**
2567
- * Limit how many Messages to update.
2568
- */
2569
- limit?: number
2570
- /**
2571
- * Choose, which related nodes to fetch as well
2572
- */
2573
- include?: Prisma.MessageIncludeUpdateManyAndReturn<ExtArgs> | null
2574
- }
2575
-
2576
- /**
2577
- * Message upsert
2578
- */
2579
- export type MessageUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2580
- /**
2581
- * Select specific fields to fetch from the Message
2582
- */
2583
- select?: Prisma.MessageSelect<ExtArgs> | null
2584
- /**
2585
- * Omit specific fields from the Message
2586
- */
2587
- omit?: Prisma.MessageOmit<ExtArgs> | null
2588
- /**
2589
- * Choose, which related nodes to fetch as well
2590
- */
2591
- include?: Prisma.MessageInclude<ExtArgs> | null
2592
- /**
2593
- * The filter to search for the Message to update in case it exists.
2594
- */
2595
- where: Prisma.MessageWhereUniqueInput
2596
- /**
2597
- * In case the Message found by the `where` argument doesn't exist, create a new Message with this data.
2598
- */
2599
- create: Prisma.XOR<Prisma.MessageCreateInput, Prisma.MessageUncheckedCreateInput>
2600
- /**
2601
- * In case the Message was found with the provided `where` argument, update it with this data.
2602
- */
2603
- update: Prisma.XOR<Prisma.MessageUpdateInput, Prisma.MessageUncheckedUpdateInput>
2604
- }
2605
-
2606
- /**
2607
- * Message delete
2608
- */
2609
- export type MessageDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2610
- /**
2611
- * Select specific fields to fetch from the Message
2612
- */
2613
- select?: Prisma.MessageSelect<ExtArgs> | null
2614
- /**
2615
- * Omit specific fields from the Message
2616
- */
2617
- omit?: Prisma.MessageOmit<ExtArgs> | null
2618
- /**
2619
- * Choose, which related nodes to fetch as well
2620
- */
2621
- include?: Prisma.MessageInclude<ExtArgs> | null
2622
- /**
2623
- * Filter which Message to delete.
2624
- */
2625
- where: Prisma.MessageWhereUniqueInput
2626
- }
2627
-
2628
- /**
2629
- * Message deleteMany
2630
- */
2631
- export type MessageDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2632
- /**
2633
- * Filter which Messages to delete
2634
- */
2635
- where?: Prisma.MessageWhereInput
2636
- /**
2637
- * Limit how many Messages to delete.
2638
- */
2639
- limit?: number
2640
- }
2641
-
2642
- /**
2643
- * Message.sender_user
2644
- */
2645
- export type Message$sender_userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2646
- /**
2647
- * Select specific fields to fetch from the User
2648
- */
2649
- select?: Prisma.UserSelect<ExtArgs> | null
2650
- /**
2651
- * Omit specific fields from the User
2652
- */
2653
- omit?: Prisma.UserOmit<ExtArgs> | null
2654
- /**
2655
- * Choose, which related nodes to fetch as well
2656
- */
2657
- include?: Prisma.UserInclude<ExtArgs> | null
2658
- where?: Prisma.UserWhereInput
2659
- }
2660
-
2661
- /**
2662
- * Message.reply_to_message
2663
- */
2664
- export type Message$reply_to_messageArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2665
- /**
2666
- * Select specific fields to fetch from the Message
2667
- */
2668
- select?: Prisma.MessageSelect<ExtArgs> | null
2669
- /**
2670
- * Omit specific fields from the Message
2671
- */
2672
- omit?: Prisma.MessageOmit<ExtArgs> | null
2673
- /**
2674
- * Choose, which related nodes to fetch as well
2675
- */
2676
- include?: Prisma.MessageInclude<ExtArgs> | null
2677
- where?: Prisma.MessageWhereInput
2678
- }
2679
-
2680
- /**
2681
- * Message.replies
2682
- */
2683
- export type Message$repliesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2684
- /**
2685
- * Select specific fields to fetch from the Message
2686
- */
2687
- select?: Prisma.MessageSelect<ExtArgs> | null
2688
- /**
2689
- * Omit specific fields from the Message
2690
- */
2691
- omit?: Prisma.MessageOmit<ExtArgs> | null
2692
- /**
2693
- * Choose, which related nodes to fetch as well
2694
- */
2695
- include?: Prisma.MessageInclude<ExtArgs> | null
2696
- where?: Prisma.MessageWhereInput
2697
- orderBy?: Prisma.MessageOrderByWithRelationInput | Prisma.MessageOrderByWithRelationInput[]
2698
- cursor?: Prisma.MessageWhereUniqueInput
2699
- take?: number
2700
- skip?: number
2701
- distinct?: Prisma.MessageScalarFieldEnum | Prisma.MessageScalarFieldEnum[]
2702
- }
2703
-
2704
- /**
2705
- * Message.recipients
2706
- */
2707
- export type Message$recipientsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2708
- /**
2709
- * Select specific fields to fetch from the MessageRecipient
2710
- */
2711
- select?: Prisma.MessageRecipientSelect<ExtArgs> | null
2712
- /**
2713
- * Omit specific fields from the MessageRecipient
2714
- */
2715
- omit?: Prisma.MessageRecipientOmit<ExtArgs> | null
2716
- /**
2717
- * Choose, which related nodes to fetch as well
2718
- */
2719
- include?: Prisma.MessageRecipientInclude<ExtArgs> | null
2720
- where?: Prisma.MessageRecipientWhereInput
2721
- orderBy?: Prisma.MessageRecipientOrderByWithRelationInput | Prisma.MessageRecipientOrderByWithRelationInput[]
2722
- cursor?: Prisma.MessageRecipientWhereUniqueInput
2723
- take?: number
2724
- skip?: number
2725
- distinct?: Prisma.MessageRecipientScalarFieldEnum | Prisma.MessageRecipientScalarFieldEnum[]
2726
- }
2727
-
2728
- /**
2729
- * Message without action
2730
- */
2731
- export type MessageDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2732
- /**
2733
- * Select specific fields to fetch from the Message
2734
- */
2735
- select?: Prisma.MessageSelect<ExtArgs> | null
2736
- /**
2737
- * Omit specific fields from the Message
2738
- */
2739
- omit?: Prisma.MessageOmit<ExtArgs> | null
2740
- /**
2741
- * Choose, which related nodes to fetch as well
2742
- */
2743
- include?: Prisma.MessageInclude<ExtArgs> | null
2744
- }