@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,1335 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.ts";
3
+ /**
4
+ * Model DiscordUser
5
+ * Representa a un usuario de Discord, incluyendo su rango y relaciones.
6
+ */
7
+ export type DiscordUserModel = runtime.Types.Result.DefaultSelection<Prisma.$DiscordUserPayload>;
8
+ export type AggregateDiscordUser = {
9
+ _count: DiscordUserCountAggregateOutputType | null;
10
+ _min: DiscordUserMinAggregateOutputType | null;
11
+ _max: DiscordUserMaxAggregateOutputType | null;
12
+ };
13
+ export type DiscordUserMinAggregateOutputType = {
14
+ id: string | null;
15
+ username: string | null;
16
+ };
17
+ export type DiscordUserMaxAggregateOutputType = {
18
+ id: string | null;
19
+ username: string | null;
20
+ };
21
+ export type DiscordUserCountAggregateOutputType = {
22
+ id: number;
23
+ username: number;
24
+ _all: number;
25
+ };
26
+ export type DiscordUserMinAggregateInputType = {
27
+ id?: true;
28
+ username?: true;
29
+ };
30
+ export type DiscordUserMaxAggregateInputType = {
31
+ id?: true;
32
+ username?: true;
33
+ };
34
+ export type DiscordUserCountAggregateInputType = {
35
+ id?: true;
36
+ username?: true;
37
+ _all?: true;
38
+ };
39
+ export type DiscordUserAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
40
+ /**
41
+ * Filter which DiscordUser to aggregate.
42
+ */
43
+ where?: Prisma.DiscordUserWhereInput;
44
+ /**
45
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
46
+ *
47
+ * Determine the order of DiscordUsers to fetch.
48
+ */
49
+ orderBy?: Prisma.DiscordUserOrderByWithRelationInput | Prisma.DiscordUserOrderByWithRelationInput[];
50
+ /**
51
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
52
+ *
53
+ * Sets the start position
54
+ */
55
+ cursor?: Prisma.DiscordUserWhereUniqueInput;
56
+ /**
57
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
58
+ *
59
+ * Take `±n` DiscordUsers from the position of the cursor.
60
+ */
61
+ take?: number;
62
+ /**
63
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
64
+ *
65
+ * Skip the first `n` DiscordUsers.
66
+ */
67
+ skip?: number;
68
+ /**
69
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
70
+ *
71
+ * Count returned DiscordUsers
72
+ **/
73
+ _count?: true | DiscordUserCountAggregateInputType;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
76
+ *
77
+ * Select which fields to find the minimum value
78
+ **/
79
+ _min?: DiscordUserMinAggregateInputType;
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
82
+ *
83
+ * Select which fields to find the maximum value
84
+ **/
85
+ _max?: DiscordUserMaxAggregateInputType;
86
+ };
87
+ export type GetDiscordUserAggregateType<T extends DiscordUserAggregateArgs> = {
88
+ [P in keyof T & keyof AggregateDiscordUser]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateDiscordUser[P]> : Prisma.GetScalarType<T[P], AggregateDiscordUser[P]>;
89
+ };
90
+ export type DiscordUserGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
91
+ where?: Prisma.DiscordUserWhereInput;
92
+ orderBy?: Prisma.DiscordUserOrderByWithAggregationInput | Prisma.DiscordUserOrderByWithAggregationInput[];
93
+ by: Prisma.DiscordUserScalarFieldEnum[] | Prisma.DiscordUserScalarFieldEnum;
94
+ having?: Prisma.DiscordUserScalarWhereWithAggregatesInput;
95
+ take?: number;
96
+ skip?: number;
97
+ _count?: DiscordUserCountAggregateInputType | true;
98
+ _min?: DiscordUserMinAggregateInputType;
99
+ _max?: DiscordUserMaxAggregateInputType;
100
+ };
101
+ export type DiscordUserGroupByOutputType = {
102
+ id: string;
103
+ username: string;
104
+ _count: DiscordUserCountAggregateOutputType | null;
105
+ _min: DiscordUserMinAggregateOutputType | null;
106
+ _max: DiscordUserMaxAggregateOutputType | null;
107
+ };
108
+ export type GetDiscordUserGroupByPayload<T extends DiscordUserGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<DiscordUserGroupByOutputType, T['by']> & {
109
+ [P in ((keyof T) & (keyof DiscordUserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], DiscordUserGroupByOutputType[P]> : Prisma.GetScalarType<T[P], DiscordUserGroupByOutputType[P]>;
110
+ }>>;
111
+ export type DiscordUserWhereInput = {
112
+ AND?: Prisma.DiscordUserWhereInput | Prisma.DiscordUserWhereInput[];
113
+ OR?: Prisma.DiscordUserWhereInput[];
114
+ NOT?: Prisma.DiscordUserWhereInput | Prisma.DiscordUserWhereInput[];
115
+ id?: Prisma.StringFilter<"DiscordUser"> | string;
116
+ username?: Prisma.StringFilter<"DiscordUser"> | string;
117
+ inactivity_periods?: Prisma.InactivityPeriodListRelationFilter;
118
+ link_code?: Prisma.XOR<Prisma.LinkCodeNullableScalarRelationFilter, Prisma.LinkCodeWhereInput> | null;
119
+ post_blocks?: Prisma.PostBlocksListRelationFilter;
120
+ user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
121
+ };
122
+ export type DiscordUserOrderByWithRelationInput = {
123
+ id?: Prisma.SortOrder;
124
+ username?: Prisma.SortOrder;
125
+ inactivity_periods?: Prisma.InactivityPeriodOrderByRelationAggregateInput;
126
+ link_code?: Prisma.LinkCodeOrderByWithRelationInput;
127
+ post_blocks?: Prisma.PostBlocksOrderByRelationAggregateInput;
128
+ user?: Prisma.UserOrderByWithRelationInput;
129
+ };
130
+ export type DiscordUserWhereUniqueInput = Prisma.AtLeast<{
131
+ id?: string;
132
+ username?: string;
133
+ AND?: Prisma.DiscordUserWhereInput | Prisma.DiscordUserWhereInput[];
134
+ OR?: Prisma.DiscordUserWhereInput[];
135
+ NOT?: Prisma.DiscordUserWhereInput | Prisma.DiscordUserWhereInput[];
136
+ inactivity_periods?: Prisma.InactivityPeriodListRelationFilter;
137
+ link_code?: Prisma.XOR<Prisma.LinkCodeNullableScalarRelationFilter, Prisma.LinkCodeWhereInput> | null;
138
+ post_blocks?: Prisma.PostBlocksListRelationFilter;
139
+ user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
140
+ }, "id" | "username">;
141
+ export type DiscordUserOrderByWithAggregationInput = {
142
+ id?: Prisma.SortOrder;
143
+ username?: Prisma.SortOrder;
144
+ _count?: Prisma.DiscordUserCountOrderByAggregateInput;
145
+ _max?: Prisma.DiscordUserMaxOrderByAggregateInput;
146
+ _min?: Prisma.DiscordUserMinOrderByAggregateInput;
147
+ };
148
+ export type DiscordUserScalarWhereWithAggregatesInput = {
149
+ AND?: Prisma.DiscordUserScalarWhereWithAggregatesInput | Prisma.DiscordUserScalarWhereWithAggregatesInput[];
150
+ OR?: Prisma.DiscordUserScalarWhereWithAggregatesInput[];
151
+ NOT?: Prisma.DiscordUserScalarWhereWithAggregatesInput | Prisma.DiscordUserScalarWhereWithAggregatesInput[];
152
+ id?: Prisma.StringWithAggregatesFilter<"DiscordUser"> | string;
153
+ username?: Prisma.StringWithAggregatesFilter<"DiscordUser"> | string;
154
+ };
155
+ export type DiscordUserCreateInput = {
156
+ id: string;
157
+ username: string;
158
+ inactivity_periods?: Prisma.InactivityPeriodCreateNestedManyWithoutDiscord_userInput;
159
+ link_code?: Prisma.LinkCodeCreateNestedOneWithoutDiscord_userInput;
160
+ post_blocks?: Prisma.PostBlocksCreateNestedManyWithoutAuthorInput;
161
+ user?: Prisma.UserCreateNestedOneWithoutDiscord_userInput;
162
+ };
163
+ export type DiscordUserUncheckedCreateInput = {
164
+ id: string;
165
+ username: string;
166
+ inactivity_periods?: Prisma.InactivityPeriodUncheckedCreateNestedManyWithoutDiscord_userInput;
167
+ link_code?: Prisma.LinkCodeUncheckedCreateNestedOneWithoutDiscord_userInput;
168
+ post_blocks?: Prisma.PostBlocksUncheckedCreateNestedManyWithoutAuthorInput;
169
+ user?: Prisma.UserUncheckedCreateNestedOneWithoutDiscord_userInput;
170
+ };
171
+ export type DiscordUserUpdateInput = {
172
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
173
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
174
+ inactivity_periods?: Prisma.InactivityPeriodUpdateManyWithoutDiscord_userNestedInput;
175
+ link_code?: Prisma.LinkCodeUpdateOneWithoutDiscord_userNestedInput;
176
+ post_blocks?: Prisma.PostBlocksUpdateManyWithoutAuthorNestedInput;
177
+ user?: Prisma.UserUpdateOneWithoutDiscord_userNestedInput;
178
+ };
179
+ export type DiscordUserUncheckedUpdateInput = {
180
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
181
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
182
+ inactivity_periods?: Prisma.InactivityPeriodUncheckedUpdateManyWithoutDiscord_userNestedInput;
183
+ link_code?: Prisma.LinkCodeUncheckedUpdateOneWithoutDiscord_userNestedInput;
184
+ post_blocks?: Prisma.PostBlocksUncheckedUpdateManyWithoutAuthorNestedInput;
185
+ user?: Prisma.UserUncheckedUpdateOneWithoutDiscord_userNestedInput;
186
+ };
187
+ export type DiscordUserCreateManyInput = {
188
+ id: string;
189
+ username: string;
190
+ };
191
+ export type DiscordUserUpdateManyMutationInput = {
192
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
193
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
194
+ };
195
+ export type DiscordUserUncheckedUpdateManyInput = {
196
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
197
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
198
+ };
199
+ export type DiscordUserScalarRelationFilter = {
200
+ is?: Prisma.DiscordUserWhereInput;
201
+ isNot?: Prisma.DiscordUserWhereInput;
202
+ };
203
+ export type DiscordUserCountOrderByAggregateInput = {
204
+ id?: Prisma.SortOrder;
205
+ username?: Prisma.SortOrder;
206
+ };
207
+ export type DiscordUserMaxOrderByAggregateInput = {
208
+ id?: Prisma.SortOrder;
209
+ username?: Prisma.SortOrder;
210
+ };
211
+ export type DiscordUserMinOrderByAggregateInput = {
212
+ id?: Prisma.SortOrder;
213
+ username?: Prisma.SortOrder;
214
+ };
215
+ export type DiscordUserCreateNestedOneWithoutInactivity_periodsInput = {
216
+ create?: Prisma.XOR<Prisma.DiscordUserCreateWithoutInactivity_periodsInput, Prisma.DiscordUserUncheckedCreateWithoutInactivity_periodsInput>;
217
+ connectOrCreate?: Prisma.DiscordUserCreateOrConnectWithoutInactivity_periodsInput;
218
+ connect?: Prisma.DiscordUserWhereUniqueInput;
219
+ };
220
+ export type DiscordUserUpdateOneRequiredWithoutInactivity_periodsNestedInput = {
221
+ create?: Prisma.XOR<Prisma.DiscordUserCreateWithoutInactivity_periodsInput, Prisma.DiscordUserUncheckedCreateWithoutInactivity_periodsInput>;
222
+ connectOrCreate?: Prisma.DiscordUserCreateOrConnectWithoutInactivity_periodsInput;
223
+ upsert?: Prisma.DiscordUserUpsertWithoutInactivity_periodsInput;
224
+ connect?: Prisma.DiscordUserWhereUniqueInput;
225
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DiscordUserUpdateToOneWithWhereWithoutInactivity_periodsInput, Prisma.DiscordUserUpdateWithoutInactivity_periodsInput>, Prisma.DiscordUserUncheckedUpdateWithoutInactivity_periodsInput>;
226
+ };
227
+ export type DiscordUserCreateNestedOneWithoutLink_codeInput = {
228
+ create?: Prisma.XOR<Prisma.DiscordUserCreateWithoutLink_codeInput, Prisma.DiscordUserUncheckedCreateWithoutLink_codeInput>;
229
+ connectOrCreate?: Prisma.DiscordUserCreateOrConnectWithoutLink_codeInput;
230
+ connect?: Prisma.DiscordUserWhereUniqueInput;
231
+ };
232
+ export type DiscordUserUpdateOneRequiredWithoutLink_codeNestedInput = {
233
+ create?: Prisma.XOR<Prisma.DiscordUserCreateWithoutLink_codeInput, Prisma.DiscordUserUncheckedCreateWithoutLink_codeInput>;
234
+ connectOrCreate?: Prisma.DiscordUserCreateOrConnectWithoutLink_codeInput;
235
+ upsert?: Prisma.DiscordUserUpsertWithoutLink_codeInput;
236
+ connect?: Prisma.DiscordUserWhereUniqueInput;
237
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DiscordUserUpdateToOneWithWhereWithoutLink_codeInput, Prisma.DiscordUserUpdateWithoutLink_codeInput>, Prisma.DiscordUserUncheckedUpdateWithoutLink_codeInput>;
238
+ };
239
+ export type DiscordUserCreateNestedOneWithoutPost_blocksInput = {
240
+ create?: Prisma.XOR<Prisma.DiscordUserCreateWithoutPost_blocksInput, Prisma.DiscordUserUncheckedCreateWithoutPost_blocksInput>;
241
+ connectOrCreate?: Prisma.DiscordUserCreateOrConnectWithoutPost_blocksInput;
242
+ connect?: Prisma.DiscordUserWhereUniqueInput;
243
+ };
244
+ export type DiscordUserUpdateOneRequiredWithoutPost_blocksNestedInput = {
245
+ create?: Prisma.XOR<Prisma.DiscordUserCreateWithoutPost_blocksInput, Prisma.DiscordUserUncheckedCreateWithoutPost_blocksInput>;
246
+ connectOrCreate?: Prisma.DiscordUserCreateOrConnectWithoutPost_blocksInput;
247
+ upsert?: Prisma.DiscordUserUpsertWithoutPost_blocksInput;
248
+ connect?: Prisma.DiscordUserWhereUniqueInput;
249
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DiscordUserUpdateToOneWithWhereWithoutPost_blocksInput, Prisma.DiscordUserUpdateWithoutPost_blocksInput>, Prisma.DiscordUserUncheckedUpdateWithoutPost_blocksInput>;
250
+ };
251
+ export type DiscordUserCreateNestedOneWithoutUserInput = {
252
+ create?: Prisma.XOR<Prisma.DiscordUserCreateWithoutUserInput, Prisma.DiscordUserUncheckedCreateWithoutUserInput>;
253
+ connectOrCreate?: Prisma.DiscordUserCreateOrConnectWithoutUserInput;
254
+ connect?: Prisma.DiscordUserWhereUniqueInput;
255
+ };
256
+ export type DiscordUserUpdateOneRequiredWithoutUserNestedInput = {
257
+ create?: Prisma.XOR<Prisma.DiscordUserCreateWithoutUserInput, Prisma.DiscordUserUncheckedCreateWithoutUserInput>;
258
+ connectOrCreate?: Prisma.DiscordUserCreateOrConnectWithoutUserInput;
259
+ upsert?: Prisma.DiscordUserUpsertWithoutUserInput;
260
+ connect?: Prisma.DiscordUserWhereUniqueInput;
261
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DiscordUserUpdateToOneWithWhereWithoutUserInput, Prisma.DiscordUserUpdateWithoutUserInput>, Prisma.DiscordUserUncheckedUpdateWithoutUserInput>;
262
+ };
263
+ export type DiscordUserCreateWithoutInactivity_periodsInput = {
264
+ id: string;
265
+ username: string;
266
+ link_code?: Prisma.LinkCodeCreateNestedOneWithoutDiscord_userInput;
267
+ post_blocks?: Prisma.PostBlocksCreateNestedManyWithoutAuthorInput;
268
+ user?: Prisma.UserCreateNestedOneWithoutDiscord_userInput;
269
+ };
270
+ export type DiscordUserUncheckedCreateWithoutInactivity_periodsInput = {
271
+ id: string;
272
+ username: string;
273
+ link_code?: Prisma.LinkCodeUncheckedCreateNestedOneWithoutDiscord_userInput;
274
+ post_blocks?: Prisma.PostBlocksUncheckedCreateNestedManyWithoutAuthorInput;
275
+ user?: Prisma.UserUncheckedCreateNestedOneWithoutDiscord_userInput;
276
+ };
277
+ export type DiscordUserCreateOrConnectWithoutInactivity_periodsInput = {
278
+ where: Prisma.DiscordUserWhereUniqueInput;
279
+ create: Prisma.XOR<Prisma.DiscordUserCreateWithoutInactivity_periodsInput, Prisma.DiscordUserUncheckedCreateWithoutInactivity_periodsInput>;
280
+ };
281
+ export type DiscordUserUpsertWithoutInactivity_periodsInput = {
282
+ update: Prisma.XOR<Prisma.DiscordUserUpdateWithoutInactivity_periodsInput, Prisma.DiscordUserUncheckedUpdateWithoutInactivity_periodsInput>;
283
+ create: Prisma.XOR<Prisma.DiscordUserCreateWithoutInactivity_periodsInput, Prisma.DiscordUserUncheckedCreateWithoutInactivity_periodsInput>;
284
+ where?: Prisma.DiscordUserWhereInput;
285
+ };
286
+ export type DiscordUserUpdateToOneWithWhereWithoutInactivity_periodsInput = {
287
+ where?: Prisma.DiscordUserWhereInput;
288
+ data: Prisma.XOR<Prisma.DiscordUserUpdateWithoutInactivity_periodsInput, Prisma.DiscordUserUncheckedUpdateWithoutInactivity_periodsInput>;
289
+ };
290
+ export type DiscordUserUpdateWithoutInactivity_periodsInput = {
291
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
292
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
293
+ link_code?: Prisma.LinkCodeUpdateOneWithoutDiscord_userNestedInput;
294
+ post_blocks?: Prisma.PostBlocksUpdateManyWithoutAuthorNestedInput;
295
+ user?: Prisma.UserUpdateOneWithoutDiscord_userNestedInput;
296
+ };
297
+ export type DiscordUserUncheckedUpdateWithoutInactivity_periodsInput = {
298
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
299
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
300
+ link_code?: Prisma.LinkCodeUncheckedUpdateOneWithoutDiscord_userNestedInput;
301
+ post_blocks?: Prisma.PostBlocksUncheckedUpdateManyWithoutAuthorNestedInput;
302
+ user?: Prisma.UserUncheckedUpdateOneWithoutDiscord_userNestedInput;
303
+ };
304
+ export type DiscordUserCreateWithoutLink_codeInput = {
305
+ id: string;
306
+ username: string;
307
+ inactivity_periods?: Prisma.InactivityPeriodCreateNestedManyWithoutDiscord_userInput;
308
+ post_blocks?: Prisma.PostBlocksCreateNestedManyWithoutAuthorInput;
309
+ user?: Prisma.UserCreateNestedOneWithoutDiscord_userInput;
310
+ };
311
+ export type DiscordUserUncheckedCreateWithoutLink_codeInput = {
312
+ id: string;
313
+ username: string;
314
+ inactivity_periods?: Prisma.InactivityPeriodUncheckedCreateNestedManyWithoutDiscord_userInput;
315
+ post_blocks?: Prisma.PostBlocksUncheckedCreateNestedManyWithoutAuthorInput;
316
+ user?: Prisma.UserUncheckedCreateNestedOneWithoutDiscord_userInput;
317
+ };
318
+ export type DiscordUserCreateOrConnectWithoutLink_codeInput = {
319
+ where: Prisma.DiscordUserWhereUniqueInput;
320
+ create: Prisma.XOR<Prisma.DiscordUserCreateWithoutLink_codeInput, Prisma.DiscordUserUncheckedCreateWithoutLink_codeInput>;
321
+ };
322
+ export type DiscordUserUpsertWithoutLink_codeInput = {
323
+ update: Prisma.XOR<Prisma.DiscordUserUpdateWithoutLink_codeInput, Prisma.DiscordUserUncheckedUpdateWithoutLink_codeInput>;
324
+ create: Prisma.XOR<Prisma.DiscordUserCreateWithoutLink_codeInput, Prisma.DiscordUserUncheckedCreateWithoutLink_codeInput>;
325
+ where?: Prisma.DiscordUserWhereInput;
326
+ };
327
+ export type DiscordUserUpdateToOneWithWhereWithoutLink_codeInput = {
328
+ where?: Prisma.DiscordUserWhereInput;
329
+ data: Prisma.XOR<Prisma.DiscordUserUpdateWithoutLink_codeInput, Prisma.DiscordUserUncheckedUpdateWithoutLink_codeInput>;
330
+ };
331
+ export type DiscordUserUpdateWithoutLink_codeInput = {
332
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
333
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
334
+ inactivity_periods?: Prisma.InactivityPeriodUpdateManyWithoutDiscord_userNestedInput;
335
+ post_blocks?: Prisma.PostBlocksUpdateManyWithoutAuthorNestedInput;
336
+ user?: Prisma.UserUpdateOneWithoutDiscord_userNestedInput;
337
+ };
338
+ export type DiscordUserUncheckedUpdateWithoutLink_codeInput = {
339
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
340
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
341
+ inactivity_periods?: Prisma.InactivityPeriodUncheckedUpdateManyWithoutDiscord_userNestedInput;
342
+ post_blocks?: Prisma.PostBlocksUncheckedUpdateManyWithoutAuthorNestedInput;
343
+ user?: Prisma.UserUncheckedUpdateOneWithoutDiscord_userNestedInput;
344
+ };
345
+ export type DiscordUserCreateWithoutPost_blocksInput = {
346
+ id: string;
347
+ username: string;
348
+ inactivity_periods?: Prisma.InactivityPeriodCreateNestedManyWithoutDiscord_userInput;
349
+ link_code?: Prisma.LinkCodeCreateNestedOneWithoutDiscord_userInput;
350
+ user?: Prisma.UserCreateNestedOneWithoutDiscord_userInput;
351
+ };
352
+ export type DiscordUserUncheckedCreateWithoutPost_blocksInput = {
353
+ id: string;
354
+ username: string;
355
+ inactivity_periods?: Prisma.InactivityPeriodUncheckedCreateNestedManyWithoutDiscord_userInput;
356
+ link_code?: Prisma.LinkCodeUncheckedCreateNestedOneWithoutDiscord_userInput;
357
+ user?: Prisma.UserUncheckedCreateNestedOneWithoutDiscord_userInput;
358
+ };
359
+ export type DiscordUserCreateOrConnectWithoutPost_blocksInput = {
360
+ where: Prisma.DiscordUserWhereUniqueInput;
361
+ create: Prisma.XOR<Prisma.DiscordUserCreateWithoutPost_blocksInput, Prisma.DiscordUserUncheckedCreateWithoutPost_blocksInput>;
362
+ };
363
+ export type DiscordUserUpsertWithoutPost_blocksInput = {
364
+ update: Prisma.XOR<Prisma.DiscordUserUpdateWithoutPost_blocksInput, Prisma.DiscordUserUncheckedUpdateWithoutPost_blocksInput>;
365
+ create: Prisma.XOR<Prisma.DiscordUserCreateWithoutPost_blocksInput, Prisma.DiscordUserUncheckedCreateWithoutPost_blocksInput>;
366
+ where?: Prisma.DiscordUserWhereInput;
367
+ };
368
+ export type DiscordUserUpdateToOneWithWhereWithoutPost_blocksInput = {
369
+ where?: Prisma.DiscordUserWhereInput;
370
+ data: Prisma.XOR<Prisma.DiscordUserUpdateWithoutPost_blocksInput, Prisma.DiscordUserUncheckedUpdateWithoutPost_blocksInput>;
371
+ };
372
+ export type DiscordUserUpdateWithoutPost_blocksInput = {
373
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
374
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
375
+ inactivity_periods?: Prisma.InactivityPeriodUpdateManyWithoutDiscord_userNestedInput;
376
+ link_code?: Prisma.LinkCodeUpdateOneWithoutDiscord_userNestedInput;
377
+ user?: Prisma.UserUpdateOneWithoutDiscord_userNestedInput;
378
+ };
379
+ export type DiscordUserUncheckedUpdateWithoutPost_blocksInput = {
380
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
381
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
382
+ inactivity_periods?: Prisma.InactivityPeriodUncheckedUpdateManyWithoutDiscord_userNestedInput;
383
+ link_code?: Prisma.LinkCodeUncheckedUpdateOneWithoutDiscord_userNestedInput;
384
+ user?: Prisma.UserUncheckedUpdateOneWithoutDiscord_userNestedInput;
385
+ };
386
+ export type DiscordUserCreateWithoutUserInput = {
387
+ id: string;
388
+ username: string;
389
+ inactivity_periods?: Prisma.InactivityPeriodCreateNestedManyWithoutDiscord_userInput;
390
+ link_code?: Prisma.LinkCodeCreateNestedOneWithoutDiscord_userInput;
391
+ post_blocks?: Prisma.PostBlocksCreateNestedManyWithoutAuthorInput;
392
+ };
393
+ export type DiscordUserUncheckedCreateWithoutUserInput = {
394
+ id: string;
395
+ username: string;
396
+ inactivity_periods?: Prisma.InactivityPeriodUncheckedCreateNestedManyWithoutDiscord_userInput;
397
+ link_code?: Prisma.LinkCodeUncheckedCreateNestedOneWithoutDiscord_userInput;
398
+ post_blocks?: Prisma.PostBlocksUncheckedCreateNestedManyWithoutAuthorInput;
399
+ };
400
+ export type DiscordUserCreateOrConnectWithoutUserInput = {
401
+ where: Prisma.DiscordUserWhereUniqueInput;
402
+ create: Prisma.XOR<Prisma.DiscordUserCreateWithoutUserInput, Prisma.DiscordUserUncheckedCreateWithoutUserInput>;
403
+ };
404
+ export type DiscordUserUpsertWithoutUserInput = {
405
+ update: Prisma.XOR<Prisma.DiscordUserUpdateWithoutUserInput, Prisma.DiscordUserUncheckedUpdateWithoutUserInput>;
406
+ create: Prisma.XOR<Prisma.DiscordUserCreateWithoutUserInput, Prisma.DiscordUserUncheckedCreateWithoutUserInput>;
407
+ where?: Prisma.DiscordUserWhereInput;
408
+ };
409
+ export type DiscordUserUpdateToOneWithWhereWithoutUserInput = {
410
+ where?: Prisma.DiscordUserWhereInput;
411
+ data: Prisma.XOR<Prisma.DiscordUserUpdateWithoutUserInput, Prisma.DiscordUserUncheckedUpdateWithoutUserInput>;
412
+ };
413
+ export type DiscordUserUpdateWithoutUserInput = {
414
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
415
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
416
+ inactivity_periods?: Prisma.InactivityPeriodUpdateManyWithoutDiscord_userNestedInput;
417
+ link_code?: Prisma.LinkCodeUpdateOneWithoutDiscord_userNestedInput;
418
+ post_blocks?: Prisma.PostBlocksUpdateManyWithoutAuthorNestedInput;
419
+ };
420
+ export type DiscordUserUncheckedUpdateWithoutUserInput = {
421
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
422
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
423
+ inactivity_periods?: Prisma.InactivityPeriodUncheckedUpdateManyWithoutDiscord_userNestedInput;
424
+ link_code?: Prisma.LinkCodeUncheckedUpdateOneWithoutDiscord_userNestedInput;
425
+ post_blocks?: Prisma.PostBlocksUncheckedUpdateManyWithoutAuthorNestedInput;
426
+ };
427
+ /**
428
+ * Count Type DiscordUserCountOutputType
429
+ */
430
+ export type DiscordUserCountOutputType = {
431
+ inactivity_periods: number;
432
+ post_blocks: number;
433
+ };
434
+ export type DiscordUserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
435
+ inactivity_periods?: boolean | DiscordUserCountOutputTypeCountInactivity_periodsArgs;
436
+ post_blocks?: boolean | DiscordUserCountOutputTypeCountPost_blocksArgs;
437
+ };
438
+ /**
439
+ * DiscordUserCountOutputType without action
440
+ */
441
+ export type DiscordUserCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
442
+ /**
443
+ * Select specific fields to fetch from the DiscordUserCountOutputType
444
+ */
445
+ select?: Prisma.DiscordUserCountOutputTypeSelect<ExtArgs> | null;
446
+ };
447
+ /**
448
+ * DiscordUserCountOutputType without action
449
+ */
450
+ export type DiscordUserCountOutputTypeCountInactivity_periodsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
451
+ where?: Prisma.InactivityPeriodWhereInput;
452
+ };
453
+ /**
454
+ * DiscordUserCountOutputType without action
455
+ */
456
+ export type DiscordUserCountOutputTypeCountPost_blocksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
457
+ where?: Prisma.PostBlocksWhereInput;
458
+ };
459
+ export type DiscordUserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
460
+ id?: boolean;
461
+ username?: boolean;
462
+ inactivity_periods?: boolean | Prisma.DiscordUser$inactivity_periodsArgs<ExtArgs>;
463
+ link_code?: boolean | Prisma.DiscordUser$link_codeArgs<ExtArgs>;
464
+ post_blocks?: boolean | Prisma.DiscordUser$post_blocksArgs<ExtArgs>;
465
+ user?: boolean | Prisma.DiscordUser$userArgs<ExtArgs>;
466
+ _count?: boolean | Prisma.DiscordUserCountOutputTypeDefaultArgs<ExtArgs>;
467
+ }, ExtArgs["result"]["discordUser"]>;
468
+ export type DiscordUserSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
469
+ id?: boolean;
470
+ username?: boolean;
471
+ }, ExtArgs["result"]["discordUser"]>;
472
+ export type DiscordUserSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
473
+ id?: boolean;
474
+ username?: boolean;
475
+ }, ExtArgs["result"]["discordUser"]>;
476
+ export type DiscordUserSelectScalar = {
477
+ id?: boolean;
478
+ username?: boolean;
479
+ };
480
+ export type DiscordUserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "username", ExtArgs["result"]["discordUser"]>;
481
+ export type DiscordUserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
482
+ inactivity_periods?: boolean | Prisma.DiscordUser$inactivity_periodsArgs<ExtArgs>;
483
+ link_code?: boolean | Prisma.DiscordUser$link_codeArgs<ExtArgs>;
484
+ post_blocks?: boolean | Prisma.DiscordUser$post_blocksArgs<ExtArgs>;
485
+ user?: boolean | Prisma.DiscordUser$userArgs<ExtArgs>;
486
+ _count?: boolean | Prisma.DiscordUserCountOutputTypeDefaultArgs<ExtArgs>;
487
+ };
488
+ export type DiscordUserIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
489
+ export type DiscordUserIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
490
+ export type $DiscordUserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
491
+ name: "DiscordUser";
492
+ objects: {
493
+ inactivity_periods: Prisma.$InactivityPeriodPayload<ExtArgs>[];
494
+ link_code: Prisma.$LinkCodePayload<ExtArgs> | null;
495
+ post_blocks: Prisma.$PostBlocksPayload<ExtArgs>[];
496
+ user: Prisma.$UserPayload<ExtArgs> | null;
497
+ };
498
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
499
+ id: string;
500
+ username: string;
501
+ }, ExtArgs["result"]["discordUser"]>;
502
+ composites: {};
503
+ };
504
+ export type DiscordUserGetPayload<S extends boolean | null | undefined | DiscordUserDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DiscordUserPayload, S>;
505
+ export type DiscordUserCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<DiscordUserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
506
+ select?: DiscordUserCountAggregateInputType | true;
507
+ };
508
+ export interface DiscordUserDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
509
+ [K: symbol]: {
510
+ types: Prisma.TypeMap<ExtArgs>['model']['DiscordUser'];
511
+ meta: {
512
+ name: 'DiscordUser';
513
+ };
514
+ };
515
+ /**
516
+ * Find zero or one DiscordUser that matches the filter.
517
+ * @param {DiscordUserFindUniqueArgs} args - Arguments to find a DiscordUser
518
+ * @example
519
+ * // Get one DiscordUser
520
+ * const discordUser = await prisma.discordUser.findUnique({
521
+ * where: {
522
+ * // ... provide filter here
523
+ * }
524
+ * })
525
+ */
526
+ findUnique<T extends DiscordUserFindUniqueArgs>(args: Prisma.SelectSubset<T, DiscordUserFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DiscordUserClient<runtime.Types.Result.GetResult<Prisma.$DiscordUserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
527
+ /**
528
+ * Find one DiscordUser that matches the filter or throw an error with `error.code='P2025'`
529
+ * if no matches were found.
530
+ * @param {DiscordUserFindUniqueOrThrowArgs} args - Arguments to find a DiscordUser
531
+ * @example
532
+ * // Get one DiscordUser
533
+ * const discordUser = await prisma.discordUser.findUniqueOrThrow({
534
+ * where: {
535
+ * // ... provide filter here
536
+ * }
537
+ * })
538
+ */
539
+ findUniqueOrThrow<T extends DiscordUserFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DiscordUserFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DiscordUserClient<runtime.Types.Result.GetResult<Prisma.$DiscordUserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
540
+ /**
541
+ * Find the first DiscordUser that matches the filter.
542
+ * Note, that providing `undefined` is treated as the value not being there.
543
+ * Read more here: https://pris.ly/d/null-undefined
544
+ * @param {DiscordUserFindFirstArgs} args - Arguments to find a DiscordUser
545
+ * @example
546
+ * // Get one DiscordUser
547
+ * const discordUser = await prisma.discordUser.findFirst({
548
+ * where: {
549
+ * // ... provide filter here
550
+ * }
551
+ * })
552
+ */
553
+ findFirst<T extends DiscordUserFindFirstArgs>(args?: Prisma.SelectSubset<T, DiscordUserFindFirstArgs<ExtArgs>>): Prisma.Prisma__DiscordUserClient<runtime.Types.Result.GetResult<Prisma.$DiscordUserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
554
+ /**
555
+ * Find the first DiscordUser that matches the filter or
556
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
557
+ * Note, that providing `undefined` is treated as the value not being there.
558
+ * Read more here: https://pris.ly/d/null-undefined
559
+ * @param {DiscordUserFindFirstOrThrowArgs} args - Arguments to find a DiscordUser
560
+ * @example
561
+ * // Get one DiscordUser
562
+ * const discordUser = await prisma.discordUser.findFirstOrThrow({
563
+ * where: {
564
+ * // ... provide filter here
565
+ * }
566
+ * })
567
+ */
568
+ findFirstOrThrow<T extends DiscordUserFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DiscordUserFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DiscordUserClient<runtime.Types.Result.GetResult<Prisma.$DiscordUserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
569
+ /**
570
+ * Find zero or more DiscordUsers that matches the filter.
571
+ * Note, that providing `undefined` is treated as the value not being there.
572
+ * Read more here: https://pris.ly/d/null-undefined
573
+ * @param {DiscordUserFindManyArgs} args - Arguments to filter and select certain fields only.
574
+ * @example
575
+ * // Get all DiscordUsers
576
+ * const discordUsers = await prisma.discordUser.findMany()
577
+ *
578
+ * // Get first 10 DiscordUsers
579
+ * const discordUsers = await prisma.discordUser.findMany({ take: 10 })
580
+ *
581
+ * // Only select the `id`
582
+ * const discordUserWithIdOnly = await prisma.discordUser.findMany({ select: { id: true } })
583
+ *
584
+ */
585
+ findMany<T extends DiscordUserFindManyArgs>(args?: Prisma.SelectSubset<T, DiscordUserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DiscordUserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
586
+ /**
587
+ * Create a DiscordUser.
588
+ * @param {DiscordUserCreateArgs} args - Arguments to create a DiscordUser.
589
+ * @example
590
+ * // Create one DiscordUser
591
+ * const DiscordUser = await prisma.discordUser.create({
592
+ * data: {
593
+ * // ... data to create a DiscordUser
594
+ * }
595
+ * })
596
+ *
597
+ */
598
+ create<T extends DiscordUserCreateArgs>(args: Prisma.SelectSubset<T, DiscordUserCreateArgs<ExtArgs>>): Prisma.Prisma__DiscordUserClient<runtime.Types.Result.GetResult<Prisma.$DiscordUserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
599
+ /**
600
+ * Create many DiscordUsers.
601
+ * @param {DiscordUserCreateManyArgs} args - Arguments to create many DiscordUsers.
602
+ * @example
603
+ * // Create many DiscordUsers
604
+ * const discordUser = await prisma.discordUser.createMany({
605
+ * data: [
606
+ * // ... provide data here
607
+ * ]
608
+ * })
609
+ *
610
+ */
611
+ createMany<T extends DiscordUserCreateManyArgs>(args?: Prisma.SelectSubset<T, DiscordUserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
612
+ /**
613
+ * Create many DiscordUsers and returns the data saved in the database.
614
+ * @param {DiscordUserCreateManyAndReturnArgs} args - Arguments to create many DiscordUsers.
615
+ * @example
616
+ * // Create many DiscordUsers
617
+ * const discordUser = await prisma.discordUser.createManyAndReturn({
618
+ * data: [
619
+ * // ... provide data here
620
+ * ]
621
+ * })
622
+ *
623
+ * // Create many DiscordUsers and only return the `id`
624
+ * const discordUserWithIdOnly = await prisma.discordUser.createManyAndReturn({
625
+ * select: { id: true },
626
+ * data: [
627
+ * // ... provide data here
628
+ * ]
629
+ * })
630
+ * Note, that providing `undefined` is treated as the value not being there.
631
+ * Read more here: https://pris.ly/d/null-undefined
632
+ *
633
+ */
634
+ createManyAndReturn<T extends DiscordUserCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DiscordUserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DiscordUserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
635
+ /**
636
+ * Delete a DiscordUser.
637
+ * @param {DiscordUserDeleteArgs} args - Arguments to delete one DiscordUser.
638
+ * @example
639
+ * // Delete one DiscordUser
640
+ * const DiscordUser = await prisma.discordUser.delete({
641
+ * where: {
642
+ * // ... filter to delete one DiscordUser
643
+ * }
644
+ * })
645
+ *
646
+ */
647
+ delete<T extends DiscordUserDeleteArgs>(args: Prisma.SelectSubset<T, DiscordUserDeleteArgs<ExtArgs>>): Prisma.Prisma__DiscordUserClient<runtime.Types.Result.GetResult<Prisma.$DiscordUserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
648
+ /**
649
+ * Update one DiscordUser.
650
+ * @param {DiscordUserUpdateArgs} args - Arguments to update one DiscordUser.
651
+ * @example
652
+ * // Update one DiscordUser
653
+ * const discordUser = await prisma.discordUser.update({
654
+ * where: {
655
+ * // ... provide filter here
656
+ * },
657
+ * data: {
658
+ * // ... provide data here
659
+ * }
660
+ * })
661
+ *
662
+ */
663
+ update<T extends DiscordUserUpdateArgs>(args: Prisma.SelectSubset<T, DiscordUserUpdateArgs<ExtArgs>>): Prisma.Prisma__DiscordUserClient<runtime.Types.Result.GetResult<Prisma.$DiscordUserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
664
+ /**
665
+ * Delete zero or more DiscordUsers.
666
+ * @param {DiscordUserDeleteManyArgs} args - Arguments to filter DiscordUsers to delete.
667
+ * @example
668
+ * // Delete a few DiscordUsers
669
+ * const { count } = await prisma.discordUser.deleteMany({
670
+ * where: {
671
+ * // ... provide filter here
672
+ * }
673
+ * })
674
+ *
675
+ */
676
+ deleteMany<T extends DiscordUserDeleteManyArgs>(args?: Prisma.SelectSubset<T, DiscordUserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
677
+ /**
678
+ * Update zero or more DiscordUsers.
679
+ * Note, that providing `undefined` is treated as the value not being there.
680
+ * Read more here: https://pris.ly/d/null-undefined
681
+ * @param {DiscordUserUpdateManyArgs} args - Arguments to update one or more rows.
682
+ * @example
683
+ * // Update many DiscordUsers
684
+ * const discordUser = await prisma.discordUser.updateMany({
685
+ * where: {
686
+ * // ... provide filter here
687
+ * },
688
+ * data: {
689
+ * // ... provide data here
690
+ * }
691
+ * })
692
+ *
693
+ */
694
+ updateMany<T extends DiscordUserUpdateManyArgs>(args: Prisma.SelectSubset<T, DiscordUserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
695
+ /**
696
+ * Update zero or more DiscordUsers and returns the data updated in the database.
697
+ * @param {DiscordUserUpdateManyAndReturnArgs} args - Arguments to update many DiscordUsers.
698
+ * @example
699
+ * // Update many DiscordUsers
700
+ * const discordUser = await prisma.discordUser.updateManyAndReturn({
701
+ * where: {
702
+ * // ... provide filter here
703
+ * },
704
+ * data: [
705
+ * // ... provide data here
706
+ * ]
707
+ * })
708
+ *
709
+ * // Update zero or more DiscordUsers and only return the `id`
710
+ * const discordUserWithIdOnly = await prisma.discordUser.updateManyAndReturn({
711
+ * select: { id: true },
712
+ * where: {
713
+ * // ... provide filter here
714
+ * },
715
+ * data: [
716
+ * // ... provide data here
717
+ * ]
718
+ * })
719
+ * Note, that providing `undefined` is treated as the value not being there.
720
+ * Read more here: https://pris.ly/d/null-undefined
721
+ *
722
+ */
723
+ updateManyAndReturn<T extends DiscordUserUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DiscordUserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DiscordUserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
724
+ /**
725
+ * Create or update one DiscordUser.
726
+ * @param {DiscordUserUpsertArgs} args - Arguments to update or create a DiscordUser.
727
+ * @example
728
+ * // Update or create a DiscordUser
729
+ * const discordUser = await prisma.discordUser.upsert({
730
+ * create: {
731
+ * // ... data to create a DiscordUser
732
+ * },
733
+ * update: {
734
+ * // ... in case it already exists, update
735
+ * },
736
+ * where: {
737
+ * // ... the filter for the DiscordUser we want to update
738
+ * }
739
+ * })
740
+ */
741
+ upsert<T extends DiscordUserUpsertArgs>(args: Prisma.SelectSubset<T, DiscordUserUpsertArgs<ExtArgs>>): Prisma.Prisma__DiscordUserClient<runtime.Types.Result.GetResult<Prisma.$DiscordUserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
742
+ /**
743
+ * Count the number of DiscordUsers.
744
+ * Note, that providing `undefined` is treated as the value not being there.
745
+ * Read more here: https://pris.ly/d/null-undefined
746
+ * @param {DiscordUserCountArgs} args - Arguments to filter DiscordUsers to count.
747
+ * @example
748
+ * // Count the number of DiscordUsers
749
+ * const count = await prisma.discordUser.count({
750
+ * where: {
751
+ * // ... the filter for the DiscordUsers we want to count
752
+ * }
753
+ * })
754
+ **/
755
+ count<T extends DiscordUserCountArgs>(args?: Prisma.Subset<T, DiscordUserCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], DiscordUserCountAggregateOutputType> : number>;
756
+ /**
757
+ * Allows you to perform aggregations operations on a DiscordUser.
758
+ * Note, that providing `undefined` is treated as the value not being there.
759
+ * Read more here: https://pris.ly/d/null-undefined
760
+ * @param {DiscordUserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
761
+ * @example
762
+ * // Ordered by age ascending
763
+ * // Where email contains prisma.io
764
+ * // Limited to the 10 users
765
+ * const aggregations = await prisma.user.aggregate({
766
+ * _avg: {
767
+ * age: true,
768
+ * },
769
+ * where: {
770
+ * email: {
771
+ * contains: "prisma.io",
772
+ * },
773
+ * },
774
+ * orderBy: {
775
+ * age: "asc",
776
+ * },
777
+ * take: 10,
778
+ * })
779
+ **/
780
+ aggregate<T extends DiscordUserAggregateArgs>(args: Prisma.Subset<T, DiscordUserAggregateArgs>): Prisma.PrismaPromise<GetDiscordUserAggregateType<T>>;
781
+ /**
782
+ * Group by DiscordUser.
783
+ * Note, that providing `undefined` is treated as the value not being there.
784
+ * Read more here: https://pris.ly/d/null-undefined
785
+ * @param {DiscordUserGroupByArgs} args - Group by arguments.
786
+ * @example
787
+ * // Group by city, order by createdAt, get count
788
+ * const result = await prisma.user.groupBy({
789
+ * by: ['city', 'createdAt'],
790
+ * orderBy: {
791
+ * createdAt: true
792
+ * },
793
+ * _count: {
794
+ * _all: true
795
+ * },
796
+ * })
797
+ *
798
+ **/
799
+ groupBy<T extends DiscordUserGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
800
+ orderBy: DiscordUserGroupByArgs['orderBy'];
801
+ } : {
802
+ orderBy?: DiscordUserGroupByArgs['orderBy'];
803
+ }, 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 ? {
804
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
805
+ Error,
806
+ 'Field ',
807
+ P,
808
+ ` in "having" needs to be provided in "by"`
809
+ ];
810
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
811
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
812
+ }[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 ? {} : {
813
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
814
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
815
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
816
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, DiscordUserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDiscordUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
817
+ /**
818
+ * Fields of the DiscordUser model
819
+ */
820
+ readonly fields: DiscordUserFieldRefs;
821
+ }
822
+ /**
823
+ * The delegate class that acts as a "Promise-like" for DiscordUser.
824
+ * Why is this prefixed with `Prisma__`?
825
+ * Because we want to prevent naming conflicts as mentioned in
826
+ * https://github.com/prisma/prisma-client-js/issues/707
827
+ */
828
+ export interface Prisma__DiscordUserClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
829
+ readonly [Symbol.toStringTag]: "PrismaPromise";
830
+ inactivity_periods<T extends Prisma.DiscordUser$inactivity_periodsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DiscordUser$inactivity_periodsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InactivityPeriodPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
831
+ link_code<T extends Prisma.DiscordUser$link_codeArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DiscordUser$link_codeArgs<ExtArgs>>): Prisma.Prisma__LinkCodeClient<runtime.Types.Result.GetResult<Prisma.$LinkCodePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
832
+ post_blocks<T extends Prisma.DiscordUser$post_blocksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DiscordUser$post_blocksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PostBlocksPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
833
+ user<T extends Prisma.DiscordUser$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DiscordUser$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
834
+ /**
835
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
836
+ * @param onfulfilled The callback to execute when the Promise is resolved.
837
+ * @param onrejected The callback to execute when the Promise is rejected.
838
+ * @returns A Promise for the completion of which ever callback is executed.
839
+ */
840
+ 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>;
841
+ /**
842
+ * Attaches a callback for only the rejection of the Promise.
843
+ * @param onrejected The callback to execute when the Promise is rejected.
844
+ * @returns A Promise for the completion of the callback.
845
+ */
846
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
847
+ /**
848
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
849
+ * resolved value cannot be modified from the callback.
850
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
851
+ * @returns A Promise for the completion of the callback.
852
+ */
853
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
854
+ }
855
+ /**
856
+ * Fields of the DiscordUser model
857
+ */
858
+ export interface DiscordUserFieldRefs {
859
+ readonly id: Prisma.FieldRef<"DiscordUser", 'String'>;
860
+ readonly username: Prisma.FieldRef<"DiscordUser", 'String'>;
861
+ }
862
+ /**
863
+ * DiscordUser findUnique
864
+ */
865
+ export type DiscordUserFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
866
+ /**
867
+ * Select specific fields to fetch from the DiscordUser
868
+ */
869
+ select?: Prisma.DiscordUserSelect<ExtArgs> | null;
870
+ /**
871
+ * Omit specific fields from the DiscordUser
872
+ */
873
+ omit?: Prisma.DiscordUserOmit<ExtArgs> | null;
874
+ /**
875
+ * Choose, which related nodes to fetch as well
876
+ */
877
+ include?: Prisma.DiscordUserInclude<ExtArgs> | null;
878
+ /**
879
+ * Filter, which DiscordUser to fetch.
880
+ */
881
+ where: Prisma.DiscordUserWhereUniqueInput;
882
+ };
883
+ /**
884
+ * DiscordUser findUniqueOrThrow
885
+ */
886
+ export type DiscordUserFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
887
+ /**
888
+ * Select specific fields to fetch from the DiscordUser
889
+ */
890
+ select?: Prisma.DiscordUserSelect<ExtArgs> | null;
891
+ /**
892
+ * Omit specific fields from the DiscordUser
893
+ */
894
+ omit?: Prisma.DiscordUserOmit<ExtArgs> | null;
895
+ /**
896
+ * Choose, which related nodes to fetch as well
897
+ */
898
+ include?: Prisma.DiscordUserInclude<ExtArgs> | null;
899
+ /**
900
+ * Filter, which DiscordUser to fetch.
901
+ */
902
+ where: Prisma.DiscordUserWhereUniqueInput;
903
+ };
904
+ /**
905
+ * DiscordUser findFirst
906
+ */
907
+ export type DiscordUserFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
908
+ /**
909
+ * Select specific fields to fetch from the DiscordUser
910
+ */
911
+ select?: Prisma.DiscordUserSelect<ExtArgs> | null;
912
+ /**
913
+ * Omit specific fields from the DiscordUser
914
+ */
915
+ omit?: Prisma.DiscordUserOmit<ExtArgs> | null;
916
+ /**
917
+ * Choose, which related nodes to fetch as well
918
+ */
919
+ include?: Prisma.DiscordUserInclude<ExtArgs> | null;
920
+ /**
921
+ * Filter, which DiscordUser to fetch.
922
+ */
923
+ where?: Prisma.DiscordUserWhereInput;
924
+ /**
925
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
926
+ *
927
+ * Determine the order of DiscordUsers to fetch.
928
+ */
929
+ orderBy?: Prisma.DiscordUserOrderByWithRelationInput | Prisma.DiscordUserOrderByWithRelationInput[];
930
+ /**
931
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
932
+ *
933
+ * Sets the position for searching for DiscordUsers.
934
+ */
935
+ cursor?: Prisma.DiscordUserWhereUniqueInput;
936
+ /**
937
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
938
+ *
939
+ * Take `±n` DiscordUsers from the position of the cursor.
940
+ */
941
+ take?: number;
942
+ /**
943
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
944
+ *
945
+ * Skip the first `n` DiscordUsers.
946
+ */
947
+ skip?: number;
948
+ /**
949
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
950
+ *
951
+ * Filter by unique combinations of DiscordUsers.
952
+ */
953
+ distinct?: Prisma.DiscordUserScalarFieldEnum | Prisma.DiscordUserScalarFieldEnum[];
954
+ };
955
+ /**
956
+ * DiscordUser findFirstOrThrow
957
+ */
958
+ export type DiscordUserFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
959
+ /**
960
+ * Select specific fields to fetch from the DiscordUser
961
+ */
962
+ select?: Prisma.DiscordUserSelect<ExtArgs> | null;
963
+ /**
964
+ * Omit specific fields from the DiscordUser
965
+ */
966
+ omit?: Prisma.DiscordUserOmit<ExtArgs> | null;
967
+ /**
968
+ * Choose, which related nodes to fetch as well
969
+ */
970
+ include?: Prisma.DiscordUserInclude<ExtArgs> | null;
971
+ /**
972
+ * Filter, which DiscordUser to fetch.
973
+ */
974
+ where?: Prisma.DiscordUserWhereInput;
975
+ /**
976
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
977
+ *
978
+ * Determine the order of DiscordUsers to fetch.
979
+ */
980
+ orderBy?: Prisma.DiscordUserOrderByWithRelationInput | Prisma.DiscordUserOrderByWithRelationInput[];
981
+ /**
982
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
983
+ *
984
+ * Sets the position for searching for DiscordUsers.
985
+ */
986
+ cursor?: Prisma.DiscordUserWhereUniqueInput;
987
+ /**
988
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
989
+ *
990
+ * Take `±n` DiscordUsers from the position of the cursor.
991
+ */
992
+ take?: number;
993
+ /**
994
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
995
+ *
996
+ * Skip the first `n` DiscordUsers.
997
+ */
998
+ skip?: number;
999
+ /**
1000
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1001
+ *
1002
+ * Filter by unique combinations of DiscordUsers.
1003
+ */
1004
+ distinct?: Prisma.DiscordUserScalarFieldEnum | Prisma.DiscordUserScalarFieldEnum[];
1005
+ };
1006
+ /**
1007
+ * DiscordUser findMany
1008
+ */
1009
+ export type DiscordUserFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1010
+ /**
1011
+ * Select specific fields to fetch from the DiscordUser
1012
+ */
1013
+ select?: Prisma.DiscordUserSelect<ExtArgs> | null;
1014
+ /**
1015
+ * Omit specific fields from the DiscordUser
1016
+ */
1017
+ omit?: Prisma.DiscordUserOmit<ExtArgs> | null;
1018
+ /**
1019
+ * Choose, which related nodes to fetch as well
1020
+ */
1021
+ include?: Prisma.DiscordUserInclude<ExtArgs> | null;
1022
+ /**
1023
+ * Filter, which DiscordUsers to fetch.
1024
+ */
1025
+ where?: Prisma.DiscordUserWhereInput;
1026
+ /**
1027
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1028
+ *
1029
+ * Determine the order of DiscordUsers to fetch.
1030
+ */
1031
+ orderBy?: Prisma.DiscordUserOrderByWithRelationInput | Prisma.DiscordUserOrderByWithRelationInput[];
1032
+ /**
1033
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1034
+ *
1035
+ * Sets the position for listing DiscordUsers.
1036
+ */
1037
+ cursor?: Prisma.DiscordUserWhereUniqueInput;
1038
+ /**
1039
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1040
+ *
1041
+ * Take `±n` DiscordUsers from the position of the cursor.
1042
+ */
1043
+ take?: number;
1044
+ /**
1045
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1046
+ *
1047
+ * Skip the first `n` DiscordUsers.
1048
+ */
1049
+ skip?: number;
1050
+ /**
1051
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1052
+ *
1053
+ * Filter by unique combinations of DiscordUsers.
1054
+ */
1055
+ distinct?: Prisma.DiscordUserScalarFieldEnum | Prisma.DiscordUserScalarFieldEnum[];
1056
+ };
1057
+ /**
1058
+ * DiscordUser create
1059
+ */
1060
+ export type DiscordUserCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1061
+ /**
1062
+ * Select specific fields to fetch from the DiscordUser
1063
+ */
1064
+ select?: Prisma.DiscordUserSelect<ExtArgs> | null;
1065
+ /**
1066
+ * Omit specific fields from the DiscordUser
1067
+ */
1068
+ omit?: Prisma.DiscordUserOmit<ExtArgs> | null;
1069
+ /**
1070
+ * Choose, which related nodes to fetch as well
1071
+ */
1072
+ include?: Prisma.DiscordUserInclude<ExtArgs> | null;
1073
+ /**
1074
+ * The data needed to create a DiscordUser.
1075
+ */
1076
+ data: Prisma.XOR<Prisma.DiscordUserCreateInput, Prisma.DiscordUserUncheckedCreateInput>;
1077
+ };
1078
+ /**
1079
+ * DiscordUser createMany
1080
+ */
1081
+ export type DiscordUserCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1082
+ /**
1083
+ * The data used to create many DiscordUsers.
1084
+ */
1085
+ data: Prisma.DiscordUserCreateManyInput | Prisma.DiscordUserCreateManyInput[];
1086
+ skipDuplicates?: boolean;
1087
+ };
1088
+ /**
1089
+ * DiscordUser createManyAndReturn
1090
+ */
1091
+ export type DiscordUserCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1092
+ /**
1093
+ * Select specific fields to fetch from the DiscordUser
1094
+ */
1095
+ select?: Prisma.DiscordUserSelectCreateManyAndReturn<ExtArgs> | null;
1096
+ /**
1097
+ * Omit specific fields from the DiscordUser
1098
+ */
1099
+ omit?: Prisma.DiscordUserOmit<ExtArgs> | null;
1100
+ /**
1101
+ * The data used to create many DiscordUsers.
1102
+ */
1103
+ data: Prisma.DiscordUserCreateManyInput | Prisma.DiscordUserCreateManyInput[];
1104
+ skipDuplicates?: boolean;
1105
+ };
1106
+ /**
1107
+ * DiscordUser update
1108
+ */
1109
+ export type DiscordUserUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1110
+ /**
1111
+ * Select specific fields to fetch from the DiscordUser
1112
+ */
1113
+ select?: Prisma.DiscordUserSelect<ExtArgs> | null;
1114
+ /**
1115
+ * Omit specific fields from the DiscordUser
1116
+ */
1117
+ omit?: Prisma.DiscordUserOmit<ExtArgs> | null;
1118
+ /**
1119
+ * Choose, which related nodes to fetch as well
1120
+ */
1121
+ include?: Prisma.DiscordUserInclude<ExtArgs> | null;
1122
+ /**
1123
+ * The data needed to update a DiscordUser.
1124
+ */
1125
+ data: Prisma.XOR<Prisma.DiscordUserUpdateInput, Prisma.DiscordUserUncheckedUpdateInput>;
1126
+ /**
1127
+ * Choose, which DiscordUser to update.
1128
+ */
1129
+ where: Prisma.DiscordUserWhereUniqueInput;
1130
+ };
1131
+ /**
1132
+ * DiscordUser updateMany
1133
+ */
1134
+ export type DiscordUserUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1135
+ /**
1136
+ * The data used to update DiscordUsers.
1137
+ */
1138
+ data: Prisma.XOR<Prisma.DiscordUserUpdateManyMutationInput, Prisma.DiscordUserUncheckedUpdateManyInput>;
1139
+ /**
1140
+ * Filter which DiscordUsers to update
1141
+ */
1142
+ where?: Prisma.DiscordUserWhereInput;
1143
+ /**
1144
+ * Limit how many DiscordUsers to update.
1145
+ */
1146
+ limit?: number;
1147
+ };
1148
+ /**
1149
+ * DiscordUser updateManyAndReturn
1150
+ */
1151
+ export type DiscordUserUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1152
+ /**
1153
+ * Select specific fields to fetch from the DiscordUser
1154
+ */
1155
+ select?: Prisma.DiscordUserSelectUpdateManyAndReturn<ExtArgs> | null;
1156
+ /**
1157
+ * Omit specific fields from the DiscordUser
1158
+ */
1159
+ omit?: Prisma.DiscordUserOmit<ExtArgs> | null;
1160
+ /**
1161
+ * The data used to update DiscordUsers.
1162
+ */
1163
+ data: Prisma.XOR<Prisma.DiscordUserUpdateManyMutationInput, Prisma.DiscordUserUncheckedUpdateManyInput>;
1164
+ /**
1165
+ * Filter which DiscordUsers to update
1166
+ */
1167
+ where?: Prisma.DiscordUserWhereInput;
1168
+ /**
1169
+ * Limit how many DiscordUsers to update.
1170
+ */
1171
+ limit?: number;
1172
+ };
1173
+ /**
1174
+ * DiscordUser upsert
1175
+ */
1176
+ export type DiscordUserUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1177
+ /**
1178
+ * Select specific fields to fetch from the DiscordUser
1179
+ */
1180
+ select?: Prisma.DiscordUserSelect<ExtArgs> | null;
1181
+ /**
1182
+ * Omit specific fields from the DiscordUser
1183
+ */
1184
+ omit?: Prisma.DiscordUserOmit<ExtArgs> | null;
1185
+ /**
1186
+ * Choose, which related nodes to fetch as well
1187
+ */
1188
+ include?: Prisma.DiscordUserInclude<ExtArgs> | null;
1189
+ /**
1190
+ * The filter to search for the DiscordUser to update in case it exists.
1191
+ */
1192
+ where: Prisma.DiscordUserWhereUniqueInput;
1193
+ /**
1194
+ * In case the DiscordUser found by the `where` argument doesn't exist, create a new DiscordUser with this data.
1195
+ */
1196
+ create: Prisma.XOR<Prisma.DiscordUserCreateInput, Prisma.DiscordUserUncheckedCreateInput>;
1197
+ /**
1198
+ * In case the DiscordUser was found with the provided `where` argument, update it with this data.
1199
+ */
1200
+ update: Prisma.XOR<Prisma.DiscordUserUpdateInput, Prisma.DiscordUserUncheckedUpdateInput>;
1201
+ };
1202
+ /**
1203
+ * DiscordUser delete
1204
+ */
1205
+ export type DiscordUserDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1206
+ /**
1207
+ * Select specific fields to fetch from the DiscordUser
1208
+ */
1209
+ select?: Prisma.DiscordUserSelect<ExtArgs> | null;
1210
+ /**
1211
+ * Omit specific fields from the DiscordUser
1212
+ */
1213
+ omit?: Prisma.DiscordUserOmit<ExtArgs> | null;
1214
+ /**
1215
+ * Choose, which related nodes to fetch as well
1216
+ */
1217
+ include?: Prisma.DiscordUserInclude<ExtArgs> | null;
1218
+ /**
1219
+ * Filter which DiscordUser to delete.
1220
+ */
1221
+ where: Prisma.DiscordUserWhereUniqueInput;
1222
+ };
1223
+ /**
1224
+ * DiscordUser deleteMany
1225
+ */
1226
+ export type DiscordUserDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1227
+ /**
1228
+ * Filter which DiscordUsers to delete
1229
+ */
1230
+ where?: Prisma.DiscordUserWhereInput;
1231
+ /**
1232
+ * Limit how many DiscordUsers to delete.
1233
+ */
1234
+ limit?: number;
1235
+ };
1236
+ /**
1237
+ * DiscordUser.inactivity_periods
1238
+ */
1239
+ export type DiscordUser$inactivity_periodsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1240
+ /**
1241
+ * Select specific fields to fetch from the InactivityPeriod
1242
+ */
1243
+ select?: Prisma.InactivityPeriodSelect<ExtArgs> | null;
1244
+ /**
1245
+ * Omit specific fields from the InactivityPeriod
1246
+ */
1247
+ omit?: Prisma.InactivityPeriodOmit<ExtArgs> | null;
1248
+ /**
1249
+ * Choose, which related nodes to fetch as well
1250
+ */
1251
+ include?: Prisma.InactivityPeriodInclude<ExtArgs> | null;
1252
+ where?: Prisma.InactivityPeriodWhereInput;
1253
+ orderBy?: Prisma.InactivityPeriodOrderByWithRelationInput | Prisma.InactivityPeriodOrderByWithRelationInput[];
1254
+ cursor?: Prisma.InactivityPeriodWhereUniqueInput;
1255
+ take?: number;
1256
+ skip?: number;
1257
+ distinct?: Prisma.InactivityPeriodScalarFieldEnum | Prisma.InactivityPeriodScalarFieldEnum[];
1258
+ };
1259
+ /**
1260
+ * DiscordUser.link_code
1261
+ */
1262
+ export type DiscordUser$link_codeArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1263
+ /**
1264
+ * Select specific fields to fetch from the LinkCode
1265
+ */
1266
+ select?: Prisma.LinkCodeSelect<ExtArgs> | null;
1267
+ /**
1268
+ * Omit specific fields from the LinkCode
1269
+ */
1270
+ omit?: Prisma.LinkCodeOmit<ExtArgs> | null;
1271
+ /**
1272
+ * Choose, which related nodes to fetch as well
1273
+ */
1274
+ include?: Prisma.LinkCodeInclude<ExtArgs> | null;
1275
+ where?: Prisma.LinkCodeWhereInput;
1276
+ };
1277
+ /**
1278
+ * DiscordUser.post_blocks
1279
+ */
1280
+ export type DiscordUser$post_blocksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1281
+ /**
1282
+ * Select specific fields to fetch from the PostBlocks
1283
+ */
1284
+ select?: Prisma.PostBlocksSelect<ExtArgs> | null;
1285
+ /**
1286
+ * Omit specific fields from the PostBlocks
1287
+ */
1288
+ omit?: Prisma.PostBlocksOmit<ExtArgs> | null;
1289
+ /**
1290
+ * Choose, which related nodes to fetch as well
1291
+ */
1292
+ include?: Prisma.PostBlocksInclude<ExtArgs> | null;
1293
+ where?: Prisma.PostBlocksWhereInput;
1294
+ orderBy?: Prisma.PostBlocksOrderByWithRelationInput | Prisma.PostBlocksOrderByWithRelationInput[];
1295
+ cursor?: Prisma.PostBlocksWhereUniqueInput;
1296
+ take?: number;
1297
+ skip?: number;
1298
+ distinct?: Prisma.PostBlocksScalarFieldEnum | Prisma.PostBlocksScalarFieldEnum[];
1299
+ };
1300
+ /**
1301
+ * DiscordUser.user
1302
+ */
1303
+ export type DiscordUser$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1304
+ /**
1305
+ * Select specific fields to fetch from the User
1306
+ */
1307
+ select?: Prisma.UserSelect<ExtArgs> | null;
1308
+ /**
1309
+ * Omit specific fields from the User
1310
+ */
1311
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1312
+ /**
1313
+ * Choose, which related nodes to fetch as well
1314
+ */
1315
+ include?: Prisma.UserInclude<ExtArgs> | null;
1316
+ where?: Prisma.UserWhereInput;
1317
+ };
1318
+ /**
1319
+ * DiscordUser without action
1320
+ */
1321
+ export type DiscordUserDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1322
+ /**
1323
+ * Select specific fields to fetch from the DiscordUser
1324
+ */
1325
+ select?: Prisma.DiscordUserSelect<ExtArgs> | null;
1326
+ /**
1327
+ * Omit specific fields from the DiscordUser
1328
+ */
1329
+ omit?: Prisma.DiscordUserOmit<ExtArgs> | null;
1330
+ /**
1331
+ * Choose, which related nodes to fetch as well
1332
+ */
1333
+ include?: Prisma.DiscordUserInclude<ExtArgs> | null;
1334
+ };
1335
+ //# sourceMappingURL=DiscordUser.d.ts.map