procbay-schema 1.0.171 → 1.0.174

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 (148) hide show
  1. package/package.json +13 -22
  2. package/prisma/schema.prisma +4 -5
  3. package/scripts/sync-schemas.js +1 -5
  4. package/src/create-prisma-client.js +9 -49
  5. package/src/prisma/client.d.ts +1 -0
  6. package/src/prisma/client.js +4 -0
  7. package/src/prisma/default.d.ts +1 -0
  8. package/src/prisma/default.js +4 -0
  9. package/src/prisma/edge.d.ts +1 -0
  10. package/src/prisma/edge.js +2900 -0
  11. package/src/{generated/prisma/internal/prismaNamespaceBrowser.ts → prisma/index-browser.js} +980 -739
  12. package/src/prisma/index.d.ts +286683 -0
  13. package/src/prisma/index.js +2929 -2
  14. package/src/prisma/libquery_engine-darwin.dylib.node +0 -0
  15. package/src/prisma/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  16. package/src/prisma/package.json +140 -0
  17. package/src/prisma/query_engine-windows.dll.node +0 -0
  18. package/src/prisma/runtime/edge-esm.js +34 -0
  19. package/src/prisma/runtime/edge.js +34 -0
  20. package/src/prisma/runtime/index-browser.d.ts +370 -0
  21. package/src/prisma/runtime/index-browser.js +16 -0
  22. package/src/prisma/runtime/library.d.ts +3647 -0
  23. package/src/prisma/runtime/library.js +146 -0
  24. package/src/prisma/runtime/react-native.js +83 -0
  25. package/src/prisma/runtime/wasm.js +35 -0
  26. package/src/prisma/schema.prisma +3820 -0
  27. package/src/prisma/wasm.d.ts +1 -0
  28. package/src/prisma/wasm.js +2862 -0
  29. package/prisma.config.js +0 -19
  30. package/src/generated/prisma/browser.ts +0 -574
  31. package/src/generated/prisma/client.bundle.mjs +0 -6733
  32. package/src/generated/prisma/client.ts +0 -598
  33. package/src/generated/prisma/commonInputTypes.ts +0 -2911
  34. package/src/generated/prisma/enums.ts +0 -730
  35. package/src/generated/prisma/internal/class.ts +0 -1304
  36. package/src/generated/prisma/internal/prismaNamespace.ts +0 -12506
  37. package/src/generated/prisma/models/ActivityLog.ts +0 -1590
  38. package/src/generated/prisma/models/AdminAlert.ts +0 -1547
  39. package/src/generated/prisma/models/ApprovalCondition.ts +0 -2085
  40. package/src/generated/prisma/models/ApprovalDelegation.ts +0 -3057
  41. package/src/generated/prisma/models/ApprovalDelegationDelegate.ts +0 -1784
  42. package/src/generated/prisma/models/ApprovalHierarchy.ts +0 -3083
  43. package/src/generated/prisma/models/ApprovalJourney.ts +0 -2867
  44. package/src/generated/prisma/models/ApprovalLevel.ts +0 -2335
  45. package/src/generated/prisma/models/ApprovalLevelEscalation.ts +0 -2128
  46. package/src/generated/prisma/models/ApprovalLevelEscalationUser.ts +0 -1863
  47. package/src/generated/prisma/models/ApprovalLevelUser.ts +0 -1863
  48. package/src/generated/prisma/models/ApprovalManagement.ts +0 -1728
  49. package/src/generated/prisma/models/Attribute.ts +0 -2075
  50. package/src/generated/prisma/models/AttributeValue.ts +0 -1882
  51. package/src/generated/prisma/models/Bid.ts +0 -2719
  52. package/src/generated/prisma/models/BidLog.ts +0 -3560
  53. package/src/generated/prisma/models/BlanketPurchaseOrder.ts +0 -3527
  54. package/src/generated/prisma/models/BlanketPurchaseOrderItem.ts +0 -2532
  55. package/src/generated/prisma/models/BlanketPurchaseOrderRelease.ts +0 -2713
  56. package/src/generated/prisma/models/BoqEventItem.ts +0 -4056
  57. package/src/generated/prisma/models/Budget.ts +0 -1954
  58. package/src/generated/prisma/models/BudgetHold.ts +0 -1904
  59. package/src/generated/prisma/models/BusinessEntity.ts +0 -3901
  60. package/src/generated/prisma/models/BusinessEntityDepartment.ts +0 -2032
  61. package/src/generated/prisma/models/BusinessEntityLocation.ts +0 -1567
  62. package/src/generated/prisma/models/Catalogue.ts +0 -2081
  63. package/src/generated/prisma/models/CatalogueCart.ts +0 -2305
  64. package/src/generated/prisma/models/CatalogueVendor.ts +0 -2252
  65. package/src/generated/prisma/models/Category.ts +0 -3091
  66. package/src/generated/prisma/models/CategoryBudget.ts +0 -2690
  67. package/src/generated/prisma/models/City.ts +0 -2180
  68. package/src/generated/prisma/models/Cms.ts +0 -1492
  69. package/src/generated/prisma/models/ContactUs.ts +0 -1654
  70. package/src/generated/prisma/models/Conversation.ts +0 -2389
  71. package/src/generated/prisma/models/ConversationParticipant.ts +0 -1833
  72. package/src/generated/prisma/models/CounterOffer.ts +0 -2156
  73. package/src/generated/prisma/models/Country.ts +0 -3394
  74. package/src/generated/prisma/models/Currency.ts +0 -1642
  75. package/src/generated/prisma/models/CustomerNotification.ts +0 -1653
  76. package/src/generated/prisma/models/Department.ts +0 -2372
  77. package/src/generated/prisma/models/DepartmentBudget.ts +0 -2494
  78. package/src/generated/prisma/models/DynamicForm.ts +0 -2021
  79. package/src/generated/prisma/models/EmailTemplate.ts +0 -1516
  80. package/src/generated/prisma/models/Event.ts +0 -6819
  81. package/src/generated/prisma/models/EventConfigurations.ts +0 -1736
  82. package/src/generated/prisma/models/EventCriteria.ts +0 -2134
  83. package/src/generated/prisma/models/EventItems.ts +0 -2821
  84. package/src/generated/prisma/models/EventRfiForm.ts +0 -2020
  85. package/src/generated/prisma/models/EventRfiFormLog.ts +0 -2608
  86. package/src/generated/prisma/models/EventStrategies.ts +0 -1857
  87. package/src/generated/prisma/models/EventVendorCriteria.ts +0 -2186
  88. package/src/generated/prisma/models/EventVendors.ts +0 -3446
  89. package/src/generated/prisma/models/Expense.ts +0 -1625
  90. package/src/generated/prisma/models/ExportLog.ts +0 -1822
  91. package/src/generated/prisma/models/Faq.ts +0 -1753
  92. package/src/generated/prisma/models/FaqCategory.ts +0 -1610
  93. package/src/generated/prisma/models/FiscalYear.ts +0 -1460
  94. package/src/generated/prisma/models/FormMaster.ts +0 -1831
  95. package/src/generated/prisma/models/GRN.ts +0 -3354
  96. package/src/generated/prisma/models/GRNItem.ts +0 -2119
  97. package/src/generated/prisma/models/Industry.ts +0 -1642
  98. package/src/generated/prisma/models/Invoice.ts +0 -2949
  99. package/src/generated/prisma/models/InvoiceItem.ts +0 -2397
  100. package/src/generated/prisma/models/Item.ts +0 -10644
  101. package/src/generated/prisma/models/ItemAttribute.ts +0 -1750
  102. package/src/generated/prisma/models/ItemAttributeValue.ts +0 -1802
  103. package/src/generated/prisma/models/ItemDocument.ts +0 -1590
  104. package/src/generated/prisma/models/Location.ts +0 -2711
  105. package/src/generated/prisma/models/Message.ts +0 -2744
  106. package/src/generated/prisma/models/MessageRecipient.ts +0 -1759
  107. package/src/generated/prisma/models/Module.ts +0 -1630
  108. package/src/generated/prisma/models/Permission.ts +0 -1640
  109. package/src/generated/prisma/models/PurchaseIntake.ts +0 -4672
  110. package/src/generated/prisma/models/PurchaseIntakeItem.ts +0 -2366
  111. package/src/generated/prisma/models/PurchaseOrder.ts +0 -4012
  112. package/src/generated/prisma/models/PurchaseOrderActivityLog.ts +0 -1720
  113. package/src/generated/prisma/models/PurchaseOrderItem.ts +0 -2623
  114. package/src/generated/prisma/models/Quotation.ts +0 -3207
  115. package/src/generated/prisma/models/QuotationLog.ts +0 -3239
  116. package/src/generated/prisma/models/Region.ts +0 -1746
  117. package/src/generated/prisma/models/RequestedCatalogue.ts +0 -1618
  118. package/src/generated/prisma/models/RequestedCatalogueDetails.ts +0 -2252
  119. package/src/generated/prisma/models/Role.ts +0 -1907
  120. package/src/generated/prisma/models/RolePermission.ts +0 -1737
  121. package/src/generated/prisma/models/SendBack.ts +0 -1830
  122. package/src/generated/prisma/models/SerialNumberConfiguration.ts +0 -1254
  123. package/src/generated/prisma/models/SmtpConfig.ts +0 -1522
  124. package/src/generated/prisma/models/State.ts +0 -2174
  125. package/src/generated/prisma/models/Strategies.ts +0 -1791
  126. package/src/generated/prisma/models/SubModule.ts +0 -1450
  127. package/src/generated/prisma/models/Subregion.ts +0 -1870
  128. package/src/generated/prisma/models/SupportCategory.ts +0 -1712
  129. package/src/generated/prisma/models/SupportTicket.ts +0 -2478
  130. package/src/generated/prisma/models/SupportingDocument.ts +0 -2283
  131. package/src/generated/prisma/models/Template.ts +0 -2429
  132. package/src/generated/prisma/models/TemplateField.ts +0 -1916
  133. package/src/generated/prisma/models/TemplateStrategies.ts +0 -1614
  134. package/src/generated/prisma/models/TenantConfiguration.ts +0 -1694
  135. package/src/generated/prisma/models/TicketAssignment.ts +0 -1742
  136. package/src/generated/prisma/models/TicketHistory.ts +0 -1789
  137. package/src/generated/prisma/models/TicketReply.ts +0 -1640
  138. package/src/generated/prisma/models/Uom.ts +0 -1752
  139. package/src/generated/prisma/models/UomCategory.ts +0 -1558
  140. package/src/generated/prisma/models/UploadLog.ts +0 -1731
  141. package/src/generated/prisma/models/User.ts +0 -19397
  142. package/src/generated/prisma/models/UserDepartmentEntity.ts +0 -2099
  143. package/src/generated/prisma/models/UserEventConfiguration.ts +0 -1370
  144. package/src/generated/prisma/models/UserLoginActivity.ts +0 -1693
  145. package/src/generated/prisma/models/UserRole.ts +0 -1696
  146. package/src/generated/prisma/models/UserVendorSocketTokens.ts +0 -1450
  147. package/src/generated/prisma/models/VendorReference.ts +0 -1707
  148. package/src/generated/prisma/models.ts +0 -122
@@ -1,1759 +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 `MessageRecipient` 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 MessageRecipient
17
- *
18
- */
19
- export type MessageRecipientModel = runtime.Types.Result.DefaultSelection<Prisma.$MessageRecipientPayload>
20
-
21
- export type AggregateMessageRecipient = {
22
- _count: MessageRecipientCountAggregateOutputType | null
23
- _avg: MessageRecipientAvgAggregateOutputType | null
24
- _sum: MessageRecipientSumAggregateOutputType | null
25
- _min: MessageRecipientMinAggregateOutputType | null
26
- _max: MessageRecipientMaxAggregateOutputType | null
27
- }
28
-
29
- export type MessageRecipientAvgAggregateOutputType = {
30
- id: number | null
31
- message_id: number | null
32
- recipient_user_id: number | null
33
- recipient_vendor_id: number | null
34
- }
35
-
36
- export type MessageRecipientSumAggregateOutputType = {
37
- id: number | null
38
- message_id: number | null
39
- recipient_user_id: number | null
40
- recipient_vendor_id: number | null
41
- }
42
-
43
- export type MessageRecipientMinAggregateOutputType = {
44
- id: number | null
45
- uuid: string | null
46
- message_id: number | null
47
- recipient_type: $Enums.MessageRecipientType | null
48
- recipient_user_id: number | null
49
- recipient_vendor_id: number | null
50
- read_status: $Enums.MessageReadStatus | null
51
- read_at: Date | null
52
- delivered_at: Date | null
53
- created_at: Date | null
54
- }
55
-
56
- export type MessageRecipientMaxAggregateOutputType = {
57
- id: number | null
58
- uuid: string | null
59
- message_id: number | null
60
- recipient_type: $Enums.MessageRecipientType | null
61
- recipient_user_id: number | null
62
- recipient_vendor_id: number | null
63
- read_status: $Enums.MessageReadStatus | null
64
- read_at: Date | null
65
- delivered_at: Date | null
66
- created_at: Date | null
67
- }
68
-
69
- export type MessageRecipientCountAggregateOutputType = {
70
- id: number
71
- uuid: number
72
- message_id: number
73
- recipient_type: number
74
- recipient_user_id: number
75
- recipient_vendor_id: number
76
- read_status: number
77
- read_at: number
78
- delivered_at: number
79
- created_at: number
80
- _all: number
81
- }
82
-
83
-
84
- export type MessageRecipientAvgAggregateInputType = {
85
- id?: true
86
- message_id?: true
87
- recipient_user_id?: true
88
- recipient_vendor_id?: true
89
- }
90
-
91
- export type MessageRecipientSumAggregateInputType = {
92
- id?: true
93
- message_id?: true
94
- recipient_user_id?: true
95
- recipient_vendor_id?: true
96
- }
97
-
98
- export type MessageRecipientMinAggregateInputType = {
99
- id?: true
100
- uuid?: true
101
- message_id?: true
102
- recipient_type?: true
103
- recipient_user_id?: true
104
- recipient_vendor_id?: true
105
- read_status?: true
106
- read_at?: true
107
- delivered_at?: true
108
- created_at?: true
109
- }
110
-
111
- export type MessageRecipientMaxAggregateInputType = {
112
- id?: true
113
- uuid?: true
114
- message_id?: true
115
- recipient_type?: true
116
- recipient_user_id?: true
117
- recipient_vendor_id?: true
118
- read_status?: true
119
- read_at?: true
120
- delivered_at?: true
121
- created_at?: true
122
- }
123
-
124
- export type MessageRecipientCountAggregateInputType = {
125
- id?: true
126
- uuid?: true
127
- message_id?: true
128
- recipient_type?: true
129
- recipient_user_id?: true
130
- recipient_vendor_id?: true
131
- read_status?: true
132
- read_at?: true
133
- delivered_at?: true
134
- created_at?: true
135
- _all?: true
136
- }
137
-
138
- export type MessageRecipientAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
139
- /**
140
- * Filter which MessageRecipient to aggregate.
141
- */
142
- where?: Prisma.MessageRecipientWhereInput
143
- /**
144
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
145
- *
146
- * Determine the order of MessageRecipients to fetch.
147
- */
148
- orderBy?: Prisma.MessageRecipientOrderByWithRelationInput | Prisma.MessageRecipientOrderByWithRelationInput[]
149
- /**
150
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
151
- *
152
- * Sets the start position
153
- */
154
- cursor?: Prisma.MessageRecipientWhereUniqueInput
155
- /**
156
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
157
- *
158
- * Take `±n` MessageRecipients from the position of the cursor.
159
- */
160
- take?: number
161
- /**
162
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
163
- *
164
- * Skip the first `n` MessageRecipients.
165
- */
166
- skip?: number
167
- /**
168
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
169
- *
170
- * Count returned MessageRecipients
171
- **/
172
- _count?: true | MessageRecipientCountAggregateInputType
173
- /**
174
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
175
- *
176
- * Select which fields to average
177
- **/
178
- _avg?: MessageRecipientAvgAggregateInputType
179
- /**
180
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
181
- *
182
- * Select which fields to sum
183
- **/
184
- _sum?: MessageRecipientSumAggregateInputType
185
- /**
186
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
187
- *
188
- * Select which fields to find the minimum value
189
- **/
190
- _min?: MessageRecipientMinAggregateInputType
191
- /**
192
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
193
- *
194
- * Select which fields to find the maximum value
195
- **/
196
- _max?: MessageRecipientMaxAggregateInputType
197
- }
198
-
199
- export type GetMessageRecipientAggregateType<T extends MessageRecipientAggregateArgs> = {
200
- [P in keyof T & keyof AggregateMessageRecipient]: P extends '_count' | 'count'
201
- ? T[P] extends true
202
- ? number
203
- : Prisma.GetScalarType<T[P], AggregateMessageRecipient[P]>
204
- : Prisma.GetScalarType<T[P], AggregateMessageRecipient[P]>
205
- }
206
-
207
-
208
-
209
-
210
- export type MessageRecipientGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
211
- where?: Prisma.MessageRecipientWhereInput
212
- orderBy?: Prisma.MessageRecipientOrderByWithAggregationInput | Prisma.MessageRecipientOrderByWithAggregationInput[]
213
- by: Prisma.MessageRecipientScalarFieldEnum[] | Prisma.MessageRecipientScalarFieldEnum
214
- having?: Prisma.MessageRecipientScalarWhereWithAggregatesInput
215
- take?: number
216
- skip?: number
217
- _count?: MessageRecipientCountAggregateInputType | true
218
- _avg?: MessageRecipientAvgAggregateInputType
219
- _sum?: MessageRecipientSumAggregateInputType
220
- _min?: MessageRecipientMinAggregateInputType
221
- _max?: MessageRecipientMaxAggregateInputType
222
- }
223
-
224
- export type MessageRecipientGroupByOutputType = {
225
- id: number
226
- uuid: string | null
227
- message_id: number
228
- recipient_type: $Enums.MessageRecipientType
229
- recipient_user_id: number | null
230
- recipient_vendor_id: number | null
231
- read_status: $Enums.MessageReadStatus
232
- read_at: Date | null
233
- delivered_at: Date | null
234
- created_at: Date
235
- _count: MessageRecipientCountAggregateOutputType | null
236
- _avg: MessageRecipientAvgAggregateOutputType | null
237
- _sum: MessageRecipientSumAggregateOutputType | null
238
- _min: MessageRecipientMinAggregateOutputType | null
239
- _max: MessageRecipientMaxAggregateOutputType | null
240
- }
241
-
242
- export type GetMessageRecipientGroupByPayload<T extends MessageRecipientGroupByArgs> = Prisma.PrismaPromise<
243
- Array<
244
- Prisma.PickEnumerable<MessageRecipientGroupByOutputType, T['by']> &
245
- {
246
- [P in ((keyof T) & (keyof MessageRecipientGroupByOutputType))]: P extends '_count'
247
- ? T[P] extends boolean
248
- ? number
249
- : Prisma.GetScalarType<T[P], MessageRecipientGroupByOutputType[P]>
250
- : Prisma.GetScalarType<T[P], MessageRecipientGroupByOutputType[P]>
251
- }
252
- >
253
- >
254
-
255
-
256
-
257
- export type MessageRecipientWhereInput = {
258
- AND?: Prisma.MessageRecipientWhereInput | Prisma.MessageRecipientWhereInput[]
259
- OR?: Prisma.MessageRecipientWhereInput[]
260
- NOT?: Prisma.MessageRecipientWhereInput | Prisma.MessageRecipientWhereInput[]
261
- id?: Prisma.IntFilter<"MessageRecipient"> | number
262
- uuid?: Prisma.StringNullableFilter<"MessageRecipient"> | string | null
263
- message_id?: Prisma.IntFilter<"MessageRecipient"> | number
264
- recipient_type?: Prisma.EnumMessageRecipientTypeFilter<"MessageRecipient"> | $Enums.MessageRecipientType
265
- recipient_user_id?: Prisma.IntNullableFilter<"MessageRecipient"> | number | null
266
- recipient_vendor_id?: Prisma.IntNullableFilter<"MessageRecipient"> | number | null
267
- read_status?: Prisma.EnumMessageReadStatusFilter<"MessageRecipient"> | $Enums.MessageReadStatus
268
- read_at?: Prisma.DateTimeNullableFilter<"MessageRecipient"> | Date | string | null
269
- delivered_at?: Prisma.DateTimeNullableFilter<"MessageRecipient"> | Date | string | null
270
- created_at?: Prisma.DateTimeFilter<"MessageRecipient"> | Date | string
271
- message?: Prisma.XOR<Prisma.MessageScalarRelationFilter, Prisma.MessageWhereInput>
272
- recipient_user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
273
- }
274
-
275
- export type MessageRecipientOrderByWithRelationInput = {
276
- id?: Prisma.SortOrder
277
- uuid?: Prisma.SortOrderInput | Prisma.SortOrder
278
- message_id?: Prisma.SortOrder
279
- recipient_type?: Prisma.SortOrder
280
- recipient_user_id?: Prisma.SortOrderInput | Prisma.SortOrder
281
- recipient_vendor_id?: Prisma.SortOrderInput | Prisma.SortOrder
282
- read_status?: Prisma.SortOrder
283
- read_at?: Prisma.SortOrderInput | Prisma.SortOrder
284
- delivered_at?: Prisma.SortOrderInput | Prisma.SortOrder
285
- created_at?: Prisma.SortOrder
286
- message?: Prisma.MessageOrderByWithRelationInput
287
- recipient_user?: Prisma.UserOrderByWithRelationInput
288
- }
289
-
290
- export type MessageRecipientWhereUniqueInput = Prisma.AtLeast<{
291
- id?: number
292
- uuid?: string
293
- unique_message_recipient?: Prisma.MessageRecipientUnique_message_recipientCompoundUniqueInput
294
- AND?: Prisma.MessageRecipientWhereInput | Prisma.MessageRecipientWhereInput[]
295
- OR?: Prisma.MessageRecipientWhereInput[]
296
- NOT?: Prisma.MessageRecipientWhereInput | Prisma.MessageRecipientWhereInput[]
297
- message_id?: Prisma.IntFilter<"MessageRecipient"> | number
298
- recipient_type?: Prisma.EnumMessageRecipientTypeFilter<"MessageRecipient"> | $Enums.MessageRecipientType
299
- recipient_user_id?: Prisma.IntNullableFilter<"MessageRecipient"> | number | null
300
- recipient_vendor_id?: Prisma.IntNullableFilter<"MessageRecipient"> | number | null
301
- read_status?: Prisma.EnumMessageReadStatusFilter<"MessageRecipient"> | $Enums.MessageReadStatus
302
- read_at?: Prisma.DateTimeNullableFilter<"MessageRecipient"> | Date | string | null
303
- delivered_at?: Prisma.DateTimeNullableFilter<"MessageRecipient"> | Date | string | null
304
- created_at?: Prisma.DateTimeFilter<"MessageRecipient"> | Date | string
305
- message?: Prisma.XOR<Prisma.MessageScalarRelationFilter, Prisma.MessageWhereInput>
306
- recipient_user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
307
- }, "id" | "uuid" | "unique_message_recipient">
308
-
309
- export type MessageRecipientOrderByWithAggregationInput = {
310
- id?: Prisma.SortOrder
311
- uuid?: Prisma.SortOrderInput | Prisma.SortOrder
312
- message_id?: Prisma.SortOrder
313
- recipient_type?: Prisma.SortOrder
314
- recipient_user_id?: Prisma.SortOrderInput | Prisma.SortOrder
315
- recipient_vendor_id?: Prisma.SortOrderInput | Prisma.SortOrder
316
- read_status?: Prisma.SortOrder
317
- read_at?: Prisma.SortOrderInput | Prisma.SortOrder
318
- delivered_at?: Prisma.SortOrderInput | Prisma.SortOrder
319
- created_at?: Prisma.SortOrder
320
- _count?: Prisma.MessageRecipientCountOrderByAggregateInput
321
- _avg?: Prisma.MessageRecipientAvgOrderByAggregateInput
322
- _max?: Prisma.MessageRecipientMaxOrderByAggregateInput
323
- _min?: Prisma.MessageRecipientMinOrderByAggregateInput
324
- _sum?: Prisma.MessageRecipientSumOrderByAggregateInput
325
- }
326
-
327
- export type MessageRecipientScalarWhereWithAggregatesInput = {
328
- AND?: Prisma.MessageRecipientScalarWhereWithAggregatesInput | Prisma.MessageRecipientScalarWhereWithAggregatesInput[]
329
- OR?: Prisma.MessageRecipientScalarWhereWithAggregatesInput[]
330
- NOT?: Prisma.MessageRecipientScalarWhereWithAggregatesInput | Prisma.MessageRecipientScalarWhereWithAggregatesInput[]
331
- id?: Prisma.IntWithAggregatesFilter<"MessageRecipient"> | number
332
- uuid?: Prisma.StringNullableWithAggregatesFilter<"MessageRecipient"> | string | null
333
- message_id?: Prisma.IntWithAggregatesFilter<"MessageRecipient"> | number
334
- recipient_type?: Prisma.EnumMessageRecipientTypeWithAggregatesFilter<"MessageRecipient"> | $Enums.MessageRecipientType
335
- recipient_user_id?: Prisma.IntNullableWithAggregatesFilter<"MessageRecipient"> | number | null
336
- recipient_vendor_id?: Prisma.IntNullableWithAggregatesFilter<"MessageRecipient"> | number | null
337
- read_status?: Prisma.EnumMessageReadStatusWithAggregatesFilter<"MessageRecipient"> | $Enums.MessageReadStatus
338
- read_at?: Prisma.DateTimeNullableWithAggregatesFilter<"MessageRecipient"> | Date | string | null
339
- delivered_at?: Prisma.DateTimeNullableWithAggregatesFilter<"MessageRecipient"> | Date | string | null
340
- created_at?: Prisma.DateTimeWithAggregatesFilter<"MessageRecipient"> | Date | string
341
- }
342
-
343
- export type MessageRecipientCreateInput = {
344
- uuid?: string | null
345
- recipient_type: $Enums.MessageRecipientType
346
- recipient_vendor_id?: number | null
347
- read_status?: $Enums.MessageReadStatus
348
- read_at?: Date | string | null
349
- delivered_at?: Date | string | null
350
- created_at?: Date | string
351
- message: Prisma.MessageCreateNestedOneWithoutRecipientsInput
352
- recipient_user?: Prisma.UserCreateNestedOneWithoutMessage_recipientsInput
353
- }
354
-
355
- export type MessageRecipientUncheckedCreateInput = {
356
- id?: number
357
- uuid?: string | null
358
- message_id: number
359
- recipient_type: $Enums.MessageRecipientType
360
- recipient_user_id?: number | null
361
- recipient_vendor_id?: number | null
362
- read_status?: $Enums.MessageReadStatus
363
- read_at?: Date | string | null
364
- delivered_at?: Date | string | null
365
- created_at?: Date | string
366
- }
367
-
368
- export type MessageRecipientUpdateInput = {
369
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
370
- recipient_type?: Prisma.EnumMessageRecipientTypeFieldUpdateOperationsInput | $Enums.MessageRecipientType
371
- recipient_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
372
- read_status?: Prisma.EnumMessageReadStatusFieldUpdateOperationsInput | $Enums.MessageReadStatus
373
- read_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
374
- delivered_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
375
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
376
- message?: Prisma.MessageUpdateOneRequiredWithoutRecipientsNestedInput
377
- recipient_user?: Prisma.UserUpdateOneWithoutMessage_recipientsNestedInput
378
- }
379
-
380
- export type MessageRecipientUncheckedUpdateInput = {
381
- id?: Prisma.IntFieldUpdateOperationsInput | number
382
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
383
- message_id?: Prisma.IntFieldUpdateOperationsInput | number
384
- recipient_type?: Prisma.EnumMessageRecipientTypeFieldUpdateOperationsInput | $Enums.MessageRecipientType
385
- recipient_user_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
386
- recipient_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
387
- read_status?: Prisma.EnumMessageReadStatusFieldUpdateOperationsInput | $Enums.MessageReadStatus
388
- read_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
389
- delivered_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
390
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
391
- }
392
-
393
- export type MessageRecipientCreateManyInput = {
394
- id?: number
395
- uuid?: string | null
396
- message_id: number
397
- recipient_type: $Enums.MessageRecipientType
398
- recipient_user_id?: number | null
399
- recipient_vendor_id?: number | null
400
- read_status?: $Enums.MessageReadStatus
401
- read_at?: Date | string | null
402
- delivered_at?: Date | string | null
403
- created_at?: Date | string
404
- }
405
-
406
- export type MessageRecipientUpdateManyMutationInput = {
407
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
408
- recipient_type?: Prisma.EnumMessageRecipientTypeFieldUpdateOperationsInput | $Enums.MessageRecipientType
409
- recipient_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
410
- read_status?: Prisma.EnumMessageReadStatusFieldUpdateOperationsInput | $Enums.MessageReadStatus
411
- read_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
412
- delivered_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
413
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
414
- }
415
-
416
- export type MessageRecipientUncheckedUpdateManyInput = {
417
- id?: Prisma.IntFieldUpdateOperationsInput | number
418
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
419
- message_id?: Prisma.IntFieldUpdateOperationsInput | number
420
- recipient_type?: Prisma.EnumMessageRecipientTypeFieldUpdateOperationsInput | $Enums.MessageRecipientType
421
- recipient_user_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
422
- recipient_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
423
- read_status?: Prisma.EnumMessageReadStatusFieldUpdateOperationsInput | $Enums.MessageReadStatus
424
- read_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
425
- delivered_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
426
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
427
- }
428
-
429
- export type MessageRecipientListRelationFilter = {
430
- every?: Prisma.MessageRecipientWhereInput
431
- some?: Prisma.MessageRecipientWhereInput
432
- none?: Prisma.MessageRecipientWhereInput
433
- }
434
-
435
- export type MessageRecipientOrderByRelationAggregateInput = {
436
- _count?: Prisma.SortOrder
437
- }
438
-
439
- export type MessageRecipientUnique_message_recipientCompoundUniqueInput = {
440
- message_id: number
441
- recipient_user_id: number
442
- recipient_vendor_id: number
443
- }
444
-
445
- export type MessageRecipientCountOrderByAggregateInput = {
446
- id?: Prisma.SortOrder
447
- uuid?: Prisma.SortOrder
448
- message_id?: Prisma.SortOrder
449
- recipient_type?: Prisma.SortOrder
450
- recipient_user_id?: Prisma.SortOrder
451
- recipient_vendor_id?: Prisma.SortOrder
452
- read_status?: Prisma.SortOrder
453
- read_at?: Prisma.SortOrder
454
- delivered_at?: Prisma.SortOrder
455
- created_at?: Prisma.SortOrder
456
- }
457
-
458
- export type MessageRecipientAvgOrderByAggregateInput = {
459
- id?: Prisma.SortOrder
460
- message_id?: Prisma.SortOrder
461
- recipient_user_id?: Prisma.SortOrder
462
- recipient_vendor_id?: Prisma.SortOrder
463
- }
464
-
465
- export type MessageRecipientMaxOrderByAggregateInput = {
466
- id?: Prisma.SortOrder
467
- uuid?: Prisma.SortOrder
468
- message_id?: Prisma.SortOrder
469
- recipient_type?: Prisma.SortOrder
470
- recipient_user_id?: Prisma.SortOrder
471
- recipient_vendor_id?: Prisma.SortOrder
472
- read_status?: Prisma.SortOrder
473
- read_at?: Prisma.SortOrder
474
- delivered_at?: Prisma.SortOrder
475
- created_at?: Prisma.SortOrder
476
- }
477
-
478
- export type MessageRecipientMinOrderByAggregateInput = {
479
- id?: Prisma.SortOrder
480
- uuid?: Prisma.SortOrder
481
- message_id?: Prisma.SortOrder
482
- recipient_type?: Prisma.SortOrder
483
- recipient_user_id?: Prisma.SortOrder
484
- recipient_vendor_id?: Prisma.SortOrder
485
- read_status?: Prisma.SortOrder
486
- read_at?: Prisma.SortOrder
487
- delivered_at?: Prisma.SortOrder
488
- created_at?: Prisma.SortOrder
489
- }
490
-
491
- export type MessageRecipientSumOrderByAggregateInput = {
492
- id?: Prisma.SortOrder
493
- message_id?: Prisma.SortOrder
494
- recipient_user_id?: Prisma.SortOrder
495
- recipient_vendor_id?: Prisma.SortOrder
496
- }
497
-
498
- export type MessageRecipientCreateNestedManyWithoutRecipient_userInput = {
499
- create?: Prisma.XOR<Prisma.MessageRecipientCreateWithoutRecipient_userInput, Prisma.MessageRecipientUncheckedCreateWithoutRecipient_userInput> | Prisma.MessageRecipientCreateWithoutRecipient_userInput[] | Prisma.MessageRecipientUncheckedCreateWithoutRecipient_userInput[]
500
- connectOrCreate?: Prisma.MessageRecipientCreateOrConnectWithoutRecipient_userInput | Prisma.MessageRecipientCreateOrConnectWithoutRecipient_userInput[]
501
- createMany?: Prisma.MessageRecipientCreateManyRecipient_userInputEnvelope
502
- connect?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
503
- }
504
-
505
- export type MessageRecipientUncheckedCreateNestedManyWithoutRecipient_userInput = {
506
- create?: Prisma.XOR<Prisma.MessageRecipientCreateWithoutRecipient_userInput, Prisma.MessageRecipientUncheckedCreateWithoutRecipient_userInput> | Prisma.MessageRecipientCreateWithoutRecipient_userInput[] | Prisma.MessageRecipientUncheckedCreateWithoutRecipient_userInput[]
507
- connectOrCreate?: Prisma.MessageRecipientCreateOrConnectWithoutRecipient_userInput | Prisma.MessageRecipientCreateOrConnectWithoutRecipient_userInput[]
508
- createMany?: Prisma.MessageRecipientCreateManyRecipient_userInputEnvelope
509
- connect?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
510
- }
511
-
512
- export type MessageRecipientUpdateManyWithoutRecipient_userNestedInput = {
513
- create?: Prisma.XOR<Prisma.MessageRecipientCreateWithoutRecipient_userInput, Prisma.MessageRecipientUncheckedCreateWithoutRecipient_userInput> | Prisma.MessageRecipientCreateWithoutRecipient_userInput[] | Prisma.MessageRecipientUncheckedCreateWithoutRecipient_userInput[]
514
- connectOrCreate?: Prisma.MessageRecipientCreateOrConnectWithoutRecipient_userInput | Prisma.MessageRecipientCreateOrConnectWithoutRecipient_userInput[]
515
- upsert?: Prisma.MessageRecipientUpsertWithWhereUniqueWithoutRecipient_userInput | Prisma.MessageRecipientUpsertWithWhereUniqueWithoutRecipient_userInput[]
516
- createMany?: Prisma.MessageRecipientCreateManyRecipient_userInputEnvelope
517
- set?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
518
- disconnect?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
519
- delete?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
520
- connect?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
521
- update?: Prisma.MessageRecipientUpdateWithWhereUniqueWithoutRecipient_userInput | Prisma.MessageRecipientUpdateWithWhereUniqueWithoutRecipient_userInput[]
522
- updateMany?: Prisma.MessageRecipientUpdateManyWithWhereWithoutRecipient_userInput | Prisma.MessageRecipientUpdateManyWithWhereWithoutRecipient_userInput[]
523
- deleteMany?: Prisma.MessageRecipientScalarWhereInput | Prisma.MessageRecipientScalarWhereInput[]
524
- }
525
-
526
- export type MessageRecipientUncheckedUpdateManyWithoutRecipient_userNestedInput = {
527
- create?: Prisma.XOR<Prisma.MessageRecipientCreateWithoutRecipient_userInput, Prisma.MessageRecipientUncheckedCreateWithoutRecipient_userInput> | Prisma.MessageRecipientCreateWithoutRecipient_userInput[] | Prisma.MessageRecipientUncheckedCreateWithoutRecipient_userInput[]
528
- connectOrCreate?: Prisma.MessageRecipientCreateOrConnectWithoutRecipient_userInput | Prisma.MessageRecipientCreateOrConnectWithoutRecipient_userInput[]
529
- upsert?: Prisma.MessageRecipientUpsertWithWhereUniqueWithoutRecipient_userInput | Prisma.MessageRecipientUpsertWithWhereUniqueWithoutRecipient_userInput[]
530
- createMany?: Prisma.MessageRecipientCreateManyRecipient_userInputEnvelope
531
- set?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
532
- disconnect?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
533
- delete?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
534
- connect?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
535
- update?: Prisma.MessageRecipientUpdateWithWhereUniqueWithoutRecipient_userInput | Prisma.MessageRecipientUpdateWithWhereUniqueWithoutRecipient_userInput[]
536
- updateMany?: Prisma.MessageRecipientUpdateManyWithWhereWithoutRecipient_userInput | Prisma.MessageRecipientUpdateManyWithWhereWithoutRecipient_userInput[]
537
- deleteMany?: Prisma.MessageRecipientScalarWhereInput | Prisma.MessageRecipientScalarWhereInput[]
538
- }
539
-
540
- export type MessageRecipientCreateNestedManyWithoutMessageInput = {
541
- create?: Prisma.XOR<Prisma.MessageRecipientCreateWithoutMessageInput, Prisma.MessageRecipientUncheckedCreateWithoutMessageInput> | Prisma.MessageRecipientCreateWithoutMessageInput[] | Prisma.MessageRecipientUncheckedCreateWithoutMessageInput[]
542
- connectOrCreate?: Prisma.MessageRecipientCreateOrConnectWithoutMessageInput | Prisma.MessageRecipientCreateOrConnectWithoutMessageInput[]
543
- createMany?: Prisma.MessageRecipientCreateManyMessageInputEnvelope
544
- connect?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
545
- }
546
-
547
- export type MessageRecipientUncheckedCreateNestedManyWithoutMessageInput = {
548
- create?: Prisma.XOR<Prisma.MessageRecipientCreateWithoutMessageInput, Prisma.MessageRecipientUncheckedCreateWithoutMessageInput> | Prisma.MessageRecipientCreateWithoutMessageInput[] | Prisma.MessageRecipientUncheckedCreateWithoutMessageInput[]
549
- connectOrCreate?: Prisma.MessageRecipientCreateOrConnectWithoutMessageInput | Prisma.MessageRecipientCreateOrConnectWithoutMessageInput[]
550
- createMany?: Prisma.MessageRecipientCreateManyMessageInputEnvelope
551
- connect?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
552
- }
553
-
554
- export type MessageRecipientUpdateManyWithoutMessageNestedInput = {
555
- create?: Prisma.XOR<Prisma.MessageRecipientCreateWithoutMessageInput, Prisma.MessageRecipientUncheckedCreateWithoutMessageInput> | Prisma.MessageRecipientCreateWithoutMessageInput[] | Prisma.MessageRecipientUncheckedCreateWithoutMessageInput[]
556
- connectOrCreate?: Prisma.MessageRecipientCreateOrConnectWithoutMessageInput | Prisma.MessageRecipientCreateOrConnectWithoutMessageInput[]
557
- upsert?: Prisma.MessageRecipientUpsertWithWhereUniqueWithoutMessageInput | Prisma.MessageRecipientUpsertWithWhereUniqueWithoutMessageInput[]
558
- createMany?: Prisma.MessageRecipientCreateManyMessageInputEnvelope
559
- set?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
560
- disconnect?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
561
- delete?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
562
- connect?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
563
- update?: Prisma.MessageRecipientUpdateWithWhereUniqueWithoutMessageInput | Prisma.MessageRecipientUpdateWithWhereUniqueWithoutMessageInput[]
564
- updateMany?: Prisma.MessageRecipientUpdateManyWithWhereWithoutMessageInput | Prisma.MessageRecipientUpdateManyWithWhereWithoutMessageInput[]
565
- deleteMany?: Prisma.MessageRecipientScalarWhereInput | Prisma.MessageRecipientScalarWhereInput[]
566
- }
567
-
568
- export type MessageRecipientUncheckedUpdateManyWithoutMessageNestedInput = {
569
- create?: Prisma.XOR<Prisma.MessageRecipientCreateWithoutMessageInput, Prisma.MessageRecipientUncheckedCreateWithoutMessageInput> | Prisma.MessageRecipientCreateWithoutMessageInput[] | Prisma.MessageRecipientUncheckedCreateWithoutMessageInput[]
570
- connectOrCreate?: Prisma.MessageRecipientCreateOrConnectWithoutMessageInput | Prisma.MessageRecipientCreateOrConnectWithoutMessageInput[]
571
- upsert?: Prisma.MessageRecipientUpsertWithWhereUniqueWithoutMessageInput | Prisma.MessageRecipientUpsertWithWhereUniqueWithoutMessageInput[]
572
- createMany?: Prisma.MessageRecipientCreateManyMessageInputEnvelope
573
- set?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
574
- disconnect?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
575
- delete?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
576
- connect?: Prisma.MessageRecipientWhereUniqueInput | Prisma.MessageRecipientWhereUniqueInput[]
577
- update?: Prisma.MessageRecipientUpdateWithWhereUniqueWithoutMessageInput | Prisma.MessageRecipientUpdateWithWhereUniqueWithoutMessageInput[]
578
- updateMany?: Prisma.MessageRecipientUpdateManyWithWhereWithoutMessageInput | Prisma.MessageRecipientUpdateManyWithWhereWithoutMessageInput[]
579
- deleteMany?: Prisma.MessageRecipientScalarWhereInput | Prisma.MessageRecipientScalarWhereInput[]
580
- }
581
-
582
- export type EnumMessageRecipientTypeFieldUpdateOperationsInput = {
583
- set?: $Enums.MessageRecipientType
584
- }
585
-
586
- export type EnumMessageReadStatusFieldUpdateOperationsInput = {
587
- set?: $Enums.MessageReadStatus
588
- }
589
-
590
- export type MessageRecipientCreateWithoutRecipient_userInput = {
591
- uuid?: string | null
592
- recipient_type: $Enums.MessageRecipientType
593
- recipient_vendor_id?: number | null
594
- read_status?: $Enums.MessageReadStatus
595
- read_at?: Date | string | null
596
- delivered_at?: Date | string | null
597
- created_at?: Date | string
598
- message: Prisma.MessageCreateNestedOneWithoutRecipientsInput
599
- }
600
-
601
- export type MessageRecipientUncheckedCreateWithoutRecipient_userInput = {
602
- id?: number
603
- uuid?: string | null
604
- message_id: number
605
- recipient_type: $Enums.MessageRecipientType
606
- recipient_vendor_id?: number | null
607
- read_status?: $Enums.MessageReadStatus
608
- read_at?: Date | string | null
609
- delivered_at?: Date | string | null
610
- created_at?: Date | string
611
- }
612
-
613
- export type MessageRecipientCreateOrConnectWithoutRecipient_userInput = {
614
- where: Prisma.MessageRecipientWhereUniqueInput
615
- create: Prisma.XOR<Prisma.MessageRecipientCreateWithoutRecipient_userInput, Prisma.MessageRecipientUncheckedCreateWithoutRecipient_userInput>
616
- }
617
-
618
- export type MessageRecipientCreateManyRecipient_userInputEnvelope = {
619
- data: Prisma.MessageRecipientCreateManyRecipient_userInput | Prisma.MessageRecipientCreateManyRecipient_userInput[]
620
- skipDuplicates?: boolean
621
- }
622
-
623
- export type MessageRecipientUpsertWithWhereUniqueWithoutRecipient_userInput = {
624
- where: Prisma.MessageRecipientWhereUniqueInput
625
- update: Prisma.XOR<Prisma.MessageRecipientUpdateWithoutRecipient_userInput, Prisma.MessageRecipientUncheckedUpdateWithoutRecipient_userInput>
626
- create: Prisma.XOR<Prisma.MessageRecipientCreateWithoutRecipient_userInput, Prisma.MessageRecipientUncheckedCreateWithoutRecipient_userInput>
627
- }
628
-
629
- export type MessageRecipientUpdateWithWhereUniqueWithoutRecipient_userInput = {
630
- where: Prisma.MessageRecipientWhereUniqueInput
631
- data: Prisma.XOR<Prisma.MessageRecipientUpdateWithoutRecipient_userInput, Prisma.MessageRecipientUncheckedUpdateWithoutRecipient_userInput>
632
- }
633
-
634
- export type MessageRecipientUpdateManyWithWhereWithoutRecipient_userInput = {
635
- where: Prisma.MessageRecipientScalarWhereInput
636
- data: Prisma.XOR<Prisma.MessageRecipientUpdateManyMutationInput, Prisma.MessageRecipientUncheckedUpdateManyWithoutRecipient_userInput>
637
- }
638
-
639
- export type MessageRecipientScalarWhereInput = {
640
- AND?: Prisma.MessageRecipientScalarWhereInput | Prisma.MessageRecipientScalarWhereInput[]
641
- OR?: Prisma.MessageRecipientScalarWhereInput[]
642
- NOT?: Prisma.MessageRecipientScalarWhereInput | Prisma.MessageRecipientScalarWhereInput[]
643
- id?: Prisma.IntFilter<"MessageRecipient"> | number
644
- uuid?: Prisma.StringNullableFilter<"MessageRecipient"> | string | null
645
- message_id?: Prisma.IntFilter<"MessageRecipient"> | number
646
- recipient_type?: Prisma.EnumMessageRecipientTypeFilter<"MessageRecipient"> | $Enums.MessageRecipientType
647
- recipient_user_id?: Prisma.IntNullableFilter<"MessageRecipient"> | number | null
648
- recipient_vendor_id?: Prisma.IntNullableFilter<"MessageRecipient"> | number | null
649
- read_status?: Prisma.EnumMessageReadStatusFilter<"MessageRecipient"> | $Enums.MessageReadStatus
650
- read_at?: Prisma.DateTimeNullableFilter<"MessageRecipient"> | Date | string | null
651
- delivered_at?: Prisma.DateTimeNullableFilter<"MessageRecipient"> | Date | string | null
652
- created_at?: Prisma.DateTimeFilter<"MessageRecipient"> | Date | string
653
- }
654
-
655
- export type MessageRecipientCreateWithoutMessageInput = {
656
- uuid?: string | null
657
- recipient_type: $Enums.MessageRecipientType
658
- recipient_vendor_id?: number | null
659
- read_status?: $Enums.MessageReadStatus
660
- read_at?: Date | string | null
661
- delivered_at?: Date | string | null
662
- created_at?: Date | string
663
- recipient_user?: Prisma.UserCreateNestedOneWithoutMessage_recipientsInput
664
- }
665
-
666
- export type MessageRecipientUncheckedCreateWithoutMessageInput = {
667
- id?: number
668
- uuid?: string | null
669
- recipient_type: $Enums.MessageRecipientType
670
- recipient_user_id?: number | null
671
- recipient_vendor_id?: number | null
672
- read_status?: $Enums.MessageReadStatus
673
- read_at?: Date | string | null
674
- delivered_at?: Date | string | null
675
- created_at?: Date | string
676
- }
677
-
678
- export type MessageRecipientCreateOrConnectWithoutMessageInput = {
679
- where: Prisma.MessageRecipientWhereUniqueInput
680
- create: Prisma.XOR<Prisma.MessageRecipientCreateWithoutMessageInput, Prisma.MessageRecipientUncheckedCreateWithoutMessageInput>
681
- }
682
-
683
- export type MessageRecipientCreateManyMessageInputEnvelope = {
684
- data: Prisma.MessageRecipientCreateManyMessageInput | Prisma.MessageRecipientCreateManyMessageInput[]
685
- skipDuplicates?: boolean
686
- }
687
-
688
- export type MessageRecipientUpsertWithWhereUniqueWithoutMessageInput = {
689
- where: Prisma.MessageRecipientWhereUniqueInput
690
- update: Prisma.XOR<Prisma.MessageRecipientUpdateWithoutMessageInput, Prisma.MessageRecipientUncheckedUpdateWithoutMessageInput>
691
- create: Prisma.XOR<Prisma.MessageRecipientCreateWithoutMessageInput, Prisma.MessageRecipientUncheckedCreateWithoutMessageInput>
692
- }
693
-
694
- export type MessageRecipientUpdateWithWhereUniqueWithoutMessageInput = {
695
- where: Prisma.MessageRecipientWhereUniqueInput
696
- data: Prisma.XOR<Prisma.MessageRecipientUpdateWithoutMessageInput, Prisma.MessageRecipientUncheckedUpdateWithoutMessageInput>
697
- }
698
-
699
- export type MessageRecipientUpdateManyWithWhereWithoutMessageInput = {
700
- where: Prisma.MessageRecipientScalarWhereInput
701
- data: Prisma.XOR<Prisma.MessageRecipientUpdateManyMutationInput, Prisma.MessageRecipientUncheckedUpdateManyWithoutMessageInput>
702
- }
703
-
704
- export type MessageRecipientCreateManyRecipient_userInput = {
705
- id?: number
706
- uuid?: string | null
707
- message_id: number
708
- recipient_type: $Enums.MessageRecipientType
709
- recipient_vendor_id?: number | null
710
- read_status?: $Enums.MessageReadStatus
711
- read_at?: Date | string | null
712
- delivered_at?: Date | string | null
713
- created_at?: Date | string
714
- }
715
-
716
- export type MessageRecipientUpdateWithoutRecipient_userInput = {
717
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
718
- recipient_type?: Prisma.EnumMessageRecipientTypeFieldUpdateOperationsInput | $Enums.MessageRecipientType
719
- recipient_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
720
- read_status?: Prisma.EnumMessageReadStatusFieldUpdateOperationsInput | $Enums.MessageReadStatus
721
- read_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
722
- delivered_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
723
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
724
- message?: Prisma.MessageUpdateOneRequiredWithoutRecipientsNestedInput
725
- }
726
-
727
- export type MessageRecipientUncheckedUpdateWithoutRecipient_userInput = {
728
- id?: Prisma.IntFieldUpdateOperationsInput | number
729
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
730
- message_id?: Prisma.IntFieldUpdateOperationsInput | number
731
- recipient_type?: Prisma.EnumMessageRecipientTypeFieldUpdateOperationsInput | $Enums.MessageRecipientType
732
- recipient_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
733
- read_status?: Prisma.EnumMessageReadStatusFieldUpdateOperationsInput | $Enums.MessageReadStatus
734
- read_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
735
- delivered_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
736
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
737
- }
738
-
739
- export type MessageRecipientUncheckedUpdateManyWithoutRecipient_userInput = {
740
- id?: Prisma.IntFieldUpdateOperationsInput | number
741
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
742
- message_id?: Prisma.IntFieldUpdateOperationsInput | number
743
- recipient_type?: Prisma.EnumMessageRecipientTypeFieldUpdateOperationsInput | $Enums.MessageRecipientType
744
- recipient_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
745
- read_status?: Prisma.EnumMessageReadStatusFieldUpdateOperationsInput | $Enums.MessageReadStatus
746
- read_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
747
- delivered_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
748
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
749
- }
750
-
751
- export type MessageRecipientCreateManyMessageInput = {
752
- id?: number
753
- uuid?: string | null
754
- recipient_type: $Enums.MessageRecipientType
755
- recipient_user_id?: number | null
756
- recipient_vendor_id?: number | null
757
- read_status?: $Enums.MessageReadStatus
758
- read_at?: Date | string | null
759
- delivered_at?: Date | string | null
760
- created_at?: Date | string
761
- }
762
-
763
- export type MessageRecipientUpdateWithoutMessageInput = {
764
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
765
- recipient_type?: Prisma.EnumMessageRecipientTypeFieldUpdateOperationsInput | $Enums.MessageRecipientType
766
- recipient_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
767
- read_status?: Prisma.EnumMessageReadStatusFieldUpdateOperationsInput | $Enums.MessageReadStatus
768
- read_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
769
- delivered_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
770
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
771
- recipient_user?: Prisma.UserUpdateOneWithoutMessage_recipientsNestedInput
772
- }
773
-
774
- export type MessageRecipientUncheckedUpdateWithoutMessageInput = {
775
- id?: Prisma.IntFieldUpdateOperationsInput | number
776
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
777
- recipient_type?: Prisma.EnumMessageRecipientTypeFieldUpdateOperationsInput | $Enums.MessageRecipientType
778
- recipient_user_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
779
- recipient_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
780
- read_status?: Prisma.EnumMessageReadStatusFieldUpdateOperationsInput | $Enums.MessageReadStatus
781
- read_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
782
- delivered_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
783
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
784
- }
785
-
786
- export type MessageRecipientUncheckedUpdateManyWithoutMessageInput = {
787
- id?: Prisma.IntFieldUpdateOperationsInput | number
788
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
789
- recipient_type?: Prisma.EnumMessageRecipientTypeFieldUpdateOperationsInput | $Enums.MessageRecipientType
790
- recipient_user_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
791
- recipient_vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
792
- read_status?: Prisma.EnumMessageReadStatusFieldUpdateOperationsInput | $Enums.MessageReadStatus
793
- read_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
794
- delivered_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
795
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
796
- }
797
-
798
-
799
-
800
- export type MessageRecipientSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
801
- id?: boolean
802
- uuid?: boolean
803
- message_id?: boolean
804
- recipient_type?: boolean
805
- recipient_user_id?: boolean
806
- recipient_vendor_id?: boolean
807
- read_status?: boolean
808
- read_at?: boolean
809
- delivered_at?: boolean
810
- created_at?: boolean
811
- message?: boolean | Prisma.MessageDefaultArgs<ExtArgs>
812
- recipient_user?: boolean | Prisma.MessageRecipient$recipient_userArgs<ExtArgs>
813
- }, ExtArgs["result"]["messageRecipient"]>
814
-
815
- export type MessageRecipientSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
816
- id?: boolean
817
- uuid?: boolean
818
- message_id?: boolean
819
- recipient_type?: boolean
820
- recipient_user_id?: boolean
821
- recipient_vendor_id?: boolean
822
- read_status?: boolean
823
- read_at?: boolean
824
- delivered_at?: boolean
825
- created_at?: boolean
826
- message?: boolean | Prisma.MessageDefaultArgs<ExtArgs>
827
- recipient_user?: boolean | Prisma.MessageRecipient$recipient_userArgs<ExtArgs>
828
- }, ExtArgs["result"]["messageRecipient"]>
829
-
830
- export type MessageRecipientSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
831
- id?: boolean
832
- uuid?: boolean
833
- message_id?: boolean
834
- recipient_type?: boolean
835
- recipient_user_id?: boolean
836
- recipient_vendor_id?: boolean
837
- read_status?: boolean
838
- read_at?: boolean
839
- delivered_at?: boolean
840
- created_at?: boolean
841
- message?: boolean | Prisma.MessageDefaultArgs<ExtArgs>
842
- recipient_user?: boolean | Prisma.MessageRecipient$recipient_userArgs<ExtArgs>
843
- }, ExtArgs["result"]["messageRecipient"]>
844
-
845
- export type MessageRecipientSelectScalar = {
846
- id?: boolean
847
- uuid?: boolean
848
- message_id?: boolean
849
- recipient_type?: boolean
850
- recipient_user_id?: boolean
851
- recipient_vendor_id?: boolean
852
- read_status?: boolean
853
- read_at?: boolean
854
- delivered_at?: boolean
855
- created_at?: boolean
856
- }
857
-
858
- export type MessageRecipientOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "message_id" | "recipient_type" | "recipient_user_id" | "recipient_vendor_id" | "read_status" | "read_at" | "delivered_at" | "created_at", ExtArgs["result"]["messageRecipient"]>
859
- export type MessageRecipientInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
860
- message?: boolean | Prisma.MessageDefaultArgs<ExtArgs>
861
- recipient_user?: boolean | Prisma.MessageRecipient$recipient_userArgs<ExtArgs>
862
- }
863
- export type MessageRecipientIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
864
- message?: boolean | Prisma.MessageDefaultArgs<ExtArgs>
865
- recipient_user?: boolean | Prisma.MessageRecipient$recipient_userArgs<ExtArgs>
866
- }
867
- export type MessageRecipientIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
868
- message?: boolean | Prisma.MessageDefaultArgs<ExtArgs>
869
- recipient_user?: boolean | Prisma.MessageRecipient$recipient_userArgs<ExtArgs>
870
- }
871
-
872
- export type $MessageRecipientPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
873
- name: "MessageRecipient"
874
- objects: {
875
- message: Prisma.$MessagePayload<ExtArgs>
876
- recipient_user: Prisma.$UserPayload<ExtArgs> | null
877
- }
878
- scalars: runtime.Types.Extensions.GetPayloadResult<{
879
- id: number
880
- uuid: string | null
881
- message_id: number
882
- recipient_type: $Enums.MessageRecipientType
883
- recipient_user_id: number | null
884
- recipient_vendor_id: number | null
885
- read_status: $Enums.MessageReadStatus
886
- read_at: Date | null
887
- delivered_at: Date | null
888
- created_at: Date
889
- }, ExtArgs["result"]["messageRecipient"]>
890
- composites: {}
891
- }
892
-
893
- export type MessageRecipientGetPayload<S extends boolean | null | undefined | MessageRecipientDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MessageRecipientPayload, S>
894
-
895
- export type MessageRecipientCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
896
- Omit<MessageRecipientFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
897
- select?: MessageRecipientCountAggregateInputType | true
898
- }
899
-
900
- export interface MessageRecipientDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
901
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MessageRecipient'], meta: { name: 'MessageRecipient' } }
902
- /**
903
- * Find zero or one MessageRecipient that matches the filter.
904
- * @param {MessageRecipientFindUniqueArgs} args - Arguments to find a MessageRecipient
905
- * @example
906
- * // Get one MessageRecipient
907
- * const messageRecipient = await prisma.messageRecipient.findUnique({
908
- * where: {
909
- * // ... provide filter here
910
- * }
911
- * })
912
- */
913
- findUnique<T extends MessageRecipientFindUniqueArgs>(args: Prisma.SelectSubset<T, MessageRecipientFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MessageRecipientClient<runtime.Types.Result.GetResult<Prisma.$MessageRecipientPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
914
-
915
- /**
916
- * Find one MessageRecipient that matches the filter or throw an error with `error.code='P2025'`
917
- * if no matches were found.
918
- * @param {MessageRecipientFindUniqueOrThrowArgs} args - Arguments to find a MessageRecipient
919
- * @example
920
- * // Get one MessageRecipient
921
- * const messageRecipient = await prisma.messageRecipient.findUniqueOrThrow({
922
- * where: {
923
- * // ... provide filter here
924
- * }
925
- * })
926
- */
927
- findUniqueOrThrow<T extends MessageRecipientFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MessageRecipientFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MessageRecipientClient<runtime.Types.Result.GetResult<Prisma.$MessageRecipientPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
928
-
929
- /**
930
- * Find the first MessageRecipient that matches the filter.
931
- * Note, that providing `undefined` is treated as the value not being there.
932
- * Read more here: https://pris.ly/d/null-undefined
933
- * @param {MessageRecipientFindFirstArgs} args - Arguments to find a MessageRecipient
934
- * @example
935
- * // Get one MessageRecipient
936
- * const messageRecipient = await prisma.messageRecipient.findFirst({
937
- * where: {
938
- * // ... provide filter here
939
- * }
940
- * })
941
- */
942
- findFirst<T extends MessageRecipientFindFirstArgs>(args?: Prisma.SelectSubset<T, MessageRecipientFindFirstArgs<ExtArgs>>): Prisma.Prisma__MessageRecipientClient<runtime.Types.Result.GetResult<Prisma.$MessageRecipientPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
943
-
944
- /**
945
- * Find the first MessageRecipient that matches the filter or
946
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
947
- * Note, that providing `undefined` is treated as the value not being there.
948
- * Read more here: https://pris.ly/d/null-undefined
949
- * @param {MessageRecipientFindFirstOrThrowArgs} args - Arguments to find a MessageRecipient
950
- * @example
951
- * // Get one MessageRecipient
952
- * const messageRecipient = await prisma.messageRecipient.findFirstOrThrow({
953
- * where: {
954
- * // ... provide filter here
955
- * }
956
- * })
957
- */
958
- findFirstOrThrow<T extends MessageRecipientFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MessageRecipientFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MessageRecipientClient<runtime.Types.Result.GetResult<Prisma.$MessageRecipientPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
959
-
960
- /**
961
- * Find zero or more MessageRecipients that matches the filter.
962
- * Note, that providing `undefined` is treated as the value not being there.
963
- * Read more here: https://pris.ly/d/null-undefined
964
- * @param {MessageRecipientFindManyArgs} args - Arguments to filter and select certain fields only.
965
- * @example
966
- * // Get all MessageRecipients
967
- * const messageRecipients = await prisma.messageRecipient.findMany()
968
- *
969
- * // Get first 10 MessageRecipients
970
- * const messageRecipients = await prisma.messageRecipient.findMany({ take: 10 })
971
- *
972
- * // Only select the `id`
973
- * const messageRecipientWithIdOnly = await prisma.messageRecipient.findMany({ select: { id: true } })
974
- *
975
- */
976
- findMany<T extends MessageRecipientFindManyArgs>(args?: Prisma.SelectSubset<T, MessageRecipientFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessageRecipientPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
977
-
978
- /**
979
- * Create a MessageRecipient.
980
- * @param {MessageRecipientCreateArgs} args - Arguments to create a MessageRecipient.
981
- * @example
982
- * // Create one MessageRecipient
983
- * const MessageRecipient = await prisma.messageRecipient.create({
984
- * data: {
985
- * // ... data to create a MessageRecipient
986
- * }
987
- * })
988
- *
989
- */
990
- create<T extends MessageRecipientCreateArgs>(args: Prisma.SelectSubset<T, MessageRecipientCreateArgs<ExtArgs>>): Prisma.Prisma__MessageRecipientClient<runtime.Types.Result.GetResult<Prisma.$MessageRecipientPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
991
-
992
- /**
993
- * Create many MessageRecipients.
994
- * @param {MessageRecipientCreateManyArgs} args - Arguments to create many MessageRecipients.
995
- * @example
996
- * // Create many MessageRecipients
997
- * const messageRecipient = await prisma.messageRecipient.createMany({
998
- * data: [
999
- * // ... provide data here
1000
- * ]
1001
- * })
1002
- *
1003
- */
1004
- createMany<T extends MessageRecipientCreateManyArgs>(args?: Prisma.SelectSubset<T, MessageRecipientCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1005
-
1006
- /**
1007
- * Create many MessageRecipients and returns the data saved in the database.
1008
- * @param {MessageRecipientCreateManyAndReturnArgs} args - Arguments to create many MessageRecipients.
1009
- * @example
1010
- * // Create many MessageRecipients
1011
- * const messageRecipient = await prisma.messageRecipient.createManyAndReturn({
1012
- * data: [
1013
- * // ... provide data here
1014
- * ]
1015
- * })
1016
- *
1017
- * // Create many MessageRecipients and only return the `id`
1018
- * const messageRecipientWithIdOnly = await prisma.messageRecipient.createManyAndReturn({
1019
- * select: { id: true },
1020
- * data: [
1021
- * // ... provide data here
1022
- * ]
1023
- * })
1024
- * Note, that providing `undefined` is treated as the value not being there.
1025
- * Read more here: https://pris.ly/d/null-undefined
1026
- *
1027
- */
1028
- createManyAndReturn<T extends MessageRecipientCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MessageRecipientCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessageRecipientPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1029
-
1030
- /**
1031
- * Delete a MessageRecipient.
1032
- * @param {MessageRecipientDeleteArgs} args - Arguments to delete one MessageRecipient.
1033
- * @example
1034
- * // Delete one MessageRecipient
1035
- * const MessageRecipient = await prisma.messageRecipient.delete({
1036
- * where: {
1037
- * // ... filter to delete one MessageRecipient
1038
- * }
1039
- * })
1040
- *
1041
- */
1042
- delete<T extends MessageRecipientDeleteArgs>(args: Prisma.SelectSubset<T, MessageRecipientDeleteArgs<ExtArgs>>): Prisma.Prisma__MessageRecipientClient<runtime.Types.Result.GetResult<Prisma.$MessageRecipientPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1043
-
1044
- /**
1045
- * Update one MessageRecipient.
1046
- * @param {MessageRecipientUpdateArgs} args - Arguments to update one MessageRecipient.
1047
- * @example
1048
- * // Update one MessageRecipient
1049
- * const messageRecipient = await prisma.messageRecipient.update({
1050
- * where: {
1051
- * // ... provide filter here
1052
- * },
1053
- * data: {
1054
- * // ... provide data here
1055
- * }
1056
- * })
1057
- *
1058
- */
1059
- update<T extends MessageRecipientUpdateArgs>(args: Prisma.SelectSubset<T, MessageRecipientUpdateArgs<ExtArgs>>): Prisma.Prisma__MessageRecipientClient<runtime.Types.Result.GetResult<Prisma.$MessageRecipientPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1060
-
1061
- /**
1062
- * Delete zero or more MessageRecipients.
1063
- * @param {MessageRecipientDeleteManyArgs} args - Arguments to filter MessageRecipients to delete.
1064
- * @example
1065
- * // Delete a few MessageRecipients
1066
- * const { count } = await prisma.messageRecipient.deleteMany({
1067
- * where: {
1068
- * // ... provide filter here
1069
- * }
1070
- * })
1071
- *
1072
- */
1073
- deleteMany<T extends MessageRecipientDeleteManyArgs>(args?: Prisma.SelectSubset<T, MessageRecipientDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1074
-
1075
- /**
1076
- * Update zero or more MessageRecipients.
1077
- * Note, that providing `undefined` is treated as the value not being there.
1078
- * Read more here: https://pris.ly/d/null-undefined
1079
- * @param {MessageRecipientUpdateManyArgs} args - Arguments to update one or more rows.
1080
- * @example
1081
- * // Update many MessageRecipients
1082
- * const messageRecipient = await prisma.messageRecipient.updateMany({
1083
- * where: {
1084
- * // ... provide filter here
1085
- * },
1086
- * data: {
1087
- * // ... provide data here
1088
- * }
1089
- * })
1090
- *
1091
- */
1092
- updateMany<T extends MessageRecipientUpdateManyArgs>(args: Prisma.SelectSubset<T, MessageRecipientUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1093
-
1094
- /**
1095
- * Update zero or more MessageRecipients and returns the data updated in the database.
1096
- * @param {MessageRecipientUpdateManyAndReturnArgs} args - Arguments to update many MessageRecipients.
1097
- * @example
1098
- * // Update many MessageRecipients
1099
- * const messageRecipient = await prisma.messageRecipient.updateManyAndReturn({
1100
- * where: {
1101
- * // ... provide filter here
1102
- * },
1103
- * data: [
1104
- * // ... provide data here
1105
- * ]
1106
- * })
1107
- *
1108
- * // Update zero or more MessageRecipients and only return the `id`
1109
- * const messageRecipientWithIdOnly = await prisma.messageRecipient.updateManyAndReturn({
1110
- * select: { id: true },
1111
- * where: {
1112
- * // ... provide filter here
1113
- * },
1114
- * data: [
1115
- * // ... provide data here
1116
- * ]
1117
- * })
1118
- * Note, that providing `undefined` is treated as the value not being there.
1119
- * Read more here: https://pris.ly/d/null-undefined
1120
- *
1121
- */
1122
- updateManyAndReturn<T extends MessageRecipientUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MessageRecipientUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessageRecipientPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1123
-
1124
- /**
1125
- * Create or update one MessageRecipient.
1126
- * @param {MessageRecipientUpsertArgs} args - Arguments to update or create a MessageRecipient.
1127
- * @example
1128
- * // Update or create a MessageRecipient
1129
- * const messageRecipient = await prisma.messageRecipient.upsert({
1130
- * create: {
1131
- * // ... data to create a MessageRecipient
1132
- * },
1133
- * update: {
1134
- * // ... in case it already exists, update
1135
- * },
1136
- * where: {
1137
- * // ... the filter for the MessageRecipient we want to update
1138
- * }
1139
- * })
1140
- */
1141
- upsert<T extends MessageRecipientUpsertArgs>(args: Prisma.SelectSubset<T, MessageRecipientUpsertArgs<ExtArgs>>): Prisma.Prisma__MessageRecipientClient<runtime.Types.Result.GetResult<Prisma.$MessageRecipientPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1142
-
1143
-
1144
- /**
1145
- * Count the number of MessageRecipients.
1146
- * Note, that providing `undefined` is treated as the value not being there.
1147
- * Read more here: https://pris.ly/d/null-undefined
1148
- * @param {MessageRecipientCountArgs} args - Arguments to filter MessageRecipients to count.
1149
- * @example
1150
- * // Count the number of MessageRecipients
1151
- * const count = await prisma.messageRecipient.count({
1152
- * where: {
1153
- * // ... the filter for the MessageRecipients we want to count
1154
- * }
1155
- * })
1156
- **/
1157
- count<T extends MessageRecipientCountArgs>(
1158
- args?: Prisma.Subset<T, MessageRecipientCountArgs>,
1159
- ): Prisma.PrismaPromise<
1160
- T extends runtime.Types.Utils.Record<'select', any>
1161
- ? T['select'] extends true
1162
- ? number
1163
- : Prisma.GetScalarType<T['select'], MessageRecipientCountAggregateOutputType>
1164
- : number
1165
- >
1166
-
1167
- /**
1168
- * Allows you to perform aggregations operations on a MessageRecipient.
1169
- * Note, that providing `undefined` is treated as the value not being there.
1170
- * Read more here: https://pris.ly/d/null-undefined
1171
- * @param {MessageRecipientAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1172
- * @example
1173
- * // Ordered by age ascending
1174
- * // Where email contains prisma.io
1175
- * // Limited to the 10 users
1176
- * const aggregations = await prisma.user.aggregate({
1177
- * _avg: {
1178
- * age: true,
1179
- * },
1180
- * where: {
1181
- * email: {
1182
- * contains: "prisma.io",
1183
- * },
1184
- * },
1185
- * orderBy: {
1186
- * age: "asc",
1187
- * },
1188
- * take: 10,
1189
- * })
1190
- **/
1191
- aggregate<T extends MessageRecipientAggregateArgs>(args: Prisma.Subset<T, MessageRecipientAggregateArgs>): Prisma.PrismaPromise<GetMessageRecipientAggregateType<T>>
1192
-
1193
- /**
1194
- * Group by MessageRecipient.
1195
- * Note, that providing `undefined` is treated as the value not being there.
1196
- * Read more here: https://pris.ly/d/null-undefined
1197
- * @param {MessageRecipientGroupByArgs} args - Group by arguments.
1198
- * @example
1199
- * // Group by city, order by createdAt, get count
1200
- * const result = await prisma.user.groupBy({
1201
- * by: ['city', 'createdAt'],
1202
- * orderBy: {
1203
- * createdAt: true
1204
- * },
1205
- * _count: {
1206
- * _all: true
1207
- * },
1208
- * })
1209
- *
1210
- **/
1211
- groupBy<
1212
- T extends MessageRecipientGroupByArgs,
1213
- HasSelectOrTake extends Prisma.Or<
1214
- Prisma.Extends<'skip', Prisma.Keys<T>>,
1215
- Prisma.Extends<'take', Prisma.Keys<T>>
1216
- >,
1217
- OrderByArg extends Prisma.True extends HasSelectOrTake
1218
- ? { orderBy: MessageRecipientGroupByArgs['orderBy'] }
1219
- : { orderBy?: MessageRecipientGroupByArgs['orderBy'] },
1220
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1221
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1222
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1223
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1224
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1225
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1226
- InputErrors extends ByEmpty extends Prisma.True
1227
- ? `Error: "by" must not be empty.`
1228
- : HavingValid extends Prisma.False
1229
- ? {
1230
- [P in HavingFields]: P extends ByFields
1231
- ? never
1232
- : P extends string
1233
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1234
- : [
1235
- Error,
1236
- 'Field ',
1237
- P,
1238
- ` in "having" needs to be provided in "by"`,
1239
- ]
1240
- }[HavingFields]
1241
- : 'take' extends Prisma.Keys<T>
1242
- ? 'orderBy' extends Prisma.Keys<T>
1243
- ? ByValid extends Prisma.True
1244
- ? {}
1245
- : {
1246
- [P in OrderFields]: P extends ByFields
1247
- ? never
1248
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1249
- }[OrderFields]
1250
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1251
- : 'skip' extends Prisma.Keys<T>
1252
- ? 'orderBy' extends Prisma.Keys<T>
1253
- ? ByValid extends Prisma.True
1254
- ? {}
1255
- : {
1256
- [P in OrderFields]: P extends ByFields
1257
- ? never
1258
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1259
- }[OrderFields]
1260
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1261
- : ByValid extends Prisma.True
1262
- ? {}
1263
- : {
1264
- [P in OrderFields]: P extends ByFields
1265
- ? never
1266
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1267
- }[OrderFields]
1268
- >(args: Prisma.SubsetIntersection<T, MessageRecipientGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMessageRecipientGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1269
- /**
1270
- * Fields of the MessageRecipient model
1271
- */
1272
- readonly fields: MessageRecipientFieldRefs;
1273
- }
1274
-
1275
- /**
1276
- * The delegate class that acts as a "Promise-like" for MessageRecipient.
1277
- * Why is this prefixed with `Prisma__`?
1278
- * Because we want to prevent naming conflicts as mentioned in
1279
- * https://github.com/prisma/prisma-client-js/issues/707
1280
- */
1281
- export interface Prisma__MessageRecipientClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1282
- readonly [Symbol.toStringTag]: "PrismaPromise"
1283
- message<T extends Prisma.MessageDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MessageDefaultArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1284
- recipient_user<T extends Prisma.MessageRecipient$recipient_userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MessageRecipient$recipient_userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1285
- /**
1286
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1287
- * @param onfulfilled The callback to execute when the Promise is resolved.
1288
- * @param onrejected The callback to execute when the Promise is rejected.
1289
- * @returns A Promise for the completion of which ever callback is executed.
1290
- */
1291
- 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>
1292
- /**
1293
- * Attaches a callback for only the rejection of the Promise.
1294
- * @param onrejected The callback to execute when the Promise is rejected.
1295
- * @returns A Promise for the completion of the callback.
1296
- */
1297
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1298
- /**
1299
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1300
- * resolved value cannot be modified from the callback.
1301
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1302
- * @returns A Promise for the completion of the callback.
1303
- */
1304
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1305
- }
1306
-
1307
-
1308
-
1309
-
1310
- /**
1311
- * Fields of the MessageRecipient model
1312
- */
1313
- export interface MessageRecipientFieldRefs {
1314
- readonly id: Prisma.FieldRef<"MessageRecipient", 'Int'>
1315
- readonly uuid: Prisma.FieldRef<"MessageRecipient", 'String'>
1316
- readonly message_id: Prisma.FieldRef<"MessageRecipient", 'Int'>
1317
- readonly recipient_type: Prisma.FieldRef<"MessageRecipient", 'MessageRecipientType'>
1318
- readonly recipient_user_id: Prisma.FieldRef<"MessageRecipient", 'Int'>
1319
- readonly recipient_vendor_id: Prisma.FieldRef<"MessageRecipient", 'Int'>
1320
- readonly read_status: Prisma.FieldRef<"MessageRecipient", 'MessageReadStatus'>
1321
- readonly read_at: Prisma.FieldRef<"MessageRecipient", 'DateTime'>
1322
- readonly delivered_at: Prisma.FieldRef<"MessageRecipient", 'DateTime'>
1323
- readonly created_at: Prisma.FieldRef<"MessageRecipient", 'DateTime'>
1324
- }
1325
-
1326
-
1327
- // Custom InputTypes
1328
- /**
1329
- * MessageRecipient findUnique
1330
- */
1331
- export type MessageRecipientFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1332
- /**
1333
- * Select specific fields to fetch from the MessageRecipient
1334
- */
1335
- select?: Prisma.MessageRecipientSelect<ExtArgs> | null
1336
- /**
1337
- * Omit specific fields from the MessageRecipient
1338
- */
1339
- omit?: Prisma.MessageRecipientOmit<ExtArgs> | null
1340
- /**
1341
- * Choose, which related nodes to fetch as well
1342
- */
1343
- include?: Prisma.MessageRecipientInclude<ExtArgs> | null
1344
- /**
1345
- * Filter, which MessageRecipient to fetch.
1346
- */
1347
- where: Prisma.MessageRecipientWhereUniqueInput
1348
- }
1349
-
1350
- /**
1351
- * MessageRecipient findUniqueOrThrow
1352
- */
1353
- export type MessageRecipientFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1354
- /**
1355
- * Select specific fields to fetch from the MessageRecipient
1356
- */
1357
- select?: Prisma.MessageRecipientSelect<ExtArgs> | null
1358
- /**
1359
- * Omit specific fields from the MessageRecipient
1360
- */
1361
- omit?: Prisma.MessageRecipientOmit<ExtArgs> | null
1362
- /**
1363
- * Choose, which related nodes to fetch as well
1364
- */
1365
- include?: Prisma.MessageRecipientInclude<ExtArgs> | null
1366
- /**
1367
- * Filter, which MessageRecipient to fetch.
1368
- */
1369
- where: Prisma.MessageRecipientWhereUniqueInput
1370
- }
1371
-
1372
- /**
1373
- * MessageRecipient findFirst
1374
- */
1375
- export type MessageRecipientFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1376
- /**
1377
- * Select specific fields to fetch from the MessageRecipient
1378
- */
1379
- select?: Prisma.MessageRecipientSelect<ExtArgs> | null
1380
- /**
1381
- * Omit specific fields from the MessageRecipient
1382
- */
1383
- omit?: Prisma.MessageRecipientOmit<ExtArgs> | null
1384
- /**
1385
- * Choose, which related nodes to fetch as well
1386
- */
1387
- include?: Prisma.MessageRecipientInclude<ExtArgs> | null
1388
- /**
1389
- * Filter, which MessageRecipient to fetch.
1390
- */
1391
- where?: Prisma.MessageRecipientWhereInput
1392
- /**
1393
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1394
- *
1395
- * Determine the order of MessageRecipients to fetch.
1396
- */
1397
- orderBy?: Prisma.MessageRecipientOrderByWithRelationInput | Prisma.MessageRecipientOrderByWithRelationInput[]
1398
- /**
1399
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1400
- *
1401
- * Sets the position for searching for MessageRecipients.
1402
- */
1403
- cursor?: Prisma.MessageRecipientWhereUniqueInput
1404
- /**
1405
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1406
- *
1407
- * Take `±n` MessageRecipients from the position of the cursor.
1408
- */
1409
- take?: number
1410
- /**
1411
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1412
- *
1413
- * Skip the first `n` MessageRecipients.
1414
- */
1415
- skip?: number
1416
- /**
1417
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1418
- *
1419
- * Filter by unique combinations of MessageRecipients.
1420
- */
1421
- distinct?: Prisma.MessageRecipientScalarFieldEnum | Prisma.MessageRecipientScalarFieldEnum[]
1422
- }
1423
-
1424
- /**
1425
- * MessageRecipient findFirstOrThrow
1426
- */
1427
- export type MessageRecipientFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1428
- /**
1429
- * Select specific fields to fetch from the MessageRecipient
1430
- */
1431
- select?: Prisma.MessageRecipientSelect<ExtArgs> | null
1432
- /**
1433
- * Omit specific fields from the MessageRecipient
1434
- */
1435
- omit?: Prisma.MessageRecipientOmit<ExtArgs> | null
1436
- /**
1437
- * Choose, which related nodes to fetch as well
1438
- */
1439
- include?: Prisma.MessageRecipientInclude<ExtArgs> | null
1440
- /**
1441
- * Filter, which MessageRecipient to fetch.
1442
- */
1443
- where?: Prisma.MessageRecipientWhereInput
1444
- /**
1445
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1446
- *
1447
- * Determine the order of MessageRecipients to fetch.
1448
- */
1449
- orderBy?: Prisma.MessageRecipientOrderByWithRelationInput | Prisma.MessageRecipientOrderByWithRelationInput[]
1450
- /**
1451
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1452
- *
1453
- * Sets the position for searching for MessageRecipients.
1454
- */
1455
- cursor?: Prisma.MessageRecipientWhereUniqueInput
1456
- /**
1457
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1458
- *
1459
- * Take `±n` MessageRecipients from the position of the cursor.
1460
- */
1461
- take?: number
1462
- /**
1463
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1464
- *
1465
- * Skip the first `n` MessageRecipients.
1466
- */
1467
- skip?: number
1468
- /**
1469
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1470
- *
1471
- * Filter by unique combinations of MessageRecipients.
1472
- */
1473
- distinct?: Prisma.MessageRecipientScalarFieldEnum | Prisma.MessageRecipientScalarFieldEnum[]
1474
- }
1475
-
1476
- /**
1477
- * MessageRecipient findMany
1478
- */
1479
- export type MessageRecipientFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1480
- /**
1481
- * Select specific fields to fetch from the MessageRecipient
1482
- */
1483
- select?: Prisma.MessageRecipientSelect<ExtArgs> | null
1484
- /**
1485
- * Omit specific fields from the MessageRecipient
1486
- */
1487
- omit?: Prisma.MessageRecipientOmit<ExtArgs> | null
1488
- /**
1489
- * Choose, which related nodes to fetch as well
1490
- */
1491
- include?: Prisma.MessageRecipientInclude<ExtArgs> | null
1492
- /**
1493
- * Filter, which MessageRecipients to fetch.
1494
- */
1495
- where?: Prisma.MessageRecipientWhereInput
1496
- /**
1497
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1498
- *
1499
- * Determine the order of MessageRecipients to fetch.
1500
- */
1501
- orderBy?: Prisma.MessageRecipientOrderByWithRelationInput | Prisma.MessageRecipientOrderByWithRelationInput[]
1502
- /**
1503
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1504
- *
1505
- * Sets the position for listing MessageRecipients.
1506
- */
1507
- cursor?: Prisma.MessageRecipientWhereUniqueInput
1508
- /**
1509
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1510
- *
1511
- * Take `±n` MessageRecipients from the position of the cursor.
1512
- */
1513
- take?: number
1514
- /**
1515
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1516
- *
1517
- * Skip the first `n` MessageRecipients.
1518
- */
1519
- skip?: number
1520
- /**
1521
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1522
- *
1523
- * Filter by unique combinations of MessageRecipients.
1524
- */
1525
- distinct?: Prisma.MessageRecipientScalarFieldEnum | Prisma.MessageRecipientScalarFieldEnum[]
1526
- }
1527
-
1528
- /**
1529
- * MessageRecipient create
1530
- */
1531
- export type MessageRecipientCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1532
- /**
1533
- * Select specific fields to fetch from the MessageRecipient
1534
- */
1535
- select?: Prisma.MessageRecipientSelect<ExtArgs> | null
1536
- /**
1537
- * Omit specific fields from the MessageRecipient
1538
- */
1539
- omit?: Prisma.MessageRecipientOmit<ExtArgs> | null
1540
- /**
1541
- * Choose, which related nodes to fetch as well
1542
- */
1543
- include?: Prisma.MessageRecipientInclude<ExtArgs> | null
1544
- /**
1545
- * The data needed to create a MessageRecipient.
1546
- */
1547
- data: Prisma.XOR<Prisma.MessageRecipientCreateInput, Prisma.MessageRecipientUncheckedCreateInput>
1548
- }
1549
-
1550
- /**
1551
- * MessageRecipient createMany
1552
- */
1553
- export type MessageRecipientCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1554
- /**
1555
- * The data used to create many MessageRecipients.
1556
- */
1557
- data: Prisma.MessageRecipientCreateManyInput | Prisma.MessageRecipientCreateManyInput[]
1558
- skipDuplicates?: boolean
1559
- }
1560
-
1561
- /**
1562
- * MessageRecipient createManyAndReturn
1563
- */
1564
- export type MessageRecipientCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1565
- /**
1566
- * Select specific fields to fetch from the MessageRecipient
1567
- */
1568
- select?: Prisma.MessageRecipientSelectCreateManyAndReturn<ExtArgs> | null
1569
- /**
1570
- * Omit specific fields from the MessageRecipient
1571
- */
1572
- omit?: Prisma.MessageRecipientOmit<ExtArgs> | null
1573
- /**
1574
- * The data used to create many MessageRecipients.
1575
- */
1576
- data: Prisma.MessageRecipientCreateManyInput | Prisma.MessageRecipientCreateManyInput[]
1577
- skipDuplicates?: boolean
1578
- /**
1579
- * Choose, which related nodes to fetch as well
1580
- */
1581
- include?: Prisma.MessageRecipientIncludeCreateManyAndReturn<ExtArgs> | null
1582
- }
1583
-
1584
- /**
1585
- * MessageRecipient update
1586
- */
1587
- export type MessageRecipientUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1588
- /**
1589
- * Select specific fields to fetch from the MessageRecipient
1590
- */
1591
- select?: Prisma.MessageRecipientSelect<ExtArgs> | null
1592
- /**
1593
- * Omit specific fields from the MessageRecipient
1594
- */
1595
- omit?: Prisma.MessageRecipientOmit<ExtArgs> | null
1596
- /**
1597
- * Choose, which related nodes to fetch as well
1598
- */
1599
- include?: Prisma.MessageRecipientInclude<ExtArgs> | null
1600
- /**
1601
- * The data needed to update a MessageRecipient.
1602
- */
1603
- data: Prisma.XOR<Prisma.MessageRecipientUpdateInput, Prisma.MessageRecipientUncheckedUpdateInput>
1604
- /**
1605
- * Choose, which MessageRecipient to update.
1606
- */
1607
- where: Prisma.MessageRecipientWhereUniqueInput
1608
- }
1609
-
1610
- /**
1611
- * MessageRecipient updateMany
1612
- */
1613
- export type MessageRecipientUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1614
- /**
1615
- * The data used to update MessageRecipients.
1616
- */
1617
- data: Prisma.XOR<Prisma.MessageRecipientUpdateManyMutationInput, Prisma.MessageRecipientUncheckedUpdateManyInput>
1618
- /**
1619
- * Filter which MessageRecipients to update
1620
- */
1621
- where?: Prisma.MessageRecipientWhereInput
1622
- /**
1623
- * Limit how many MessageRecipients to update.
1624
- */
1625
- limit?: number
1626
- }
1627
-
1628
- /**
1629
- * MessageRecipient updateManyAndReturn
1630
- */
1631
- export type MessageRecipientUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1632
- /**
1633
- * Select specific fields to fetch from the MessageRecipient
1634
- */
1635
- select?: Prisma.MessageRecipientSelectUpdateManyAndReturn<ExtArgs> | null
1636
- /**
1637
- * Omit specific fields from the MessageRecipient
1638
- */
1639
- omit?: Prisma.MessageRecipientOmit<ExtArgs> | null
1640
- /**
1641
- * The data used to update MessageRecipients.
1642
- */
1643
- data: Prisma.XOR<Prisma.MessageRecipientUpdateManyMutationInput, Prisma.MessageRecipientUncheckedUpdateManyInput>
1644
- /**
1645
- * Filter which MessageRecipients to update
1646
- */
1647
- where?: Prisma.MessageRecipientWhereInput
1648
- /**
1649
- * Limit how many MessageRecipients to update.
1650
- */
1651
- limit?: number
1652
- /**
1653
- * Choose, which related nodes to fetch as well
1654
- */
1655
- include?: Prisma.MessageRecipientIncludeUpdateManyAndReturn<ExtArgs> | null
1656
- }
1657
-
1658
- /**
1659
- * MessageRecipient upsert
1660
- */
1661
- export type MessageRecipientUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1662
- /**
1663
- * Select specific fields to fetch from the MessageRecipient
1664
- */
1665
- select?: Prisma.MessageRecipientSelect<ExtArgs> | null
1666
- /**
1667
- * Omit specific fields from the MessageRecipient
1668
- */
1669
- omit?: Prisma.MessageRecipientOmit<ExtArgs> | null
1670
- /**
1671
- * Choose, which related nodes to fetch as well
1672
- */
1673
- include?: Prisma.MessageRecipientInclude<ExtArgs> | null
1674
- /**
1675
- * The filter to search for the MessageRecipient to update in case it exists.
1676
- */
1677
- where: Prisma.MessageRecipientWhereUniqueInput
1678
- /**
1679
- * In case the MessageRecipient found by the `where` argument doesn't exist, create a new MessageRecipient with this data.
1680
- */
1681
- create: Prisma.XOR<Prisma.MessageRecipientCreateInput, Prisma.MessageRecipientUncheckedCreateInput>
1682
- /**
1683
- * In case the MessageRecipient was found with the provided `where` argument, update it with this data.
1684
- */
1685
- update: Prisma.XOR<Prisma.MessageRecipientUpdateInput, Prisma.MessageRecipientUncheckedUpdateInput>
1686
- }
1687
-
1688
- /**
1689
- * MessageRecipient delete
1690
- */
1691
- export type MessageRecipientDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1692
- /**
1693
- * Select specific fields to fetch from the MessageRecipient
1694
- */
1695
- select?: Prisma.MessageRecipientSelect<ExtArgs> | null
1696
- /**
1697
- * Omit specific fields from the MessageRecipient
1698
- */
1699
- omit?: Prisma.MessageRecipientOmit<ExtArgs> | null
1700
- /**
1701
- * Choose, which related nodes to fetch as well
1702
- */
1703
- include?: Prisma.MessageRecipientInclude<ExtArgs> | null
1704
- /**
1705
- * Filter which MessageRecipient to delete.
1706
- */
1707
- where: Prisma.MessageRecipientWhereUniqueInput
1708
- }
1709
-
1710
- /**
1711
- * MessageRecipient deleteMany
1712
- */
1713
- export type MessageRecipientDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1714
- /**
1715
- * Filter which MessageRecipients to delete
1716
- */
1717
- where?: Prisma.MessageRecipientWhereInput
1718
- /**
1719
- * Limit how many MessageRecipients to delete.
1720
- */
1721
- limit?: number
1722
- }
1723
-
1724
- /**
1725
- * MessageRecipient.recipient_user
1726
- */
1727
- export type MessageRecipient$recipient_userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1728
- /**
1729
- * Select specific fields to fetch from the User
1730
- */
1731
- select?: Prisma.UserSelect<ExtArgs> | null
1732
- /**
1733
- * Omit specific fields from the User
1734
- */
1735
- omit?: Prisma.UserOmit<ExtArgs> | null
1736
- /**
1737
- * Choose, which related nodes to fetch as well
1738
- */
1739
- include?: Prisma.UserInclude<ExtArgs> | null
1740
- where?: Prisma.UserWhereInput
1741
- }
1742
-
1743
- /**
1744
- * MessageRecipient without action
1745
- */
1746
- export type MessageRecipientDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1747
- /**
1748
- * Select specific fields to fetch from the MessageRecipient
1749
- */
1750
- select?: Prisma.MessageRecipientSelect<ExtArgs> | null
1751
- /**
1752
- * Omit specific fields from the MessageRecipient
1753
- */
1754
- omit?: Prisma.MessageRecipientOmit<ExtArgs> | null
1755
- /**
1756
- * Choose, which related nodes to fetch as well
1757
- */
1758
- include?: Prisma.MessageRecipientInclude<ExtArgs> | null
1759
- }