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