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,1737 +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 `RolePermission` 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 RolePermission
17
- *
18
- */
19
- export type RolePermissionModel = runtime.Types.Result.DefaultSelection<Prisma.$RolePermissionPayload>
20
-
21
- export type AggregateRolePermission = {
22
- _count: RolePermissionCountAggregateOutputType | null
23
- _avg: RolePermissionAvgAggregateOutputType | null
24
- _sum: RolePermissionSumAggregateOutputType | null
25
- _min: RolePermissionMinAggregateOutputType | null
26
- _max: RolePermissionMaxAggregateOutputType | null
27
- }
28
-
29
- export type RolePermissionAvgAggregateOutputType = {
30
- id: number | null
31
- permission_id: number | null
32
- role_id: number | null
33
- created_by: number | null
34
- updated_by: number | null
35
- deleted_by: number | null
36
- }
37
-
38
- export type RolePermissionSumAggregateOutputType = {
39
- id: number | null
40
- permission_id: number | null
41
- role_id: number | null
42
- created_by: number | null
43
- updated_by: number | null
44
- deleted_by: number | null
45
- }
46
-
47
- export type RolePermissionMinAggregateOutputType = {
48
- id: number | null
49
- permission_id: number | null
50
- role_id: number | null
51
- created_at: Date | null
52
- created_by: number | null
53
- updated_at: Date | null
54
- updated_by: number | null
55
- is_deleted: boolean | null
56
- deleted_at: Date | null
57
- deleted_by: number | null
58
- }
59
-
60
- export type RolePermissionMaxAggregateOutputType = {
61
- id: number | null
62
- permission_id: number | null
63
- role_id: number | null
64
- created_at: Date | null
65
- created_by: number | null
66
- updated_at: Date | null
67
- updated_by: number | null
68
- is_deleted: boolean | null
69
- deleted_at: Date | null
70
- deleted_by: number | null
71
- }
72
-
73
- export type RolePermissionCountAggregateOutputType = {
74
- id: number
75
- permission_id: number
76
- role_id: number
77
- created_at: number
78
- created_by: number
79
- updated_at: number
80
- updated_by: number
81
- is_deleted: number
82
- deleted_at: number
83
- deleted_by: number
84
- _all: number
85
- }
86
-
87
-
88
- export type RolePermissionAvgAggregateInputType = {
89
- id?: true
90
- permission_id?: true
91
- role_id?: true
92
- created_by?: true
93
- updated_by?: true
94
- deleted_by?: true
95
- }
96
-
97
- export type RolePermissionSumAggregateInputType = {
98
- id?: true
99
- permission_id?: true
100
- role_id?: true
101
- created_by?: true
102
- updated_by?: true
103
- deleted_by?: true
104
- }
105
-
106
- export type RolePermissionMinAggregateInputType = {
107
- id?: true
108
- permission_id?: true
109
- role_id?: true
110
- created_at?: true
111
- created_by?: true
112
- updated_at?: true
113
- updated_by?: true
114
- is_deleted?: true
115
- deleted_at?: true
116
- deleted_by?: true
117
- }
118
-
119
- export type RolePermissionMaxAggregateInputType = {
120
- id?: true
121
- permission_id?: true
122
- role_id?: true
123
- created_at?: true
124
- created_by?: true
125
- updated_at?: true
126
- updated_by?: true
127
- is_deleted?: true
128
- deleted_at?: true
129
- deleted_by?: true
130
- }
131
-
132
- export type RolePermissionCountAggregateInputType = {
133
- id?: true
134
- permission_id?: true
135
- role_id?: true
136
- created_at?: true
137
- created_by?: true
138
- updated_at?: true
139
- updated_by?: true
140
- is_deleted?: true
141
- deleted_at?: true
142
- deleted_by?: true
143
- _all?: true
144
- }
145
-
146
- export type RolePermissionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
147
- /**
148
- * Filter which RolePermission to aggregate.
149
- */
150
- where?: Prisma.RolePermissionWhereInput
151
- /**
152
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
153
- *
154
- * Determine the order of RolePermissions to fetch.
155
- */
156
- orderBy?: Prisma.RolePermissionOrderByWithRelationInput | Prisma.RolePermissionOrderByWithRelationInput[]
157
- /**
158
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
159
- *
160
- * Sets the start position
161
- */
162
- cursor?: Prisma.RolePermissionWhereUniqueInput
163
- /**
164
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
165
- *
166
- * Take `±n` RolePermissions from the position of the cursor.
167
- */
168
- take?: number
169
- /**
170
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
171
- *
172
- * Skip the first `n` RolePermissions.
173
- */
174
- skip?: number
175
- /**
176
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
177
- *
178
- * Count returned RolePermissions
179
- **/
180
- _count?: true | RolePermissionCountAggregateInputType
181
- /**
182
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
183
- *
184
- * Select which fields to average
185
- **/
186
- _avg?: RolePermissionAvgAggregateInputType
187
- /**
188
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
189
- *
190
- * Select which fields to sum
191
- **/
192
- _sum?: RolePermissionSumAggregateInputType
193
- /**
194
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
195
- *
196
- * Select which fields to find the minimum value
197
- **/
198
- _min?: RolePermissionMinAggregateInputType
199
- /**
200
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
201
- *
202
- * Select which fields to find the maximum value
203
- **/
204
- _max?: RolePermissionMaxAggregateInputType
205
- }
206
-
207
- export type GetRolePermissionAggregateType<T extends RolePermissionAggregateArgs> = {
208
- [P in keyof T & keyof AggregateRolePermission]: P extends '_count' | 'count'
209
- ? T[P] extends true
210
- ? number
211
- : Prisma.GetScalarType<T[P], AggregateRolePermission[P]>
212
- : Prisma.GetScalarType<T[P], AggregateRolePermission[P]>
213
- }
214
-
215
-
216
-
217
-
218
- export type RolePermissionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
219
- where?: Prisma.RolePermissionWhereInput
220
- orderBy?: Prisma.RolePermissionOrderByWithAggregationInput | Prisma.RolePermissionOrderByWithAggregationInput[]
221
- by: Prisma.RolePermissionScalarFieldEnum[] | Prisma.RolePermissionScalarFieldEnum
222
- having?: Prisma.RolePermissionScalarWhereWithAggregatesInput
223
- take?: number
224
- skip?: number
225
- _count?: RolePermissionCountAggregateInputType | true
226
- _avg?: RolePermissionAvgAggregateInputType
227
- _sum?: RolePermissionSumAggregateInputType
228
- _min?: RolePermissionMinAggregateInputType
229
- _max?: RolePermissionMaxAggregateInputType
230
- }
231
-
232
- export type RolePermissionGroupByOutputType = {
233
- id: number
234
- permission_id: number
235
- role_id: number
236
- created_at: Date
237
- created_by: number | null
238
- updated_at: Date | null
239
- updated_by: number | null
240
- is_deleted: boolean
241
- deleted_at: Date | null
242
- deleted_by: number | null
243
- _count: RolePermissionCountAggregateOutputType | null
244
- _avg: RolePermissionAvgAggregateOutputType | null
245
- _sum: RolePermissionSumAggregateOutputType | null
246
- _min: RolePermissionMinAggregateOutputType | null
247
- _max: RolePermissionMaxAggregateOutputType | null
248
- }
249
-
250
- export type GetRolePermissionGroupByPayload<T extends RolePermissionGroupByArgs> = Prisma.PrismaPromise<
251
- Array<
252
- Prisma.PickEnumerable<RolePermissionGroupByOutputType, T['by']> &
253
- {
254
- [P in ((keyof T) & (keyof RolePermissionGroupByOutputType))]: P extends '_count'
255
- ? T[P] extends boolean
256
- ? number
257
- : Prisma.GetScalarType<T[P], RolePermissionGroupByOutputType[P]>
258
- : Prisma.GetScalarType<T[P], RolePermissionGroupByOutputType[P]>
259
- }
260
- >
261
- >
262
-
263
-
264
-
265
- export type RolePermissionWhereInput = {
266
- AND?: Prisma.RolePermissionWhereInput | Prisma.RolePermissionWhereInput[]
267
- OR?: Prisma.RolePermissionWhereInput[]
268
- NOT?: Prisma.RolePermissionWhereInput | Prisma.RolePermissionWhereInput[]
269
- id?: Prisma.IntFilter<"RolePermission"> | number
270
- permission_id?: Prisma.IntFilter<"RolePermission"> | number
271
- role_id?: Prisma.IntFilter<"RolePermission"> | number
272
- created_at?: Prisma.DateTimeFilter<"RolePermission"> | Date | string
273
- created_by?: Prisma.IntNullableFilter<"RolePermission"> | number | null
274
- updated_at?: Prisma.DateTimeNullableFilter<"RolePermission"> | Date | string | null
275
- updated_by?: Prisma.IntNullableFilter<"RolePermission"> | number | null
276
- is_deleted?: Prisma.BoolFilter<"RolePermission"> | boolean
277
- deleted_at?: Prisma.DateTimeNullableFilter<"RolePermission"> | Date | string | null
278
- deleted_by?: Prisma.IntNullableFilter<"RolePermission"> | number | null
279
- permission?: Prisma.XOR<Prisma.PermissionScalarRelationFilter, Prisma.PermissionWhereInput>
280
- role?: Prisma.XOR<Prisma.RoleScalarRelationFilter, Prisma.RoleWhereInput>
281
- }
282
-
283
- export type RolePermissionOrderByWithRelationInput = {
284
- id?: Prisma.SortOrder
285
- permission_id?: Prisma.SortOrder
286
- role_id?: Prisma.SortOrder
287
- created_at?: Prisma.SortOrder
288
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
289
- updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
290
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
291
- is_deleted?: Prisma.SortOrder
292
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
293
- deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
294
- permission?: Prisma.PermissionOrderByWithRelationInput
295
- role?: Prisma.RoleOrderByWithRelationInput
296
- }
297
-
298
- export type RolePermissionWhereUniqueInput = Prisma.AtLeast<{
299
- id?: number
300
- AND?: Prisma.RolePermissionWhereInput | Prisma.RolePermissionWhereInput[]
301
- OR?: Prisma.RolePermissionWhereInput[]
302
- NOT?: Prisma.RolePermissionWhereInput | Prisma.RolePermissionWhereInput[]
303
- permission_id?: Prisma.IntFilter<"RolePermission"> | number
304
- role_id?: Prisma.IntFilter<"RolePermission"> | number
305
- created_at?: Prisma.DateTimeFilter<"RolePermission"> | Date | string
306
- created_by?: Prisma.IntNullableFilter<"RolePermission"> | number | null
307
- updated_at?: Prisma.DateTimeNullableFilter<"RolePermission"> | Date | string | null
308
- updated_by?: Prisma.IntNullableFilter<"RolePermission"> | number | null
309
- is_deleted?: Prisma.BoolFilter<"RolePermission"> | boolean
310
- deleted_at?: Prisma.DateTimeNullableFilter<"RolePermission"> | Date | string | null
311
- deleted_by?: Prisma.IntNullableFilter<"RolePermission"> | number | null
312
- permission?: Prisma.XOR<Prisma.PermissionScalarRelationFilter, Prisma.PermissionWhereInput>
313
- role?: Prisma.XOR<Prisma.RoleScalarRelationFilter, Prisma.RoleWhereInput>
314
- }, "id">
315
-
316
- export type RolePermissionOrderByWithAggregationInput = {
317
- id?: Prisma.SortOrder
318
- permission_id?: Prisma.SortOrder
319
- role_id?: Prisma.SortOrder
320
- created_at?: Prisma.SortOrder
321
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
322
- updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
323
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
324
- is_deleted?: Prisma.SortOrder
325
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
326
- deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
327
- _count?: Prisma.RolePermissionCountOrderByAggregateInput
328
- _avg?: Prisma.RolePermissionAvgOrderByAggregateInput
329
- _max?: Prisma.RolePermissionMaxOrderByAggregateInput
330
- _min?: Prisma.RolePermissionMinOrderByAggregateInput
331
- _sum?: Prisma.RolePermissionSumOrderByAggregateInput
332
- }
333
-
334
- export type RolePermissionScalarWhereWithAggregatesInput = {
335
- AND?: Prisma.RolePermissionScalarWhereWithAggregatesInput | Prisma.RolePermissionScalarWhereWithAggregatesInput[]
336
- OR?: Prisma.RolePermissionScalarWhereWithAggregatesInput[]
337
- NOT?: Prisma.RolePermissionScalarWhereWithAggregatesInput | Prisma.RolePermissionScalarWhereWithAggregatesInput[]
338
- id?: Prisma.IntWithAggregatesFilter<"RolePermission"> | number
339
- permission_id?: Prisma.IntWithAggregatesFilter<"RolePermission"> | number
340
- role_id?: Prisma.IntWithAggregatesFilter<"RolePermission"> | number
341
- created_at?: Prisma.DateTimeWithAggregatesFilter<"RolePermission"> | Date | string
342
- created_by?: Prisma.IntNullableWithAggregatesFilter<"RolePermission"> | number | null
343
- updated_at?: Prisma.DateTimeNullableWithAggregatesFilter<"RolePermission"> | Date | string | null
344
- updated_by?: Prisma.IntNullableWithAggregatesFilter<"RolePermission"> | number | null
345
- is_deleted?: Prisma.BoolWithAggregatesFilter<"RolePermission"> | boolean
346
- deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"RolePermission"> | Date | string | null
347
- deleted_by?: Prisma.IntNullableWithAggregatesFilter<"RolePermission"> | number | null
348
- }
349
-
350
- export type RolePermissionCreateInput = {
351
- created_at?: Date | string
352
- created_by?: number | null
353
- updated_at?: Date | string | null
354
- updated_by?: number | null
355
- is_deleted?: boolean
356
- deleted_at?: Date | string | null
357
- deleted_by?: number | null
358
- permission: Prisma.PermissionCreateNestedOneWithoutRole_permissionInput
359
- role: Prisma.RoleCreateNestedOneWithoutRole_permissionInput
360
- }
361
-
362
- export type RolePermissionUncheckedCreateInput = {
363
- id?: number
364
- permission_id: number
365
- role_id: number
366
- created_at?: Date | string
367
- created_by?: number | null
368
- updated_at?: Date | string | null
369
- updated_by?: number | null
370
- is_deleted?: boolean
371
- deleted_at?: Date | string | null
372
- deleted_by?: number | null
373
- }
374
-
375
- export type RolePermissionUpdateInput = {
376
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
377
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
378
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
379
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
380
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
381
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
382
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
383
- permission?: Prisma.PermissionUpdateOneRequiredWithoutRole_permissionNestedInput
384
- role?: Prisma.RoleUpdateOneRequiredWithoutRole_permissionNestedInput
385
- }
386
-
387
- export type RolePermissionUncheckedUpdateInput = {
388
- id?: Prisma.IntFieldUpdateOperationsInput | number
389
- permission_id?: Prisma.IntFieldUpdateOperationsInput | number
390
- role_id?: Prisma.IntFieldUpdateOperationsInput | number
391
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
392
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
393
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
394
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
395
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
396
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
397
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
398
- }
399
-
400
- export type RolePermissionCreateManyInput = {
401
- id?: number
402
- permission_id: number
403
- role_id: number
404
- created_at?: Date | string
405
- created_by?: number | null
406
- updated_at?: Date | string | null
407
- updated_by?: number | null
408
- is_deleted?: boolean
409
- deleted_at?: Date | string | null
410
- deleted_by?: number | null
411
- }
412
-
413
- export type RolePermissionUpdateManyMutationInput = {
414
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
415
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
416
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
417
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
418
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
419
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
420
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
421
- }
422
-
423
- export type RolePermissionUncheckedUpdateManyInput = {
424
- id?: Prisma.IntFieldUpdateOperationsInput | number
425
- permission_id?: Prisma.IntFieldUpdateOperationsInput | number
426
- role_id?: Prisma.IntFieldUpdateOperationsInput | number
427
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
428
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
429
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
430
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
431
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
432
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
433
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
434
- }
435
-
436
- export type RolePermissionListRelationFilter = {
437
- every?: Prisma.RolePermissionWhereInput
438
- some?: Prisma.RolePermissionWhereInput
439
- none?: Prisma.RolePermissionWhereInput
440
- }
441
-
442
- export type RolePermissionOrderByRelationAggregateInput = {
443
- _count?: Prisma.SortOrder
444
- }
445
-
446
- export type RolePermissionCountOrderByAggregateInput = {
447
- id?: Prisma.SortOrder
448
- permission_id?: Prisma.SortOrder
449
- role_id?: Prisma.SortOrder
450
- created_at?: Prisma.SortOrder
451
- created_by?: Prisma.SortOrder
452
- updated_at?: Prisma.SortOrder
453
- updated_by?: Prisma.SortOrder
454
- is_deleted?: Prisma.SortOrder
455
- deleted_at?: Prisma.SortOrder
456
- deleted_by?: Prisma.SortOrder
457
- }
458
-
459
- export type RolePermissionAvgOrderByAggregateInput = {
460
- id?: Prisma.SortOrder
461
- permission_id?: Prisma.SortOrder
462
- role_id?: Prisma.SortOrder
463
- created_by?: Prisma.SortOrder
464
- updated_by?: Prisma.SortOrder
465
- deleted_by?: Prisma.SortOrder
466
- }
467
-
468
- export type RolePermissionMaxOrderByAggregateInput = {
469
- id?: Prisma.SortOrder
470
- permission_id?: Prisma.SortOrder
471
- role_id?: Prisma.SortOrder
472
- created_at?: Prisma.SortOrder
473
- created_by?: Prisma.SortOrder
474
- updated_at?: Prisma.SortOrder
475
- updated_by?: Prisma.SortOrder
476
- is_deleted?: Prisma.SortOrder
477
- deleted_at?: Prisma.SortOrder
478
- deleted_by?: Prisma.SortOrder
479
- }
480
-
481
- export type RolePermissionMinOrderByAggregateInput = {
482
- id?: Prisma.SortOrder
483
- permission_id?: Prisma.SortOrder
484
- role_id?: Prisma.SortOrder
485
- created_at?: Prisma.SortOrder
486
- created_by?: Prisma.SortOrder
487
- updated_at?: Prisma.SortOrder
488
- updated_by?: Prisma.SortOrder
489
- is_deleted?: Prisma.SortOrder
490
- deleted_at?: Prisma.SortOrder
491
- deleted_by?: Prisma.SortOrder
492
- }
493
-
494
- export type RolePermissionSumOrderByAggregateInput = {
495
- id?: Prisma.SortOrder
496
- permission_id?: Prisma.SortOrder
497
- role_id?: Prisma.SortOrder
498
- created_by?: Prisma.SortOrder
499
- updated_by?: Prisma.SortOrder
500
- deleted_by?: Prisma.SortOrder
501
- }
502
-
503
- export type RolePermissionCreateNestedManyWithoutRoleInput = {
504
- create?: Prisma.XOR<Prisma.RolePermissionCreateWithoutRoleInput, Prisma.RolePermissionUncheckedCreateWithoutRoleInput> | Prisma.RolePermissionCreateWithoutRoleInput[] | Prisma.RolePermissionUncheckedCreateWithoutRoleInput[]
505
- connectOrCreate?: Prisma.RolePermissionCreateOrConnectWithoutRoleInput | Prisma.RolePermissionCreateOrConnectWithoutRoleInput[]
506
- createMany?: Prisma.RolePermissionCreateManyRoleInputEnvelope
507
- connect?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
508
- }
509
-
510
- export type RolePermissionUncheckedCreateNestedManyWithoutRoleInput = {
511
- create?: Prisma.XOR<Prisma.RolePermissionCreateWithoutRoleInput, Prisma.RolePermissionUncheckedCreateWithoutRoleInput> | Prisma.RolePermissionCreateWithoutRoleInput[] | Prisma.RolePermissionUncheckedCreateWithoutRoleInput[]
512
- connectOrCreate?: Prisma.RolePermissionCreateOrConnectWithoutRoleInput | Prisma.RolePermissionCreateOrConnectWithoutRoleInput[]
513
- createMany?: Prisma.RolePermissionCreateManyRoleInputEnvelope
514
- connect?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
515
- }
516
-
517
- export type RolePermissionUpdateManyWithoutRoleNestedInput = {
518
- create?: Prisma.XOR<Prisma.RolePermissionCreateWithoutRoleInput, Prisma.RolePermissionUncheckedCreateWithoutRoleInput> | Prisma.RolePermissionCreateWithoutRoleInput[] | Prisma.RolePermissionUncheckedCreateWithoutRoleInput[]
519
- connectOrCreate?: Prisma.RolePermissionCreateOrConnectWithoutRoleInput | Prisma.RolePermissionCreateOrConnectWithoutRoleInput[]
520
- upsert?: Prisma.RolePermissionUpsertWithWhereUniqueWithoutRoleInput | Prisma.RolePermissionUpsertWithWhereUniqueWithoutRoleInput[]
521
- createMany?: Prisma.RolePermissionCreateManyRoleInputEnvelope
522
- set?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
523
- disconnect?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
524
- delete?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
525
- connect?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
526
- update?: Prisma.RolePermissionUpdateWithWhereUniqueWithoutRoleInput | Prisma.RolePermissionUpdateWithWhereUniqueWithoutRoleInput[]
527
- updateMany?: Prisma.RolePermissionUpdateManyWithWhereWithoutRoleInput | Prisma.RolePermissionUpdateManyWithWhereWithoutRoleInput[]
528
- deleteMany?: Prisma.RolePermissionScalarWhereInput | Prisma.RolePermissionScalarWhereInput[]
529
- }
530
-
531
- export type RolePermissionUncheckedUpdateManyWithoutRoleNestedInput = {
532
- create?: Prisma.XOR<Prisma.RolePermissionCreateWithoutRoleInput, Prisma.RolePermissionUncheckedCreateWithoutRoleInput> | Prisma.RolePermissionCreateWithoutRoleInput[] | Prisma.RolePermissionUncheckedCreateWithoutRoleInput[]
533
- connectOrCreate?: Prisma.RolePermissionCreateOrConnectWithoutRoleInput | Prisma.RolePermissionCreateOrConnectWithoutRoleInput[]
534
- upsert?: Prisma.RolePermissionUpsertWithWhereUniqueWithoutRoleInput | Prisma.RolePermissionUpsertWithWhereUniqueWithoutRoleInput[]
535
- createMany?: Prisma.RolePermissionCreateManyRoleInputEnvelope
536
- set?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
537
- disconnect?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
538
- delete?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
539
- connect?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
540
- update?: Prisma.RolePermissionUpdateWithWhereUniqueWithoutRoleInput | Prisma.RolePermissionUpdateWithWhereUniqueWithoutRoleInput[]
541
- updateMany?: Prisma.RolePermissionUpdateManyWithWhereWithoutRoleInput | Prisma.RolePermissionUpdateManyWithWhereWithoutRoleInput[]
542
- deleteMany?: Prisma.RolePermissionScalarWhereInput | Prisma.RolePermissionScalarWhereInput[]
543
- }
544
-
545
- export type RolePermissionCreateNestedManyWithoutPermissionInput = {
546
- create?: Prisma.XOR<Prisma.RolePermissionCreateWithoutPermissionInput, Prisma.RolePermissionUncheckedCreateWithoutPermissionInput> | Prisma.RolePermissionCreateWithoutPermissionInput[] | Prisma.RolePermissionUncheckedCreateWithoutPermissionInput[]
547
- connectOrCreate?: Prisma.RolePermissionCreateOrConnectWithoutPermissionInput | Prisma.RolePermissionCreateOrConnectWithoutPermissionInput[]
548
- createMany?: Prisma.RolePermissionCreateManyPermissionInputEnvelope
549
- connect?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
550
- }
551
-
552
- export type RolePermissionUncheckedCreateNestedManyWithoutPermissionInput = {
553
- create?: Prisma.XOR<Prisma.RolePermissionCreateWithoutPermissionInput, Prisma.RolePermissionUncheckedCreateWithoutPermissionInput> | Prisma.RolePermissionCreateWithoutPermissionInput[] | Prisma.RolePermissionUncheckedCreateWithoutPermissionInput[]
554
- connectOrCreate?: Prisma.RolePermissionCreateOrConnectWithoutPermissionInput | Prisma.RolePermissionCreateOrConnectWithoutPermissionInput[]
555
- createMany?: Prisma.RolePermissionCreateManyPermissionInputEnvelope
556
- connect?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
557
- }
558
-
559
- export type RolePermissionUpdateManyWithoutPermissionNestedInput = {
560
- create?: Prisma.XOR<Prisma.RolePermissionCreateWithoutPermissionInput, Prisma.RolePermissionUncheckedCreateWithoutPermissionInput> | Prisma.RolePermissionCreateWithoutPermissionInput[] | Prisma.RolePermissionUncheckedCreateWithoutPermissionInput[]
561
- connectOrCreate?: Prisma.RolePermissionCreateOrConnectWithoutPermissionInput | Prisma.RolePermissionCreateOrConnectWithoutPermissionInput[]
562
- upsert?: Prisma.RolePermissionUpsertWithWhereUniqueWithoutPermissionInput | Prisma.RolePermissionUpsertWithWhereUniqueWithoutPermissionInput[]
563
- createMany?: Prisma.RolePermissionCreateManyPermissionInputEnvelope
564
- set?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
565
- disconnect?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
566
- delete?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
567
- connect?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
568
- update?: Prisma.RolePermissionUpdateWithWhereUniqueWithoutPermissionInput | Prisma.RolePermissionUpdateWithWhereUniqueWithoutPermissionInput[]
569
- updateMany?: Prisma.RolePermissionUpdateManyWithWhereWithoutPermissionInput | Prisma.RolePermissionUpdateManyWithWhereWithoutPermissionInput[]
570
- deleteMany?: Prisma.RolePermissionScalarWhereInput | Prisma.RolePermissionScalarWhereInput[]
571
- }
572
-
573
- export type RolePermissionUncheckedUpdateManyWithoutPermissionNestedInput = {
574
- create?: Prisma.XOR<Prisma.RolePermissionCreateWithoutPermissionInput, Prisma.RolePermissionUncheckedCreateWithoutPermissionInput> | Prisma.RolePermissionCreateWithoutPermissionInput[] | Prisma.RolePermissionUncheckedCreateWithoutPermissionInput[]
575
- connectOrCreate?: Prisma.RolePermissionCreateOrConnectWithoutPermissionInput | Prisma.RolePermissionCreateOrConnectWithoutPermissionInput[]
576
- upsert?: Prisma.RolePermissionUpsertWithWhereUniqueWithoutPermissionInput | Prisma.RolePermissionUpsertWithWhereUniqueWithoutPermissionInput[]
577
- createMany?: Prisma.RolePermissionCreateManyPermissionInputEnvelope
578
- set?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
579
- disconnect?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
580
- delete?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
581
- connect?: Prisma.RolePermissionWhereUniqueInput | Prisma.RolePermissionWhereUniqueInput[]
582
- update?: Prisma.RolePermissionUpdateWithWhereUniqueWithoutPermissionInput | Prisma.RolePermissionUpdateWithWhereUniqueWithoutPermissionInput[]
583
- updateMany?: Prisma.RolePermissionUpdateManyWithWhereWithoutPermissionInput | Prisma.RolePermissionUpdateManyWithWhereWithoutPermissionInput[]
584
- deleteMany?: Prisma.RolePermissionScalarWhereInput | Prisma.RolePermissionScalarWhereInput[]
585
- }
586
-
587
- export type RolePermissionCreateWithoutRoleInput = {
588
- created_at?: Date | string
589
- created_by?: number | null
590
- updated_at?: Date | string | null
591
- updated_by?: number | null
592
- is_deleted?: boolean
593
- deleted_at?: Date | string | null
594
- deleted_by?: number | null
595
- permission: Prisma.PermissionCreateNestedOneWithoutRole_permissionInput
596
- }
597
-
598
- export type RolePermissionUncheckedCreateWithoutRoleInput = {
599
- id?: number
600
- permission_id: number
601
- created_at?: Date | string
602
- created_by?: number | null
603
- updated_at?: Date | string | null
604
- updated_by?: number | null
605
- is_deleted?: boolean
606
- deleted_at?: Date | string | null
607
- deleted_by?: number | null
608
- }
609
-
610
- export type RolePermissionCreateOrConnectWithoutRoleInput = {
611
- where: Prisma.RolePermissionWhereUniqueInput
612
- create: Prisma.XOR<Prisma.RolePermissionCreateWithoutRoleInput, Prisma.RolePermissionUncheckedCreateWithoutRoleInput>
613
- }
614
-
615
- export type RolePermissionCreateManyRoleInputEnvelope = {
616
- data: Prisma.RolePermissionCreateManyRoleInput | Prisma.RolePermissionCreateManyRoleInput[]
617
- skipDuplicates?: boolean
618
- }
619
-
620
- export type RolePermissionUpsertWithWhereUniqueWithoutRoleInput = {
621
- where: Prisma.RolePermissionWhereUniqueInput
622
- update: Prisma.XOR<Prisma.RolePermissionUpdateWithoutRoleInput, Prisma.RolePermissionUncheckedUpdateWithoutRoleInput>
623
- create: Prisma.XOR<Prisma.RolePermissionCreateWithoutRoleInput, Prisma.RolePermissionUncheckedCreateWithoutRoleInput>
624
- }
625
-
626
- export type RolePermissionUpdateWithWhereUniqueWithoutRoleInput = {
627
- where: Prisma.RolePermissionWhereUniqueInput
628
- data: Prisma.XOR<Prisma.RolePermissionUpdateWithoutRoleInput, Prisma.RolePermissionUncheckedUpdateWithoutRoleInput>
629
- }
630
-
631
- export type RolePermissionUpdateManyWithWhereWithoutRoleInput = {
632
- where: Prisma.RolePermissionScalarWhereInput
633
- data: Prisma.XOR<Prisma.RolePermissionUpdateManyMutationInput, Prisma.RolePermissionUncheckedUpdateManyWithoutRoleInput>
634
- }
635
-
636
- export type RolePermissionScalarWhereInput = {
637
- AND?: Prisma.RolePermissionScalarWhereInput | Prisma.RolePermissionScalarWhereInput[]
638
- OR?: Prisma.RolePermissionScalarWhereInput[]
639
- NOT?: Prisma.RolePermissionScalarWhereInput | Prisma.RolePermissionScalarWhereInput[]
640
- id?: Prisma.IntFilter<"RolePermission"> | number
641
- permission_id?: Prisma.IntFilter<"RolePermission"> | number
642
- role_id?: Prisma.IntFilter<"RolePermission"> | number
643
- created_at?: Prisma.DateTimeFilter<"RolePermission"> | Date | string
644
- created_by?: Prisma.IntNullableFilter<"RolePermission"> | number | null
645
- updated_at?: Prisma.DateTimeNullableFilter<"RolePermission"> | Date | string | null
646
- updated_by?: Prisma.IntNullableFilter<"RolePermission"> | number | null
647
- is_deleted?: Prisma.BoolFilter<"RolePermission"> | boolean
648
- deleted_at?: Prisma.DateTimeNullableFilter<"RolePermission"> | Date | string | null
649
- deleted_by?: Prisma.IntNullableFilter<"RolePermission"> | number | null
650
- }
651
-
652
- export type RolePermissionCreateWithoutPermissionInput = {
653
- created_at?: Date | string
654
- created_by?: number | null
655
- updated_at?: Date | string | null
656
- updated_by?: number | null
657
- is_deleted?: boolean
658
- deleted_at?: Date | string | null
659
- deleted_by?: number | null
660
- role: Prisma.RoleCreateNestedOneWithoutRole_permissionInput
661
- }
662
-
663
- export type RolePermissionUncheckedCreateWithoutPermissionInput = {
664
- id?: number
665
- role_id: number
666
- created_at?: Date | string
667
- created_by?: number | null
668
- updated_at?: Date | string | null
669
- updated_by?: number | null
670
- is_deleted?: boolean
671
- deleted_at?: Date | string | null
672
- deleted_by?: number | null
673
- }
674
-
675
- export type RolePermissionCreateOrConnectWithoutPermissionInput = {
676
- where: Prisma.RolePermissionWhereUniqueInput
677
- create: Prisma.XOR<Prisma.RolePermissionCreateWithoutPermissionInput, Prisma.RolePermissionUncheckedCreateWithoutPermissionInput>
678
- }
679
-
680
- export type RolePermissionCreateManyPermissionInputEnvelope = {
681
- data: Prisma.RolePermissionCreateManyPermissionInput | Prisma.RolePermissionCreateManyPermissionInput[]
682
- skipDuplicates?: boolean
683
- }
684
-
685
- export type RolePermissionUpsertWithWhereUniqueWithoutPermissionInput = {
686
- where: Prisma.RolePermissionWhereUniqueInput
687
- update: Prisma.XOR<Prisma.RolePermissionUpdateWithoutPermissionInput, Prisma.RolePermissionUncheckedUpdateWithoutPermissionInput>
688
- create: Prisma.XOR<Prisma.RolePermissionCreateWithoutPermissionInput, Prisma.RolePermissionUncheckedCreateWithoutPermissionInput>
689
- }
690
-
691
- export type RolePermissionUpdateWithWhereUniqueWithoutPermissionInput = {
692
- where: Prisma.RolePermissionWhereUniqueInput
693
- data: Prisma.XOR<Prisma.RolePermissionUpdateWithoutPermissionInput, Prisma.RolePermissionUncheckedUpdateWithoutPermissionInput>
694
- }
695
-
696
- export type RolePermissionUpdateManyWithWhereWithoutPermissionInput = {
697
- where: Prisma.RolePermissionScalarWhereInput
698
- data: Prisma.XOR<Prisma.RolePermissionUpdateManyMutationInput, Prisma.RolePermissionUncheckedUpdateManyWithoutPermissionInput>
699
- }
700
-
701
- export type RolePermissionCreateManyRoleInput = {
702
- id?: number
703
- permission_id: number
704
- created_at?: Date | string
705
- created_by?: number | null
706
- updated_at?: Date | string | null
707
- updated_by?: number | null
708
- is_deleted?: boolean
709
- deleted_at?: Date | string | null
710
- deleted_by?: number | null
711
- }
712
-
713
- export type RolePermissionUpdateWithoutRoleInput = {
714
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
715
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
716
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
717
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
718
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
719
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
720
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
721
- permission?: Prisma.PermissionUpdateOneRequiredWithoutRole_permissionNestedInput
722
- }
723
-
724
- export type RolePermissionUncheckedUpdateWithoutRoleInput = {
725
- id?: Prisma.IntFieldUpdateOperationsInput | number
726
- permission_id?: Prisma.IntFieldUpdateOperationsInput | number
727
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
728
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
729
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
730
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
731
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
732
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
733
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
734
- }
735
-
736
- export type RolePermissionUncheckedUpdateManyWithoutRoleInput = {
737
- id?: Prisma.IntFieldUpdateOperationsInput | number
738
- permission_id?: Prisma.IntFieldUpdateOperationsInput | number
739
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
740
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
741
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
742
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
743
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
744
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
745
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
746
- }
747
-
748
- export type RolePermissionCreateManyPermissionInput = {
749
- id?: number
750
- role_id: number
751
- created_at?: Date | string
752
- created_by?: number | null
753
- updated_at?: Date | string | null
754
- updated_by?: number | null
755
- is_deleted?: boolean
756
- deleted_at?: Date | string | null
757
- deleted_by?: number | null
758
- }
759
-
760
- export type RolePermissionUpdateWithoutPermissionInput = {
761
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
762
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
763
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
764
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
765
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
766
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
767
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
768
- role?: Prisma.RoleUpdateOneRequiredWithoutRole_permissionNestedInput
769
- }
770
-
771
- export type RolePermissionUncheckedUpdateWithoutPermissionInput = {
772
- id?: Prisma.IntFieldUpdateOperationsInput | number
773
- role_id?: Prisma.IntFieldUpdateOperationsInput | number
774
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
775
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
776
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
777
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
778
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
779
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
780
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
781
- }
782
-
783
- export type RolePermissionUncheckedUpdateManyWithoutPermissionInput = {
784
- id?: Prisma.IntFieldUpdateOperationsInput | number
785
- role_id?: Prisma.IntFieldUpdateOperationsInput | number
786
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
787
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
788
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
789
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
790
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
791
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
792
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
793
- }
794
-
795
-
796
-
797
- export type RolePermissionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
798
- id?: boolean
799
- permission_id?: boolean
800
- role_id?: boolean
801
- created_at?: boolean
802
- created_by?: boolean
803
- updated_at?: boolean
804
- updated_by?: boolean
805
- is_deleted?: boolean
806
- deleted_at?: boolean
807
- deleted_by?: boolean
808
- permission?: boolean | Prisma.PermissionDefaultArgs<ExtArgs>
809
- role?: boolean | Prisma.RoleDefaultArgs<ExtArgs>
810
- }, ExtArgs["result"]["rolePermission"]>
811
-
812
- export type RolePermissionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
813
- id?: boolean
814
- permission_id?: boolean
815
- role_id?: boolean
816
- created_at?: boolean
817
- created_by?: boolean
818
- updated_at?: boolean
819
- updated_by?: boolean
820
- is_deleted?: boolean
821
- deleted_at?: boolean
822
- deleted_by?: boolean
823
- permission?: boolean | Prisma.PermissionDefaultArgs<ExtArgs>
824
- role?: boolean | Prisma.RoleDefaultArgs<ExtArgs>
825
- }, ExtArgs["result"]["rolePermission"]>
826
-
827
- export type RolePermissionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
828
- id?: boolean
829
- permission_id?: boolean
830
- role_id?: boolean
831
- created_at?: boolean
832
- created_by?: boolean
833
- updated_at?: boolean
834
- updated_by?: boolean
835
- is_deleted?: boolean
836
- deleted_at?: boolean
837
- deleted_by?: boolean
838
- permission?: boolean | Prisma.PermissionDefaultArgs<ExtArgs>
839
- role?: boolean | Prisma.RoleDefaultArgs<ExtArgs>
840
- }, ExtArgs["result"]["rolePermission"]>
841
-
842
- export type RolePermissionSelectScalar = {
843
- id?: boolean
844
- permission_id?: boolean
845
- role_id?: boolean
846
- created_at?: boolean
847
- created_by?: boolean
848
- updated_at?: boolean
849
- updated_by?: boolean
850
- is_deleted?: boolean
851
- deleted_at?: boolean
852
- deleted_by?: boolean
853
- }
854
-
855
- export type RolePermissionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "permission_id" | "role_id" | "created_at" | "created_by" | "updated_at" | "updated_by" | "is_deleted" | "deleted_at" | "deleted_by", ExtArgs["result"]["rolePermission"]>
856
- export type RolePermissionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
857
- permission?: boolean | Prisma.PermissionDefaultArgs<ExtArgs>
858
- role?: boolean | Prisma.RoleDefaultArgs<ExtArgs>
859
- }
860
- export type RolePermissionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
861
- permission?: boolean | Prisma.PermissionDefaultArgs<ExtArgs>
862
- role?: boolean | Prisma.RoleDefaultArgs<ExtArgs>
863
- }
864
- export type RolePermissionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
865
- permission?: boolean | Prisma.PermissionDefaultArgs<ExtArgs>
866
- role?: boolean | Prisma.RoleDefaultArgs<ExtArgs>
867
- }
868
-
869
- export type $RolePermissionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
870
- name: "RolePermission"
871
- objects: {
872
- permission: Prisma.$PermissionPayload<ExtArgs>
873
- role: Prisma.$RolePayload<ExtArgs>
874
- }
875
- scalars: runtime.Types.Extensions.GetPayloadResult<{
876
- id: number
877
- permission_id: number
878
- role_id: number
879
- created_at: Date
880
- created_by: number | null
881
- updated_at: Date | null
882
- updated_by: number | null
883
- is_deleted: boolean
884
- deleted_at: Date | null
885
- deleted_by: number | null
886
- }, ExtArgs["result"]["rolePermission"]>
887
- composites: {}
888
- }
889
-
890
- export type RolePermissionGetPayload<S extends boolean | null | undefined | RolePermissionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RolePermissionPayload, S>
891
-
892
- export type RolePermissionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
893
- Omit<RolePermissionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
894
- select?: RolePermissionCountAggregateInputType | true
895
- }
896
-
897
- export interface RolePermissionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
898
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RolePermission'], meta: { name: 'RolePermission' } }
899
- /**
900
- * Find zero or one RolePermission that matches the filter.
901
- * @param {RolePermissionFindUniqueArgs} args - Arguments to find a RolePermission
902
- * @example
903
- * // Get one RolePermission
904
- * const rolePermission = await prisma.rolePermission.findUnique({
905
- * where: {
906
- * // ... provide filter here
907
- * }
908
- * })
909
- */
910
- findUnique<T extends RolePermissionFindUniqueArgs>(args: Prisma.SelectSubset<T, RolePermissionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RolePermissionClient<runtime.Types.Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
911
-
912
- /**
913
- * Find one RolePermission that matches the filter or throw an error with `error.code='P2025'`
914
- * if no matches were found.
915
- * @param {RolePermissionFindUniqueOrThrowArgs} args - Arguments to find a RolePermission
916
- * @example
917
- * // Get one RolePermission
918
- * const rolePermission = await prisma.rolePermission.findUniqueOrThrow({
919
- * where: {
920
- * // ... provide filter here
921
- * }
922
- * })
923
- */
924
- findUniqueOrThrow<T extends RolePermissionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RolePermissionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RolePermissionClient<runtime.Types.Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
925
-
926
- /**
927
- * Find the first RolePermission that matches the filter.
928
- * Note, that providing `undefined` is treated as the value not being there.
929
- * Read more here: https://pris.ly/d/null-undefined
930
- * @param {RolePermissionFindFirstArgs} args - Arguments to find a RolePermission
931
- * @example
932
- * // Get one RolePermission
933
- * const rolePermission = await prisma.rolePermission.findFirst({
934
- * where: {
935
- * // ... provide filter here
936
- * }
937
- * })
938
- */
939
- findFirst<T extends RolePermissionFindFirstArgs>(args?: Prisma.SelectSubset<T, RolePermissionFindFirstArgs<ExtArgs>>): Prisma.Prisma__RolePermissionClient<runtime.Types.Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
940
-
941
- /**
942
- * Find the first RolePermission that matches the filter or
943
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
944
- * Note, that providing `undefined` is treated as the value not being there.
945
- * Read more here: https://pris.ly/d/null-undefined
946
- * @param {RolePermissionFindFirstOrThrowArgs} args - Arguments to find a RolePermission
947
- * @example
948
- * // Get one RolePermission
949
- * const rolePermission = await prisma.rolePermission.findFirstOrThrow({
950
- * where: {
951
- * // ... provide filter here
952
- * }
953
- * })
954
- */
955
- findFirstOrThrow<T extends RolePermissionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RolePermissionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RolePermissionClient<runtime.Types.Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
956
-
957
- /**
958
- * Find zero or more RolePermissions that matches the filter.
959
- * Note, that providing `undefined` is treated as the value not being there.
960
- * Read more here: https://pris.ly/d/null-undefined
961
- * @param {RolePermissionFindManyArgs} args - Arguments to filter and select certain fields only.
962
- * @example
963
- * // Get all RolePermissions
964
- * const rolePermissions = await prisma.rolePermission.findMany()
965
- *
966
- * // Get first 10 RolePermissions
967
- * const rolePermissions = await prisma.rolePermission.findMany({ take: 10 })
968
- *
969
- * // Only select the `id`
970
- * const rolePermissionWithIdOnly = await prisma.rolePermission.findMany({ select: { id: true } })
971
- *
972
- */
973
- findMany<T extends RolePermissionFindManyArgs>(args?: Prisma.SelectSubset<T, RolePermissionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
974
-
975
- /**
976
- * Create a RolePermission.
977
- * @param {RolePermissionCreateArgs} args - Arguments to create a RolePermission.
978
- * @example
979
- * // Create one RolePermission
980
- * const RolePermission = await prisma.rolePermission.create({
981
- * data: {
982
- * // ... data to create a RolePermission
983
- * }
984
- * })
985
- *
986
- */
987
- create<T extends RolePermissionCreateArgs>(args: Prisma.SelectSubset<T, RolePermissionCreateArgs<ExtArgs>>): Prisma.Prisma__RolePermissionClient<runtime.Types.Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
988
-
989
- /**
990
- * Create many RolePermissions.
991
- * @param {RolePermissionCreateManyArgs} args - Arguments to create many RolePermissions.
992
- * @example
993
- * // Create many RolePermissions
994
- * const rolePermission = await prisma.rolePermission.createMany({
995
- * data: [
996
- * // ... provide data here
997
- * ]
998
- * })
999
- *
1000
- */
1001
- createMany<T extends RolePermissionCreateManyArgs>(args?: Prisma.SelectSubset<T, RolePermissionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1002
-
1003
- /**
1004
- * Create many RolePermissions and returns the data saved in the database.
1005
- * @param {RolePermissionCreateManyAndReturnArgs} args - Arguments to create many RolePermissions.
1006
- * @example
1007
- * // Create many RolePermissions
1008
- * const rolePermission = await prisma.rolePermission.createManyAndReturn({
1009
- * data: [
1010
- * // ... provide data here
1011
- * ]
1012
- * })
1013
- *
1014
- * // Create many RolePermissions and only return the `id`
1015
- * const rolePermissionWithIdOnly = await prisma.rolePermission.createManyAndReturn({
1016
- * select: { id: true },
1017
- * data: [
1018
- * // ... provide data here
1019
- * ]
1020
- * })
1021
- * Note, that providing `undefined` is treated as the value not being there.
1022
- * Read more here: https://pris.ly/d/null-undefined
1023
- *
1024
- */
1025
- createManyAndReturn<T extends RolePermissionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RolePermissionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1026
-
1027
- /**
1028
- * Delete a RolePermission.
1029
- * @param {RolePermissionDeleteArgs} args - Arguments to delete one RolePermission.
1030
- * @example
1031
- * // Delete one RolePermission
1032
- * const RolePermission = await prisma.rolePermission.delete({
1033
- * where: {
1034
- * // ... filter to delete one RolePermission
1035
- * }
1036
- * })
1037
- *
1038
- */
1039
- delete<T extends RolePermissionDeleteArgs>(args: Prisma.SelectSubset<T, RolePermissionDeleteArgs<ExtArgs>>): Prisma.Prisma__RolePermissionClient<runtime.Types.Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1040
-
1041
- /**
1042
- * Update one RolePermission.
1043
- * @param {RolePermissionUpdateArgs} args - Arguments to update one RolePermission.
1044
- * @example
1045
- * // Update one RolePermission
1046
- * const rolePermission = await prisma.rolePermission.update({
1047
- * where: {
1048
- * // ... provide filter here
1049
- * },
1050
- * data: {
1051
- * // ... provide data here
1052
- * }
1053
- * })
1054
- *
1055
- */
1056
- update<T extends RolePermissionUpdateArgs>(args: Prisma.SelectSubset<T, RolePermissionUpdateArgs<ExtArgs>>): Prisma.Prisma__RolePermissionClient<runtime.Types.Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1057
-
1058
- /**
1059
- * Delete zero or more RolePermissions.
1060
- * @param {RolePermissionDeleteManyArgs} args - Arguments to filter RolePermissions to delete.
1061
- * @example
1062
- * // Delete a few RolePermissions
1063
- * const { count } = await prisma.rolePermission.deleteMany({
1064
- * where: {
1065
- * // ... provide filter here
1066
- * }
1067
- * })
1068
- *
1069
- */
1070
- deleteMany<T extends RolePermissionDeleteManyArgs>(args?: Prisma.SelectSubset<T, RolePermissionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1071
-
1072
- /**
1073
- * Update zero or more RolePermissions.
1074
- * Note, that providing `undefined` is treated as the value not being there.
1075
- * Read more here: https://pris.ly/d/null-undefined
1076
- * @param {RolePermissionUpdateManyArgs} args - Arguments to update one or more rows.
1077
- * @example
1078
- * // Update many RolePermissions
1079
- * const rolePermission = await prisma.rolePermission.updateMany({
1080
- * where: {
1081
- * // ... provide filter here
1082
- * },
1083
- * data: {
1084
- * // ... provide data here
1085
- * }
1086
- * })
1087
- *
1088
- */
1089
- updateMany<T extends RolePermissionUpdateManyArgs>(args: Prisma.SelectSubset<T, RolePermissionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1090
-
1091
- /**
1092
- * Update zero or more RolePermissions and returns the data updated in the database.
1093
- * @param {RolePermissionUpdateManyAndReturnArgs} args - Arguments to update many RolePermissions.
1094
- * @example
1095
- * // Update many RolePermissions
1096
- * const rolePermission = await prisma.rolePermission.updateManyAndReturn({
1097
- * where: {
1098
- * // ... provide filter here
1099
- * },
1100
- * data: [
1101
- * // ... provide data here
1102
- * ]
1103
- * })
1104
- *
1105
- * // Update zero or more RolePermissions and only return the `id`
1106
- * const rolePermissionWithIdOnly = await prisma.rolePermission.updateManyAndReturn({
1107
- * select: { id: true },
1108
- * where: {
1109
- * // ... provide filter here
1110
- * },
1111
- * data: [
1112
- * // ... provide data here
1113
- * ]
1114
- * })
1115
- * Note, that providing `undefined` is treated as the value not being there.
1116
- * Read more here: https://pris.ly/d/null-undefined
1117
- *
1118
- */
1119
- updateManyAndReturn<T extends RolePermissionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RolePermissionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1120
-
1121
- /**
1122
- * Create or update one RolePermission.
1123
- * @param {RolePermissionUpsertArgs} args - Arguments to update or create a RolePermission.
1124
- * @example
1125
- * // Update or create a RolePermission
1126
- * const rolePermission = await prisma.rolePermission.upsert({
1127
- * create: {
1128
- * // ... data to create a RolePermission
1129
- * },
1130
- * update: {
1131
- * // ... in case it already exists, update
1132
- * },
1133
- * where: {
1134
- * // ... the filter for the RolePermission we want to update
1135
- * }
1136
- * })
1137
- */
1138
- upsert<T extends RolePermissionUpsertArgs>(args: Prisma.SelectSubset<T, RolePermissionUpsertArgs<ExtArgs>>): Prisma.Prisma__RolePermissionClient<runtime.Types.Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1139
-
1140
-
1141
- /**
1142
- * Count the number of RolePermissions.
1143
- * Note, that providing `undefined` is treated as the value not being there.
1144
- * Read more here: https://pris.ly/d/null-undefined
1145
- * @param {RolePermissionCountArgs} args - Arguments to filter RolePermissions to count.
1146
- * @example
1147
- * // Count the number of RolePermissions
1148
- * const count = await prisma.rolePermission.count({
1149
- * where: {
1150
- * // ... the filter for the RolePermissions we want to count
1151
- * }
1152
- * })
1153
- **/
1154
- count<T extends RolePermissionCountArgs>(
1155
- args?: Prisma.Subset<T, RolePermissionCountArgs>,
1156
- ): Prisma.PrismaPromise<
1157
- T extends runtime.Types.Utils.Record<'select', any>
1158
- ? T['select'] extends true
1159
- ? number
1160
- : Prisma.GetScalarType<T['select'], RolePermissionCountAggregateOutputType>
1161
- : number
1162
- >
1163
-
1164
- /**
1165
- * Allows you to perform aggregations operations on a RolePermission.
1166
- * Note, that providing `undefined` is treated as the value not being there.
1167
- * Read more here: https://pris.ly/d/null-undefined
1168
- * @param {RolePermissionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1169
- * @example
1170
- * // Ordered by age ascending
1171
- * // Where email contains prisma.io
1172
- * // Limited to the 10 users
1173
- * const aggregations = await prisma.user.aggregate({
1174
- * _avg: {
1175
- * age: true,
1176
- * },
1177
- * where: {
1178
- * email: {
1179
- * contains: "prisma.io",
1180
- * },
1181
- * },
1182
- * orderBy: {
1183
- * age: "asc",
1184
- * },
1185
- * take: 10,
1186
- * })
1187
- **/
1188
- aggregate<T extends RolePermissionAggregateArgs>(args: Prisma.Subset<T, RolePermissionAggregateArgs>): Prisma.PrismaPromise<GetRolePermissionAggregateType<T>>
1189
-
1190
- /**
1191
- * Group by RolePermission.
1192
- * Note, that providing `undefined` is treated as the value not being there.
1193
- * Read more here: https://pris.ly/d/null-undefined
1194
- * @param {RolePermissionGroupByArgs} args - Group by arguments.
1195
- * @example
1196
- * // Group by city, order by createdAt, get count
1197
- * const result = await prisma.user.groupBy({
1198
- * by: ['city', 'createdAt'],
1199
- * orderBy: {
1200
- * createdAt: true
1201
- * },
1202
- * _count: {
1203
- * _all: true
1204
- * },
1205
- * })
1206
- *
1207
- **/
1208
- groupBy<
1209
- T extends RolePermissionGroupByArgs,
1210
- HasSelectOrTake extends Prisma.Or<
1211
- Prisma.Extends<'skip', Prisma.Keys<T>>,
1212
- Prisma.Extends<'take', Prisma.Keys<T>>
1213
- >,
1214
- OrderByArg extends Prisma.True extends HasSelectOrTake
1215
- ? { orderBy: RolePermissionGroupByArgs['orderBy'] }
1216
- : { orderBy?: RolePermissionGroupByArgs['orderBy'] },
1217
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1218
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1219
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1220
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1221
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1222
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1223
- InputErrors extends ByEmpty extends Prisma.True
1224
- ? `Error: "by" must not be empty.`
1225
- : HavingValid extends Prisma.False
1226
- ? {
1227
- [P in HavingFields]: P extends ByFields
1228
- ? never
1229
- : P extends string
1230
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1231
- : [
1232
- Error,
1233
- 'Field ',
1234
- P,
1235
- ` in "having" needs to be provided in "by"`,
1236
- ]
1237
- }[HavingFields]
1238
- : 'take' extends Prisma.Keys<T>
1239
- ? 'orderBy' extends Prisma.Keys<T>
1240
- ? ByValid extends Prisma.True
1241
- ? {}
1242
- : {
1243
- [P in OrderFields]: P extends ByFields
1244
- ? never
1245
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1246
- }[OrderFields]
1247
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1248
- : 'skip' extends Prisma.Keys<T>
1249
- ? 'orderBy' extends Prisma.Keys<T>
1250
- ? ByValid extends Prisma.True
1251
- ? {}
1252
- : {
1253
- [P in OrderFields]: P extends ByFields
1254
- ? never
1255
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1256
- }[OrderFields]
1257
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1258
- : ByValid extends Prisma.True
1259
- ? {}
1260
- : {
1261
- [P in OrderFields]: P extends ByFields
1262
- ? never
1263
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1264
- }[OrderFields]
1265
- >(args: Prisma.SubsetIntersection<T, RolePermissionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRolePermissionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1266
- /**
1267
- * Fields of the RolePermission model
1268
- */
1269
- readonly fields: RolePermissionFieldRefs;
1270
- }
1271
-
1272
- /**
1273
- * The delegate class that acts as a "Promise-like" for RolePermission.
1274
- * Why is this prefixed with `Prisma__`?
1275
- * Because we want to prevent naming conflicts as mentioned in
1276
- * https://github.com/prisma/prisma-client-js/issues/707
1277
- */
1278
- export interface Prisma__RolePermissionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1279
- readonly [Symbol.toStringTag]: "PrismaPromise"
1280
- permission<T extends Prisma.PermissionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PermissionDefaultArgs<ExtArgs>>): Prisma.Prisma__PermissionClient<runtime.Types.Result.GetResult<Prisma.$PermissionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1281
- role<T extends Prisma.RoleDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.RoleDefaultArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1282
- /**
1283
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1284
- * @param onfulfilled The callback to execute when the Promise is resolved.
1285
- * @param onrejected The callback to execute when the Promise is rejected.
1286
- * @returns A Promise for the completion of which ever callback is executed.
1287
- */
1288
- 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>
1289
- /**
1290
- * Attaches a callback for only the rejection of the Promise.
1291
- * @param onrejected The callback to execute when the Promise is rejected.
1292
- * @returns A Promise for the completion of the callback.
1293
- */
1294
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1295
- /**
1296
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1297
- * resolved value cannot be modified from the callback.
1298
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1299
- * @returns A Promise for the completion of the callback.
1300
- */
1301
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1302
- }
1303
-
1304
-
1305
-
1306
-
1307
- /**
1308
- * Fields of the RolePermission model
1309
- */
1310
- export interface RolePermissionFieldRefs {
1311
- readonly id: Prisma.FieldRef<"RolePermission", 'Int'>
1312
- readonly permission_id: Prisma.FieldRef<"RolePermission", 'Int'>
1313
- readonly role_id: Prisma.FieldRef<"RolePermission", 'Int'>
1314
- readonly created_at: Prisma.FieldRef<"RolePermission", 'DateTime'>
1315
- readonly created_by: Prisma.FieldRef<"RolePermission", 'Int'>
1316
- readonly updated_at: Prisma.FieldRef<"RolePermission", 'DateTime'>
1317
- readonly updated_by: Prisma.FieldRef<"RolePermission", 'Int'>
1318
- readonly is_deleted: Prisma.FieldRef<"RolePermission", 'Boolean'>
1319
- readonly deleted_at: Prisma.FieldRef<"RolePermission", 'DateTime'>
1320
- readonly deleted_by: Prisma.FieldRef<"RolePermission", 'Int'>
1321
- }
1322
-
1323
-
1324
- // Custom InputTypes
1325
- /**
1326
- * RolePermission findUnique
1327
- */
1328
- export type RolePermissionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1329
- /**
1330
- * Select specific fields to fetch from the RolePermission
1331
- */
1332
- select?: Prisma.RolePermissionSelect<ExtArgs> | null
1333
- /**
1334
- * Omit specific fields from the RolePermission
1335
- */
1336
- omit?: Prisma.RolePermissionOmit<ExtArgs> | null
1337
- /**
1338
- * Choose, which related nodes to fetch as well
1339
- */
1340
- include?: Prisma.RolePermissionInclude<ExtArgs> | null
1341
- /**
1342
- * Filter, which RolePermission to fetch.
1343
- */
1344
- where: Prisma.RolePermissionWhereUniqueInput
1345
- }
1346
-
1347
- /**
1348
- * RolePermission findUniqueOrThrow
1349
- */
1350
- export type RolePermissionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1351
- /**
1352
- * Select specific fields to fetch from the RolePermission
1353
- */
1354
- select?: Prisma.RolePermissionSelect<ExtArgs> | null
1355
- /**
1356
- * Omit specific fields from the RolePermission
1357
- */
1358
- omit?: Prisma.RolePermissionOmit<ExtArgs> | null
1359
- /**
1360
- * Choose, which related nodes to fetch as well
1361
- */
1362
- include?: Prisma.RolePermissionInclude<ExtArgs> | null
1363
- /**
1364
- * Filter, which RolePermission to fetch.
1365
- */
1366
- where: Prisma.RolePermissionWhereUniqueInput
1367
- }
1368
-
1369
- /**
1370
- * RolePermission findFirst
1371
- */
1372
- export type RolePermissionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1373
- /**
1374
- * Select specific fields to fetch from the RolePermission
1375
- */
1376
- select?: Prisma.RolePermissionSelect<ExtArgs> | null
1377
- /**
1378
- * Omit specific fields from the RolePermission
1379
- */
1380
- omit?: Prisma.RolePermissionOmit<ExtArgs> | null
1381
- /**
1382
- * Choose, which related nodes to fetch as well
1383
- */
1384
- include?: Prisma.RolePermissionInclude<ExtArgs> | null
1385
- /**
1386
- * Filter, which RolePermission to fetch.
1387
- */
1388
- where?: Prisma.RolePermissionWhereInput
1389
- /**
1390
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1391
- *
1392
- * Determine the order of RolePermissions to fetch.
1393
- */
1394
- orderBy?: Prisma.RolePermissionOrderByWithRelationInput | Prisma.RolePermissionOrderByWithRelationInput[]
1395
- /**
1396
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1397
- *
1398
- * Sets the position for searching for RolePermissions.
1399
- */
1400
- cursor?: Prisma.RolePermissionWhereUniqueInput
1401
- /**
1402
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1403
- *
1404
- * Take `±n` RolePermissions from the position of the cursor.
1405
- */
1406
- take?: number
1407
- /**
1408
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1409
- *
1410
- * Skip the first `n` RolePermissions.
1411
- */
1412
- skip?: number
1413
- /**
1414
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1415
- *
1416
- * Filter by unique combinations of RolePermissions.
1417
- */
1418
- distinct?: Prisma.RolePermissionScalarFieldEnum | Prisma.RolePermissionScalarFieldEnum[]
1419
- }
1420
-
1421
- /**
1422
- * RolePermission findFirstOrThrow
1423
- */
1424
- export type RolePermissionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1425
- /**
1426
- * Select specific fields to fetch from the RolePermission
1427
- */
1428
- select?: Prisma.RolePermissionSelect<ExtArgs> | null
1429
- /**
1430
- * Omit specific fields from the RolePermission
1431
- */
1432
- omit?: Prisma.RolePermissionOmit<ExtArgs> | null
1433
- /**
1434
- * Choose, which related nodes to fetch as well
1435
- */
1436
- include?: Prisma.RolePermissionInclude<ExtArgs> | null
1437
- /**
1438
- * Filter, which RolePermission to fetch.
1439
- */
1440
- where?: Prisma.RolePermissionWhereInput
1441
- /**
1442
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1443
- *
1444
- * Determine the order of RolePermissions to fetch.
1445
- */
1446
- orderBy?: Prisma.RolePermissionOrderByWithRelationInput | Prisma.RolePermissionOrderByWithRelationInput[]
1447
- /**
1448
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1449
- *
1450
- * Sets the position for searching for RolePermissions.
1451
- */
1452
- cursor?: Prisma.RolePermissionWhereUniqueInput
1453
- /**
1454
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1455
- *
1456
- * Take `±n` RolePermissions from the position of the cursor.
1457
- */
1458
- take?: number
1459
- /**
1460
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1461
- *
1462
- * Skip the first `n` RolePermissions.
1463
- */
1464
- skip?: number
1465
- /**
1466
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1467
- *
1468
- * Filter by unique combinations of RolePermissions.
1469
- */
1470
- distinct?: Prisma.RolePermissionScalarFieldEnum | Prisma.RolePermissionScalarFieldEnum[]
1471
- }
1472
-
1473
- /**
1474
- * RolePermission findMany
1475
- */
1476
- export type RolePermissionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1477
- /**
1478
- * Select specific fields to fetch from the RolePermission
1479
- */
1480
- select?: Prisma.RolePermissionSelect<ExtArgs> | null
1481
- /**
1482
- * Omit specific fields from the RolePermission
1483
- */
1484
- omit?: Prisma.RolePermissionOmit<ExtArgs> | null
1485
- /**
1486
- * Choose, which related nodes to fetch as well
1487
- */
1488
- include?: Prisma.RolePermissionInclude<ExtArgs> | null
1489
- /**
1490
- * Filter, which RolePermissions to fetch.
1491
- */
1492
- where?: Prisma.RolePermissionWhereInput
1493
- /**
1494
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1495
- *
1496
- * Determine the order of RolePermissions to fetch.
1497
- */
1498
- orderBy?: Prisma.RolePermissionOrderByWithRelationInput | Prisma.RolePermissionOrderByWithRelationInput[]
1499
- /**
1500
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1501
- *
1502
- * Sets the position for listing RolePermissions.
1503
- */
1504
- cursor?: Prisma.RolePermissionWhereUniqueInput
1505
- /**
1506
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1507
- *
1508
- * Take `±n` RolePermissions from the position of the cursor.
1509
- */
1510
- take?: number
1511
- /**
1512
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1513
- *
1514
- * Skip the first `n` RolePermissions.
1515
- */
1516
- skip?: number
1517
- /**
1518
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1519
- *
1520
- * Filter by unique combinations of RolePermissions.
1521
- */
1522
- distinct?: Prisma.RolePermissionScalarFieldEnum | Prisma.RolePermissionScalarFieldEnum[]
1523
- }
1524
-
1525
- /**
1526
- * RolePermission create
1527
- */
1528
- export type RolePermissionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1529
- /**
1530
- * Select specific fields to fetch from the RolePermission
1531
- */
1532
- select?: Prisma.RolePermissionSelect<ExtArgs> | null
1533
- /**
1534
- * Omit specific fields from the RolePermission
1535
- */
1536
- omit?: Prisma.RolePermissionOmit<ExtArgs> | null
1537
- /**
1538
- * Choose, which related nodes to fetch as well
1539
- */
1540
- include?: Prisma.RolePermissionInclude<ExtArgs> | null
1541
- /**
1542
- * The data needed to create a RolePermission.
1543
- */
1544
- data: Prisma.XOR<Prisma.RolePermissionCreateInput, Prisma.RolePermissionUncheckedCreateInput>
1545
- }
1546
-
1547
- /**
1548
- * RolePermission createMany
1549
- */
1550
- export type RolePermissionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1551
- /**
1552
- * The data used to create many RolePermissions.
1553
- */
1554
- data: Prisma.RolePermissionCreateManyInput | Prisma.RolePermissionCreateManyInput[]
1555
- skipDuplicates?: boolean
1556
- }
1557
-
1558
- /**
1559
- * RolePermission createManyAndReturn
1560
- */
1561
- export type RolePermissionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1562
- /**
1563
- * Select specific fields to fetch from the RolePermission
1564
- */
1565
- select?: Prisma.RolePermissionSelectCreateManyAndReturn<ExtArgs> | null
1566
- /**
1567
- * Omit specific fields from the RolePermission
1568
- */
1569
- omit?: Prisma.RolePermissionOmit<ExtArgs> | null
1570
- /**
1571
- * The data used to create many RolePermissions.
1572
- */
1573
- data: Prisma.RolePermissionCreateManyInput | Prisma.RolePermissionCreateManyInput[]
1574
- skipDuplicates?: boolean
1575
- /**
1576
- * Choose, which related nodes to fetch as well
1577
- */
1578
- include?: Prisma.RolePermissionIncludeCreateManyAndReturn<ExtArgs> | null
1579
- }
1580
-
1581
- /**
1582
- * RolePermission update
1583
- */
1584
- export type RolePermissionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1585
- /**
1586
- * Select specific fields to fetch from the RolePermission
1587
- */
1588
- select?: Prisma.RolePermissionSelect<ExtArgs> | null
1589
- /**
1590
- * Omit specific fields from the RolePermission
1591
- */
1592
- omit?: Prisma.RolePermissionOmit<ExtArgs> | null
1593
- /**
1594
- * Choose, which related nodes to fetch as well
1595
- */
1596
- include?: Prisma.RolePermissionInclude<ExtArgs> | null
1597
- /**
1598
- * The data needed to update a RolePermission.
1599
- */
1600
- data: Prisma.XOR<Prisma.RolePermissionUpdateInput, Prisma.RolePermissionUncheckedUpdateInput>
1601
- /**
1602
- * Choose, which RolePermission to update.
1603
- */
1604
- where: Prisma.RolePermissionWhereUniqueInput
1605
- }
1606
-
1607
- /**
1608
- * RolePermission updateMany
1609
- */
1610
- export type RolePermissionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1611
- /**
1612
- * The data used to update RolePermissions.
1613
- */
1614
- data: Prisma.XOR<Prisma.RolePermissionUpdateManyMutationInput, Prisma.RolePermissionUncheckedUpdateManyInput>
1615
- /**
1616
- * Filter which RolePermissions to update
1617
- */
1618
- where?: Prisma.RolePermissionWhereInput
1619
- /**
1620
- * Limit how many RolePermissions to update.
1621
- */
1622
- limit?: number
1623
- }
1624
-
1625
- /**
1626
- * RolePermission updateManyAndReturn
1627
- */
1628
- export type RolePermissionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1629
- /**
1630
- * Select specific fields to fetch from the RolePermission
1631
- */
1632
- select?: Prisma.RolePermissionSelectUpdateManyAndReturn<ExtArgs> | null
1633
- /**
1634
- * Omit specific fields from the RolePermission
1635
- */
1636
- omit?: Prisma.RolePermissionOmit<ExtArgs> | null
1637
- /**
1638
- * The data used to update RolePermissions.
1639
- */
1640
- data: Prisma.XOR<Prisma.RolePermissionUpdateManyMutationInput, Prisma.RolePermissionUncheckedUpdateManyInput>
1641
- /**
1642
- * Filter which RolePermissions to update
1643
- */
1644
- where?: Prisma.RolePermissionWhereInput
1645
- /**
1646
- * Limit how many RolePermissions to update.
1647
- */
1648
- limit?: number
1649
- /**
1650
- * Choose, which related nodes to fetch as well
1651
- */
1652
- include?: Prisma.RolePermissionIncludeUpdateManyAndReturn<ExtArgs> | null
1653
- }
1654
-
1655
- /**
1656
- * RolePermission upsert
1657
- */
1658
- export type RolePermissionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1659
- /**
1660
- * Select specific fields to fetch from the RolePermission
1661
- */
1662
- select?: Prisma.RolePermissionSelect<ExtArgs> | null
1663
- /**
1664
- * Omit specific fields from the RolePermission
1665
- */
1666
- omit?: Prisma.RolePermissionOmit<ExtArgs> | null
1667
- /**
1668
- * Choose, which related nodes to fetch as well
1669
- */
1670
- include?: Prisma.RolePermissionInclude<ExtArgs> | null
1671
- /**
1672
- * The filter to search for the RolePermission to update in case it exists.
1673
- */
1674
- where: Prisma.RolePermissionWhereUniqueInput
1675
- /**
1676
- * In case the RolePermission found by the `where` argument doesn't exist, create a new RolePermission with this data.
1677
- */
1678
- create: Prisma.XOR<Prisma.RolePermissionCreateInput, Prisma.RolePermissionUncheckedCreateInput>
1679
- /**
1680
- * In case the RolePermission was found with the provided `where` argument, update it with this data.
1681
- */
1682
- update: Prisma.XOR<Prisma.RolePermissionUpdateInput, Prisma.RolePermissionUncheckedUpdateInput>
1683
- }
1684
-
1685
- /**
1686
- * RolePermission delete
1687
- */
1688
- export type RolePermissionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1689
- /**
1690
- * Select specific fields to fetch from the RolePermission
1691
- */
1692
- select?: Prisma.RolePermissionSelect<ExtArgs> | null
1693
- /**
1694
- * Omit specific fields from the RolePermission
1695
- */
1696
- omit?: Prisma.RolePermissionOmit<ExtArgs> | null
1697
- /**
1698
- * Choose, which related nodes to fetch as well
1699
- */
1700
- include?: Prisma.RolePermissionInclude<ExtArgs> | null
1701
- /**
1702
- * Filter which RolePermission to delete.
1703
- */
1704
- where: Prisma.RolePermissionWhereUniqueInput
1705
- }
1706
-
1707
- /**
1708
- * RolePermission deleteMany
1709
- */
1710
- export type RolePermissionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1711
- /**
1712
- * Filter which RolePermissions to delete
1713
- */
1714
- where?: Prisma.RolePermissionWhereInput
1715
- /**
1716
- * Limit how many RolePermissions to delete.
1717
- */
1718
- limit?: number
1719
- }
1720
-
1721
- /**
1722
- * RolePermission without action
1723
- */
1724
- export type RolePermissionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1725
- /**
1726
- * Select specific fields to fetch from the RolePermission
1727
- */
1728
- select?: Prisma.RolePermissionSelect<ExtArgs> | null
1729
- /**
1730
- * Omit specific fields from the RolePermission
1731
- */
1732
- omit?: Prisma.RolePermissionOmit<ExtArgs> | null
1733
- /**
1734
- * Choose, which related nodes to fetch as well
1735
- */
1736
- include?: Prisma.RolePermissionInclude<ExtArgs> | null
1737
- }