@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,1100 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.ts";
3
+ /**
4
+ * Model LinkCode
5
+ * Código temporal utilizado para vincular cuentas externas con Discord.
6
+ */
7
+ export type LinkCodeModel = runtime.Types.Result.DefaultSelection<Prisma.$LinkCodePayload>;
8
+ export type AggregateLinkCode = {
9
+ _count: LinkCodeCountAggregateOutputType | null;
10
+ _min: LinkCodeMinAggregateOutputType | null;
11
+ _max: LinkCodeMaxAggregateOutputType | null;
12
+ };
13
+ export type LinkCodeMinAggregateOutputType = {
14
+ id: string | null;
15
+ discord_id: string | null;
16
+ discord_nickname: string | null;
17
+ code: string | null;
18
+ };
19
+ export type LinkCodeMaxAggregateOutputType = {
20
+ id: string | null;
21
+ discord_id: string | null;
22
+ discord_nickname: string | null;
23
+ code: string | null;
24
+ };
25
+ export type LinkCodeCountAggregateOutputType = {
26
+ id: number;
27
+ discord_id: number;
28
+ discord_nickname: number;
29
+ code: number;
30
+ _all: number;
31
+ };
32
+ export type LinkCodeMinAggregateInputType = {
33
+ id?: true;
34
+ discord_id?: true;
35
+ discord_nickname?: true;
36
+ code?: true;
37
+ };
38
+ export type LinkCodeMaxAggregateInputType = {
39
+ id?: true;
40
+ discord_id?: true;
41
+ discord_nickname?: true;
42
+ code?: true;
43
+ };
44
+ export type LinkCodeCountAggregateInputType = {
45
+ id?: true;
46
+ discord_id?: true;
47
+ discord_nickname?: true;
48
+ code?: true;
49
+ _all?: true;
50
+ };
51
+ export type LinkCodeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
52
+ /**
53
+ * Filter which LinkCode to aggregate.
54
+ */
55
+ where?: Prisma.LinkCodeWhereInput;
56
+ /**
57
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
58
+ *
59
+ * Determine the order of LinkCodes to fetch.
60
+ */
61
+ orderBy?: Prisma.LinkCodeOrderByWithRelationInput | Prisma.LinkCodeOrderByWithRelationInput[];
62
+ /**
63
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
64
+ *
65
+ * Sets the start position
66
+ */
67
+ cursor?: Prisma.LinkCodeWhereUniqueInput;
68
+ /**
69
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
70
+ *
71
+ * Take `±n` LinkCodes from the position of the cursor.
72
+ */
73
+ take?: number;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
76
+ *
77
+ * Skip the first `n` LinkCodes.
78
+ */
79
+ skip?: number;
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
82
+ *
83
+ * Count returned LinkCodes
84
+ **/
85
+ _count?: true | LinkCodeCountAggregateInputType;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
88
+ *
89
+ * Select which fields to find the minimum value
90
+ **/
91
+ _min?: LinkCodeMinAggregateInputType;
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
94
+ *
95
+ * Select which fields to find the maximum value
96
+ **/
97
+ _max?: LinkCodeMaxAggregateInputType;
98
+ };
99
+ export type GetLinkCodeAggregateType<T extends LinkCodeAggregateArgs> = {
100
+ [P in keyof T & keyof AggregateLinkCode]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateLinkCode[P]> : Prisma.GetScalarType<T[P], AggregateLinkCode[P]>;
101
+ };
102
+ export type LinkCodeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
103
+ where?: Prisma.LinkCodeWhereInput;
104
+ orderBy?: Prisma.LinkCodeOrderByWithAggregationInput | Prisma.LinkCodeOrderByWithAggregationInput[];
105
+ by: Prisma.LinkCodeScalarFieldEnum[] | Prisma.LinkCodeScalarFieldEnum;
106
+ having?: Prisma.LinkCodeScalarWhereWithAggregatesInput;
107
+ take?: number;
108
+ skip?: number;
109
+ _count?: LinkCodeCountAggregateInputType | true;
110
+ _min?: LinkCodeMinAggregateInputType;
111
+ _max?: LinkCodeMaxAggregateInputType;
112
+ };
113
+ export type LinkCodeGroupByOutputType = {
114
+ id: string;
115
+ discord_id: string;
116
+ discord_nickname: string;
117
+ code: string;
118
+ _count: LinkCodeCountAggregateOutputType | null;
119
+ _min: LinkCodeMinAggregateOutputType | null;
120
+ _max: LinkCodeMaxAggregateOutputType | null;
121
+ };
122
+ export type GetLinkCodeGroupByPayload<T extends LinkCodeGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<LinkCodeGroupByOutputType, T['by']> & {
123
+ [P in ((keyof T) & (keyof LinkCodeGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], LinkCodeGroupByOutputType[P]> : Prisma.GetScalarType<T[P], LinkCodeGroupByOutputType[P]>;
124
+ }>>;
125
+ export type LinkCodeWhereInput = {
126
+ AND?: Prisma.LinkCodeWhereInput | Prisma.LinkCodeWhereInput[];
127
+ OR?: Prisma.LinkCodeWhereInput[];
128
+ NOT?: Prisma.LinkCodeWhereInput | Prisma.LinkCodeWhereInput[];
129
+ id?: Prisma.StringFilter<"LinkCode"> | string;
130
+ discord_id?: Prisma.StringFilter<"LinkCode"> | string;
131
+ discord_nickname?: Prisma.StringFilter<"LinkCode"> | string;
132
+ code?: Prisma.StringFilter<"LinkCode"> | string;
133
+ discord_user?: Prisma.XOR<Prisma.DiscordUserScalarRelationFilter, Prisma.DiscordUserWhereInput>;
134
+ };
135
+ export type LinkCodeOrderByWithRelationInput = {
136
+ id?: Prisma.SortOrder;
137
+ discord_id?: Prisma.SortOrder;
138
+ discord_nickname?: Prisma.SortOrder;
139
+ code?: Prisma.SortOrder;
140
+ discord_user?: Prisma.DiscordUserOrderByWithRelationInput;
141
+ };
142
+ export type LinkCodeWhereUniqueInput = Prisma.AtLeast<{
143
+ id?: string;
144
+ discord_id?: string;
145
+ code?: string;
146
+ AND?: Prisma.LinkCodeWhereInput | Prisma.LinkCodeWhereInput[];
147
+ OR?: Prisma.LinkCodeWhereInput[];
148
+ NOT?: Prisma.LinkCodeWhereInput | Prisma.LinkCodeWhereInput[];
149
+ discord_nickname?: Prisma.StringFilter<"LinkCode"> | string;
150
+ discord_user?: Prisma.XOR<Prisma.DiscordUserScalarRelationFilter, Prisma.DiscordUserWhereInput>;
151
+ }, "id" | "discord_id" | "code">;
152
+ export type LinkCodeOrderByWithAggregationInput = {
153
+ id?: Prisma.SortOrder;
154
+ discord_id?: Prisma.SortOrder;
155
+ discord_nickname?: Prisma.SortOrder;
156
+ code?: Prisma.SortOrder;
157
+ _count?: Prisma.LinkCodeCountOrderByAggregateInput;
158
+ _max?: Prisma.LinkCodeMaxOrderByAggregateInput;
159
+ _min?: Prisma.LinkCodeMinOrderByAggregateInput;
160
+ };
161
+ export type LinkCodeScalarWhereWithAggregatesInput = {
162
+ AND?: Prisma.LinkCodeScalarWhereWithAggregatesInput | Prisma.LinkCodeScalarWhereWithAggregatesInput[];
163
+ OR?: Prisma.LinkCodeScalarWhereWithAggregatesInput[];
164
+ NOT?: Prisma.LinkCodeScalarWhereWithAggregatesInput | Prisma.LinkCodeScalarWhereWithAggregatesInput[];
165
+ id?: Prisma.StringWithAggregatesFilter<"LinkCode"> | string;
166
+ discord_id?: Prisma.StringWithAggregatesFilter<"LinkCode"> | string;
167
+ discord_nickname?: Prisma.StringWithAggregatesFilter<"LinkCode"> | string;
168
+ code?: Prisma.StringWithAggregatesFilter<"LinkCode"> | string;
169
+ };
170
+ export type LinkCodeCreateInput = {
171
+ id?: string;
172
+ discord_nickname: string;
173
+ code: string;
174
+ discord_user: Prisma.DiscordUserCreateNestedOneWithoutLink_codeInput;
175
+ };
176
+ export type LinkCodeUncheckedCreateInput = {
177
+ id?: string;
178
+ discord_id: string;
179
+ discord_nickname: string;
180
+ code: string;
181
+ };
182
+ export type LinkCodeUpdateInput = {
183
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
184
+ discord_nickname?: Prisma.StringFieldUpdateOperationsInput | string;
185
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
186
+ discord_user?: Prisma.DiscordUserUpdateOneRequiredWithoutLink_codeNestedInput;
187
+ };
188
+ export type LinkCodeUncheckedUpdateInput = {
189
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
190
+ discord_id?: Prisma.StringFieldUpdateOperationsInput | string;
191
+ discord_nickname?: Prisma.StringFieldUpdateOperationsInput | string;
192
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
193
+ };
194
+ export type LinkCodeCreateManyInput = {
195
+ id?: string;
196
+ discord_id: string;
197
+ discord_nickname: string;
198
+ code: string;
199
+ };
200
+ export type LinkCodeUpdateManyMutationInput = {
201
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
202
+ discord_nickname?: Prisma.StringFieldUpdateOperationsInput | string;
203
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
204
+ };
205
+ export type LinkCodeUncheckedUpdateManyInput = {
206
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
207
+ discord_id?: Prisma.StringFieldUpdateOperationsInput | string;
208
+ discord_nickname?: Prisma.StringFieldUpdateOperationsInput | string;
209
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
210
+ };
211
+ export type LinkCodeCountOrderByAggregateInput = {
212
+ id?: Prisma.SortOrder;
213
+ discord_id?: Prisma.SortOrder;
214
+ discord_nickname?: Prisma.SortOrder;
215
+ code?: Prisma.SortOrder;
216
+ };
217
+ export type LinkCodeMaxOrderByAggregateInput = {
218
+ id?: Prisma.SortOrder;
219
+ discord_id?: Prisma.SortOrder;
220
+ discord_nickname?: Prisma.SortOrder;
221
+ code?: Prisma.SortOrder;
222
+ };
223
+ export type LinkCodeMinOrderByAggregateInput = {
224
+ id?: Prisma.SortOrder;
225
+ discord_id?: Prisma.SortOrder;
226
+ discord_nickname?: Prisma.SortOrder;
227
+ code?: Prisma.SortOrder;
228
+ };
229
+ export type LinkCodeNullableScalarRelationFilter = {
230
+ is?: Prisma.LinkCodeWhereInput | null;
231
+ isNot?: Prisma.LinkCodeWhereInput | null;
232
+ };
233
+ export type LinkCodeCreateNestedOneWithoutDiscord_userInput = {
234
+ create?: Prisma.XOR<Prisma.LinkCodeCreateWithoutDiscord_userInput, Prisma.LinkCodeUncheckedCreateWithoutDiscord_userInput>;
235
+ connectOrCreate?: Prisma.LinkCodeCreateOrConnectWithoutDiscord_userInput;
236
+ connect?: Prisma.LinkCodeWhereUniqueInput;
237
+ };
238
+ export type LinkCodeUncheckedCreateNestedOneWithoutDiscord_userInput = {
239
+ create?: Prisma.XOR<Prisma.LinkCodeCreateWithoutDiscord_userInput, Prisma.LinkCodeUncheckedCreateWithoutDiscord_userInput>;
240
+ connectOrCreate?: Prisma.LinkCodeCreateOrConnectWithoutDiscord_userInput;
241
+ connect?: Prisma.LinkCodeWhereUniqueInput;
242
+ };
243
+ export type LinkCodeUpdateOneWithoutDiscord_userNestedInput = {
244
+ create?: Prisma.XOR<Prisma.LinkCodeCreateWithoutDiscord_userInput, Prisma.LinkCodeUncheckedCreateWithoutDiscord_userInput>;
245
+ connectOrCreate?: Prisma.LinkCodeCreateOrConnectWithoutDiscord_userInput;
246
+ upsert?: Prisma.LinkCodeUpsertWithoutDiscord_userInput;
247
+ disconnect?: Prisma.LinkCodeWhereInput | boolean;
248
+ delete?: Prisma.LinkCodeWhereInput | boolean;
249
+ connect?: Prisma.LinkCodeWhereUniqueInput;
250
+ update?: Prisma.XOR<Prisma.XOR<Prisma.LinkCodeUpdateToOneWithWhereWithoutDiscord_userInput, Prisma.LinkCodeUpdateWithoutDiscord_userInput>, Prisma.LinkCodeUncheckedUpdateWithoutDiscord_userInput>;
251
+ };
252
+ export type LinkCodeUncheckedUpdateOneWithoutDiscord_userNestedInput = {
253
+ create?: Prisma.XOR<Prisma.LinkCodeCreateWithoutDiscord_userInput, Prisma.LinkCodeUncheckedCreateWithoutDiscord_userInput>;
254
+ connectOrCreate?: Prisma.LinkCodeCreateOrConnectWithoutDiscord_userInput;
255
+ upsert?: Prisma.LinkCodeUpsertWithoutDiscord_userInput;
256
+ disconnect?: Prisma.LinkCodeWhereInput | boolean;
257
+ delete?: Prisma.LinkCodeWhereInput | boolean;
258
+ connect?: Prisma.LinkCodeWhereUniqueInput;
259
+ update?: Prisma.XOR<Prisma.XOR<Prisma.LinkCodeUpdateToOneWithWhereWithoutDiscord_userInput, Prisma.LinkCodeUpdateWithoutDiscord_userInput>, Prisma.LinkCodeUncheckedUpdateWithoutDiscord_userInput>;
260
+ };
261
+ export type LinkCodeCreateWithoutDiscord_userInput = {
262
+ id?: string;
263
+ discord_nickname: string;
264
+ code: string;
265
+ };
266
+ export type LinkCodeUncheckedCreateWithoutDiscord_userInput = {
267
+ id?: string;
268
+ discord_nickname: string;
269
+ code: string;
270
+ };
271
+ export type LinkCodeCreateOrConnectWithoutDiscord_userInput = {
272
+ where: Prisma.LinkCodeWhereUniqueInput;
273
+ create: Prisma.XOR<Prisma.LinkCodeCreateWithoutDiscord_userInput, Prisma.LinkCodeUncheckedCreateWithoutDiscord_userInput>;
274
+ };
275
+ export type LinkCodeUpsertWithoutDiscord_userInput = {
276
+ update: Prisma.XOR<Prisma.LinkCodeUpdateWithoutDiscord_userInput, Prisma.LinkCodeUncheckedUpdateWithoutDiscord_userInput>;
277
+ create: Prisma.XOR<Prisma.LinkCodeCreateWithoutDiscord_userInput, Prisma.LinkCodeUncheckedCreateWithoutDiscord_userInput>;
278
+ where?: Prisma.LinkCodeWhereInput;
279
+ };
280
+ export type LinkCodeUpdateToOneWithWhereWithoutDiscord_userInput = {
281
+ where?: Prisma.LinkCodeWhereInput;
282
+ data: Prisma.XOR<Prisma.LinkCodeUpdateWithoutDiscord_userInput, Prisma.LinkCodeUncheckedUpdateWithoutDiscord_userInput>;
283
+ };
284
+ export type LinkCodeUpdateWithoutDiscord_userInput = {
285
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
286
+ discord_nickname?: Prisma.StringFieldUpdateOperationsInput | string;
287
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
288
+ };
289
+ export type LinkCodeUncheckedUpdateWithoutDiscord_userInput = {
290
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
291
+ discord_nickname?: Prisma.StringFieldUpdateOperationsInput | string;
292
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
293
+ };
294
+ export type LinkCodeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
295
+ id?: boolean;
296
+ discord_id?: boolean;
297
+ discord_nickname?: boolean;
298
+ code?: boolean;
299
+ discord_user?: boolean | Prisma.DiscordUserDefaultArgs<ExtArgs>;
300
+ }, ExtArgs["result"]["linkCode"]>;
301
+ export type LinkCodeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
302
+ id?: boolean;
303
+ discord_id?: boolean;
304
+ discord_nickname?: boolean;
305
+ code?: boolean;
306
+ discord_user?: boolean | Prisma.DiscordUserDefaultArgs<ExtArgs>;
307
+ }, ExtArgs["result"]["linkCode"]>;
308
+ export type LinkCodeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
309
+ id?: boolean;
310
+ discord_id?: boolean;
311
+ discord_nickname?: boolean;
312
+ code?: boolean;
313
+ discord_user?: boolean | Prisma.DiscordUserDefaultArgs<ExtArgs>;
314
+ }, ExtArgs["result"]["linkCode"]>;
315
+ export type LinkCodeSelectScalar = {
316
+ id?: boolean;
317
+ discord_id?: boolean;
318
+ discord_nickname?: boolean;
319
+ code?: boolean;
320
+ };
321
+ export type LinkCodeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "discord_id" | "discord_nickname" | "code", ExtArgs["result"]["linkCode"]>;
322
+ export type LinkCodeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
323
+ discord_user?: boolean | Prisma.DiscordUserDefaultArgs<ExtArgs>;
324
+ };
325
+ export type LinkCodeIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
326
+ discord_user?: boolean | Prisma.DiscordUserDefaultArgs<ExtArgs>;
327
+ };
328
+ export type LinkCodeIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
329
+ discord_user?: boolean | Prisma.DiscordUserDefaultArgs<ExtArgs>;
330
+ };
331
+ export type $LinkCodePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
332
+ name: "LinkCode";
333
+ objects: {
334
+ discord_user: Prisma.$DiscordUserPayload<ExtArgs>;
335
+ };
336
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
337
+ id: string;
338
+ discord_id: string;
339
+ discord_nickname: string;
340
+ code: string;
341
+ }, ExtArgs["result"]["linkCode"]>;
342
+ composites: {};
343
+ };
344
+ export type LinkCodeGetPayload<S extends boolean | null | undefined | LinkCodeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LinkCodePayload, S>;
345
+ export type LinkCodeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<LinkCodeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
346
+ select?: LinkCodeCountAggregateInputType | true;
347
+ };
348
+ export interface LinkCodeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
349
+ [K: symbol]: {
350
+ types: Prisma.TypeMap<ExtArgs>['model']['LinkCode'];
351
+ meta: {
352
+ name: 'LinkCode';
353
+ };
354
+ };
355
+ /**
356
+ * Find zero or one LinkCode that matches the filter.
357
+ * @param {LinkCodeFindUniqueArgs} args - Arguments to find a LinkCode
358
+ * @example
359
+ * // Get one LinkCode
360
+ * const linkCode = await prisma.linkCode.findUnique({
361
+ * where: {
362
+ * // ... provide filter here
363
+ * }
364
+ * })
365
+ */
366
+ findUnique<T extends LinkCodeFindUniqueArgs>(args: Prisma.SelectSubset<T, LinkCodeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__LinkCodeClient<runtime.Types.Result.GetResult<Prisma.$LinkCodePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
367
+ /**
368
+ * Find one LinkCode that matches the filter or throw an error with `error.code='P2025'`
369
+ * if no matches were found.
370
+ * @param {LinkCodeFindUniqueOrThrowArgs} args - Arguments to find a LinkCode
371
+ * @example
372
+ * // Get one LinkCode
373
+ * const linkCode = await prisma.linkCode.findUniqueOrThrow({
374
+ * where: {
375
+ * // ... provide filter here
376
+ * }
377
+ * })
378
+ */
379
+ findUniqueOrThrow<T extends LinkCodeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, LinkCodeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__LinkCodeClient<runtime.Types.Result.GetResult<Prisma.$LinkCodePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
380
+ /**
381
+ * Find the first LinkCode that matches the filter.
382
+ * Note, that providing `undefined` is treated as the value not being there.
383
+ * Read more here: https://pris.ly/d/null-undefined
384
+ * @param {LinkCodeFindFirstArgs} args - Arguments to find a LinkCode
385
+ * @example
386
+ * // Get one LinkCode
387
+ * const linkCode = await prisma.linkCode.findFirst({
388
+ * where: {
389
+ * // ... provide filter here
390
+ * }
391
+ * })
392
+ */
393
+ findFirst<T extends LinkCodeFindFirstArgs>(args?: Prisma.SelectSubset<T, LinkCodeFindFirstArgs<ExtArgs>>): Prisma.Prisma__LinkCodeClient<runtime.Types.Result.GetResult<Prisma.$LinkCodePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
394
+ /**
395
+ * Find the first LinkCode that matches the filter or
396
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
397
+ * Note, that providing `undefined` is treated as the value not being there.
398
+ * Read more here: https://pris.ly/d/null-undefined
399
+ * @param {LinkCodeFindFirstOrThrowArgs} args - Arguments to find a LinkCode
400
+ * @example
401
+ * // Get one LinkCode
402
+ * const linkCode = await prisma.linkCode.findFirstOrThrow({
403
+ * where: {
404
+ * // ... provide filter here
405
+ * }
406
+ * })
407
+ */
408
+ findFirstOrThrow<T extends LinkCodeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, LinkCodeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__LinkCodeClient<runtime.Types.Result.GetResult<Prisma.$LinkCodePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
409
+ /**
410
+ * Find zero or more LinkCodes that matches the filter.
411
+ * Note, that providing `undefined` is treated as the value not being there.
412
+ * Read more here: https://pris.ly/d/null-undefined
413
+ * @param {LinkCodeFindManyArgs} args - Arguments to filter and select certain fields only.
414
+ * @example
415
+ * // Get all LinkCodes
416
+ * const linkCodes = await prisma.linkCode.findMany()
417
+ *
418
+ * // Get first 10 LinkCodes
419
+ * const linkCodes = await prisma.linkCode.findMany({ take: 10 })
420
+ *
421
+ * // Only select the `id`
422
+ * const linkCodeWithIdOnly = await prisma.linkCode.findMany({ select: { id: true } })
423
+ *
424
+ */
425
+ findMany<T extends LinkCodeFindManyArgs>(args?: Prisma.SelectSubset<T, LinkCodeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LinkCodePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
426
+ /**
427
+ * Create a LinkCode.
428
+ * @param {LinkCodeCreateArgs} args - Arguments to create a LinkCode.
429
+ * @example
430
+ * // Create one LinkCode
431
+ * const LinkCode = await prisma.linkCode.create({
432
+ * data: {
433
+ * // ... data to create a LinkCode
434
+ * }
435
+ * })
436
+ *
437
+ */
438
+ create<T extends LinkCodeCreateArgs>(args: Prisma.SelectSubset<T, LinkCodeCreateArgs<ExtArgs>>): Prisma.Prisma__LinkCodeClient<runtime.Types.Result.GetResult<Prisma.$LinkCodePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
439
+ /**
440
+ * Create many LinkCodes.
441
+ * @param {LinkCodeCreateManyArgs} args - Arguments to create many LinkCodes.
442
+ * @example
443
+ * // Create many LinkCodes
444
+ * const linkCode = await prisma.linkCode.createMany({
445
+ * data: [
446
+ * // ... provide data here
447
+ * ]
448
+ * })
449
+ *
450
+ */
451
+ createMany<T extends LinkCodeCreateManyArgs>(args?: Prisma.SelectSubset<T, LinkCodeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
452
+ /**
453
+ * Create many LinkCodes and returns the data saved in the database.
454
+ * @param {LinkCodeCreateManyAndReturnArgs} args - Arguments to create many LinkCodes.
455
+ * @example
456
+ * // Create many LinkCodes
457
+ * const linkCode = await prisma.linkCode.createManyAndReturn({
458
+ * data: [
459
+ * // ... provide data here
460
+ * ]
461
+ * })
462
+ *
463
+ * // Create many LinkCodes and only return the `id`
464
+ * const linkCodeWithIdOnly = await prisma.linkCode.createManyAndReturn({
465
+ * select: { id: true },
466
+ * data: [
467
+ * // ... provide data here
468
+ * ]
469
+ * })
470
+ * Note, that providing `undefined` is treated as the value not being there.
471
+ * Read more here: https://pris.ly/d/null-undefined
472
+ *
473
+ */
474
+ createManyAndReturn<T extends LinkCodeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, LinkCodeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LinkCodePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
475
+ /**
476
+ * Delete a LinkCode.
477
+ * @param {LinkCodeDeleteArgs} args - Arguments to delete one LinkCode.
478
+ * @example
479
+ * // Delete one LinkCode
480
+ * const LinkCode = await prisma.linkCode.delete({
481
+ * where: {
482
+ * // ... filter to delete one LinkCode
483
+ * }
484
+ * })
485
+ *
486
+ */
487
+ delete<T extends LinkCodeDeleteArgs>(args: Prisma.SelectSubset<T, LinkCodeDeleteArgs<ExtArgs>>): Prisma.Prisma__LinkCodeClient<runtime.Types.Result.GetResult<Prisma.$LinkCodePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
488
+ /**
489
+ * Update one LinkCode.
490
+ * @param {LinkCodeUpdateArgs} args - Arguments to update one LinkCode.
491
+ * @example
492
+ * // Update one LinkCode
493
+ * const linkCode = await prisma.linkCode.update({
494
+ * where: {
495
+ * // ... provide filter here
496
+ * },
497
+ * data: {
498
+ * // ... provide data here
499
+ * }
500
+ * })
501
+ *
502
+ */
503
+ update<T extends LinkCodeUpdateArgs>(args: Prisma.SelectSubset<T, LinkCodeUpdateArgs<ExtArgs>>): Prisma.Prisma__LinkCodeClient<runtime.Types.Result.GetResult<Prisma.$LinkCodePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
504
+ /**
505
+ * Delete zero or more LinkCodes.
506
+ * @param {LinkCodeDeleteManyArgs} args - Arguments to filter LinkCodes to delete.
507
+ * @example
508
+ * // Delete a few LinkCodes
509
+ * const { count } = await prisma.linkCode.deleteMany({
510
+ * where: {
511
+ * // ... provide filter here
512
+ * }
513
+ * })
514
+ *
515
+ */
516
+ deleteMany<T extends LinkCodeDeleteManyArgs>(args?: Prisma.SelectSubset<T, LinkCodeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
517
+ /**
518
+ * Update zero or more LinkCodes.
519
+ * Note, that providing `undefined` is treated as the value not being there.
520
+ * Read more here: https://pris.ly/d/null-undefined
521
+ * @param {LinkCodeUpdateManyArgs} args - Arguments to update one or more rows.
522
+ * @example
523
+ * // Update many LinkCodes
524
+ * const linkCode = await prisma.linkCode.updateMany({
525
+ * where: {
526
+ * // ... provide filter here
527
+ * },
528
+ * data: {
529
+ * // ... provide data here
530
+ * }
531
+ * })
532
+ *
533
+ */
534
+ updateMany<T extends LinkCodeUpdateManyArgs>(args: Prisma.SelectSubset<T, LinkCodeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
535
+ /**
536
+ * Update zero or more LinkCodes and returns the data updated in the database.
537
+ * @param {LinkCodeUpdateManyAndReturnArgs} args - Arguments to update many LinkCodes.
538
+ * @example
539
+ * // Update many LinkCodes
540
+ * const linkCode = await prisma.linkCode.updateManyAndReturn({
541
+ * where: {
542
+ * // ... provide filter here
543
+ * },
544
+ * data: [
545
+ * // ... provide data here
546
+ * ]
547
+ * })
548
+ *
549
+ * // Update zero or more LinkCodes and only return the `id`
550
+ * const linkCodeWithIdOnly = await prisma.linkCode.updateManyAndReturn({
551
+ * select: { id: true },
552
+ * where: {
553
+ * // ... provide filter here
554
+ * },
555
+ * data: [
556
+ * // ... provide data here
557
+ * ]
558
+ * })
559
+ * Note, that providing `undefined` is treated as the value not being there.
560
+ * Read more here: https://pris.ly/d/null-undefined
561
+ *
562
+ */
563
+ updateManyAndReturn<T extends LinkCodeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, LinkCodeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LinkCodePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
564
+ /**
565
+ * Create or update one LinkCode.
566
+ * @param {LinkCodeUpsertArgs} args - Arguments to update or create a LinkCode.
567
+ * @example
568
+ * // Update or create a LinkCode
569
+ * const linkCode = await prisma.linkCode.upsert({
570
+ * create: {
571
+ * // ... data to create a LinkCode
572
+ * },
573
+ * update: {
574
+ * // ... in case it already exists, update
575
+ * },
576
+ * where: {
577
+ * // ... the filter for the LinkCode we want to update
578
+ * }
579
+ * })
580
+ */
581
+ upsert<T extends LinkCodeUpsertArgs>(args: Prisma.SelectSubset<T, LinkCodeUpsertArgs<ExtArgs>>): Prisma.Prisma__LinkCodeClient<runtime.Types.Result.GetResult<Prisma.$LinkCodePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
582
+ /**
583
+ * Count the number of LinkCodes.
584
+ * Note, that providing `undefined` is treated as the value not being there.
585
+ * Read more here: https://pris.ly/d/null-undefined
586
+ * @param {LinkCodeCountArgs} args - Arguments to filter LinkCodes to count.
587
+ * @example
588
+ * // Count the number of LinkCodes
589
+ * const count = await prisma.linkCode.count({
590
+ * where: {
591
+ * // ... the filter for the LinkCodes we want to count
592
+ * }
593
+ * })
594
+ **/
595
+ count<T extends LinkCodeCountArgs>(args?: Prisma.Subset<T, LinkCodeCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], LinkCodeCountAggregateOutputType> : number>;
596
+ /**
597
+ * Allows you to perform aggregations operations on a LinkCode.
598
+ * Note, that providing `undefined` is treated as the value not being there.
599
+ * Read more here: https://pris.ly/d/null-undefined
600
+ * @param {LinkCodeAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
601
+ * @example
602
+ * // Ordered by age ascending
603
+ * // Where email contains prisma.io
604
+ * // Limited to the 10 users
605
+ * const aggregations = await prisma.user.aggregate({
606
+ * _avg: {
607
+ * age: true,
608
+ * },
609
+ * where: {
610
+ * email: {
611
+ * contains: "prisma.io",
612
+ * },
613
+ * },
614
+ * orderBy: {
615
+ * age: "asc",
616
+ * },
617
+ * take: 10,
618
+ * })
619
+ **/
620
+ aggregate<T extends LinkCodeAggregateArgs>(args: Prisma.Subset<T, LinkCodeAggregateArgs>): Prisma.PrismaPromise<GetLinkCodeAggregateType<T>>;
621
+ /**
622
+ * Group by LinkCode.
623
+ * Note, that providing `undefined` is treated as the value not being there.
624
+ * Read more here: https://pris.ly/d/null-undefined
625
+ * @param {LinkCodeGroupByArgs} args - Group by arguments.
626
+ * @example
627
+ * // Group by city, order by createdAt, get count
628
+ * const result = await prisma.user.groupBy({
629
+ * by: ['city', 'createdAt'],
630
+ * orderBy: {
631
+ * createdAt: true
632
+ * },
633
+ * _count: {
634
+ * _all: true
635
+ * },
636
+ * })
637
+ *
638
+ **/
639
+ groupBy<T extends LinkCodeGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
640
+ orderBy: LinkCodeGroupByArgs['orderBy'];
641
+ } : {
642
+ orderBy?: LinkCodeGroupByArgs['orderBy'];
643
+ }, 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 ? {
644
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
645
+ Error,
646
+ 'Field ',
647
+ P,
648
+ ` in "having" needs to be provided in "by"`
649
+ ];
650
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
651
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
652
+ }[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 ? {} : {
653
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
654
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
655
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
656
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, LinkCodeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLinkCodeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
657
+ /**
658
+ * Fields of the LinkCode model
659
+ */
660
+ readonly fields: LinkCodeFieldRefs;
661
+ }
662
+ /**
663
+ * The delegate class that acts as a "Promise-like" for LinkCode.
664
+ * Why is this prefixed with `Prisma__`?
665
+ * Because we want to prevent naming conflicts as mentioned in
666
+ * https://github.com/prisma/prisma-client-js/issues/707
667
+ */
668
+ export interface Prisma__LinkCodeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
669
+ readonly [Symbol.toStringTag]: "PrismaPromise";
670
+ 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>;
671
+ /**
672
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
673
+ * @param onfulfilled The callback to execute when the Promise is resolved.
674
+ * @param onrejected The callback to execute when the Promise is rejected.
675
+ * @returns A Promise for the completion of which ever callback is executed.
676
+ */
677
+ 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>;
678
+ /**
679
+ * Attaches a callback for only the rejection of the Promise.
680
+ * @param onrejected The callback to execute when the Promise is rejected.
681
+ * @returns A Promise for the completion of the callback.
682
+ */
683
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
684
+ /**
685
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
686
+ * resolved value cannot be modified from the callback.
687
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
688
+ * @returns A Promise for the completion of the callback.
689
+ */
690
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
691
+ }
692
+ /**
693
+ * Fields of the LinkCode model
694
+ */
695
+ export interface LinkCodeFieldRefs {
696
+ readonly id: Prisma.FieldRef<"LinkCode", 'String'>;
697
+ readonly discord_id: Prisma.FieldRef<"LinkCode", 'String'>;
698
+ readonly discord_nickname: Prisma.FieldRef<"LinkCode", 'String'>;
699
+ readonly code: Prisma.FieldRef<"LinkCode", 'String'>;
700
+ }
701
+ /**
702
+ * LinkCode findUnique
703
+ */
704
+ export type LinkCodeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
705
+ /**
706
+ * Select specific fields to fetch from the LinkCode
707
+ */
708
+ select?: Prisma.LinkCodeSelect<ExtArgs> | null;
709
+ /**
710
+ * Omit specific fields from the LinkCode
711
+ */
712
+ omit?: Prisma.LinkCodeOmit<ExtArgs> | null;
713
+ /**
714
+ * Choose, which related nodes to fetch as well
715
+ */
716
+ include?: Prisma.LinkCodeInclude<ExtArgs> | null;
717
+ /**
718
+ * Filter, which LinkCode to fetch.
719
+ */
720
+ where: Prisma.LinkCodeWhereUniqueInput;
721
+ };
722
+ /**
723
+ * LinkCode findUniqueOrThrow
724
+ */
725
+ export type LinkCodeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
726
+ /**
727
+ * Select specific fields to fetch from the LinkCode
728
+ */
729
+ select?: Prisma.LinkCodeSelect<ExtArgs> | null;
730
+ /**
731
+ * Omit specific fields from the LinkCode
732
+ */
733
+ omit?: Prisma.LinkCodeOmit<ExtArgs> | null;
734
+ /**
735
+ * Choose, which related nodes to fetch as well
736
+ */
737
+ include?: Prisma.LinkCodeInclude<ExtArgs> | null;
738
+ /**
739
+ * Filter, which LinkCode to fetch.
740
+ */
741
+ where: Prisma.LinkCodeWhereUniqueInput;
742
+ };
743
+ /**
744
+ * LinkCode findFirst
745
+ */
746
+ export type LinkCodeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
747
+ /**
748
+ * Select specific fields to fetch from the LinkCode
749
+ */
750
+ select?: Prisma.LinkCodeSelect<ExtArgs> | null;
751
+ /**
752
+ * Omit specific fields from the LinkCode
753
+ */
754
+ omit?: Prisma.LinkCodeOmit<ExtArgs> | null;
755
+ /**
756
+ * Choose, which related nodes to fetch as well
757
+ */
758
+ include?: Prisma.LinkCodeInclude<ExtArgs> | null;
759
+ /**
760
+ * Filter, which LinkCode to fetch.
761
+ */
762
+ where?: Prisma.LinkCodeWhereInput;
763
+ /**
764
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
765
+ *
766
+ * Determine the order of LinkCodes to fetch.
767
+ */
768
+ orderBy?: Prisma.LinkCodeOrderByWithRelationInput | Prisma.LinkCodeOrderByWithRelationInput[];
769
+ /**
770
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
771
+ *
772
+ * Sets the position for searching for LinkCodes.
773
+ */
774
+ cursor?: Prisma.LinkCodeWhereUniqueInput;
775
+ /**
776
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
777
+ *
778
+ * Take `±n` LinkCodes from the position of the cursor.
779
+ */
780
+ take?: number;
781
+ /**
782
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
783
+ *
784
+ * Skip the first `n` LinkCodes.
785
+ */
786
+ skip?: number;
787
+ /**
788
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
789
+ *
790
+ * Filter by unique combinations of LinkCodes.
791
+ */
792
+ distinct?: Prisma.LinkCodeScalarFieldEnum | Prisma.LinkCodeScalarFieldEnum[];
793
+ };
794
+ /**
795
+ * LinkCode findFirstOrThrow
796
+ */
797
+ export type LinkCodeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
798
+ /**
799
+ * Select specific fields to fetch from the LinkCode
800
+ */
801
+ select?: Prisma.LinkCodeSelect<ExtArgs> | null;
802
+ /**
803
+ * Omit specific fields from the LinkCode
804
+ */
805
+ omit?: Prisma.LinkCodeOmit<ExtArgs> | null;
806
+ /**
807
+ * Choose, which related nodes to fetch as well
808
+ */
809
+ include?: Prisma.LinkCodeInclude<ExtArgs> | null;
810
+ /**
811
+ * Filter, which LinkCode to fetch.
812
+ */
813
+ where?: Prisma.LinkCodeWhereInput;
814
+ /**
815
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
816
+ *
817
+ * Determine the order of LinkCodes to fetch.
818
+ */
819
+ orderBy?: Prisma.LinkCodeOrderByWithRelationInput | Prisma.LinkCodeOrderByWithRelationInput[];
820
+ /**
821
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
822
+ *
823
+ * Sets the position for searching for LinkCodes.
824
+ */
825
+ cursor?: Prisma.LinkCodeWhereUniqueInput;
826
+ /**
827
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
828
+ *
829
+ * Take `±n` LinkCodes from the position of the cursor.
830
+ */
831
+ take?: number;
832
+ /**
833
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
834
+ *
835
+ * Skip the first `n` LinkCodes.
836
+ */
837
+ skip?: number;
838
+ /**
839
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
840
+ *
841
+ * Filter by unique combinations of LinkCodes.
842
+ */
843
+ distinct?: Prisma.LinkCodeScalarFieldEnum | Prisma.LinkCodeScalarFieldEnum[];
844
+ };
845
+ /**
846
+ * LinkCode findMany
847
+ */
848
+ export type LinkCodeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
849
+ /**
850
+ * Select specific fields to fetch from the LinkCode
851
+ */
852
+ select?: Prisma.LinkCodeSelect<ExtArgs> | null;
853
+ /**
854
+ * Omit specific fields from the LinkCode
855
+ */
856
+ omit?: Prisma.LinkCodeOmit<ExtArgs> | null;
857
+ /**
858
+ * Choose, which related nodes to fetch as well
859
+ */
860
+ include?: Prisma.LinkCodeInclude<ExtArgs> | null;
861
+ /**
862
+ * Filter, which LinkCodes to fetch.
863
+ */
864
+ where?: Prisma.LinkCodeWhereInput;
865
+ /**
866
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
867
+ *
868
+ * Determine the order of LinkCodes to fetch.
869
+ */
870
+ orderBy?: Prisma.LinkCodeOrderByWithRelationInput | Prisma.LinkCodeOrderByWithRelationInput[];
871
+ /**
872
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
873
+ *
874
+ * Sets the position for listing LinkCodes.
875
+ */
876
+ cursor?: Prisma.LinkCodeWhereUniqueInput;
877
+ /**
878
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
879
+ *
880
+ * Take `±n` LinkCodes from the position of the cursor.
881
+ */
882
+ take?: number;
883
+ /**
884
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
885
+ *
886
+ * Skip the first `n` LinkCodes.
887
+ */
888
+ skip?: number;
889
+ /**
890
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
891
+ *
892
+ * Filter by unique combinations of LinkCodes.
893
+ */
894
+ distinct?: Prisma.LinkCodeScalarFieldEnum | Prisma.LinkCodeScalarFieldEnum[];
895
+ };
896
+ /**
897
+ * LinkCode create
898
+ */
899
+ export type LinkCodeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
900
+ /**
901
+ * Select specific fields to fetch from the LinkCode
902
+ */
903
+ select?: Prisma.LinkCodeSelect<ExtArgs> | null;
904
+ /**
905
+ * Omit specific fields from the LinkCode
906
+ */
907
+ omit?: Prisma.LinkCodeOmit<ExtArgs> | null;
908
+ /**
909
+ * Choose, which related nodes to fetch as well
910
+ */
911
+ include?: Prisma.LinkCodeInclude<ExtArgs> | null;
912
+ /**
913
+ * The data needed to create a LinkCode.
914
+ */
915
+ data: Prisma.XOR<Prisma.LinkCodeCreateInput, Prisma.LinkCodeUncheckedCreateInput>;
916
+ };
917
+ /**
918
+ * LinkCode createMany
919
+ */
920
+ export type LinkCodeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
921
+ /**
922
+ * The data used to create many LinkCodes.
923
+ */
924
+ data: Prisma.LinkCodeCreateManyInput | Prisma.LinkCodeCreateManyInput[];
925
+ skipDuplicates?: boolean;
926
+ };
927
+ /**
928
+ * LinkCode createManyAndReturn
929
+ */
930
+ export type LinkCodeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
931
+ /**
932
+ * Select specific fields to fetch from the LinkCode
933
+ */
934
+ select?: Prisma.LinkCodeSelectCreateManyAndReturn<ExtArgs> | null;
935
+ /**
936
+ * Omit specific fields from the LinkCode
937
+ */
938
+ omit?: Prisma.LinkCodeOmit<ExtArgs> | null;
939
+ /**
940
+ * The data used to create many LinkCodes.
941
+ */
942
+ data: Prisma.LinkCodeCreateManyInput | Prisma.LinkCodeCreateManyInput[];
943
+ skipDuplicates?: boolean;
944
+ /**
945
+ * Choose, which related nodes to fetch as well
946
+ */
947
+ include?: Prisma.LinkCodeIncludeCreateManyAndReturn<ExtArgs> | null;
948
+ };
949
+ /**
950
+ * LinkCode update
951
+ */
952
+ export type LinkCodeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
953
+ /**
954
+ * Select specific fields to fetch from the LinkCode
955
+ */
956
+ select?: Prisma.LinkCodeSelect<ExtArgs> | null;
957
+ /**
958
+ * Omit specific fields from the LinkCode
959
+ */
960
+ omit?: Prisma.LinkCodeOmit<ExtArgs> | null;
961
+ /**
962
+ * Choose, which related nodes to fetch as well
963
+ */
964
+ include?: Prisma.LinkCodeInclude<ExtArgs> | null;
965
+ /**
966
+ * The data needed to update a LinkCode.
967
+ */
968
+ data: Prisma.XOR<Prisma.LinkCodeUpdateInput, Prisma.LinkCodeUncheckedUpdateInput>;
969
+ /**
970
+ * Choose, which LinkCode to update.
971
+ */
972
+ where: Prisma.LinkCodeWhereUniqueInput;
973
+ };
974
+ /**
975
+ * LinkCode updateMany
976
+ */
977
+ export type LinkCodeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
978
+ /**
979
+ * The data used to update LinkCodes.
980
+ */
981
+ data: Prisma.XOR<Prisma.LinkCodeUpdateManyMutationInput, Prisma.LinkCodeUncheckedUpdateManyInput>;
982
+ /**
983
+ * Filter which LinkCodes to update
984
+ */
985
+ where?: Prisma.LinkCodeWhereInput;
986
+ /**
987
+ * Limit how many LinkCodes to update.
988
+ */
989
+ limit?: number;
990
+ };
991
+ /**
992
+ * LinkCode updateManyAndReturn
993
+ */
994
+ export type LinkCodeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
995
+ /**
996
+ * Select specific fields to fetch from the LinkCode
997
+ */
998
+ select?: Prisma.LinkCodeSelectUpdateManyAndReturn<ExtArgs> | null;
999
+ /**
1000
+ * Omit specific fields from the LinkCode
1001
+ */
1002
+ omit?: Prisma.LinkCodeOmit<ExtArgs> | null;
1003
+ /**
1004
+ * The data used to update LinkCodes.
1005
+ */
1006
+ data: Prisma.XOR<Prisma.LinkCodeUpdateManyMutationInput, Prisma.LinkCodeUncheckedUpdateManyInput>;
1007
+ /**
1008
+ * Filter which LinkCodes to update
1009
+ */
1010
+ where?: Prisma.LinkCodeWhereInput;
1011
+ /**
1012
+ * Limit how many LinkCodes to update.
1013
+ */
1014
+ limit?: number;
1015
+ /**
1016
+ * Choose, which related nodes to fetch as well
1017
+ */
1018
+ include?: Prisma.LinkCodeIncludeUpdateManyAndReturn<ExtArgs> | null;
1019
+ };
1020
+ /**
1021
+ * LinkCode upsert
1022
+ */
1023
+ export type LinkCodeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1024
+ /**
1025
+ * Select specific fields to fetch from the LinkCode
1026
+ */
1027
+ select?: Prisma.LinkCodeSelect<ExtArgs> | null;
1028
+ /**
1029
+ * Omit specific fields from the LinkCode
1030
+ */
1031
+ omit?: Prisma.LinkCodeOmit<ExtArgs> | null;
1032
+ /**
1033
+ * Choose, which related nodes to fetch as well
1034
+ */
1035
+ include?: Prisma.LinkCodeInclude<ExtArgs> | null;
1036
+ /**
1037
+ * The filter to search for the LinkCode to update in case it exists.
1038
+ */
1039
+ where: Prisma.LinkCodeWhereUniqueInput;
1040
+ /**
1041
+ * In case the LinkCode found by the `where` argument doesn't exist, create a new LinkCode with this data.
1042
+ */
1043
+ create: Prisma.XOR<Prisma.LinkCodeCreateInput, Prisma.LinkCodeUncheckedCreateInput>;
1044
+ /**
1045
+ * In case the LinkCode was found with the provided `where` argument, update it with this data.
1046
+ */
1047
+ update: Prisma.XOR<Prisma.LinkCodeUpdateInput, Prisma.LinkCodeUncheckedUpdateInput>;
1048
+ };
1049
+ /**
1050
+ * LinkCode delete
1051
+ */
1052
+ export type LinkCodeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1053
+ /**
1054
+ * Select specific fields to fetch from the LinkCode
1055
+ */
1056
+ select?: Prisma.LinkCodeSelect<ExtArgs> | null;
1057
+ /**
1058
+ * Omit specific fields from the LinkCode
1059
+ */
1060
+ omit?: Prisma.LinkCodeOmit<ExtArgs> | null;
1061
+ /**
1062
+ * Choose, which related nodes to fetch as well
1063
+ */
1064
+ include?: Prisma.LinkCodeInclude<ExtArgs> | null;
1065
+ /**
1066
+ * Filter which LinkCode to delete.
1067
+ */
1068
+ where: Prisma.LinkCodeWhereUniqueInput;
1069
+ };
1070
+ /**
1071
+ * LinkCode deleteMany
1072
+ */
1073
+ export type LinkCodeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1074
+ /**
1075
+ * Filter which LinkCodes to delete
1076
+ */
1077
+ where?: Prisma.LinkCodeWhereInput;
1078
+ /**
1079
+ * Limit how many LinkCodes to delete.
1080
+ */
1081
+ limit?: number;
1082
+ };
1083
+ /**
1084
+ * LinkCode without action
1085
+ */
1086
+ export type LinkCodeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1087
+ /**
1088
+ * Select specific fields to fetch from the LinkCode
1089
+ */
1090
+ select?: Prisma.LinkCodeSelect<ExtArgs> | null;
1091
+ /**
1092
+ * Omit specific fields from the LinkCode
1093
+ */
1094
+ omit?: Prisma.LinkCodeOmit<ExtArgs> | null;
1095
+ /**
1096
+ * Choose, which related nodes to fetch as well
1097
+ */
1098
+ include?: Prisma.LinkCodeInclude<ExtArgs> | null;
1099
+ };
1100
+ //# sourceMappingURL=LinkCode.d.ts.map