@triskcraft/db 0.1.0

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/README.md +45 -0
  2. package/dist/generated/browser.d.ts +110 -0
  3. package/dist/generated/browser.d.ts.map +1 -0
  4. package/dist/generated/browser.js +18 -0
  5. package/dist/generated/browser.js.map +1 -0
  6. package/dist/generated/client.d.ts +129 -0
  7. package/dist/generated/client.d.ts.map +1 -0
  8. package/dist/generated/client.js +35 -0
  9. package/dist/generated/client.js.map +1 -0
  10. package/dist/generated/commonInputTypes.d.ts +501 -0
  11. package/dist/generated/commonInputTypes.d.ts.map +1 -0
  12. package/dist/generated/commonInputTypes.js +11 -0
  13. package/dist/generated/commonInputTypes.js.map +1 -0
  14. package/dist/generated/enums.d.ts +19 -0
  15. package/dist/generated/enums.d.ts.map +1 -0
  16. package/dist/generated/enums.js +25 -0
  17. package/dist/generated/enums.js.map +1 -0
  18. package/dist/generated/internal/class.d.ts +363 -0
  19. package/dist/generated/internal/class.d.ts.map +1 -0
  20. package/dist/generated/internal/class.js +52 -0
  21. package/dist/generated/internal/class.js.map +1 -0
  22. package/dist/generated/internal/prismaNamespace.d.ts +2282 -0
  23. package/dist/generated/internal/prismaNamespace.d.ts.map +1 -0
  24. package/dist/generated/internal/prismaNamespace.js +262 -0
  25. package/dist/generated/internal/prismaNamespace.js.map +1 -0
  26. package/dist/generated/internal/prismaNamespaceBrowser.d.ts +243 -0
  27. package/dist/generated/internal/prismaNamespaceBrowser.d.ts.map +1 -0
  28. package/dist/generated/internal/prismaNamespaceBrowser.js +233 -0
  29. package/dist/generated/internal/prismaNamespaceBrowser.js.map +1 -0
  30. package/dist/generated/models/AuthorizationCode.d.ts +1445 -0
  31. package/dist/generated/models/AuthorizationCode.d.ts.map +1 -0
  32. package/dist/generated/models/AuthorizationCode.js +2 -0
  33. package/dist/generated/models/AuthorizationCode.js.map +1 -0
  34. package/dist/generated/models/Client.d.ts +1301 -0
  35. package/dist/generated/models/Client.d.ts.map +1 -0
  36. package/dist/generated/models/Client.js +2 -0
  37. package/dist/generated/models/Client.js.map +1 -0
  38. package/dist/generated/models/DiscordUser.d.ts +1335 -0
  39. package/dist/generated/models/DiscordUser.d.ts.map +1 -0
  40. package/dist/generated/models/DiscordUser.js +2 -0
  41. package/dist/generated/models/DiscordUser.js.map +1 -0
  42. package/dist/generated/models/InactivityPeriod.d.ts +1255 -0
  43. package/dist/generated/models/InactivityPeriod.d.ts.map +1 -0
  44. package/dist/generated/models/InactivityPeriod.js +2 -0
  45. package/dist/generated/models/InactivityPeriod.js.map +1 -0
  46. package/dist/generated/models/LinkCode.d.ts +1100 -0
  47. package/dist/generated/models/LinkCode.d.ts.map +1 -0
  48. package/dist/generated/models/LinkCode.js +2 -0
  49. package/dist/generated/models/LinkCode.js.map +1 -0
  50. package/dist/generated/models/LinkedMinecraftRole.d.ts +1162 -0
  51. package/dist/generated/models/LinkedMinecraftRole.d.ts.map +1 -0
  52. package/dist/generated/models/LinkedMinecraftRole.js +2 -0
  53. package/dist/generated/models/LinkedMinecraftRole.js.map +1 -0
  54. package/dist/generated/models/LinkedRole.d.ts +1162 -0
  55. package/dist/generated/models/LinkedRole.d.ts.map +1 -0
  56. package/dist/generated/models/LinkedRole.js +2 -0
  57. package/dist/generated/models/LinkedRole.js.map +1 -0
  58. package/dist/generated/models/Media.d.ts +1146 -0
  59. package/dist/generated/models/Media.d.ts.map +1 -0
  60. package/dist/generated/models/Media.js +2 -0
  61. package/dist/generated/models/Media.js.map +1 -0
  62. package/dist/generated/models/MinecraftRole.d.ts +1064 -0
  63. package/dist/generated/models/MinecraftRole.d.ts.map +1 -0
  64. package/dist/generated/models/MinecraftRole.js +2 -0
  65. package/dist/generated/models/MinecraftRole.js.map +1 -0
  66. package/dist/generated/models/Player.d.ts +1458 -0
  67. package/dist/generated/models/Player.d.ts.map +1 -0
  68. package/dist/generated/models/Player.js +2 -0
  69. package/dist/generated/models/Player.js.map +1 -0
  70. package/dist/generated/models/Post.d.ts +1534 -0
  71. package/dist/generated/models/Post.d.ts.map +1 -0
  72. package/dist/generated/models/Post.js +2 -0
  73. package/dist/generated/models/Post.js.map +1 -0
  74. package/dist/generated/models/PostBlockMedia.d.ts +1243 -0
  75. package/dist/generated/models/PostBlockMedia.d.ts.map +1 -0
  76. package/dist/generated/models/PostBlockMedia.js +2 -0
  77. package/dist/generated/models/PostBlockMedia.js.map +1 -0
  78. package/dist/generated/models/PostBlocks.d.ts +1506 -0
  79. package/dist/generated/models/PostBlocks.d.ts.map +1 -0
  80. package/dist/generated/models/PostBlocks.js +2 -0
  81. package/dist/generated/models/PostBlocks.js.map +1 -0
  82. package/dist/generated/models/PostMedia.d.ts +1497 -0
  83. package/dist/generated/models/PostMedia.d.ts.map +1 -0
  84. package/dist/generated/models/PostMedia.js +2 -0
  85. package/dist/generated/models/PostMedia.js.map +1 -0
  86. package/dist/generated/models/Role.d.ts +1144 -0
  87. package/dist/generated/models/Role.d.ts.map +1 -0
  88. package/dist/generated/models/Role.js +2 -0
  89. package/dist/generated/models/Role.js.map +1 -0
  90. package/dist/generated/models/RoleStatistic.d.ts +1077 -0
  91. package/dist/generated/models/RoleStatistic.d.ts.map +1 -0
  92. package/dist/generated/models/RoleStatistic.js +2 -0
  93. package/dist/generated/models/RoleStatistic.js.map +1 -0
  94. package/dist/generated/models/Session.d.ts +1366 -0
  95. package/dist/generated/models/Session.d.ts.map +1 -0
  96. package/dist/generated/models/Session.js +2 -0
  97. package/dist/generated/models/Session.js.map +1 -0
  98. package/dist/generated/models/State.d.ts +970 -0
  99. package/dist/generated/models/State.d.ts.map +1 -0
  100. package/dist/generated/models/State.js +2 -0
  101. package/dist/generated/models/State.js.map +1 -0
  102. package/dist/generated/models/TrackedRole.d.ts +947 -0
  103. package/dist/generated/models/TrackedRole.d.ts.map +1 -0
  104. package/dist/generated/models/TrackedRole.js +2 -0
  105. package/dist/generated/models/TrackedRole.js.map +1 -0
  106. package/dist/generated/models/User.d.ts +1842 -0
  107. package/dist/generated/models/User.d.ts.map +1 -0
  108. package/dist/generated/models/User.js +2 -0
  109. package/dist/generated/models/User.js.map +1 -0
  110. package/dist/generated/models/WebhookToken.d.ts +1219 -0
  111. package/dist/generated/models/WebhookToken.d.ts.map +1 -0
  112. package/dist/generated/models/WebhookToken.js +2 -0
  113. package/dist/generated/models/WebhookToken.js.map +1 -0
  114. package/dist/generated/models.d.ts +23 -0
  115. package/dist/generated/models.d.ts.map +1 -0
  116. package/dist/generated/models.js +2 -0
  117. package/dist/generated/models.js.map +1 -0
  118. package/dist/index.d.ts +6 -0
  119. package/dist/index.d.ts.map +1 -0
  120. package/dist/index.js +15 -0
  121. package/dist/index.js.map +1 -0
  122. package/package.json +50 -0
  123. package/prisma/migrations/20251231000230_init/migration.sql +156 -0
  124. package/prisma/migrations/20251231011118_add_rank/migration.sql +2 -0
  125. package/prisma/migrations/20251231014040_discord_code/migration.sql +2 -0
  126. package/prisma/migrations/20260107232913_webhook_tokens/migration.sql +13 -0
  127. package/prisma/migrations/20260108014222_token_name/migration.sql +8 -0
  128. package/prisma/migrations/20260120042444_states/migration.sql +13 -0
  129. package/prisma/migrations/20260120052250_at/migration.sql +10 -0
  130. package/prisma/migrations/20260120061112_uq_token/migration.sql +8 -0
  131. package/prisma/migrations/20260121013517_uq_nick/migration.sql +8 -0
  132. package/prisma/migrations/20260125034645_mc_rank/migration.sql +2 -0
  133. package/prisma/migrations/20260202222436_remove_rank_from_discord/migration.sql +8 -0
  134. package/prisma/migrations/20260202234919_discord_user_username/migration.sql +2 -0
  135. package/prisma/migrations/20260202235832_uq_discord_username/migration.sql +12 -0
  136. package/prisma/migrations/20260301230127_blog/migration.sql +45 -0
  137. package/prisma/migrations/20260308062159_player_status/migration.sql +5 -0
  138. package/prisma/migrations/20260314152500_last_seen/migration.sql +2 -0
  139. package/prisma/migrations/20260430073735_oauth_prepare/migration.sql +102 -0
  140. package/prisma/migrations/20260603052836_scopes/migration.sql +11 -0
  141. package/prisma/migrations/20260603055719_scopes_sesion/migration.sql +2 -0
  142. package/prisma/migrations/20260603201228_user_roles/migration.sql +38 -0
  143. package/prisma/migrations/20260608060633_blog_media/migration.sql +61 -0
  144. package/prisma/migrations/20260612000040_prepare_post_users/migration.sql +5 -0
  145. package/prisma/migrations/20260612165923_prepare_webhook_user/migration.sql +53 -0
  146. package/prisma/migrations/20260612210328_remove_webhook_discord_user/migration.sql +19 -0
  147. package/prisma/migrations/migration_lock.toml +3 -0
  148. package/prisma/schema.prisma +325 -0
@@ -0,0 +1,1255 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.ts";
3
+ /**
4
+ * Model InactivityPeriod
5
+ * Periodo de inactividad declarado por un usuario de Discord.
6
+ */
7
+ export type InactivityPeriodModel = runtime.Types.Result.DefaultSelection<Prisma.$InactivityPeriodPayload>;
8
+ export type AggregateInactivityPeriod = {
9
+ _count: InactivityPeriodCountAggregateOutputType | null;
10
+ _min: InactivityPeriodMinAggregateOutputType | null;
11
+ _max: InactivityPeriodMaxAggregateOutputType | null;
12
+ };
13
+ export type InactivityPeriodMinAggregateOutputType = {
14
+ user_id: string | null;
15
+ guild_id: string | null;
16
+ role_snapshot: string | null;
17
+ started_at: Date | null;
18
+ ends_at: Date | null;
19
+ source: string | null;
20
+ notified: boolean | null;
21
+ };
22
+ export type InactivityPeriodMaxAggregateOutputType = {
23
+ user_id: string | null;
24
+ guild_id: string | null;
25
+ role_snapshot: string | null;
26
+ started_at: Date | null;
27
+ ends_at: Date | null;
28
+ source: string | null;
29
+ notified: boolean | null;
30
+ };
31
+ export type InactivityPeriodCountAggregateOutputType = {
32
+ user_id: number;
33
+ guild_id: number;
34
+ role_snapshot: number;
35
+ started_at: number;
36
+ ends_at: number;
37
+ source: number;
38
+ notified: number;
39
+ _all: number;
40
+ };
41
+ export type InactivityPeriodMinAggregateInputType = {
42
+ user_id?: true;
43
+ guild_id?: true;
44
+ role_snapshot?: true;
45
+ started_at?: true;
46
+ ends_at?: true;
47
+ source?: true;
48
+ notified?: true;
49
+ };
50
+ export type InactivityPeriodMaxAggregateInputType = {
51
+ user_id?: true;
52
+ guild_id?: true;
53
+ role_snapshot?: true;
54
+ started_at?: true;
55
+ ends_at?: true;
56
+ source?: true;
57
+ notified?: true;
58
+ };
59
+ export type InactivityPeriodCountAggregateInputType = {
60
+ user_id?: true;
61
+ guild_id?: true;
62
+ role_snapshot?: true;
63
+ started_at?: true;
64
+ ends_at?: true;
65
+ source?: true;
66
+ notified?: true;
67
+ _all?: true;
68
+ };
69
+ export type InactivityPeriodAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
70
+ /**
71
+ * Filter which InactivityPeriod to aggregate.
72
+ */
73
+ where?: Prisma.InactivityPeriodWhereInput;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
76
+ *
77
+ * Determine the order of InactivityPeriods to fetch.
78
+ */
79
+ orderBy?: Prisma.InactivityPeriodOrderByWithRelationInput | Prisma.InactivityPeriodOrderByWithRelationInput[];
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
82
+ *
83
+ * Sets the start position
84
+ */
85
+ cursor?: Prisma.InactivityPeriodWhereUniqueInput;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88
+ *
89
+ * Take `±n` InactivityPeriods from the position of the cursor.
90
+ */
91
+ take?: number;
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
94
+ *
95
+ * Skip the first `n` InactivityPeriods.
96
+ */
97
+ skip?: number;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
100
+ *
101
+ * Count returned InactivityPeriods
102
+ **/
103
+ _count?: true | InactivityPeriodCountAggregateInputType;
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
106
+ *
107
+ * Select which fields to find the minimum value
108
+ **/
109
+ _min?: InactivityPeriodMinAggregateInputType;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
+ *
113
+ * Select which fields to find the maximum value
114
+ **/
115
+ _max?: InactivityPeriodMaxAggregateInputType;
116
+ };
117
+ export type GetInactivityPeriodAggregateType<T extends InactivityPeriodAggregateArgs> = {
118
+ [P in keyof T & keyof AggregateInactivityPeriod]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateInactivityPeriod[P]> : Prisma.GetScalarType<T[P], AggregateInactivityPeriod[P]>;
119
+ };
120
+ export type InactivityPeriodGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
121
+ where?: Prisma.InactivityPeriodWhereInput;
122
+ orderBy?: Prisma.InactivityPeriodOrderByWithAggregationInput | Prisma.InactivityPeriodOrderByWithAggregationInput[];
123
+ by: Prisma.InactivityPeriodScalarFieldEnum[] | Prisma.InactivityPeriodScalarFieldEnum;
124
+ having?: Prisma.InactivityPeriodScalarWhereWithAggregatesInput;
125
+ take?: number;
126
+ skip?: number;
127
+ _count?: InactivityPeriodCountAggregateInputType | true;
128
+ _min?: InactivityPeriodMinAggregateInputType;
129
+ _max?: InactivityPeriodMaxAggregateInputType;
130
+ };
131
+ export type InactivityPeriodGroupByOutputType = {
132
+ user_id: string;
133
+ guild_id: string;
134
+ role_snapshot: string;
135
+ started_at: Date;
136
+ ends_at: Date;
137
+ source: string;
138
+ notified: boolean;
139
+ _count: InactivityPeriodCountAggregateOutputType | null;
140
+ _min: InactivityPeriodMinAggregateOutputType | null;
141
+ _max: InactivityPeriodMaxAggregateOutputType | null;
142
+ };
143
+ export type GetInactivityPeriodGroupByPayload<T extends InactivityPeriodGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<InactivityPeriodGroupByOutputType, T['by']> & {
144
+ [P in ((keyof T) & (keyof InactivityPeriodGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], InactivityPeriodGroupByOutputType[P]> : Prisma.GetScalarType<T[P], InactivityPeriodGroupByOutputType[P]>;
145
+ }>>;
146
+ export type InactivityPeriodWhereInput = {
147
+ AND?: Prisma.InactivityPeriodWhereInput | Prisma.InactivityPeriodWhereInput[];
148
+ OR?: Prisma.InactivityPeriodWhereInput[];
149
+ NOT?: Prisma.InactivityPeriodWhereInput | Prisma.InactivityPeriodWhereInput[];
150
+ user_id?: Prisma.StringFilter<"InactivityPeriod"> | string;
151
+ guild_id?: Prisma.StringFilter<"InactivityPeriod"> | string;
152
+ role_snapshot?: Prisma.StringFilter<"InactivityPeriod"> | string;
153
+ started_at?: Prisma.DateTimeFilter<"InactivityPeriod"> | Date | string;
154
+ ends_at?: Prisma.DateTimeFilter<"InactivityPeriod"> | Date | string;
155
+ source?: Prisma.StringFilter<"InactivityPeriod"> | string;
156
+ notified?: Prisma.BoolFilter<"InactivityPeriod"> | boolean;
157
+ discord_user?: Prisma.XOR<Prisma.DiscordUserScalarRelationFilter, Prisma.DiscordUserWhereInput>;
158
+ };
159
+ export type InactivityPeriodOrderByWithRelationInput = {
160
+ user_id?: Prisma.SortOrder;
161
+ guild_id?: Prisma.SortOrder;
162
+ role_snapshot?: Prisma.SortOrder;
163
+ started_at?: Prisma.SortOrder;
164
+ ends_at?: Prisma.SortOrder;
165
+ source?: Prisma.SortOrder;
166
+ notified?: Prisma.SortOrder;
167
+ discord_user?: Prisma.DiscordUserOrderByWithRelationInput;
168
+ };
169
+ export type InactivityPeriodWhereUniqueInput = Prisma.AtLeast<{
170
+ user_id?: string;
171
+ AND?: Prisma.InactivityPeriodWhereInput | Prisma.InactivityPeriodWhereInput[];
172
+ OR?: Prisma.InactivityPeriodWhereInput[];
173
+ NOT?: Prisma.InactivityPeriodWhereInput | Prisma.InactivityPeriodWhereInput[];
174
+ guild_id?: Prisma.StringFilter<"InactivityPeriod"> | string;
175
+ role_snapshot?: Prisma.StringFilter<"InactivityPeriod"> | string;
176
+ started_at?: Prisma.DateTimeFilter<"InactivityPeriod"> | Date | string;
177
+ ends_at?: Prisma.DateTimeFilter<"InactivityPeriod"> | Date | string;
178
+ source?: Prisma.StringFilter<"InactivityPeriod"> | string;
179
+ notified?: Prisma.BoolFilter<"InactivityPeriod"> | boolean;
180
+ discord_user?: Prisma.XOR<Prisma.DiscordUserScalarRelationFilter, Prisma.DiscordUserWhereInput>;
181
+ }, "user_id">;
182
+ export type InactivityPeriodOrderByWithAggregationInput = {
183
+ user_id?: Prisma.SortOrder;
184
+ guild_id?: Prisma.SortOrder;
185
+ role_snapshot?: Prisma.SortOrder;
186
+ started_at?: Prisma.SortOrder;
187
+ ends_at?: Prisma.SortOrder;
188
+ source?: Prisma.SortOrder;
189
+ notified?: Prisma.SortOrder;
190
+ _count?: Prisma.InactivityPeriodCountOrderByAggregateInput;
191
+ _max?: Prisma.InactivityPeriodMaxOrderByAggregateInput;
192
+ _min?: Prisma.InactivityPeriodMinOrderByAggregateInput;
193
+ };
194
+ export type InactivityPeriodScalarWhereWithAggregatesInput = {
195
+ AND?: Prisma.InactivityPeriodScalarWhereWithAggregatesInput | Prisma.InactivityPeriodScalarWhereWithAggregatesInput[];
196
+ OR?: Prisma.InactivityPeriodScalarWhereWithAggregatesInput[];
197
+ NOT?: Prisma.InactivityPeriodScalarWhereWithAggregatesInput | Prisma.InactivityPeriodScalarWhereWithAggregatesInput[];
198
+ user_id?: Prisma.StringWithAggregatesFilter<"InactivityPeriod"> | string;
199
+ guild_id?: Prisma.StringWithAggregatesFilter<"InactivityPeriod"> | string;
200
+ role_snapshot?: Prisma.StringWithAggregatesFilter<"InactivityPeriod"> | string;
201
+ started_at?: Prisma.DateTimeWithAggregatesFilter<"InactivityPeriod"> | Date | string;
202
+ ends_at?: Prisma.DateTimeWithAggregatesFilter<"InactivityPeriod"> | Date | string;
203
+ source?: Prisma.StringWithAggregatesFilter<"InactivityPeriod"> | string;
204
+ notified?: Prisma.BoolWithAggregatesFilter<"InactivityPeriod"> | boolean;
205
+ };
206
+ export type InactivityPeriodCreateInput = {
207
+ guild_id: string;
208
+ role_snapshot: string;
209
+ started_at?: Date | string;
210
+ ends_at: Date | string;
211
+ source: string;
212
+ notified?: boolean;
213
+ discord_user: Prisma.DiscordUserCreateNestedOneWithoutInactivity_periodsInput;
214
+ };
215
+ export type InactivityPeriodUncheckedCreateInput = {
216
+ user_id: string;
217
+ guild_id: string;
218
+ role_snapshot: string;
219
+ started_at?: Date | string;
220
+ ends_at: Date | string;
221
+ source: string;
222
+ notified?: boolean;
223
+ };
224
+ export type InactivityPeriodUpdateInput = {
225
+ guild_id?: Prisma.StringFieldUpdateOperationsInput | string;
226
+ role_snapshot?: Prisma.StringFieldUpdateOperationsInput | string;
227
+ started_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
228
+ ends_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
229
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
230
+ notified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
231
+ discord_user?: Prisma.DiscordUserUpdateOneRequiredWithoutInactivity_periodsNestedInput;
232
+ };
233
+ export type InactivityPeriodUncheckedUpdateInput = {
234
+ user_id?: Prisma.StringFieldUpdateOperationsInput | string;
235
+ guild_id?: Prisma.StringFieldUpdateOperationsInput | string;
236
+ role_snapshot?: Prisma.StringFieldUpdateOperationsInput | string;
237
+ started_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
238
+ ends_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
239
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
240
+ notified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
241
+ };
242
+ export type InactivityPeriodCreateManyInput = {
243
+ user_id: string;
244
+ guild_id: string;
245
+ role_snapshot: string;
246
+ started_at?: Date | string;
247
+ ends_at: Date | string;
248
+ source: string;
249
+ notified?: boolean;
250
+ };
251
+ export type InactivityPeriodUpdateManyMutationInput = {
252
+ guild_id?: Prisma.StringFieldUpdateOperationsInput | string;
253
+ role_snapshot?: Prisma.StringFieldUpdateOperationsInput | string;
254
+ started_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
255
+ ends_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
256
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
257
+ notified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
258
+ };
259
+ export type InactivityPeriodUncheckedUpdateManyInput = {
260
+ user_id?: Prisma.StringFieldUpdateOperationsInput | string;
261
+ guild_id?: Prisma.StringFieldUpdateOperationsInput | string;
262
+ role_snapshot?: Prisma.StringFieldUpdateOperationsInput | string;
263
+ started_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
264
+ ends_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
265
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
266
+ notified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
267
+ };
268
+ export type InactivityPeriodCountOrderByAggregateInput = {
269
+ user_id?: Prisma.SortOrder;
270
+ guild_id?: Prisma.SortOrder;
271
+ role_snapshot?: Prisma.SortOrder;
272
+ started_at?: Prisma.SortOrder;
273
+ ends_at?: Prisma.SortOrder;
274
+ source?: Prisma.SortOrder;
275
+ notified?: Prisma.SortOrder;
276
+ };
277
+ export type InactivityPeriodMaxOrderByAggregateInput = {
278
+ user_id?: Prisma.SortOrder;
279
+ guild_id?: Prisma.SortOrder;
280
+ role_snapshot?: Prisma.SortOrder;
281
+ started_at?: Prisma.SortOrder;
282
+ ends_at?: Prisma.SortOrder;
283
+ source?: Prisma.SortOrder;
284
+ notified?: Prisma.SortOrder;
285
+ };
286
+ export type InactivityPeriodMinOrderByAggregateInput = {
287
+ user_id?: Prisma.SortOrder;
288
+ guild_id?: Prisma.SortOrder;
289
+ role_snapshot?: Prisma.SortOrder;
290
+ started_at?: Prisma.SortOrder;
291
+ ends_at?: Prisma.SortOrder;
292
+ source?: Prisma.SortOrder;
293
+ notified?: Prisma.SortOrder;
294
+ };
295
+ export type InactivityPeriodListRelationFilter = {
296
+ every?: Prisma.InactivityPeriodWhereInput;
297
+ some?: Prisma.InactivityPeriodWhereInput;
298
+ none?: Prisma.InactivityPeriodWhereInput;
299
+ };
300
+ export type InactivityPeriodOrderByRelationAggregateInput = {
301
+ _count?: Prisma.SortOrder;
302
+ };
303
+ export type StringFieldUpdateOperationsInput = {
304
+ set?: string;
305
+ };
306
+ export type DateTimeFieldUpdateOperationsInput = {
307
+ set?: Date | string;
308
+ };
309
+ export type BoolFieldUpdateOperationsInput = {
310
+ set?: boolean;
311
+ };
312
+ export type InactivityPeriodCreateNestedManyWithoutDiscord_userInput = {
313
+ create?: Prisma.XOR<Prisma.InactivityPeriodCreateWithoutDiscord_userInput, Prisma.InactivityPeriodUncheckedCreateWithoutDiscord_userInput> | Prisma.InactivityPeriodCreateWithoutDiscord_userInput[] | Prisma.InactivityPeriodUncheckedCreateWithoutDiscord_userInput[];
314
+ connectOrCreate?: Prisma.InactivityPeriodCreateOrConnectWithoutDiscord_userInput | Prisma.InactivityPeriodCreateOrConnectWithoutDiscord_userInput[];
315
+ createMany?: Prisma.InactivityPeriodCreateManyDiscord_userInputEnvelope;
316
+ connect?: Prisma.InactivityPeriodWhereUniqueInput | Prisma.InactivityPeriodWhereUniqueInput[];
317
+ };
318
+ export type InactivityPeriodUncheckedCreateNestedManyWithoutDiscord_userInput = {
319
+ create?: Prisma.XOR<Prisma.InactivityPeriodCreateWithoutDiscord_userInput, Prisma.InactivityPeriodUncheckedCreateWithoutDiscord_userInput> | Prisma.InactivityPeriodCreateWithoutDiscord_userInput[] | Prisma.InactivityPeriodUncheckedCreateWithoutDiscord_userInput[];
320
+ connectOrCreate?: Prisma.InactivityPeriodCreateOrConnectWithoutDiscord_userInput | Prisma.InactivityPeriodCreateOrConnectWithoutDiscord_userInput[];
321
+ createMany?: Prisma.InactivityPeriodCreateManyDiscord_userInputEnvelope;
322
+ connect?: Prisma.InactivityPeriodWhereUniqueInput | Prisma.InactivityPeriodWhereUniqueInput[];
323
+ };
324
+ export type InactivityPeriodUpdateManyWithoutDiscord_userNestedInput = {
325
+ create?: Prisma.XOR<Prisma.InactivityPeriodCreateWithoutDiscord_userInput, Prisma.InactivityPeriodUncheckedCreateWithoutDiscord_userInput> | Prisma.InactivityPeriodCreateWithoutDiscord_userInput[] | Prisma.InactivityPeriodUncheckedCreateWithoutDiscord_userInput[];
326
+ connectOrCreate?: Prisma.InactivityPeriodCreateOrConnectWithoutDiscord_userInput | Prisma.InactivityPeriodCreateOrConnectWithoutDiscord_userInput[];
327
+ upsert?: Prisma.InactivityPeriodUpsertWithWhereUniqueWithoutDiscord_userInput | Prisma.InactivityPeriodUpsertWithWhereUniqueWithoutDiscord_userInput[];
328
+ createMany?: Prisma.InactivityPeriodCreateManyDiscord_userInputEnvelope;
329
+ set?: Prisma.InactivityPeriodWhereUniqueInput | Prisma.InactivityPeriodWhereUniqueInput[];
330
+ disconnect?: Prisma.InactivityPeriodWhereUniqueInput | Prisma.InactivityPeriodWhereUniqueInput[];
331
+ delete?: Prisma.InactivityPeriodWhereUniqueInput | Prisma.InactivityPeriodWhereUniqueInput[];
332
+ connect?: Prisma.InactivityPeriodWhereUniqueInput | Prisma.InactivityPeriodWhereUniqueInput[];
333
+ update?: Prisma.InactivityPeriodUpdateWithWhereUniqueWithoutDiscord_userInput | Prisma.InactivityPeriodUpdateWithWhereUniqueWithoutDiscord_userInput[];
334
+ updateMany?: Prisma.InactivityPeriodUpdateManyWithWhereWithoutDiscord_userInput | Prisma.InactivityPeriodUpdateManyWithWhereWithoutDiscord_userInput[];
335
+ deleteMany?: Prisma.InactivityPeriodScalarWhereInput | Prisma.InactivityPeriodScalarWhereInput[];
336
+ };
337
+ export type InactivityPeriodUncheckedUpdateManyWithoutDiscord_userNestedInput = {
338
+ create?: Prisma.XOR<Prisma.InactivityPeriodCreateWithoutDiscord_userInput, Prisma.InactivityPeriodUncheckedCreateWithoutDiscord_userInput> | Prisma.InactivityPeriodCreateWithoutDiscord_userInput[] | Prisma.InactivityPeriodUncheckedCreateWithoutDiscord_userInput[];
339
+ connectOrCreate?: Prisma.InactivityPeriodCreateOrConnectWithoutDiscord_userInput | Prisma.InactivityPeriodCreateOrConnectWithoutDiscord_userInput[];
340
+ upsert?: Prisma.InactivityPeriodUpsertWithWhereUniqueWithoutDiscord_userInput | Prisma.InactivityPeriodUpsertWithWhereUniqueWithoutDiscord_userInput[];
341
+ createMany?: Prisma.InactivityPeriodCreateManyDiscord_userInputEnvelope;
342
+ set?: Prisma.InactivityPeriodWhereUniqueInput | Prisma.InactivityPeriodWhereUniqueInput[];
343
+ disconnect?: Prisma.InactivityPeriodWhereUniqueInput | Prisma.InactivityPeriodWhereUniqueInput[];
344
+ delete?: Prisma.InactivityPeriodWhereUniqueInput | Prisma.InactivityPeriodWhereUniqueInput[];
345
+ connect?: Prisma.InactivityPeriodWhereUniqueInput | Prisma.InactivityPeriodWhereUniqueInput[];
346
+ update?: Prisma.InactivityPeriodUpdateWithWhereUniqueWithoutDiscord_userInput | Prisma.InactivityPeriodUpdateWithWhereUniqueWithoutDiscord_userInput[];
347
+ updateMany?: Prisma.InactivityPeriodUpdateManyWithWhereWithoutDiscord_userInput | Prisma.InactivityPeriodUpdateManyWithWhereWithoutDiscord_userInput[];
348
+ deleteMany?: Prisma.InactivityPeriodScalarWhereInput | Prisma.InactivityPeriodScalarWhereInput[];
349
+ };
350
+ export type InactivityPeriodCreateWithoutDiscord_userInput = {
351
+ guild_id: string;
352
+ role_snapshot: string;
353
+ started_at?: Date | string;
354
+ ends_at: Date | string;
355
+ source: string;
356
+ notified?: boolean;
357
+ };
358
+ export type InactivityPeriodUncheckedCreateWithoutDiscord_userInput = {
359
+ guild_id: string;
360
+ role_snapshot: string;
361
+ started_at?: Date | string;
362
+ ends_at: Date | string;
363
+ source: string;
364
+ notified?: boolean;
365
+ };
366
+ export type InactivityPeriodCreateOrConnectWithoutDiscord_userInput = {
367
+ where: Prisma.InactivityPeriodWhereUniqueInput;
368
+ create: Prisma.XOR<Prisma.InactivityPeriodCreateWithoutDiscord_userInput, Prisma.InactivityPeriodUncheckedCreateWithoutDiscord_userInput>;
369
+ };
370
+ export type InactivityPeriodCreateManyDiscord_userInputEnvelope = {
371
+ data: Prisma.InactivityPeriodCreateManyDiscord_userInput | Prisma.InactivityPeriodCreateManyDiscord_userInput[];
372
+ skipDuplicates?: boolean;
373
+ };
374
+ export type InactivityPeriodUpsertWithWhereUniqueWithoutDiscord_userInput = {
375
+ where: Prisma.InactivityPeriodWhereUniqueInput;
376
+ update: Prisma.XOR<Prisma.InactivityPeriodUpdateWithoutDiscord_userInput, Prisma.InactivityPeriodUncheckedUpdateWithoutDiscord_userInput>;
377
+ create: Prisma.XOR<Prisma.InactivityPeriodCreateWithoutDiscord_userInput, Prisma.InactivityPeriodUncheckedCreateWithoutDiscord_userInput>;
378
+ };
379
+ export type InactivityPeriodUpdateWithWhereUniqueWithoutDiscord_userInput = {
380
+ where: Prisma.InactivityPeriodWhereUniqueInput;
381
+ data: Prisma.XOR<Prisma.InactivityPeriodUpdateWithoutDiscord_userInput, Prisma.InactivityPeriodUncheckedUpdateWithoutDiscord_userInput>;
382
+ };
383
+ export type InactivityPeriodUpdateManyWithWhereWithoutDiscord_userInput = {
384
+ where: Prisma.InactivityPeriodScalarWhereInput;
385
+ data: Prisma.XOR<Prisma.InactivityPeriodUpdateManyMutationInput, Prisma.InactivityPeriodUncheckedUpdateManyWithoutDiscord_userInput>;
386
+ };
387
+ export type InactivityPeriodScalarWhereInput = {
388
+ AND?: Prisma.InactivityPeriodScalarWhereInput | Prisma.InactivityPeriodScalarWhereInput[];
389
+ OR?: Prisma.InactivityPeriodScalarWhereInput[];
390
+ NOT?: Prisma.InactivityPeriodScalarWhereInput | Prisma.InactivityPeriodScalarWhereInput[];
391
+ user_id?: Prisma.StringFilter<"InactivityPeriod"> | string;
392
+ guild_id?: Prisma.StringFilter<"InactivityPeriod"> | string;
393
+ role_snapshot?: Prisma.StringFilter<"InactivityPeriod"> | string;
394
+ started_at?: Prisma.DateTimeFilter<"InactivityPeriod"> | Date | string;
395
+ ends_at?: Prisma.DateTimeFilter<"InactivityPeriod"> | Date | string;
396
+ source?: Prisma.StringFilter<"InactivityPeriod"> | string;
397
+ notified?: Prisma.BoolFilter<"InactivityPeriod"> | boolean;
398
+ };
399
+ export type InactivityPeriodCreateManyDiscord_userInput = {
400
+ guild_id: string;
401
+ role_snapshot: string;
402
+ started_at?: Date | string;
403
+ ends_at: Date | string;
404
+ source: string;
405
+ notified?: boolean;
406
+ };
407
+ export type InactivityPeriodUpdateWithoutDiscord_userInput = {
408
+ guild_id?: Prisma.StringFieldUpdateOperationsInput | string;
409
+ role_snapshot?: Prisma.StringFieldUpdateOperationsInput | string;
410
+ started_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
411
+ ends_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
412
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
413
+ notified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
414
+ };
415
+ export type InactivityPeriodUncheckedUpdateWithoutDiscord_userInput = {
416
+ guild_id?: Prisma.StringFieldUpdateOperationsInput | string;
417
+ role_snapshot?: Prisma.StringFieldUpdateOperationsInput | string;
418
+ started_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
419
+ ends_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
420
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
421
+ notified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
422
+ };
423
+ export type InactivityPeriodUncheckedUpdateManyWithoutDiscord_userInput = {
424
+ guild_id?: Prisma.StringFieldUpdateOperationsInput | string;
425
+ role_snapshot?: Prisma.StringFieldUpdateOperationsInput | string;
426
+ started_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
427
+ ends_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
428
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
429
+ notified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
430
+ };
431
+ export type InactivityPeriodSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
432
+ user_id?: boolean;
433
+ guild_id?: boolean;
434
+ role_snapshot?: boolean;
435
+ started_at?: boolean;
436
+ ends_at?: boolean;
437
+ source?: boolean;
438
+ notified?: boolean;
439
+ discord_user?: boolean | Prisma.DiscordUserDefaultArgs<ExtArgs>;
440
+ }, ExtArgs["result"]["inactivityPeriod"]>;
441
+ export type InactivityPeriodSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
442
+ user_id?: boolean;
443
+ guild_id?: boolean;
444
+ role_snapshot?: boolean;
445
+ started_at?: boolean;
446
+ ends_at?: boolean;
447
+ source?: boolean;
448
+ notified?: boolean;
449
+ discord_user?: boolean | Prisma.DiscordUserDefaultArgs<ExtArgs>;
450
+ }, ExtArgs["result"]["inactivityPeriod"]>;
451
+ export type InactivityPeriodSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
452
+ user_id?: boolean;
453
+ guild_id?: boolean;
454
+ role_snapshot?: boolean;
455
+ started_at?: boolean;
456
+ ends_at?: boolean;
457
+ source?: boolean;
458
+ notified?: boolean;
459
+ discord_user?: boolean | Prisma.DiscordUserDefaultArgs<ExtArgs>;
460
+ }, ExtArgs["result"]["inactivityPeriod"]>;
461
+ export type InactivityPeriodSelectScalar = {
462
+ user_id?: boolean;
463
+ guild_id?: boolean;
464
+ role_snapshot?: boolean;
465
+ started_at?: boolean;
466
+ ends_at?: boolean;
467
+ source?: boolean;
468
+ notified?: boolean;
469
+ };
470
+ export type InactivityPeriodOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"user_id" | "guild_id" | "role_snapshot" | "started_at" | "ends_at" | "source" | "notified", ExtArgs["result"]["inactivityPeriod"]>;
471
+ export type InactivityPeriodInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
472
+ discord_user?: boolean | Prisma.DiscordUserDefaultArgs<ExtArgs>;
473
+ };
474
+ export type InactivityPeriodIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
475
+ discord_user?: boolean | Prisma.DiscordUserDefaultArgs<ExtArgs>;
476
+ };
477
+ export type InactivityPeriodIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
478
+ discord_user?: boolean | Prisma.DiscordUserDefaultArgs<ExtArgs>;
479
+ };
480
+ export type $InactivityPeriodPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
481
+ name: "InactivityPeriod";
482
+ objects: {
483
+ discord_user: Prisma.$DiscordUserPayload<ExtArgs>;
484
+ };
485
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
486
+ user_id: string;
487
+ guild_id: string;
488
+ role_snapshot: string;
489
+ started_at: Date;
490
+ ends_at: Date;
491
+ source: string;
492
+ notified: boolean;
493
+ }, ExtArgs["result"]["inactivityPeriod"]>;
494
+ composites: {};
495
+ };
496
+ export type InactivityPeriodGetPayload<S extends boolean | null | undefined | InactivityPeriodDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$InactivityPeriodPayload, S>;
497
+ export type InactivityPeriodCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<InactivityPeriodFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
498
+ select?: InactivityPeriodCountAggregateInputType | true;
499
+ };
500
+ export interface InactivityPeriodDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
501
+ [K: symbol]: {
502
+ types: Prisma.TypeMap<ExtArgs>['model']['InactivityPeriod'];
503
+ meta: {
504
+ name: 'InactivityPeriod';
505
+ };
506
+ };
507
+ /**
508
+ * Find zero or one InactivityPeriod that matches the filter.
509
+ * @param {InactivityPeriodFindUniqueArgs} args - Arguments to find a InactivityPeriod
510
+ * @example
511
+ * // Get one InactivityPeriod
512
+ * const inactivityPeriod = await prisma.inactivityPeriod.findUnique({
513
+ * where: {
514
+ * // ... provide filter here
515
+ * }
516
+ * })
517
+ */
518
+ findUnique<T extends InactivityPeriodFindUniqueArgs>(args: Prisma.SelectSubset<T, InactivityPeriodFindUniqueArgs<ExtArgs>>): Prisma.Prisma__InactivityPeriodClient<runtime.Types.Result.GetResult<Prisma.$InactivityPeriodPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
519
+ /**
520
+ * Find one InactivityPeriod that matches the filter or throw an error with `error.code='P2025'`
521
+ * if no matches were found.
522
+ * @param {InactivityPeriodFindUniqueOrThrowArgs} args - Arguments to find a InactivityPeriod
523
+ * @example
524
+ * // Get one InactivityPeriod
525
+ * const inactivityPeriod = await prisma.inactivityPeriod.findUniqueOrThrow({
526
+ * where: {
527
+ * // ... provide filter here
528
+ * }
529
+ * })
530
+ */
531
+ findUniqueOrThrow<T extends InactivityPeriodFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, InactivityPeriodFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__InactivityPeriodClient<runtime.Types.Result.GetResult<Prisma.$InactivityPeriodPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
532
+ /**
533
+ * Find the first InactivityPeriod that matches the filter.
534
+ * Note, that providing `undefined` is treated as the value not being there.
535
+ * Read more here: https://pris.ly/d/null-undefined
536
+ * @param {InactivityPeriodFindFirstArgs} args - Arguments to find a InactivityPeriod
537
+ * @example
538
+ * // Get one InactivityPeriod
539
+ * const inactivityPeriod = await prisma.inactivityPeriod.findFirst({
540
+ * where: {
541
+ * // ... provide filter here
542
+ * }
543
+ * })
544
+ */
545
+ findFirst<T extends InactivityPeriodFindFirstArgs>(args?: Prisma.SelectSubset<T, InactivityPeriodFindFirstArgs<ExtArgs>>): Prisma.Prisma__InactivityPeriodClient<runtime.Types.Result.GetResult<Prisma.$InactivityPeriodPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
546
+ /**
547
+ * Find the first InactivityPeriod that matches the filter or
548
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
549
+ * Note, that providing `undefined` is treated as the value not being there.
550
+ * Read more here: https://pris.ly/d/null-undefined
551
+ * @param {InactivityPeriodFindFirstOrThrowArgs} args - Arguments to find a InactivityPeriod
552
+ * @example
553
+ * // Get one InactivityPeriod
554
+ * const inactivityPeriod = await prisma.inactivityPeriod.findFirstOrThrow({
555
+ * where: {
556
+ * // ... provide filter here
557
+ * }
558
+ * })
559
+ */
560
+ findFirstOrThrow<T extends InactivityPeriodFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, InactivityPeriodFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__InactivityPeriodClient<runtime.Types.Result.GetResult<Prisma.$InactivityPeriodPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
561
+ /**
562
+ * Find zero or more InactivityPeriods that matches the filter.
563
+ * Note, that providing `undefined` is treated as the value not being there.
564
+ * Read more here: https://pris.ly/d/null-undefined
565
+ * @param {InactivityPeriodFindManyArgs} args - Arguments to filter and select certain fields only.
566
+ * @example
567
+ * // Get all InactivityPeriods
568
+ * const inactivityPeriods = await prisma.inactivityPeriod.findMany()
569
+ *
570
+ * // Get first 10 InactivityPeriods
571
+ * const inactivityPeriods = await prisma.inactivityPeriod.findMany({ take: 10 })
572
+ *
573
+ * // Only select the `user_id`
574
+ * const inactivityPeriodWithUser_idOnly = await prisma.inactivityPeriod.findMany({ select: { user_id: true } })
575
+ *
576
+ */
577
+ findMany<T extends InactivityPeriodFindManyArgs>(args?: Prisma.SelectSubset<T, InactivityPeriodFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InactivityPeriodPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
578
+ /**
579
+ * Create a InactivityPeriod.
580
+ * @param {InactivityPeriodCreateArgs} args - Arguments to create a InactivityPeriod.
581
+ * @example
582
+ * // Create one InactivityPeriod
583
+ * const InactivityPeriod = await prisma.inactivityPeriod.create({
584
+ * data: {
585
+ * // ... data to create a InactivityPeriod
586
+ * }
587
+ * })
588
+ *
589
+ */
590
+ create<T extends InactivityPeriodCreateArgs>(args: Prisma.SelectSubset<T, InactivityPeriodCreateArgs<ExtArgs>>): Prisma.Prisma__InactivityPeriodClient<runtime.Types.Result.GetResult<Prisma.$InactivityPeriodPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
591
+ /**
592
+ * Create many InactivityPeriods.
593
+ * @param {InactivityPeriodCreateManyArgs} args - Arguments to create many InactivityPeriods.
594
+ * @example
595
+ * // Create many InactivityPeriods
596
+ * const inactivityPeriod = await prisma.inactivityPeriod.createMany({
597
+ * data: [
598
+ * // ... provide data here
599
+ * ]
600
+ * })
601
+ *
602
+ */
603
+ createMany<T extends InactivityPeriodCreateManyArgs>(args?: Prisma.SelectSubset<T, InactivityPeriodCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
604
+ /**
605
+ * Create many InactivityPeriods and returns the data saved in the database.
606
+ * @param {InactivityPeriodCreateManyAndReturnArgs} args - Arguments to create many InactivityPeriods.
607
+ * @example
608
+ * // Create many InactivityPeriods
609
+ * const inactivityPeriod = await prisma.inactivityPeriod.createManyAndReturn({
610
+ * data: [
611
+ * // ... provide data here
612
+ * ]
613
+ * })
614
+ *
615
+ * // Create many InactivityPeriods and only return the `user_id`
616
+ * const inactivityPeriodWithUser_idOnly = await prisma.inactivityPeriod.createManyAndReturn({
617
+ * select: { user_id: true },
618
+ * data: [
619
+ * // ... provide data here
620
+ * ]
621
+ * })
622
+ * Note, that providing `undefined` is treated as the value not being there.
623
+ * Read more here: https://pris.ly/d/null-undefined
624
+ *
625
+ */
626
+ createManyAndReturn<T extends InactivityPeriodCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, InactivityPeriodCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InactivityPeriodPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
627
+ /**
628
+ * Delete a InactivityPeriod.
629
+ * @param {InactivityPeriodDeleteArgs} args - Arguments to delete one InactivityPeriod.
630
+ * @example
631
+ * // Delete one InactivityPeriod
632
+ * const InactivityPeriod = await prisma.inactivityPeriod.delete({
633
+ * where: {
634
+ * // ... filter to delete one InactivityPeriod
635
+ * }
636
+ * })
637
+ *
638
+ */
639
+ delete<T extends InactivityPeriodDeleteArgs>(args: Prisma.SelectSubset<T, InactivityPeriodDeleteArgs<ExtArgs>>): Prisma.Prisma__InactivityPeriodClient<runtime.Types.Result.GetResult<Prisma.$InactivityPeriodPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
640
+ /**
641
+ * Update one InactivityPeriod.
642
+ * @param {InactivityPeriodUpdateArgs} args - Arguments to update one InactivityPeriod.
643
+ * @example
644
+ * // Update one InactivityPeriod
645
+ * const inactivityPeriod = await prisma.inactivityPeriod.update({
646
+ * where: {
647
+ * // ... provide filter here
648
+ * },
649
+ * data: {
650
+ * // ... provide data here
651
+ * }
652
+ * })
653
+ *
654
+ */
655
+ update<T extends InactivityPeriodUpdateArgs>(args: Prisma.SelectSubset<T, InactivityPeriodUpdateArgs<ExtArgs>>): Prisma.Prisma__InactivityPeriodClient<runtime.Types.Result.GetResult<Prisma.$InactivityPeriodPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
656
+ /**
657
+ * Delete zero or more InactivityPeriods.
658
+ * @param {InactivityPeriodDeleteManyArgs} args - Arguments to filter InactivityPeriods to delete.
659
+ * @example
660
+ * // Delete a few InactivityPeriods
661
+ * const { count } = await prisma.inactivityPeriod.deleteMany({
662
+ * where: {
663
+ * // ... provide filter here
664
+ * }
665
+ * })
666
+ *
667
+ */
668
+ deleteMany<T extends InactivityPeriodDeleteManyArgs>(args?: Prisma.SelectSubset<T, InactivityPeriodDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
669
+ /**
670
+ * Update zero or more InactivityPeriods.
671
+ * Note, that providing `undefined` is treated as the value not being there.
672
+ * Read more here: https://pris.ly/d/null-undefined
673
+ * @param {InactivityPeriodUpdateManyArgs} args - Arguments to update one or more rows.
674
+ * @example
675
+ * // Update many InactivityPeriods
676
+ * const inactivityPeriod = await prisma.inactivityPeriod.updateMany({
677
+ * where: {
678
+ * // ... provide filter here
679
+ * },
680
+ * data: {
681
+ * // ... provide data here
682
+ * }
683
+ * })
684
+ *
685
+ */
686
+ updateMany<T extends InactivityPeriodUpdateManyArgs>(args: Prisma.SelectSubset<T, InactivityPeriodUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
687
+ /**
688
+ * Update zero or more InactivityPeriods and returns the data updated in the database.
689
+ * @param {InactivityPeriodUpdateManyAndReturnArgs} args - Arguments to update many InactivityPeriods.
690
+ * @example
691
+ * // Update many InactivityPeriods
692
+ * const inactivityPeriod = await prisma.inactivityPeriod.updateManyAndReturn({
693
+ * where: {
694
+ * // ... provide filter here
695
+ * },
696
+ * data: [
697
+ * // ... provide data here
698
+ * ]
699
+ * })
700
+ *
701
+ * // Update zero or more InactivityPeriods and only return the `user_id`
702
+ * const inactivityPeriodWithUser_idOnly = await prisma.inactivityPeriod.updateManyAndReturn({
703
+ * select: { user_id: true },
704
+ * where: {
705
+ * // ... provide filter here
706
+ * },
707
+ * data: [
708
+ * // ... provide data here
709
+ * ]
710
+ * })
711
+ * Note, that providing `undefined` is treated as the value not being there.
712
+ * Read more here: https://pris.ly/d/null-undefined
713
+ *
714
+ */
715
+ updateManyAndReturn<T extends InactivityPeriodUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, InactivityPeriodUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InactivityPeriodPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
716
+ /**
717
+ * Create or update one InactivityPeriod.
718
+ * @param {InactivityPeriodUpsertArgs} args - Arguments to update or create a InactivityPeriod.
719
+ * @example
720
+ * // Update or create a InactivityPeriod
721
+ * const inactivityPeriod = await prisma.inactivityPeriod.upsert({
722
+ * create: {
723
+ * // ... data to create a InactivityPeriod
724
+ * },
725
+ * update: {
726
+ * // ... in case it already exists, update
727
+ * },
728
+ * where: {
729
+ * // ... the filter for the InactivityPeriod we want to update
730
+ * }
731
+ * })
732
+ */
733
+ upsert<T extends InactivityPeriodUpsertArgs>(args: Prisma.SelectSubset<T, InactivityPeriodUpsertArgs<ExtArgs>>): Prisma.Prisma__InactivityPeriodClient<runtime.Types.Result.GetResult<Prisma.$InactivityPeriodPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
734
+ /**
735
+ * Count the number of InactivityPeriods.
736
+ * Note, that providing `undefined` is treated as the value not being there.
737
+ * Read more here: https://pris.ly/d/null-undefined
738
+ * @param {InactivityPeriodCountArgs} args - Arguments to filter InactivityPeriods to count.
739
+ * @example
740
+ * // Count the number of InactivityPeriods
741
+ * const count = await prisma.inactivityPeriod.count({
742
+ * where: {
743
+ * // ... the filter for the InactivityPeriods we want to count
744
+ * }
745
+ * })
746
+ **/
747
+ count<T extends InactivityPeriodCountArgs>(args?: Prisma.Subset<T, InactivityPeriodCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], InactivityPeriodCountAggregateOutputType> : number>;
748
+ /**
749
+ * Allows you to perform aggregations operations on a InactivityPeriod.
750
+ * Note, that providing `undefined` is treated as the value not being there.
751
+ * Read more here: https://pris.ly/d/null-undefined
752
+ * @param {InactivityPeriodAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
753
+ * @example
754
+ * // Ordered by age ascending
755
+ * // Where email contains prisma.io
756
+ * // Limited to the 10 users
757
+ * const aggregations = await prisma.user.aggregate({
758
+ * _avg: {
759
+ * age: true,
760
+ * },
761
+ * where: {
762
+ * email: {
763
+ * contains: "prisma.io",
764
+ * },
765
+ * },
766
+ * orderBy: {
767
+ * age: "asc",
768
+ * },
769
+ * take: 10,
770
+ * })
771
+ **/
772
+ aggregate<T extends InactivityPeriodAggregateArgs>(args: Prisma.Subset<T, InactivityPeriodAggregateArgs>): Prisma.PrismaPromise<GetInactivityPeriodAggregateType<T>>;
773
+ /**
774
+ * Group by InactivityPeriod.
775
+ * Note, that providing `undefined` is treated as the value not being there.
776
+ * Read more here: https://pris.ly/d/null-undefined
777
+ * @param {InactivityPeriodGroupByArgs} args - Group by arguments.
778
+ * @example
779
+ * // Group by city, order by createdAt, get count
780
+ * const result = await prisma.user.groupBy({
781
+ * by: ['city', 'createdAt'],
782
+ * orderBy: {
783
+ * createdAt: true
784
+ * },
785
+ * _count: {
786
+ * _all: true
787
+ * },
788
+ * })
789
+ *
790
+ **/
791
+ groupBy<T extends InactivityPeriodGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
792
+ orderBy: InactivityPeriodGroupByArgs['orderBy'];
793
+ } : {
794
+ orderBy?: InactivityPeriodGroupByArgs['orderBy'];
795
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
796
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
797
+ Error,
798
+ 'Field ',
799
+ P,
800
+ ` in "having" needs to be provided in "by"`
801
+ ];
802
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
803
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
804
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
805
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
806
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
807
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
808
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, InactivityPeriodGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInactivityPeriodGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
809
+ /**
810
+ * Fields of the InactivityPeriod model
811
+ */
812
+ readonly fields: InactivityPeriodFieldRefs;
813
+ }
814
+ /**
815
+ * The delegate class that acts as a "Promise-like" for InactivityPeriod.
816
+ * Why is this prefixed with `Prisma__`?
817
+ * Because we want to prevent naming conflicts as mentioned in
818
+ * https://github.com/prisma/prisma-client-js/issues/707
819
+ */
820
+ export interface Prisma__InactivityPeriodClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
821
+ readonly [Symbol.toStringTag]: "PrismaPromise";
822
+ discord_user<T extends Prisma.DiscordUserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DiscordUserDefaultArgs<ExtArgs>>): Prisma.Prisma__DiscordUserClient<runtime.Types.Result.GetResult<Prisma.$DiscordUserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
823
+ /**
824
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
825
+ * @param onfulfilled The callback to execute when the Promise is resolved.
826
+ * @param onrejected The callback to execute when the Promise is rejected.
827
+ * @returns A Promise for the completion of which ever callback is executed.
828
+ */
829
+ 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>;
830
+ /**
831
+ * Attaches a callback for only the rejection of the Promise.
832
+ * @param onrejected The callback to execute when the Promise is rejected.
833
+ * @returns A Promise for the completion of the callback.
834
+ */
835
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
836
+ /**
837
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
838
+ * resolved value cannot be modified from the callback.
839
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
840
+ * @returns A Promise for the completion of the callback.
841
+ */
842
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
843
+ }
844
+ /**
845
+ * Fields of the InactivityPeriod model
846
+ */
847
+ export interface InactivityPeriodFieldRefs {
848
+ readonly user_id: Prisma.FieldRef<"InactivityPeriod", 'String'>;
849
+ readonly guild_id: Prisma.FieldRef<"InactivityPeriod", 'String'>;
850
+ readonly role_snapshot: Prisma.FieldRef<"InactivityPeriod", 'String'>;
851
+ readonly started_at: Prisma.FieldRef<"InactivityPeriod", 'DateTime'>;
852
+ readonly ends_at: Prisma.FieldRef<"InactivityPeriod", 'DateTime'>;
853
+ readonly source: Prisma.FieldRef<"InactivityPeriod", 'String'>;
854
+ readonly notified: Prisma.FieldRef<"InactivityPeriod", 'Boolean'>;
855
+ }
856
+ /**
857
+ * InactivityPeriod findUnique
858
+ */
859
+ export type InactivityPeriodFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
860
+ /**
861
+ * Select specific fields to fetch from the InactivityPeriod
862
+ */
863
+ select?: Prisma.InactivityPeriodSelect<ExtArgs> | null;
864
+ /**
865
+ * Omit specific fields from the InactivityPeriod
866
+ */
867
+ omit?: Prisma.InactivityPeriodOmit<ExtArgs> | null;
868
+ /**
869
+ * Choose, which related nodes to fetch as well
870
+ */
871
+ include?: Prisma.InactivityPeriodInclude<ExtArgs> | null;
872
+ /**
873
+ * Filter, which InactivityPeriod to fetch.
874
+ */
875
+ where: Prisma.InactivityPeriodWhereUniqueInput;
876
+ };
877
+ /**
878
+ * InactivityPeriod findUniqueOrThrow
879
+ */
880
+ export type InactivityPeriodFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
881
+ /**
882
+ * Select specific fields to fetch from the InactivityPeriod
883
+ */
884
+ select?: Prisma.InactivityPeriodSelect<ExtArgs> | null;
885
+ /**
886
+ * Omit specific fields from the InactivityPeriod
887
+ */
888
+ omit?: Prisma.InactivityPeriodOmit<ExtArgs> | null;
889
+ /**
890
+ * Choose, which related nodes to fetch as well
891
+ */
892
+ include?: Prisma.InactivityPeriodInclude<ExtArgs> | null;
893
+ /**
894
+ * Filter, which InactivityPeriod to fetch.
895
+ */
896
+ where: Prisma.InactivityPeriodWhereUniqueInput;
897
+ };
898
+ /**
899
+ * InactivityPeriod findFirst
900
+ */
901
+ export type InactivityPeriodFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
902
+ /**
903
+ * Select specific fields to fetch from the InactivityPeriod
904
+ */
905
+ select?: Prisma.InactivityPeriodSelect<ExtArgs> | null;
906
+ /**
907
+ * Omit specific fields from the InactivityPeriod
908
+ */
909
+ omit?: Prisma.InactivityPeriodOmit<ExtArgs> | null;
910
+ /**
911
+ * Choose, which related nodes to fetch as well
912
+ */
913
+ include?: Prisma.InactivityPeriodInclude<ExtArgs> | null;
914
+ /**
915
+ * Filter, which InactivityPeriod to fetch.
916
+ */
917
+ where?: Prisma.InactivityPeriodWhereInput;
918
+ /**
919
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
920
+ *
921
+ * Determine the order of InactivityPeriods to fetch.
922
+ */
923
+ orderBy?: Prisma.InactivityPeriodOrderByWithRelationInput | Prisma.InactivityPeriodOrderByWithRelationInput[];
924
+ /**
925
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
926
+ *
927
+ * Sets the position for searching for InactivityPeriods.
928
+ */
929
+ cursor?: Prisma.InactivityPeriodWhereUniqueInput;
930
+ /**
931
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
932
+ *
933
+ * Take `±n` InactivityPeriods from the position of the cursor.
934
+ */
935
+ take?: number;
936
+ /**
937
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
938
+ *
939
+ * Skip the first `n` InactivityPeriods.
940
+ */
941
+ skip?: number;
942
+ /**
943
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
944
+ *
945
+ * Filter by unique combinations of InactivityPeriods.
946
+ */
947
+ distinct?: Prisma.InactivityPeriodScalarFieldEnum | Prisma.InactivityPeriodScalarFieldEnum[];
948
+ };
949
+ /**
950
+ * InactivityPeriod findFirstOrThrow
951
+ */
952
+ export type InactivityPeriodFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
953
+ /**
954
+ * Select specific fields to fetch from the InactivityPeriod
955
+ */
956
+ select?: Prisma.InactivityPeriodSelect<ExtArgs> | null;
957
+ /**
958
+ * Omit specific fields from the InactivityPeriod
959
+ */
960
+ omit?: Prisma.InactivityPeriodOmit<ExtArgs> | null;
961
+ /**
962
+ * Choose, which related nodes to fetch as well
963
+ */
964
+ include?: Prisma.InactivityPeriodInclude<ExtArgs> | null;
965
+ /**
966
+ * Filter, which InactivityPeriod to fetch.
967
+ */
968
+ where?: Prisma.InactivityPeriodWhereInput;
969
+ /**
970
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
971
+ *
972
+ * Determine the order of InactivityPeriods to fetch.
973
+ */
974
+ orderBy?: Prisma.InactivityPeriodOrderByWithRelationInput | Prisma.InactivityPeriodOrderByWithRelationInput[];
975
+ /**
976
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
977
+ *
978
+ * Sets the position for searching for InactivityPeriods.
979
+ */
980
+ cursor?: Prisma.InactivityPeriodWhereUniqueInput;
981
+ /**
982
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
983
+ *
984
+ * Take `±n` InactivityPeriods from the position of the cursor.
985
+ */
986
+ take?: number;
987
+ /**
988
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
989
+ *
990
+ * Skip the first `n` InactivityPeriods.
991
+ */
992
+ skip?: number;
993
+ /**
994
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
995
+ *
996
+ * Filter by unique combinations of InactivityPeriods.
997
+ */
998
+ distinct?: Prisma.InactivityPeriodScalarFieldEnum | Prisma.InactivityPeriodScalarFieldEnum[];
999
+ };
1000
+ /**
1001
+ * InactivityPeriod findMany
1002
+ */
1003
+ export type InactivityPeriodFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1004
+ /**
1005
+ * Select specific fields to fetch from the InactivityPeriod
1006
+ */
1007
+ select?: Prisma.InactivityPeriodSelect<ExtArgs> | null;
1008
+ /**
1009
+ * Omit specific fields from the InactivityPeriod
1010
+ */
1011
+ omit?: Prisma.InactivityPeriodOmit<ExtArgs> | null;
1012
+ /**
1013
+ * Choose, which related nodes to fetch as well
1014
+ */
1015
+ include?: Prisma.InactivityPeriodInclude<ExtArgs> | null;
1016
+ /**
1017
+ * Filter, which InactivityPeriods to fetch.
1018
+ */
1019
+ where?: Prisma.InactivityPeriodWhereInput;
1020
+ /**
1021
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1022
+ *
1023
+ * Determine the order of InactivityPeriods to fetch.
1024
+ */
1025
+ orderBy?: Prisma.InactivityPeriodOrderByWithRelationInput | Prisma.InactivityPeriodOrderByWithRelationInput[];
1026
+ /**
1027
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1028
+ *
1029
+ * Sets the position for listing InactivityPeriods.
1030
+ */
1031
+ cursor?: Prisma.InactivityPeriodWhereUniqueInput;
1032
+ /**
1033
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1034
+ *
1035
+ * Take `±n` InactivityPeriods from the position of the cursor.
1036
+ */
1037
+ take?: number;
1038
+ /**
1039
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1040
+ *
1041
+ * Skip the first `n` InactivityPeriods.
1042
+ */
1043
+ skip?: number;
1044
+ /**
1045
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1046
+ *
1047
+ * Filter by unique combinations of InactivityPeriods.
1048
+ */
1049
+ distinct?: Prisma.InactivityPeriodScalarFieldEnum | Prisma.InactivityPeriodScalarFieldEnum[];
1050
+ };
1051
+ /**
1052
+ * InactivityPeriod create
1053
+ */
1054
+ export type InactivityPeriodCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1055
+ /**
1056
+ * Select specific fields to fetch from the InactivityPeriod
1057
+ */
1058
+ select?: Prisma.InactivityPeriodSelect<ExtArgs> | null;
1059
+ /**
1060
+ * Omit specific fields from the InactivityPeriod
1061
+ */
1062
+ omit?: Prisma.InactivityPeriodOmit<ExtArgs> | null;
1063
+ /**
1064
+ * Choose, which related nodes to fetch as well
1065
+ */
1066
+ include?: Prisma.InactivityPeriodInclude<ExtArgs> | null;
1067
+ /**
1068
+ * The data needed to create a InactivityPeriod.
1069
+ */
1070
+ data: Prisma.XOR<Prisma.InactivityPeriodCreateInput, Prisma.InactivityPeriodUncheckedCreateInput>;
1071
+ };
1072
+ /**
1073
+ * InactivityPeriod createMany
1074
+ */
1075
+ export type InactivityPeriodCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1076
+ /**
1077
+ * The data used to create many InactivityPeriods.
1078
+ */
1079
+ data: Prisma.InactivityPeriodCreateManyInput | Prisma.InactivityPeriodCreateManyInput[];
1080
+ skipDuplicates?: boolean;
1081
+ };
1082
+ /**
1083
+ * InactivityPeriod createManyAndReturn
1084
+ */
1085
+ export type InactivityPeriodCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1086
+ /**
1087
+ * Select specific fields to fetch from the InactivityPeriod
1088
+ */
1089
+ select?: Prisma.InactivityPeriodSelectCreateManyAndReturn<ExtArgs> | null;
1090
+ /**
1091
+ * Omit specific fields from the InactivityPeriod
1092
+ */
1093
+ omit?: Prisma.InactivityPeriodOmit<ExtArgs> | null;
1094
+ /**
1095
+ * The data used to create many InactivityPeriods.
1096
+ */
1097
+ data: Prisma.InactivityPeriodCreateManyInput | Prisma.InactivityPeriodCreateManyInput[];
1098
+ skipDuplicates?: boolean;
1099
+ /**
1100
+ * Choose, which related nodes to fetch as well
1101
+ */
1102
+ include?: Prisma.InactivityPeriodIncludeCreateManyAndReturn<ExtArgs> | null;
1103
+ };
1104
+ /**
1105
+ * InactivityPeriod update
1106
+ */
1107
+ export type InactivityPeriodUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1108
+ /**
1109
+ * Select specific fields to fetch from the InactivityPeriod
1110
+ */
1111
+ select?: Prisma.InactivityPeriodSelect<ExtArgs> | null;
1112
+ /**
1113
+ * Omit specific fields from the InactivityPeriod
1114
+ */
1115
+ omit?: Prisma.InactivityPeriodOmit<ExtArgs> | null;
1116
+ /**
1117
+ * Choose, which related nodes to fetch as well
1118
+ */
1119
+ include?: Prisma.InactivityPeriodInclude<ExtArgs> | null;
1120
+ /**
1121
+ * The data needed to update a InactivityPeriod.
1122
+ */
1123
+ data: Prisma.XOR<Prisma.InactivityPeriodUpdateInput, Prisma.InactivityPeriodUncheckedUpdateInput>;
1124
+ /**
1125
+ * Choose, which InactivityPeriod to update.
1126
+ */
1127
+ where: Prisma.InactivityPeriodWhereUniqueInput;
1128
+ };
1129
+ /**
1130
+ * InactivityPeriod updateMany
1131
+ */
1132
+ export type InactivityPeriodUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1133
+ /**
1134
+ * The data used to update InactivityPeriods.
1135
+ */
1136
+ data: Prisma.XOR<Prisma.InactivityPeriodUpdateManyMutationInput, Prisma.InactivityPeriodUncheckedUpdateManyInput>;
1137
+ /**
1138
+ * Filter which InactivityPeriods to update
1139
+ */
1140
+ where?: Prisma.InactivityPeriodWhereInput;
1141
+ /**
1142
+ * Limit how many InactivityPeriods to update.
1143
+ */
1144
+ limit?: number;
1145
+ };
1146
+ /**
1147
+ * InactivityPeriod updateManyAndReturn
1148
+ */
1149
+ export type InactivityPeriodUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1150
+ /**
1151
+ * Select specific fields to fetch from the InactivityPeriod
1152
+ */
1153
+ select?: Prisma.InactivityPeriodSelectUpdateManyAndReturn<ExtArgs> | null;
1154
+ /**
1155
+ * Omit specific fields from the InactivityPeriod
1156
+ */
1157
+ omit?: Prisma.InactivityPeriodOmit<ExtArgs> | null;
1158
+ /**
1159
+ * The data used to update InactivityPeriods.
1160
+ */
1161
+ data: Prisma.XOR<Prisma.InactivityPeriodUpdateManyMutationInput, Prisma.InactivityPeriodUncheckedUpdateManyInput>;
1162
+ /**
1163
+ * Filter which InactivityPeriods to update
1164
+ */
1165
+ where?: Prisma.InactivityPeriodWhereInput;
1166
+ /**
1167
+ * Limit how many InactivityPeriods to update.
1168
+ */
1169
+ limit?: number;
1170
+ /**
1171
+ * Choose, which related nodes to fetch as well
1172
+ */
1173
+ include?: Prisma.InactivityPeriodIncludeUpdateManyAndReturn<ExtArgs> | null;
1174
+ };
1175
+ /**
1176
+ * InactivityPeriod upsert
1177
+ */
1178
+ export type InactivityPeriodUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1179
+ /**
1180
+ * Select specific fields to fetch from the InactivityPeriod
1181
+ */
1182
+ select?: Prisma.InactivityPeriodSelect<ExtArgs> | null;
1183
+ /**
1184
+ * Omit specific fields from the InactivityPeriod
1185
+ */
1186
+ omit?: Prisma.InactivityPeriodOmit<ExtArgs> | null;
1187
+ /**
1188
+ * Choose, which related nodes to fetch as well
1189
+ */
1190
+ include?: Prisma.InactivityPeriodInclude<ExtArgs> | null;
1191
+ /**
1192
+ * The filter to search for the InactivityPeriod to update in case it exists.
1193
+ */
1194
+ where: Prisma.InactivityPeriodWhereUniqueInput;
1195
+ /**
1196
+ * In case the InactivityPeriod found by the `where` argument doesn't exist, create a new InactivityPeriod with this data.
1197
+ */
1198
+ create: Prisma.XOR<Prisma.InactivityPeriodCreateInput, Prisma.InactivityPeriodUncheckedCreateInput>;
1199
+ /**
1200
+ * In case the InactivityPeriod was found with the provided `where` argument, update it with this data.
1201
+ */
1202
+ update: Prisma.XOR<Prisma.InactivityPeriodUpdateInput, Prisma.InactivityPeriodUncheckedUpdateInput>;
1203
+ };
1204
+ /**
1205
+ * InactivityPeriod delete
1206
+ */
1207
+ export type InactivityPeriodDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1208
+ /**
1209
+ * Select specific fields to fetch from the InactivityPeriod
1210
+ */
1211
+ select?: Prisma.InactivityPeriodSelect<ExtArgs> | null;
1212
+ /**
1213
+ * Omit specific fields from the InactivityPeriod
1214
+ */
1215
+ omit?: Prisma.InactivityPeriodOmit<ExtArgs> | null;
1216
+ /**
1217
+ * Choose, which related nodes to fetch as well
1218
+ */
1219
+ include?: Prisma.InactivityPeriodInclude<ExtArgs> | null;
1220
+ /**
1221
+ * Filter which InactivityPeriod to delete.
1222
+ */
1223
+ where: Prisma.InactivityPeriodWhereUniqueInput;
1224
+ };
1225
+ /**
1226
+ * InactivityPeriod deleteMany
1227
+ */
1228
+ export type InactivityPeriodDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1229
+ /**
1230
+ * Filter which InactivityPeriods to delete
1231
+ */
1232
+ where?: Prisma.InactivityPeriodWhereInput;
1233
+ /**
1234
+ * Limit how many InactivityPeriods to delete.
1235
+ */
1236
+ limit?: number;
1237
+ };
1238
+ /**
1239
+ * InactivityPeriod without action
1240
+ */
1241
+ export type InactivityPeriodDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1242
+ /**
1243
+ * Select specific fields to fetch from the InactivityPeriod
1244
+ */
1245
+ select?: Prisma.InactivityPeriodSelect<ExtArgs> | null;
1246
+ /**
1247
+ * Omit specific fields from the InactivityPeriod
1248
+ */
1249
+ omit?: Prisma.InactivityPeriodOmit<ExtArgs> | null;
1250
+ /**
1251
+ * Choose, which related nodes to fetch as well
1252
+ */
1253
+ include?: Prisma.InactivityPeriodInclude<ExtArgs> | null;
1254
+ };
1255
+ //# sourceMappingURL=InactivityPeriod.d.ts.map