@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.
- package/README.md +45 -0
- package/dist/generated/browser.d.ts +110 -0
- package/dist/generated/browser.d.ts.map +1 -0
- package/dist/generated/browser.js +18 -0
- package/dist/generated/browser.js.map +1 -0
- package/dist/generated/client.d.ts +129 -0
- package/dist/generated/client.d.ts.map +1 -0
- package/dist/generated/client.js +35 -0
- package/dist/generated/client.js.map +1 -0
- package/dist/generated/commonInputTypes.d.ts +501 -0
- package/dist/generated/commonInputTypes.d.ts.map +1 -0
- package/dist/generated/commonInputTypes.js +11 -0
- package/dist/generated/commonInputTypes.js.map +1 -0
- package/dist/generated/enums.d.ts +19 -0
- package/dist/generated/enums.d.ts.map +1 -0
- package/dist/generated/enums.js +25 -0
- package/dist/generated/enums.js.map +1 -0
- package/dist/generated/internal/class.d.ts +363 -0
- package/dist/generated/internal/class.d.ts.map +1 -0
- package/dist/generated/internal/class.js +52 -0
- package/dist/generated/internal/class.js.map +1 -0
- package/dist/generated/internal/prismaNamespace.d.ts +2282 -0
- package/dist/generated/internal/prismaNamespace.d.ts.map +1 -0
- package/dist/generated/internal/prismaNamespace.js +262 -0
- package/dist/generated/internal/prismaNamespace.js.map +1 -0
- package/dist/generated/internal/prismaNamespaceBrowser.d.ts +243 -0
- package/dist/generated/internal/prismaNamespaceBrowser.d.ts.map +1 -0
- package/dist/generated/internal/prismaNamespaceBrowser.js +233 -0
- package/dist/generated/internal/prismaNamespaceBrowser.js.map +1 -0
- package/dist/generated/models/AuthorizationCode.d.ts +1445 -0
- package/dist/generated/models/AuthorizationCode.d.ts.map +1 -0
- package/dist/generated/models/AuthorizationCode.js +2 -0
- package/dist/generated/models/AuthorizationCode.js.map +1 -0
- package/dist/generated/models/Client.d.ts +1301 -0
- package/dist/generated/models/Client.d.ts.map +1 -0
- package/dist/generated/models/Client.js +2 -0
- package/dist/generated/models/Client.js.map +1 -0
- package/dist/generated/models/DiscordUser.d.ts +1335 -0
- package/dist/generated/models/DiscordUser.d.ts.map +1 -0
- package/dist/generated/models/DiscordUser.js +2 -0
- package/dist/generated/models/DiscordUser.js.map +1 -0
- package/dist/generated/models/InactivityPeriod.d.ts +1255 -0
- package/dist/generated/models/InactivityPeriod.d.ts.map +1 -0
- package/dist/generated/models/InactivityPeriod.js +2 -0
- package/dist/generated/models/InactivityPeriod.js.map +1 -0
- package/dist/generated/models/LinkCode.d.ts +1100 -0
- package/dist/generated/models/LinkCode.d.ts.map +1 -0
- package/dist/generated/models/LinkCode.js +2 -0
- package/dist/generated/models/LinkCode.js.map +1 -0
- package/dist/generated/models/LinkedMinecraftRole.d.ts +1162 -0
- package/dist/generated/models/LinkedMinecraftRole.d.ts.map +1 -0
- package/dist/generated/models/LinkedMinecraftRole.js +2 -0
- package/dist/generated/models/LinkedMinecraftRole.js.map +1 -0
- package/dist/generated/models/LinkedRole.d.ts +1162 -0
- package/dist/generated/models/LinkedRole.d.ts.map +1 -0
- package/dist/generated/models/LinkedRole.js +2 -0
- package/dist/generated/models/LinkedRole.js.map +1 -0
- package/dist/generated/models/Media.d.ts +1146 -0
- package/dist/generated/models/Media.d.ts.map +1 -0
- package/dist/generated/models/Media.js +2 -0
- package/dist/generated/models/Media.js.map +1 -0
- package/dist/generated/models/MinecraftRole.d.ts +1064 -0
- package/dist/generated/models/MinecraftRole.d.ts.map +1 -0
- package/dist/generated/models/MinecraftRole.js +2 -0
- package/dist/generated/models/MinecraftRole.js.map +1 -0
- package/dist/generated/models/Player.d.ts +1458 -0
- package/dist/generated/models/Player.d.ts.map +1 -0
- package/dist/generated/models/Player.js +2 -0
- package/dist/generated/models/Player.js.map +1 -0
- package/dist/generated/models/Post.d.ts +1534 -0
- package/dist/generated/models/Post.d.ts.map +1 -0
- package/dist/generated/models/Post.js +2 -0
- package/dist/generated/models/Post.js.map +1 -0
- package/dist/generated/models/PostBlockMedia.d.ts +1243 -0
- package/dist/generated/models/PostBlockMedia.d.ts.map +1 -0
- package/dist/generated/models/PostBlockMedia.js +2 -0
- package/dist/generated/models/PostBlockMedia.js.map +1 -0
- package/dist/generated/models/PostBlocks.d.ts +1506 -0
- package/dist/generated/models/PostBlocks.d.ts.map +1 -0
- package/dist/generated/models/PostBlocks.js +2 -0
- package/dist/generated/models/PostBlocks.js.map +1 -0
- package/dist/generated/models/PostMedia.d.ts +1497 -0
- package/dist/generated/models/PostMedia.d.ts.map +1 -0
- package/dist/generated/models/PostMedia.js +2 -0
- package/dist/generated/models/PostMedia.js.map +1 -0
- package/dist/generated/models/Role.d.ts +1144 -0
- package/dist/generated/models/Role.d.ts.map +1 -0
- package/dist/generated/models/Role.js +2 -0
- package/dist/generated/models/Role.js.map +1 -0
- package/dist/generated/models/RoleStatistic.d.ts +1077 -0
- package/dist/generated/models/RoleStatistic.d.ts.map +1 -0
- package/dist/generated/models/RoleStatistic.js +2 -0
- package/dist/generated/models/RoleStatistic.js.map +1 -0
- package/dist/generated/models/Session.d.ts +1366 -0
- package/dist/generated/models/Session.d.ts.map +1 -0
- package/dist/generated/models/Session.js +2 -0
- package/dist/generated/models/Session.js.map +1 -0
- package/dist/generated/models/State.d.ts +970 -0
- package/dist/generated/models/State.d.ts.map +1 -0
- package/dist/generated/models/State.js +2 -0
- package/dist/generated/models/State.js.map +1 -0
- package/dist/generated/models/TrackedRole.d.ts +947 -0
- package/dist/generated/models/TrackedRole.d.ts.map +1 -0
- package/dist/generated/models/TrackedRole.js +2 -0
- package/dist/generated/models/TrackedRole.js.map +1 -0
- package/dist/generated/models/User.d.ts +1842 -0
- package/dist/generated/models/User.d.ts.map +1 -0
- package/dist/generated/models/User.js +2 -0
- package/dist/generated/models/User.js.map +1 -0
- package/dist/generated/models/WebhookToken.d.ts +1219 -0
- package/dist/generated/models/WebhookToken.d.ts.map +1 -0
- package/dist/generated/models/WebhookToken.js +2 -0
- package/dist/generated/models/WebhookToken.js.map +1 -0
- package/dist/generated/models.d.ts +23 -0
- package/dist/generated/models.d.ts.map +1 -0
- package/dist/generated/models.js +2 -0
- package/dist/generated/models.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/package.json +50 -0
- package/prisma/migrations/20251231000230_init/migration.sql +156 -0
- package/prisma/migrations/20251231011118_add_rank/migration.sql +2 -0
- package/prisma/migrations/20251231014040_discord_code/migration.sql +2 -0
- package/prisma/migrations/20260107232913_webhook_tokens/migration.sql +13 -0
- package/prisma/migrations/20260108014222_token_name/migration.sql +8 -0
- package/prisma/migrations/20260120042444_states/migration.sql +13 -0
- package/prisma/migrations/20260120052250_at/migration.sql +10 -0
- package/prisma/migrations/20260120061112_uq_token/migration.sql +8 -0
- package/prisma/migrations/20260121013517_uq_nick/migration.sql +8 -0
- package/prisma/migrations/20260125034645_mc_rank/migration.sql +2 -0
- package/prisma/migrations/20260202222436_remove_rank_from_discord/migration.sql +8 -0
- package/prisma/migrations/20260202234919_discord_user_username/migration.sql +2 -0
- package/prisma/migrations/20260202235832_uq_discord_username/migration.sql +12 -0
- package/prisma/migrations/20260301230127_blog/migration.sql +45 -0
- package/prisma/migrations/20260308062159_player_status/migration.sql +5 -0
- package/prisma/migrations/20260314152500_last_seen/migration.sql +2 -0
- package/prisma/migrations/20260430073735_oauth_prepare/migration.sql +102 -0
- package/prisma/migrations/20260603052836_scopes/migration.sql +11 -0
- package/prisma/migrations/20260603055719_scopes_sesion/migration.sql +2 -0
- package/prisma/migrations/20260603201228_user_roles/migration.sql +38 -0
- package/prisma/migrations/20260608060633_blog_media/migration.sql +61 -0
- package/prisma/migrations/20260612000040_prepare_post_users/migration.sql +5 -0
- package/prisma/migrations/20260612165923_prepare_webhook_user/migration.sql +53 -0
- package/prisma/migrations/20260612210328_remove_webhook_discord_user/migration.sql +19 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema.prisma +325 -0
|
@@ -0,0 +1,1458 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as $Enums from "../enums.ts";
|
|
3
|
+
import type * as Prisma from "../internal/prismaNamespace.ts";
|
|
4
|
+
/**
|
|
5
|
+
* Model Player
|
|
6
|
+
* Información de jugador de Minecraft enlazada con su usuario de Discord.
|
|
7
|
+
*/
|
|
8
|
+
export type PlayerModel = runtime.Types.Result.DefaultSelection<Prisma.$PlayerPayload>;
|
|
9
|
+
export type AggregatePlayer = {
|
|
10
|
+
_count: PlayerCountAggregateOutputType | null;
|
|
11
|
+
_avg: PlayerAvgAggregateOutputType | null;
|
|
12
|
+
_sum: PlayerSumAggregateOutputType | null;
|
|
13
|
+
_min: PlayerMinAggregateOutputType | null;
|
|
14
|
+
_max: PlayerMaxAggregateOutputType | null;
|
|
15
|
+
};
|
|
16
|
+
export type PlayerAvgAggregateOutputType = {
|
|
17
|
+
digs: number | null;
|
|
18
|
+
};
|
|
19
|
+
export type PlayerSumAggregateOutputType = {
|
|
20
|
+
digs: number | null;
|
|
21
|
+
};
|
|
22
|
+
export type PlayerMinAggregateOutputType = {
|
|
23
|
+
uuid: string | null;
|
|
24
|
+
nickname: string | null;
|
|
25
|
+
digs: number | null;
|
|
26
|
+
description: string | null;
|
|
27
|
+
status: $Enums.PLAYER_STATUS | null;
|
|
28
|
+
last_seen: Date | null;
|
|
29
|
+
};
|
|
30
|
+
export type PlayerMaxAggregateOutputType = {
|
|
31
|
+
uuid: string | null;
|
|
32
|
+
nickname: string | null;
|
|
33
|
+
digs: number | null;
|
|
34
|
+
description: string | null;
|
|
35
|
+
status: $Enums.PLAYER_STATUS | null;
|
|
36
|
+
last_seen: Date | null;
|
|
37
|
+
};
|
|
38
|
+
export type PlayerCountAggregateOutputType = {
|
|
39
|
+
uuid: number;
|
|
40
|
+
nickname: number;
|
|
41
|
+
digs: number;
|
|
42
|
+
description: number;
|
|
43
|
+
status: number;
|
|
44
|
+
last_seen: number;
|
|
45
|
+
_all: number;
|
|
46
|
+
};
|
|
47
|
+
export type PlayerAvgAggregateInputType = {
|
|
48
|
+
digs?: true;
|
|
49
|
+
};
|
|
50
|
+
export type PlayerSumAggregateInputType = {
|
|
51
|
+
digs?: true;
|
|
52
|
+
};
|
|
53
|
+
export type PlayerMinAggregateInputType = {
|
|
54
|
+
uuid?: true;
|
|
55
|
+
nickname?: true;
|
|
56
|
+
digs?: true;
|
|
57
|
+
description?: true;
|
|
58
|
+
status?: true;
|
|
59
|
+
last_seen?: true;
|
|
60
|
+
};
|
|
61
|
+
export type PlayerMaxAggregateInputType = {
|
|
62
|
+
uuid?: true;
|
|
63
|
+
nickname?: true;
|
|
64
|
+
digs?: true;
|
|
65
|
+
description?: true;
|
|
66
|
+
status?: true;
|
|
67
|
+
last_seen?: true;
|
|
68
|
+
};
|
|
69
|
+
export type PlayerCountAggregateInputType = {
|
|
70
|
+
uuid?: true;
|
|
71
|
+
nickname?: true;
|
|
72
|
+
digs?: true;
|
|
73
|
+
description?: true;
|
|
74
|
+
status?: true;
|
|
75
|
+
last_seen?: true;
|
|
76
|
+
_all?: true;
|
|
77
|
+
};
|
|
78
|
+
export type PlayerAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
79
|
+
/**
|
|
80
|
+
* Filter which Player to aggregate.
|
|
81
|
+
*/
|
|
82
|
+
where?: Prisma.PlayerWhereInput;
|
|
83
|
+
/**
|
|
84
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
85
|
+
*
|
|
86
|
+
* Determine the order of Players to fetch.
|
|
87
|
+
*/
|
|
88
|
+
orderBy?: Prisma.PlayerOrderByWithRelationInput | Prisma.PlayerOrderByWithRelationInput[];
|
|
89
|
+
/**
|
|
90
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
91
|
+
*
|
|
92
|
+
* Sets the start position
|
|
93
|
+
*/
|
|
94
|
+
cursor?: Prisma.PlayerWhereUniqueInput;
|
|
95
|
+
/**
|
|
96
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
97
|
+
*
|
|
98
|
+
* Take `±n` Players from the position of the cursor.
|
|
99
|
+
*/
|
|
100
|
+
take?: number;
|
|
101
|
+
/**
|
|
102
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
103
|
+
*
|
|
104
|
+
* Skip the first `n` Players.
|
|
105
|
+
*/
|
|
106
|
+
skip?: number;
|
|
107
|
+
/**
|
|
108
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
109
|
+
*
|
|
110
|
+
* Count returned Players
|
|
111
|
+
**/
|
|
112
|
+
_count?: true | PlayerCountAggregateInputType;
|
|
113
|
+
/**
|
|
114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
115
|
+
*
|
|
116
|
+
* Select which fields to average
|
|
117
|
+
**/
|
|
118
|
+
_avg?: PlayerAvgAggregateInputType;
|
|
119
|
+
/**
|
|
120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
121
|
+
*
|
|
122
|
+
* Select which fields to sum
|
|
123
|
+
**/
|
|
124
|
+
_sum?: PlayerSumAggregateInputType;
|
|
125
|
+
/**
|
|
126
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
127
|
+
*
|
|
128
|
+
* Select which fields to find the minimum value
|
|
129
|
+
**/
|
|
130
|
+
_min?: PlayerMinAggregateInputType;
|
|
131
|
+
/**
|
|
132
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
133
|
+
*
|
|
134
|
+
* Select which fields to find the maximum value
|
|
135
|
+
**/
|
|
136
|
+
_max?: PlayerMaxAggregateInputType;
|
|
137
|
+
};
|
|
138
|
+
export type GetPlayerAggregateType<T extends PlayerAggregateArgs> = {
|
|
139
|
+
[P in keyof T & keyof AggregatePlayer]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePlayer[P]> : Prisma.GetScalarType<T[P], AggregatePlayer[P]>;
|
|
140
|
+
};
|
|
141
|
+
export type PlayerGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
142
|
+
where?: Prisma.PlayerWhereInput;
|
|
143
|
+
orderBy?: Prisma.PlayerOrderByWithAggregationInput | Prisma.PlayerOrderByWithAggregationInput[];
|
|
144
|
+
by: Prisma.PlayerScalarFieldEnum[] | Prisma.PlayerScalarFieldEnum;
|
|
145
|
+
having?: Prisma.PlayerScalarWhereWithAggregatesInput;
|
|
146
|
+
take?: number;
|
|
147
|
+
skip?: number;
|
|
148
|
+
_count?: PlayerCountAggregateInputType | true;
|
|
149
|
+
_avg?: PlayerAvgAggregateInputType;
|
|
150
|
+
_sum?: PlayerSumAggregateInputType;
|
|
151
|
+
_min?: PlayerMinAggregateInputType;
|
|
152
|
+
_max?: PlayerMaxAggregateInputType;
|
|
153
|
+
};
|
|
154
|
+
export type PlayerGroupByOutputType = {
|
|
155
|
+
uuid: string;
|
|
156
|
+
nickname: string;
|
|
157
|
+
digs: number;
|
|
158
|
+
description: string;
|
|
159
|
+
status: $Enums.PLAYER_STATUS;
|
|
160
|
+
last_seen: Date | null;
|
|
161
|
+
_count: PlayerCountAggregateOutputType | null;
|
|
162
|
+
_avg: PlayerAvgAggregateOutputType | null;
|
|
163
|
+
_sum: PlayerSumAggregateOutputType | null;
|
|
164
|
+
_min: PlayerMinAggregateOutputType | null;
|
|
165
|
+
_max: PlayerMaxAggregateOutputType | null;
|
|
166
|
+
};
|
|
167
|
+
export type GetPlayerGroupByPayload<T extends PlayerGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<PlayerGroupByOutputType, T['by']> & {
|
|
168
|
+
[P in ((keyof T) & (keyof PlayerGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], PlayerGroupByOutputType[P]> : Prisma.GetScalarType<T[P], PlayerGroupByOutputType[P]>;
|
|
169
|
+
}>>;
|
|
170
|
+
export type PlayerWhereInput = {
|
|
171
|
+
AND?: Prisma.PlayerWhereInput | Prisma.PlayerWhereInput[];
|
|
172
|
+
OR?: Prisma.PlayerWhereInput[];
|
|
173
|
+
NOT?: Prisma.PlayerWhereInput | Prisma.PlayerWhereInput[];
|
|
174
|
+
uuid?: Prisma.StringFilter<"Player"> | string;
|
|
175
|
+
nickname?: Prisma.StringFilter<"Player"> | string;
|
|
176
|
+
digs?: Prisma.IntFilter<"Player"> | number;
|
|
177
|
+
description?: Prisma.StringFilter<"Player"> | string;
|
|
178
|
+
status?: Prisma.EnumPLAYER_STATUSFilter<"Player"> | $Enums.PLAYER_STATUS;
|
|
179
|
+
last_seen?: Prisma.DateTimeNullableFilter<"Player"> | Date | string | null;
|
|
180
|
+
linked_roles?: Prisma.LinkedMinecraftRoleListRelationFilter;
|
|
181
|
+
medias?: Prisma.MediaListRelationFilter;
|
|
182
|
+
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
183
|
+
};
|
|
184
|
+
export type PlayerOrderByWithRelationInput = {
|
|
185
|
+
uuid?: Prisma.SortOrder;
|
|
186
|
+
nickname?: Prisma.SortOrder;
|
|
187
|
+
digs?: Prisma.SortOrder;
|
|
188
|
+
description?: Prisma.SortOrder;
|
|
189
|
+
status?: Prisma.SortOrder;
|
|
190
|
+
last_seen?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
191
|
+
linked_roles?: Prisma.LinkedMinecraftRoleOrderByRelationAggregateInput;
|
|
192
|
+
medias?: Prisma.MediaOrderByRelationAggregateInput;
|
|
193
|
+
user?: Prisma.UserOrderByWithRelationInput;
|
|
194
|
+
};
|
|
195
|
+
export type PlayerWhereUniqueInput = Prisma.AtLeast<{
|
|
196
|
+
uuid?: string;
|
|
197
|
+
nickname?: string;
|
|
198
|
+
AND?: Prisma.PlayerWhereInput | Prisma.PlayerWhereInput[];
|
|
199
|
+
OR?: Prisma.PlayerWhereInput[];
|
|
200
|
+
NOT?: Prisma.PlayerWhereInput | Prisma.PlayerWhereInput[];
|
|
201
|
+
digs?: Prisma.IntFilter<"Player"> | number;
|
|
202
|
+
description?: Prisma.StringFilter<"Player"> | string;
|
|
203
|
+
status?: Prisma.EnumPLAYER_STATUSFilter<"Player"> | $Enums.PLAYER_STATUS;
|
|
204
|
+
last_seen?: Prisma.DateTimeNullableFilter<"Player"> | Date | string | null;
|
|
205
|
+
linked_roles?: Prisma.LinkedMinecraftRoleListRelationFilter;
|
|
206
|
+
medias?: Prisma.MediaListRelationFilter;
|
|
207
|
+
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
208
|
+
}, "uuid" | "nickname">;
|
|
209
|
+
export type PlayerOrderByWithAggregationInput = {
|
|
210
|
+
uuid?: Prisma.SortOrder;
|
|
211
|
+
nickname?: Prisma.SortOrder;
|
|
212
|
+
digs?: Prisma.SortOrder;
|
|
213
|
+
description?: Prisma.SortOrder;
|
|
214
|
+
status?: Prisma.SortOrder;
|
|
215
|
+
last_seen?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
216
|
+
_count?: Prisma.PlayerCountOrderByAggregateInput;
|
|
217
|
+
_avg?: Prisma.PlayerAvgOrderByAggregateInput;
|
|
218
|
+
_max?: Prisma.PlayerMaxOrderByAggregateInput;
|
|
219
|
+
_min?: Prisma.PlayerMinOrderByAggregateInput;
|
|
220
|
+
_sum?: Prisma.PlayerSumOrderByAggregateInput;
|
|
221
|
+
};
|
|
222
|
+
export type PlayerScalarWhereWithAggregatesInput = {
|
|
223
|
+
AND?: Prisma.PlayerScalarWhereWithAggregatesInput | Prisma.PlayerScalarWhereWithAggregatesInput[];
|
|
224
|
+
OR?: Prisma.PlayerScalarWhereWithAggregatesInput[];
|
|
225
|
+
NOT?: Prisma.PlayerScalarWhereWithAggregatesInput | Prisma.PlayerScalarWhereWithAggregatesInput[];
|
|
226
|
+
uuid?: Prisma.StringWithAggregatesFilter<"Player"> | string;
|
|
227
|
+
nickname?: Prisma.StringWithAggregatesFilter<"Player"> | string;
|
|
228
|
+
digs?: Prisma.IntWithAggregatesFilter<"Player"> | number;
|
|
229
|
+
description?: Prisma.StringWithAggregatesFilter<"Player"> | string;
|
|
230
|
+
status?: Prisma.EnumPLAYER_STATUSWithAggregatesFilter<"Player"> | $Enums.PLAYER_STATUS;
|
|
231
|
+
last_seen?: Prisma.DateTimeNullableWithAggregatesFilter<"Player"> | Date | string | null;
|
|
232
|
+
};
|
|
233
|
+
export type PlayerCreateInput = {
|
|
234
|
+
uuid: string;
|
|
235
|
+
nickname: string;
|
|
236
|
+
digs?: number;
|
|
237
|
+
description?: string;
|
|
238
|
+
status?: $Enums.PLAYER_STATUS;
|
|
239
|
+
last_seen?: Date | string | null;
|
|
240
|
+
linked_roles?: Prisma.LinkedMinecraftRoleCreateNestedManyWithoutPlayerInput;
|
|
241
|
+
medias?: Prisma.MediaCreateNestedManyWithoutPlayerInput;
|
|
242
|
+
user?: Prisma.UserCreateNestedOneWithoutMc_playerInput;
|
|
243
|
+
};
|
|
244
|
+
export type PlayerUncheckedCreateInput = {
|
|
245
|
+
uuid: string;
|
|
246
|
+
nickname: string;
|
|
247
|
+
digs?: number;
|
|
248
|
+
description?: string;
|
|
249
|
+
status?: $Enums.PLAYER_STATUS;
|
|
250
|
+
last_seen?: Date | string | null;
|
|
251
|
+
linked_roles?: Prisma.LinkedMinecraftRoleUncheckedCreateNestedManyWithoutPlayerInput;
|
|
252
|
+
medias?: Prisma.MediaUncheckedCreateNestedManyWithoutPlayerInput;
|
|
253
|
+
user?: Prisma.UserUncheckedCreateNestedOneWithoutMc_playerInput;
|
|
254
|
+
};
|
|
255
|
+
export type PlayerUpdateInput = {
|
|
256
|
+
uuid?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
257
|
+
nickname?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
258
|
+
digs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
259
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
260
|
+
status?: Prisma.EnumPLAYER_STATUSFieldUpdateOperationsInput | $Enums.PLAYER_STATUS;
|
|
261
|
+
last_seen?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
262
|
+
linked_roles?: Prisma.LinkedMinecraftRoleUpdateManyWithoutPlayerNestedInput;
|
|
263
|
+
medias?: Prisma.MediaUpdateManyWithoutPlayerNestedInput;
|
|
264
|
+
user?: Prisma.UserUpdateOneWithoutMc_playerNestedInput;
|
|
265
|
+
};
|
|
266
|
+
export type PlayerUncheckedUpdateInput = {
|
|
267
|
+
uuid?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
268
|
+
nickname?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
269
|
+
digs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
270
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
271
|
+
status?: Prisma.EnumPLAYER_STATUSFieldUpdateOperationsInput | $Enums.PLAYER_STATUS;
|
|
272
|
+
last_seen?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
273
|
+
linked_roles?: Prisma.LinkedMinecraftRoleUncheckedUpdateManyWithoutPlayerNestedInput;
|
|
274
|
+
medias?: Prisma.MediaUncheckedUpdateManyWithoutPlayerNestedInput;
|
|
275
|
+
user?: Prisma.UserUncheckedUpdateOneWithoutMc_playerNestedInput;
|
|
276
|
+
};
|
|
277
|
+
export type PlayerCreateManyInput = {
|
|
278
|
+
uuid: string;
|
|
279
|
+
nickname: string;
|
|
280
|
+
digs?: number;
|
|
281
|
+
description?: string;
|
|
282
|
+
status?: $Enums.PLAYER_STATUS;
|
|
283
|
+
last_seen?: Date | string | null;
|
|
284
|
+
};
|
|
285
|
+
export type PlayerUpdateManyMutationInput = {
|
|
286
|
+
uuid?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
287
|
+
nickname?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
288
|
+
digs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
289
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
290
|
+
status?: Prisma.EnumPLAYER_STATUSFieldUpdateOperationsInput | $Enums.PLAYER_STATUS;
|
|
291
|
+
last_seen?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
292
|
+
};
|
|
293
|
+
export type PlayerUncheckedUpdateManyInput = {
|
|
294
|
+
uuid?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
295
|
+
nickname?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
296
|
+
digs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
297
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
298
|
+
status?: Prisma.EnumPLAYER_STATUSFieldUpdateOperationsInput | $Enums.PLAYER_STATUS;
|
|
299
|
+
last_seen?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
300
|
+
};
|
|
301
|
+
export type PlayerScalarRelationFilter = {
|
|
302
|
+
is?: Prisma.PlayerWhereInput;
|
|
303
|
+
isNot?: Prisma.PlayerWhereInput;
|
|
304
|
+
};
|
|
305
|
+
export type PlayerCountOrderByAggregateInput = {
|
|
306
|
+
uuid?: Prisma.SortOrder;
|
|
307
|
+
nickname?: Prisma.SortOrder;
|
|
308
|
+
digs?: Prisma.SortOrder;
|
|
309
|
+
description?: Prisma.SortOrder;
|
|
310
|
+
status?: Prisma.SortOrder;
|
|
311
|
+
last_seen?: Prisma.SortOrder;
|
|
312
|
+
};
|
|
313
|
+
export type PlayerAvgOrderByAggregateInput = {
|
|
314
|
+
digs?: Prisma.SortOrder;
|
|
315
|
+
};
|
|
316
|
+
export type PlayerMaxOrderByAggregateInput = {
|
|
317
|
+
uuid?: Prisma.SortOrder;
|
|
318
|
+
nickname?: Prisma.SortOrder;
|
|
319
|
+
digs?: Prisma.SortOrder;
|
|
320
|
+
description?: Prisma.SortOrder;
|
|
321
|
+
status?: Prisma.SortOrder;
|
|
322
|
+
last_seen?: Prisma.SortOrder;
|
|
323
|
+
};
|
|
324
|
+
export type PlayerMinOrderByAggregateInput = {
|
|
325
|
+
uuid?: Prisma.SortOrder;
|
|
326
|
+
nickname?: Prisma.SortOrder;
|
|
327
|
+
digs?: Prisma.SortOrder;
|
|
328
|
+
description?: Prisma.SortOrder;
|
|
329
|
+
status?: Prisma.SortOrder;
|
|
330
|
+
last_seen?: Prisma.SortOrder;
|
|
331
|
+
};
|
|
332
|
+
export type PlayerSumOrderByAggregateInput = {
|
|
333
|
+
digs?: Prisma.SortOrder;
|
|
334
|
+
};
|
|
335
|
+
export type PlayerNullableScalarRelationFilter = {
|
|
336
|
+
is?: Prisma.PlayerWhereInput | null;
|
|
337
|
+
isNot?: Prisma.PlayerWhereInput | null;
|
|
338
|
+
};
|
|
339
|
+
export type PlayerCreateNestedOneWithoutLinked_rolesInput = {
|
|
340
|
+
create?: Prisma.XOR<Prisma.PlayerCreateWithoutLinked_rolesInput, Prisma.PlayerUncheckedCreateWithoutLinked_rolesInput>;
|
|
341
|
+
connectOrCreate?: Prisma.PlayerCreateOrConnectWithoutLinked_rolesInput;
|
|
342
|
+
connect?: Prisma.PlayerWhereUniqueInput;
|
|
343
|
+
};
|
|
344
|
+
export type PlayerUpdateOneRequiredWithoutLinked_rolesNestedInput = {
|
|
345
|
+
create?: Prisma.XOR<Prisma.PlayerCreateWithoutLinked_rolesInput, Prisma.PlayerUncheckedCreateWithoutLinked_rolesInput>;
|
|
346
|
+
connectOrCreate?: Prisma.PlayerCreateOrConnectWithoutLinked_rolesInput;
|
|
347
|
+
upsert?: Prisma.PlayerUpsertWithoutLinked_rolesInput;
|
|
348
|
+
connect?: Prisma.PlayerWhereUniqueInput;
|
|
349
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PlayerUpdateToOneWithWhereWithoutLinked_rolesInput, Prisma.PlayerUpdateWithoutLinked_rolesInput>, Prisma.PlayerUncheckedUpdateWithoutLinked_rolesInput>;
|
|
350
|
+
};
|
|
351
|
+
export type PlayerCreateNestedOneWithoutMediasInput = {
|
|
352
|
+
create?: Prisma.XOR<Prisma.PlayerCreateWithoutMediasInput, Prisma.PlayerUncheckedCreateWithoutMediasInput>;
|
|
353
|
+
connectOrCreate?: Prisma.PlayerCreateOrConnectWithoutMediasInput;
|
|
354
|
+
connect?: Prisma.PlayerWhereUniqueInput;
|
|
355
|
+
};
|
|
356
|
+
export type PlayerUpdateOneRequiredWithoutMediasNestedInput = {
|
|
357
|
+
create?: Prisma.XOR<Prisma.PlayerCreateWithoutMediasInput, Prisma.PlayerUncheckedCreateWithoutMediasInput>;
|
|
358
|
+
connectOrCreate?: Prisma.PlayerCreateOrConnectWithoutMediasInput;
|
|
359
|
+
upsert?: Prisma.PlayerUpsertWithoutMediasInput;
|
|
360
|
+
connect?: Prisma.PlayerWhereUniqueInput;
|
|
361
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PlayerUpdateToOneWithWhereWithoutMediasInput, Prisma.PlayerUpdateWithoutMediasInput>, Prisma.PlayerUncheckedUpdateWithoutMediasInput>;
|
|
362
|
+
};
|
|
363
|
+
export type EnumPLAYER_STATUSFieldUpdateOperationsInput = {
|
|
364
|
+
set?: $Enums.PLAYER_STATUS;
|
|
365
|
+
};
|
|
366
|
+
export type NullableDateTimeFieldUpdateOperationsInput = {
|
|
367
|
+
set?: Date | string | null;
|
|
368
|
+
};
|
|
369
|
+
export type PlayerCreateNestedOneWithoutUserInput = {
|
|
370
|
+
create?: Prisma.XOR<Prisma.PlayerCreateWithoutUserInput, Prisma.PlayerUncheckedCreateWithoutUserInput>;
|
|
371
|
+
connectOrCreate?: Prisma.PlayerCreateOrConnectWithoutUserInput;
|
|
372
|
+
connect?: Prisma.PlayerWhereUniqueInput;
|
|
373
|
+
};
|
|
374
|
+
export type PlayerUpdateOneWithoutUserNestedInput = {
|
|
375
|
+
create?: Prisma.XOR<Prisma.PlayerCreateWithoutUserInput, Prisma.PlayerUncheckedCreateWithoutUserInput>;
|
|
376
|
+
connectOrCreate?: Prisma.PlayerCreateOrConnectWithoutUserInput;
|
|
377
|
+
upsert?: Prisma.PlayerUpsertWithoutUserInput;
|
|
378
|
+
disconnect?: Prisma.PlayerWhereInput | boolean;
|
|
379
|
+
delete?: Prisma.PlayerWhereInput | boolean;
|
|
380
|
+
connect?: Prisma.PlayerWhereUniqueInput;
|
|
381
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PlayerUpdateToOneWithWhereWithoutUserInput, Prisma.PlayerUpdateWithoutUserInput>, Prisma.PlayerUncheckedUpdateWithoutUserInput>;
|
|
382
|
+
};
|
|
383
|
+
export type PlayerCreateWithoutLinked_rolesInput = {
|
|
384
|
+
uuid: string;
|
|
385
|
+
nickname: string;
|
|
386
|
+
digs?: number;
|
|
387
|
+
description?: string;
|
|
388
|
+
status?: $Enums.PLAYER_STATUS;
|
|
389
|
+
last_seen?: Date | string | null;
|
|
390
|
+
medias?: Prisma.MediaCreateNestedManyWithoutPlayerInput;
|
|
391
|
+
user?: Prisma.UserCreateNestedOneWithoutMc_playerInput;
|
|
392
|
+
};
|
|
393
|
+
export type PlayerUncheckedCreateWithoutLinked_rolesInput = {
|
|
394
|
+
uuid: string;
|
|
395
|
+
nickname: string;
|
|
396
|
+
digs?: number;
|
|
397
|
+
description?: string;
|
|
398
|
+
status?: $Enums.PLAYER_STATUS;
|
|
399
|
+
last_seen?: Date | string | null;
|
|
400
|
+
medias?: Prisma.MediaUncheckedCreateNestedManyWithoutPlayerInput;
|
|
401
|
+
user?: Prisma.UserUncheckedCreateNestedOneWithoutMc_playerInput;
|
|
402
|
+
};
|
|
403
|
+
export type PlayerCreateOrConnectWithoutLinked_rolesInput = {
|
|
404
|
+
where: Prisma.PlayerWhereUniqueInput;
|
|
405
|
+
create: Prisma.XOR<Prisma.PlayerCreateWithoutLinked_rolesInput, Prisma.PlayerUncheckedCreateWithoutLinked_rolesInput>;
|
|
406
|
+
};
|
|
407
|
+
export type PlayerUpsertWithoutLinked_rolesInput = {
|
|
408
|
+
update: Prisma.XOR<Prisma.PlayerUpdateWithoutLinked_rolesInput, Prisma.PlayerUncheckedUpdateWithoutLinked_rolesInput>;
|
|
409
|
+
create: Prisma.XOR<Prisma.PlayerCreateWithoutLinked_rolesInput, Prisma.PlayerUncheckedCreateWithoutLinked_rolesInput>;
|
|
410
|
+
where?: Prisma.PlayerWhereInput;
|
|
411
|
+
};
|
|
412
|
+
export type PlayerUpdateToOneWithWhereWithoutLinked_rolesInput = {
|
|
413
|
+
where?: Prisma.PlayerWhereInput;
|
|
414
|
+
data: Prisma.XOR<Prisma.PlayerUpdateWithoutLinked_rolesInput, Prisma.PlayerUncheckedUpdateWithoutLinked_rolesInput>;
|
|
415
|
+
};
|
|
416
|
+
export type PlayerUpdateWithoutLinked_rolesInput = {
|
|
417
|
+
uuid?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
418
|
+
nickname?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
419
|
+
digs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
420
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
421
|
+
status?: Prisma.EnumPLAYER_STATUSFieldUpdateOperationsInput | $Enums.PLAYER_STATUS;
|
|
422
|
+
last_seen?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
423
|
+
medias?: Prisma.MediaUpdateManyWithoutPlayerNestedInput;
|
|
424
|
+
user?: Prisma.UserUpdateOneWithoutMc_playerNestedInput;
|
|
425
|
+
};
|
|
426
|
+
export type PlayerUncheckedUpdateWithoutLinked_rolesInput = {
|
|
427
|
+
uuid?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
428
|
+
nickname?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
429
|
+
digs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
430
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
431
|
+
status?: Prisma.EnumPLAYER_STATUSFieldUpdateOperationsInput | $Enums.PLAYER_STATUS;
|
|
432
|
+
last_seen?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
433
|
+
medias?: Prisma.MediaUncheckedUpdateManyWithoutPlayerNestedInput;
|
|
434
|
+
user?: Prisma.UserUncheckedUpdateOneWithoutMc_playerNestedInput;
|
|
435
|
+
};
|
|
436
|
+
export type PlayerCreateWithoutMediasInput = {
|
|
437
|
+
uuid: string;
|
|
438
|
+
nickname: string;
|
|
439
|
+
digs?: number;
|
|
440
|
+
description?: string;
|
|
441
|
+
status?: $Enums.PLAYER_STATUS;
|
|
442
|
+
last_seen?: Date | string | null;
|
|
443
|
+
linked_roles?: Prisma.LinkedMinecraftRoleCreateNestedManyWithoutPlayerInput;
|
|
444
|
+
user?: Prisma.UserCreateNestedOneWithoutMc_playerInput;
|
|
445
|
+
};
|
|
446
|
+
export type PlayerUncheckedCreateWithoutMediasInput = {
|
|
447
|
+
uuid: string;
|
|
448
|
+
nickname: string;
|
|
449
|
+
digs?: number;
|
|
450
|
+
description?: string;
|
|
451
|
+
status?: $Enums.PLAYER_STATUS;
|
|
452
|
+
last_seen?: Date | string | null;
|
|
453
|
+
linked_roles?: Prisma.LinkedMinecraftRoleUncheckedCreateNestedManyWithoutPlayerInput;
|
|
454
|
+
user?: Prisma.UserUncheckedCreateNestedOneWithoutMc_playerInput;
|
|
455
|
+
};
|
|
456
|
+
export type PlayerCreateOrConnectWithoutMediasInput = {
|
|
457
|
+
where: Prisma.PlayerWhereUniqueInput;
|
|
458
|
+
create: Prisma.XOR<Prisma.PlayerCreateWithoutMediasInput, Prisma.PlayerUncheckedCreateWithoutMediasInput>;
|
|
459
|
+
};
|
|
460
|
+
export type PlayerUpsertWithoutMediasInput = {
|
|
461
|
+
update: Prisma.XOR<Prisma.PlayerUpdateWithoutMediasInput, Prisma.PlayerUncheckedUpdateWithoutMediasInput>;
|
|
462
|
+
create: Prisma.XOR<Prisma.PlayerCreateWithoutMediasInput, Prisma.PlayerUncheckedCreateWithoutMediasInput>;
|
|
463
|
+
where?: Prisma.PlayerWhereInput;
|
|
464
|
+
};
|
|
465
|
+
export type PlayerUpdateToOneWithWhereWithoutMediasInput = {
|
|
466
|
+
where?: Prisma.PlayerWhereInput;
|
|
467
|
+
data: Prisma.XOR<Prisma.PlayerUpdateWithoutMediasInput, Prisma.PlayerUncheckedUpdateWithoutMediasInput>;
|
|
468
|
+
};
|
|
469
|
+
export type PlayerUpdateWithoutMediasInput = {
|
|
470
|
+
uuid?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
471
|
+
nickname?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
472
|
+
digs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
473
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
474
|
+
status?: Prisma.EnumPLAYER_STATUSFieldUpdateOperationsInput | $Enums.PLAYER_STATUS;
|
|
475
|
+
last_seen?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
476
|
+
linked_roles?: Prisma.LinkedMinecraftRoleUpdateManyWithoutPlayerNestedInput;
|
|
477
|
+
user?: Prisma.UserUpdateOneWithoutMc_playerNestedInput;
|
|
478
|
+
};
|
|
479
|
+
export type PlayerUncheckedUpdateWithoutMediasInput = {
|
|
480
|
+
uuid?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
481
|
+
nickname?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
482
|
+
digs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
483
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
484
|
+
status?: Prisma.EnumPLAYER_STATUSFieldUpdateOperationsInput | $Enums.PLAYER_STATUS;
|
|
485
|
+
last_seen?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
486
|
+
linked_roles?: Prisma.LinkedMinecraftRoleUncheckedUpdateManyWithoutPlayerNestedInput;
|
|
487
|
+
user?: Prisma.UserUncheckedUpdateOneWithoutMc_playerNestedInput;
|
|
488
|
+
};
|
|
489
|
+
export type PlayerCreateWithoutUserInput = {
|
|
490
|
+
uuid: string;
|
|
491
|
+
nickname: string;
|
|
492
|
+
digs?: number;
|
|
493
|
+
description?: string;
|
|
494
|
+
status?: $Enums.PLAYER_STATUS;
|
|
495
|
+
last_seen?: Date | string | null;
|
|
496
|
+
linked_roles?: Prisma.LinkedMinecraftRoleCreateNestedManyWithoutPlayerInput;
|
|
497
|
+
medias?: Prisma.MediaCreateNestedManyWithoutPlayerInput;
|
|
498
|
+
};
|
|
499
|
+
export type PlayerUncheckedCreateWithoutUserInput = {
|
|
500
|
+
uuid: string;
|
|
501
|
+
nickname: string;
|
|
502
|
+
digs?: number;
|
|
503
|
+
description?: string;
|
|
504
|
+
status?: $Enums.PLAYER_STATUS;
|
|
505
|
+
last_seen?: Date | string | null;
|
|
506
|
+
linked_roles?: Prisma.LinkedMinecraftRoleUncheckedCreateNestedManyWithoutPlayerInput;
|
|
507
|
+
medias?: Prisma.MediaUncheckedCreateNestedManyWithoutPlayerInput;
|
|
508
|
+
};
|
|
509
|
+
export type PlayerCreateOrConnectWithoutUserInput = {
|
|
510
|
+
where: Prisma.PlayerWhereUniqueInput;
|
|
511
|
+
create: Prisma.XOR<Prisma.PlayerCreateWithoutUserInput, Prisma.PlayerUncheckedCreateWithoutUserInput>;
|
|
512
|
+
};
|
|
513
|
+
export type PlayerUpsertWithoutUserInput = {
|
|
514
|
+
update: Prisma.XOR<Prisma.PlayerUpdateWithoutUserInput, Prisma.PlayerUncheckedUpdateWithoutUserInput>;
|
|
515
|
+
create: Prisma.XOR<Prisma.PlayerCreateWithoutUserInput, Prisma.PlayerUncheckedCreateWithoutUserInput>;
|
|
516
|
+
where?: Prisma.PlayerWhereInput;
|
|
517
|
+
};
|
|
518
|
+
export type PlayerUpdateToOneWithWhereWithoutUserInput = {
|
|
519
|
+
where?: Prisma.PlayerWhereInput;
|
|
520
|
+
data: Prisma.XOR<Prisma.PlayerUpdateWithoutUserInput, Prisma.PlayerUncheckedUpdateWithoutUserInput>;
|
|
521
|
+
};
|
|
522
|
+
export type PlayerUpdateWithoutUserInput = {
|
|
523
|
+
uuid?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
524
|
+
nickname?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
525
|
+
digs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
526
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
527
|
+
status?: Prisma.EnumPLAYER_STATUSFieldUpdateOperationsInput | $Enums.PLAYER_STATUS;
|
|
528
|
+
last_seen?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
529
|
+
linked_roles?: Prisma.LinkedMinecraftRoleUpdateManyWithoutPlayerNestedInput;
|
|
530
|
+
medias?: Prisma.MediaUpdateManyWithoutPlayerNestedInput;
|
|
531
|
+
};
|
|
532
|
+
export type PlayerUncheckedUpdateWithoutUserInput = {
|
|
533
|
+
uuid?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
534
|
+
nickname?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
535
|
+
digs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
536
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
537
|
+
status?: Prisma.EnumPLAYER_STATUSFieldUpdateOperationsInput | $Enums.PLAYER_STATUS;
|
|
538
|
+
last_seen?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
539
|
+
linked_roles?: Prisma.LinkedMinecraftRoleUncheckedUpdateManyWithoutPlayerNestedInput;
|
|
540
|
+
medias?: Prisma.MediaUncheckedUpdateManyWithoutPlayerNestedInput;
|
|
541
|
+
};
|
|
542
|
+
/**
|
|
543
|
+
* Count Type PlayerCountOutputType
|
|
544
|
+
*/
|
|
545
|
+
export type PlayerCountOutputType = {
|
|
546
|
+
linked_roles: number;
|
|
547
|
+
medias: number;
|
|
548
|
+
};
|
|
549
|
+
export type PlayerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
550
|
+
linked_roles?: boolean | PlayerCountOutputTypeCountLinked_rolesArgs;
|
|
551
|
+
medias?: boolean | PlayerCountOutputTypeCountMediasArgs;
|
|
552
|
+
};
|
|
553
|
+
/**
|
|
554
|
+
* PlayerCountOutputType without action
|
|
555
|
+
*/
|
|
556
|
+
export type PlayerCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
557
|
+
/**
|
|
558
|
+
* Select specific fields to fetch from the PlayerCountOutputType
|
|
559
|
+
*/
|
|
560
|
+
select?: Prisma.PlayerCountOutputTypeSelect<ExtArgs> | null;
|
|
561
|
+
};
|
|
562
|
+
/**
|
|
563
|
+
* PlayerCountOutputType without action
|
|
564
|
+
*/
|
|
565
|
+
export type PlayerCountOutputTypeCountLinked_rolesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
566
|
+
where?: Prisma.LinkedMinecraftRoleWhereInput;
|
|
567
|
+
};
|
|
568
|
+
/**
|
|
569
|
+
* PlayerCountOutputType without action
|
|
570
|
+
*/
|
|
571
|
+
export type PlayerCountOutputTypeCountMediasArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
572
|
+
where?: Prisma.MediaWhereInput;
|
|
573
|
+
};
|
|
574
|
+
export type PlayerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
575
|
+
uuid?: boolean;
|
|
576
|
+
nickname?: boolean;
|
|
577
|
+
digs?: boolean;
|
|
578
|
+
description?: boolean;
|
|
579
|
+
status?: boolean;
|
|
580
|
+
last_seen?: boolean;
|
|
581
|
+
linked_roles?: boolean | Prisma.Player$linked_rolesArgs<ExtArgs>;
|
|
582
|
+
medias?: boolean | Prisma.Player$mediasArgs<ExtArgs>;
|
|
583
|
+
user?: boolean | Prisma.Player$userArgs<ExtArgs>;
|
|
584
|
+
_count?: boolean | Prisma.PlayerCountOutputTypeDefaultArgs<ExtArgs>;
|
|
585
|
+
}, ExtArgs["result"]["player"]>;
|
|
586
|
+
export type PlayerSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
587
|
+
uuid?: boolean;
|
|
588
|
+
nickname?: boolean;
|
|
589
|
+
digs?: boolean;
|
|
590
|
+
description?: boolean;
|
|
591
|
+
status?: boolean;
|
|
592
|
+
last_seen?: boolean;
|
|
593
|
+
}, ExtArgs["result"]["player"]>;
|
|
594
|
+
export type PlayerSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
595
|
+
uuid?: boolean;
|
|
596
|
+
nickname?: boolean;
|
|
597
|
+
digs?: boolean;
|
|
598
|
+
description?: boolean;
|
|
599
|
+
status?: boolean;
|
|
600
|
+
last_seen?: boolean;
|
|
601
|
+
}, ExtArgs["result"]["player"]>;
|
|
602
|
+
export type PlayerSelectScalar = {
|
|
603
|
+
uuid?: boolean;
|
|
604
|
+
nickname?: boolean;
|
|
605
|
+
digs?: boolean;
|
|
606
|
+
description?: boolean;
|
|
607
|
+
status?: boolean;
|
|
608
|
+
last_seen?: boolean;
|
|
609
|
+
};
|
|
610
|
+
export type PlayerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"uuid" | "nickname" | "digs" | "description" | "status" | "last_seen", ExtArgs["result"]["player"]>;
|
|
611
|
+
export type PlayerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
612
|
+
linked_roles?: boolean | Prisma.Player$linked_rolesArgs<ExtArgs>;
|
|
613
|
+
medias?: boolean | Prisma.Player$mediasArgs<ExtArgs>;
|
|
614
|
+
user?: boolean | Prisma.Player$userArgs<ExtArgs>;
|
|
615
|
+
_count?: boolean | Prisma.PlayerCountOutputTypeDefaultArgs<ExtArgs>;
|
|
616
|
+
};
|
|
617
|
+
export type PlayerIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
|
|
618
|
+
export type PlayerIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
|
|
619
|
+
export type $PlayerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
620
|
+
name: "Player";
|
|
621
|
+
objects: {
|
|
622
|
+
linked_roles: Prisma.$LinkedMinecraftRolePayload<ExtArgs>[];
|
|
623
|
+
medias: Prisma.$MediaPayload<ExtArgs>[];
|
|
624
|
+
user: Prisma.$UserPayload<ExtArgs> | null;
|
|
625
|
+
};
|
|
626
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
627
|
+
/**
|
|
628
|
+
* El uuid del jugador en formato UUID
|
|
629
|
+
*/
|
|
630
|
+
uuid: string;
|
|
631
|
+
nickname: string;
|
|
632
|
+
digs: number;
|
|
633
|
+
description: string;
|
|
634
|
+
status: $Enums.PLAYER_STATUS;
|
|
635
|
+
/**
|
|
636
|
+
* La ultima vez que entró
|
|
637
|
+
*/
|
|
638
|
+
last_seen: Date | null;
|
|
639
|
+
}, ExtArgs["result"]["player"]>;
|
|
640
|
+
composites: {};
|
|
641
|
+
};
|
|
642
|
+
export type PlayerGetPayload<S extends boolean | null | undefined | PlayerDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PlayerPayload, S>;
|
|
643
|
+
export type PlayerCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<PlayerFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
644
|
+
select?: PlayerCountAggregateInputType | true;
|
|
645
|
+
};
|
|
646
|
+
export interface PlayerDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
647
|
+
[K: symbol]: {
|
|
648
|
+
types: Prisma.TypeMap<ExtArgs>['model']['Player'];
|
|
649
|
+
meta: {
|
|
650
|
+
name: 'Player';
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
/**
|
|
654
|
+
* Find zero or one Player that matches the filter.
|
|
655
|
+
* @param {PlayerFindUniqueArgs} args - Arguments to find a Player
|
|
656
|
+
* @example
|
|
657
|
+
* // Get one Player
|
|
658
|
+
* const player = await prisma.player.findUnique({
|
|
659
|
+
* where: {
|
|
660
|
+
* // ... provide filter here
|
|
661
|
+
* }
|
|
662
|
+
* })
|
|
663
|
+
*/
|
|
664
|
+
findUnique<T extends PlayerFindUniqueArgs>(args: Prisma.SelectSubset<T, PlayerFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PlayerClient<runtime.Types.Result.GetResult<Prisma.$PlayerPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
665
|
+
/**
|
|
666
|
+
* Find one Player that matches the filter or throw an error with `error.code='P2025'`
|
|
667
|
+
* if no matches were found.
|
|
668
|
+
* @param {PlayerFindUniqueOrThrowArgs} args - Arguments to find a Player
|
|
669
|
+
* @example
|
|
670
|
+
* // Get one Player
|
|
671
|
+
* const player = await prisma.player.findUniqueOrThrow({
|
|
672
|
+
* where: {
|
|
673
|
+
* // ... provide filter here
|
|
674
|
+
* }
|
|
675
|
+
* })
|
|
676
|
+
*/
|
|
677
|
+
findUniqueOrThrow<T extends PlayerFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PlayerFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PlayerClient<runtime.Types.Result.GetResult<Prisma.$PlayerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
678
|
+
/**
|
|
679
|
+
* Find the first Player that matches the filter.
|
|
680
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
681
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
682
|
+
* @param {PlayerFindFirstArgs} args - Arguments to find a Player
|
|
683
|
+
* @example
|
|
684
|
+
* // Get one Player
|
|
685
|
+
* const player = await prisma.player.findFirst({
|
|
686
|
+
* where: {
|
|
687
|
+
* // ... provide filter here
|
|
688
|
+
* }
|
|
689
|
+
* })
|
|
690
|
+
*/
|
|
691
|
+
findFirst<T extends PlayerFindFirstArgs>(args?: Prisma.SelectSubset<T, PlayerFindFirstArgs<ExtArgs>>): Prisma.Prisma__PlayerClient<runtime.Types.Result.GetResult<Prisma.$PlayerPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
692
|
+
/**
|
|
693
|
+
* Find the first Player that matches the filter or
|
|
694
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
695
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
696
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
697
|
+
* @param {PlayerFindFirstOrThrowArgs} args - Arguments to find a Player
|
|
698
|
+
* @example
|
|
699
|
+
* // Get one Player
|
|
700
|
+
* const player = await prisma.player.findFirstOrThrow({
|
|
701
|
+
* where: {
|
|
702
|
+
* // ... provide filter here
|
|
703
|
+
* }
|
|
704
|
+
* })
|
|
705
|
+
*/
|
|
706
|
+
findFirstOrThrow<T extends PlayerFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PlayerFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PlayerClient<runtime.Types.Result.GetResult<Prisma.$PlayerPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
707
|
+
/**
|
|
708
|
+
* Find zero or more Players that matches the filter.
|
|
709
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
710
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
711
|
+
* @param {PlayerFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
712
|
+
* @example
|
|
713
|
+
* // Get all Players
|
|
714
|
+
* const players = await prisma.player.findMany()
|
|
715
|
+
*
|
|
716
|
+
* // Get first 10 Players
|
|
717
|
+
* const players = await prisma.player.findMany({ take: 10 })
|
|
718
|
+
*
|
|
719
|
+
* // Only select the `uuid`
|
|
720
|
+
* const playerWithUuidOnly = await prisma.player.findMany({ select: { uuid: true } })
|
|
721
|
+
*
|
|
722
|
+
*/
|
|
723
|
+
findMany<T extends PlayerFindManyArgs>(args?: Prisma.SelectSubset<T, PlayerFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PlayerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
724
|
+
/**
|
|
725
|
+
* Create a Player.
|
|
726
|
+
* @param {PlayerCreateArgs} args - Arguments to create a Player.
|
|
727
|
+
* @example
|
|
728
|
+
* // Create one Player
|
|
729
|
+
* const Player = await prisma.player.create({
|
|
730
|
+
* data: {
|
|
731
|
+
* // ... data to create a Player
|
|
732
|
+
* }
|
|
733
|
+
* })
|
|
734
|
+
*
|
|
735
|
+
*/
|
|
736
|
+
create<T extends PlayerCreateArgs>(args: Prisma.SelectSubset<T, PlayerCreateArgs<ExtArgs>>): Prisma.Prisma__PlayerClient<runtime.Types.Result.GetResult<Prisma.$PlayerPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
737
|
+
/**
|
|
738
|
+
* Create many Players.
|
|
739
|
+
* @param {PlayerCreateManyArgs} args - Arguments to create many Players.
|
|
740
|
+
* @example
|
|
741
|
+
* // Create many Players
|
|
742
|
+
* const player = await prisma.player.createMany({
|
|
743
|
+
* data: [
|
|
744
|
+
* // ... provide data here
|
|
745
|
+
* ]
|
|
746
|
+
* })
|
|
747
|
+
*
|
|
748
|
+
*/
|
|
749
|
+
createMany<T extends PlayerCreateManyArgs>(args?: Prisma.SelectSubset<T, PlayerCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
750
|
+
/**
|
|
751
|
+
* Create many Players and returns the data saved in the database.
|
|
752
|
+
* @param {PlayerCreateManyAndReturnArgs} args - Arguments to create many Players.
|
|
753
|
+
* @example
|
|
754
|
+
* // Create many Players
|
|
755
|
+
* const player = await prisma.player.createManyAndReturn({
|
|
756
|
+
* data: [
|
|
757
|
+
* // ... provide data here
|
|
758
|
+
* ]
|
|
759
|
+
* })
|
|
760
|
+
*
|
|
761
|
+
* // Create many Players and only return the `uuid`
|
|
762
|
+
* const playerWithUuidOnly = await prisma.player.createManyAndReturn({
|
|
763
|
+
* select: { uuid: true },
|
|
764
|
+
* data: [
|
|
765
|
+
* // ... provide data here
|
|
766
|
+
* ]
|
|
767
|
+
* })
|
|
768
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
769
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
770
|
+
*
|
|
771
|
+
*/
|
|
772
|
+
createManyAndReturn<T extends PlayerCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PlayerCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PlayerPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
773
|
+
/**
|
|
774
|
+
* Delete a Player.
|
|
775
|
+
* @param {PlayerDeleteArgs} args - Arguments to delete one Player.
|
|
776
|
+
* @example
|
|
777
|
+
* // Delete one Player
|
|
778
|
+
* const Player = await prisma.player.delete({
|
|
779
|
+
* where: {
|
|
780
|
+
* // ... filter to delete one Player
|
|
781
|
+
* }
|
|
782
|
+
* })
|
|
783
|
+
*
|
|
784
|
+
*/
|
|
785
|
+
delete<T extends PlayerDeleteArgs>(args: Prisma.SelectSubset<T, PlayerDeleteArgs<ExtArgs>>): Prisma.Prisma__PlayerClient<runtime.Types.Result.GetResult<Prisma.$PlayerPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
786
|
+
/**
|
|
787
|
+
* Update one Player.
|
|
788
|
+
* @param {PlayerUpdateArgs} args - Arguments to update one Player.
|
|
789
|
+
* @example
|
|
790
|
+
* // Update one Player
|
|
791
|
+
* const player = await prisma.player.update({
|
|
792
|
+
* where: {
|
|
793
|
+
* // ... provide filter here
|
|
794
|
+
* },
|
|
795
|
+
* data: {
|
|
796
|
+
* // ... provide data here
|
|
797
|
+
* }
|
|
798
|
+
* })
|
|
799
|
+
*
|
|
800
|
+
*/
|
|
801
|
+
update<T extends PlayerUpdateArgs>(args: Prisma.SelectSubset<T, PlayerUpdateArgs<ExtArgs>>): Prisma.Prisma__PlayerClient<runtime.Types.Result.GetResult<Prisma.$PlayerPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
802
|
+
/**
|
|
803
|
+
* Delete zero or more Players.
|
|
804
|
+
* @param {PlayerDeleteManyArgs} args - Arguments to filter Players to delete.
|
|
805
|
+
* @example
|
|
806
|
+
* // Delete a few Players
|
|
807
|
+
* const { count } = await prisma.player.deleteMany({
|
|
808
|
+
* where: {
|
|
809
|
+
* // ... provide filter here
|
|
810
|
+
* }
|
|
811
|
+
* })
|
|
812
|
+
*
|
|
813
|
+
*/
|
|
814
|
+
deleteMany<T extends PlayerDeleteManyArgs>(args?: Prisma.SelectSubset<T, PlayerDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
815
|
+
/**
|
|
816
|
+
* Update zero or more Players.
|
|
817
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
818
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
819
|
+
* @param {PlayerUpdateManyArgs} args - Arguments to update one or more rows.
|
|
820
|
+
* @example
|
|
821
|
+
* // Update many Players
|
|
822
|
+
* const player = await prisma.player.updateMany({
|
|
823
|
+
* where: {
|
|
824
|
+
* // ... provide filter here
|
|
825
|
+
* },
|
|
826
|
+
* data: {
|
|
827
|
+
* // ... provide data here
|
|
828
|
+
* }
|
|
829
|
+
* })
|
|
830
|
+
*
|
|
831
|
+
*/
|
|
832
|
+
updateMany<T extends PlayerUpdateManyArgs>(args: Prisma.SelectSubset<T, PlayerUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
833
|
+
/**
|
|
834
|
+
* Update zero or more Players and returns the data updated in the database.
|
|
835
|
+
* @param {PlayerUpdateManyAndReturnArgs} args - Arguments to update many Players.
|
|
836
|
+
* @example
|
|
837
|
+
* // Update many Players
|
|
838
|
+
* const player = await prisma.player.updateManyAndReturn({
|
|
839
|
+
* where: {
|
|
840
|
+
* // ... provide filter here
|
|
841
|
+
* },
|
|
842
|
+
* data: [
|
|
843
|
+
* // ... provide data here
|
|
844
|
+
* ]
|
|
845
|
+
* })
|
|
846
|
+
*
|
|
847
|
+
* // Update zero or more Players and only return the `uuid`
|
|
848
|
+
* const playerWithUuidOnly = await prisma.player.updateManyAndReturn({
|
|
849
|
+
* select: { uuid: true },
|
|
850
|
+
* where: {
|
|
851
|
+
* // ... provide filter here
|
|
852
|
+
* },
|
|
853
|
+
* data: [
|
|
854
|
+
* // ... provide data here
|
|
855
|
+
* ]
|
|
856
|
+
* })
|
|
857
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
858
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
859
|
+
*
|
|
860
|
+
*/
|
|
861
|
+
updateManyAndReturn<T extends PlayerUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PlayerUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PlayerPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
862
|
+
/**
|
|
863
|
+
* Create or update one Player.
|
|
864
|
+
* @param {PlayerUpsertArgs} args - Arguments to update or create a Player.
|
|
865
|
+
* @example
|
|
866
|
+
* // Update or create a Player
|
|
867
|
+
* const player = await prisma.player.upsert({
|
|
868
|
+
* create: {
|
|
869
|
+
* // ... data to create a Player
|
|
870
|
+
* },
|
|
871
|
+
* update: {
|
|
872
|
+
* // ... in case it already exists, update
|
|
873
|
+
* },
|
|
874
|
+
* where: {
|
|
875
|
+
* // ... the filter for the Player we want to update
|
|
876
|
+
* }
|
|
877
|
+
* })
|
|
878
|
+
*/
|
|
879
|
+
upsert<T extends PlayerUpsertArgs>(args: Prisma.SelectSubset<T, PlayerUpsertArgs<ExtArgs>>): Prisma.Prisma__PlayerClient<runtime.Types.Result.GetResult<Prisma.$PlayerPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
880
|
+
/**
|
|
881
|
+
* Count the number of Players.
|
|
882
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
883
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
884
|
+
* @param {PlayerCountArgs} args - Arguments to filter Players to count.
|
|
885
|
+
* @example
|
|
886
|
+
* // Count the number of Players
|
|
887
|
+
* const count = await prisma.player.count({
|
|
888
|
+
* where: {
|
|
889
|
+
* // ... the filter for the Players we want to count
|
|
890
|
+
* }
|
|
891
|
+
* })
|
|
892
|
+
**/
|
|
893
|
+
count<T extends PlayerCountArgs>(args?: Prisma.Subset<T, PlayerCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PlayerCountAggregateOutputType> : number>;
|
|
894
|
+
/**
|
|
895
|
+
* Allows you to perform aggregations operations on a Player.
|
|
896
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
897
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
898
|
+
* @param {PlayerAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
899
|
+
* @example
|
|
900
|
+
* // Ordered by age ascending
|
|
901
|
+
* // Where email contains prisma.io
|
|
902
|
+
* // Limited to the 10 users
|
|
903
|
+
* const aggregations = await prisma.user.aggregate({
|
|
904
|
+
* _avg: {
|
|
905
|
+
* age: true,
|
|
906
|
+
* },
|
|
907
|
+
* where: {
|
|
908
|
+
* email: {
|
|
909
|
+
* contains: "prisma.io",
|
|
910
|
+
* },
|
|
911
|
+
* },
|
|
912
|
+
* orderBy: {
|
|
913
|
+
* age: "asc",
|
|
914
|
+
* },
|
|
915
|
+
* take: 10,
|
|
916
|
+
* })
|
|
917
|
+
**/
|
|
918
|
+
aggregate<T extends PlayerAggregateArgs>(args: Prisma.Subset<T, PlayerAggregateArgs>): Prisma.PrismaPromise<GetPlayerAggregateType<T>>;
|
|
919
|
+
/**
|
|
920
|
+
* Group by Player.
|
|
921
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
922
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
923
|
+
* @param {PlayerGroupByArgs} args - Group by arguments.
|
|
924
|
+
* @example
|
|
925
|
+
* // Group by city, order by createdAt, get count
|
|
926
|
+
* const result = await prisma.user.groupBy({
|
|
927
|
+
* by: ['city', 'createdAt'],
|
|
928
|
+
* orderBy: {
|
|
929
|
+
* createdAt: true
|
|
930
|
+
* },
|
|
931
|
+
* _count: {
|
|
932
|
+
* _all: true
|
|
933
|
+
* },
|
|
934
|
+
* })
|
|
935
|
+
*
|
|
936
|
+
**/
|
|
937
|
+
groupBy<T extends PlayerGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
938
|
+
orderBy: PlayerGroupByArgs['orderBy'];
|
|
939
|
+
} : {
|
|
940
|
+
orderBy?: PlayerGroupByArgs['orderBy'];
|
|
941
|
+
}, 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 ? {
|
|
942
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
943
|
+
Error,
|
|
944
|
+
'Field ',
|
|
945
|
+
P,
|
|
946
|
+
` in "having" needs to be provided in "by"`
|
|
947
|
+
];
|
|
948
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
949
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
950
|
+
}[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 ? {} : {
|
|
951
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
952
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
953
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
954
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, PlayerGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPlayerGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
955
|
+
/**
|
|
956
|
+
* Fields of the Player model
|
|
957
|
+
*/
|
|
958
|
+
readonly fields: PlayerFieldRefs;
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* The delegate class that acts as a "Promise-like" for Player.
|
|
962
|
+
* Why is this prefixed with `Prisma__`?
|
|
963
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
964
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
965
|
+
*/
|
|
966
|
+
export interface Prisma__PlayerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
967
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
968
|
+
linked_roles<T extends Prisma.Player$linked_rolesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Player$linked_rolesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LinkedMinecraftRolePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
969
|
+
medias<T extends Prisma.Player$mediasArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Player$mediasArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MediaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
970
|
+
user<T extends Prisma.Player$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Player$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
971
|
+
/**
|
|
972
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
973
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
974
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
975
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
976
|
+
*/
|
|
977
|
+
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>;
|
|
978
|
+
/**
|
|
979
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
980
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
981
|
+
* @returns A Promise for the completion of the callback.
|
|
982
|
+
*/
|
|
983
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
984
|
+
/**
|
|
985
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
986
|
+
* resolved value cannot be modified from the callback.
|
|
987
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
988
|
+
* @returns A Promise for the completion of the callback.
|
|
989
|
+
*/
|
|
990
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
991
|
+
}
|
|
992
|
+
/**
|
|
993
|
+
* Fields of the Player model
|
|
994
|
+
*/
|
|
995
|
+
export interface PlayerFieldRefs {
|
|
996
|
+
readonly uuid: Prisma.FieldRef<"Player", 'String'>;
|
|
997
|
+
readonly nickname: Prisma.FieldRef<"Player", 'String'>;
|
|
998
|
+
readonly digs: Prisma.FieldRef<"Player", 'Int'>;
|
|
999
|
+
readonly description: Prisma.FieldRef<"Player", 'String'>;
|
|
1000
|
+
readonly status: Prisma.FieldRef<"Player", 'PLAYER_STATUS'>;
|
|
1001
|
+
readonly last_seen: Prisma.FieldRef<"Player", 'DateTime'>;
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* Player findUnique
|
|
1005
|
+
*/
|
|
1006
|
+
export type PlayerFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1007
|
+
/**
|
|
1008
|
+
* Select specific fields to fetch from the Player
|
|
1009
|
+
*/
|
|
1010
|
+
select?: Prisma.PlayerSelect<ExtArgs> | null;
|
|
1011
|
+
/**
|
|
1012
|
+
* Omit specific fields from the Player
|
|
1013
|
+
*/
|
|
1014
|
+
omit?: Prisma.PlayerOmit<ExtArgs> | null;
|
|
1015
|
+
/**
|
|
1016
|
+
* Choose, which related nodes to fetch as well
|
|
1017
|
+
*/
|
|
1018
|
+
include?: Prisma.PlayerInclude<ExtArgs> | null;
|
|
1019
|
+
/**
|
|
1020
|
+
* Filter, which Player to fetch.
|
|
1021
|
+
*/
|
|
1022
|
+
where: Prisma.PlayerWhereUniqueInput;
|
|
1023
|
+
};
|
|
1024
|
+
/**
|
|
1025
|
+
* Player findUniqueOrThrow
|
|
1026
|
+
*/
|
|
1027
|
+
export type PlayerFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1028
|
+
/**
|
|
1029
|
+
* Select specific fields to fetch from the Player
|
|
1030
|
+
*/
|
|
1031
|
+
select?: Prisma.PlayerSelect<ExtArgs> | null;
|
|
1032
|
+
/**
|
|
1033
|
+
* Omit specific fields from the Player
|
|
1034
|
+
*/
|
|
1035
|
+
omit?: Prisma.PlayerOmit<ExtArgs> | null;
|
|
1036
|
+
/**
|
|
1037
|
+
* Choose, which related nodes to fetch as well
|
|
1038
|
+
*/
|
|
1039
|
+
include?: Prisma.PlayerInclude<ExtArgs> | null;
|
|
1040
|
+
/**
|
|
1041
|
+
* Filter, which Player to fetch.
|
|
1042
|
+
*/
|
|
1043
|
+
where: Prisma.PlayerWhereUniqueInput;
|
|
1044
|
+
};
|
|
1045
|
+
/**
|
|
1046
|
+
* Player findFirst
|
|
1047
|
+
*/
|
|
1048
|
+
export type PlayerFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1049
|
+
/**
|
|
1050
|
+
* Select specific fields to fetch from the Player
|
|
1051
|
+
*/
|
|
1052
|
+
select?: Prisma.PlayerSelect<ExtArgs> | null;
|
|
1053
|
+
/**
|
|
1054
|
+
* Omit specific fields from the Player
|
|
1055
|
+
*/
|
|
1056
|
+
omit?: Prisma.PlayerOmit<ExtArgs> | null;
|
|
1057
|
+
/**
|
|
1058
|
+
* Choose, which related nodes to fetch as well
|
|
1059
|
+
*/
|
|
1060
|
+
include?: Prisma.PlayerInclude<ExtArgs> | null;
|
|
1061
|
+
/**
|
|
1062
|
+
* Filter, which Player to fetch.
|
|
1063
|
+
*/
|
|
1064
|
+
where?: Prisma.PlayerWhereInput;
|
|
1065
|
+
/**
|
|
1066
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1067
|
+
*
|
|
1068
|
+
* Determine the order of Players to fetch.
|
|
1069
|
+
*/
|
|
1070
|
+
orderBy?: Prisma.PlayerOrderByWithRelationInput | Prisma.PlayerOrderByWithRelationInput[];
|
|
1071
|
+
/**
|
|
1072
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1073
|
+
*
|
|
1074
|
+
* Sets the position for searching for Players.
|
|
1075
|
+
*/
|
|
1076
|
+
cursor?: Prisma.PlayerWhereUniqueInput;
|
|
1077
|
+
/**
|
|
1078
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1079
|
+
*
|
|
1080
|
+
* Take `±n` Players from the position of the cursor.
|
|
1081
|
+
*/
|
|
1082
|
+
take?: number;
|
|
1083
|
+
/**
|
|
1084
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1085
|
+
*
|
|
1086
|
+
* Skip the first `n` Players.
|
|
1087
|
+
*/
|
|
1088
|
+
skip?: number;
|
|
1089
|
+
/**
|
|
1090
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1091
|
+
*
|
|
1092
|
+
* Filter by unique combinations of Players.
|
|
1093
|
+
*/
|
|
1094
|
+
distinct?: Prisma.PlayerScalarFieldEnum | Prisma.PlayerScalarFieldEnum[];
|
|
1095
|
+
};
|
|
1096
|
+
/**
|
|
1097
|
+
* Player findFirstOrThrow
|
|
1098
|
+
*/
|
|
1099
|
+
export type PlayerFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1100
|
+
/**
|
|
1101
|
+
* Select specific fields to fetch from the Player
|
|
1102
|
+
*/
|
|
1103
|
+
select?: Prisma.PlayerSelect<ExtArgs> | null;
|
|
1104
|
+
/**
|
|
1105
|
+
* Omit specific fields from the Player
|
|
1106
|
+
*/
|
|
1107
|
+
omit?: Prisma.PlayerOmit<ExtArgs> | null;
|
|
1108
|
+
/**
|
|
1109
|
+
* Choose, which related nodes to fetch as well
|
|
1110
|
+
*/
|
|
1111
|
+
include?: Prisma.PlayerInclude<ExtArgs> | null;
|
|
1112
|
+
/**
|
|
1113
|
+
* Filter, which Player to fetch.
|
|
1114
|
+
*/
|
|
1115
|
+
where?: Prisma.PlayerWhereInput;
|
|
1116
|
+
/**
|
|
1117
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1118
|
+
*
|
|
1119
|
+
* Determine the order of Players to fetch.
|
|
1120
|
+
*/
|
|
1121
|
+
orderBy?: Prisma.PlayerOrderByWithRelationInput | Prisma.PlayerOrderByWithRelationInput[];
|
|
1122
|
+
/**
|
|
1123
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1124
|
+
*
|
|
1125
|
+
* Sets the position for searching for Players.
|
|
1126
|
+
*/
|
|
1127
|
+
cursor?: Prisma.PlayerWhereUniqueInput;
|
|
1128
|
+
/**
|
|
1129
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1130
|
+
*
|
|
1131
|
+
* Take `±n` Players from the position of the cursor.
|
|
1132
|
+
*/
|
|
1133
|
+
take?: number;
|
|
1134
|
+
/**
|
|
1135
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1136
|
+
*
|
|
1137
|
+
* Skip the first `n` Players.
|
|
1138
|
+
*/
|
|
1139
|
+
skip?: number;
|
|
1140
|
+
/**
|
|
1141
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1142
|
+
*
|
|
1143
|
+
* Filter by unique combinations of Players.
|
|
1144
|
+
*/
|
|
1145
|
+
distinct?: Prisma.PlayerScalarFieldEnum | Prisma.PlayerScalarFieldEnum[];
|
|
1146
|
+
};
|
|
1147
|
+
/**
|
|
1148
|
+
* Player findMany
|
|
1149
|
+
*/
|
|
1150
|
+
export type PlayerFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1151
|
+
/**
|
|
1152
|
+
* Select specific fields to fetch from the Player
|
|
1153
|
+
*/
|
|
1154
|
+
select?: Prisma.PlayerSelect<ExtArgs> | null;
|
|
1155
|
+
/**
|
|
1156
|
+
* Omit specific fields from the Player
|
|
1157
|
+
*/
|
|
1158
|
+
omit?: Prisma.PlayerOmit<ExtArgs> | null;
|
|
1159
|
+
/**
|
|
1160
|
+
* Choose, which related nodes to fetch as well
|
|
1161
|
+
*/
|
|
1162
|
+
include?: Prisma.PlayerInclude<ExtArgs> | null;
|
|
1163
|
+
/**
|
|
1164
|
+
* Filter, which Players to fetch.
|
|
1165
|
+
*/
|
|
1166
|
+
where?: Prisma.PlayerWhereInput;
|
|
1167
|
+
/**
|
|
1168
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1169
|
+
*
|
|
1170
|
+
* Determine the order of Players to fetch.
|
|
1171
|
+
*/
|
|
1172
|
+
orderBy?: Prisma.PlayerOrderByWithRelationInput | Prisma.PlayerOrderByWithRelationInput[];
|
|
1173
|
+
/**
|
|
1174
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1175
|
+
*
|
|
1176
|
+
* Sets the position for listing Players.
|
|
1177
|
+
*/
|
|
1178
|
+
cursor?: Prisma.PlayerWhereUniqueInput;
|
|
1179
|
+
/**
|
|
1180
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1181
|
+
*
|
|
1182
|
+
* Take `±n` Players from the position of the cursor.
|
|
1183
|
+
*/
|
|
1184
|
+
take?: number;
|
|
1185
|
+
/**
|
|
1186
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1187
|
+
*
|
|
1188
|
+
* Skip the first `n` Players.
|
|
1189
|
+
*/
|
|
1190
|
+
skip?: number;
|
|
1191
|
+
/**
|
|
1192
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1193
|
+
*
|
|
1194
|
+
* Filter by unique combinations of Players.
|
|
1195
|
+
*/
|
|
1196
|
+
distinct?: Prisma.PlayerScalarFieldEnum | Prisma.PlayerScalarFieldEnum[];
|
|
1197
|
+
};
|
|
1198
|
+
/**
|
|
1199
|
+
* Player create
|
|
1200
|
+
*/
|
|
1201
|
+
export type PlayerCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1202
|
+
/**
|
|
1203
|
+
* Select specific fields to fetch from the Player
|
|
1204
|
+
*/
|
|
1205
|
+
select?: Prisma.PlayerSelect<ExtArgs> | null;
|
|
1206
|
+
/**
|
|
1207
|
+
* Omit specific fields from the Player
|
|
1208
|
+
*/
|
|
1209
|
+
omit?: Prisma.PlayerOmit<ExtArgs> | null;
|
|
1210
|
+
/**
|
|
1211
|
+
* Choose, which related nodes to fetch as well
|
|
1212
|
+
*/
|
|
1213
|
+
include?: Prisma.PlayerInclude<ExtArgs> | null;
|
|
1214
|
+
/**
|
|
1215
|
+
* The data needed to create a Player.
|
|
1216
|
+
*/
|
|
1217
|
+
data: Prisma.XOR<Prisma.PlayerCreateInput, Prisma.PlayerUncheckedCreateInput>;
|
|
1218
|
+
};
|
|
1219
|
+
/**
|
|
1220
|
+
* Player createMany
|
|
1221
|
+
*/
|
|
1222
|
+
export type PlayerCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1223
|
+
/**
|
|
1224
|
+
* The data used to create many Players.
|
|
1225
|
+
*/
|
|
1226
|
+
data: Prisma.PlayerCreateManyInput | Prisma.PlayerCreateManyInput[];
|
|
1227
|
+
skipDuplicates?: boolean;
|
|
1228
|
+
};
|
|
1229
|
+
/**
|
|
1230
|
+
* Player createManyAndReturn
|
|
1231
|
+
*/
|
|
1232
|
+
export type PlayerCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1233
|
+
/**
|
|
1234
|
+
* Select specific fields to fetch from the Player
|
|
1235
|
+
*/
|
|
1236
|
+
select?: Prisma.PlayerSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1237
|
+
/**
|
|
1238
|
+
* Omit specific fields from the Player
|
|
1239
|
+
*/
|
|
1240
|
+
omit?: Prisma.PlayerOmit<ExtArgs> | null;
|
|
1241
|
+
/**
|
|
1242
|
+
* The data used to create many Players.
|
|
1243
|
+
*/
|
|
1244
|
+
data: Prisma.PlayerCreateManyInput | Prisma.PlayerCreateManyInput[];
|
|
1245
|
+
skipDuplicates?: boolean;
|
|
1246
|
+
};
|
|
1247
|
+
/**
|
|
1248
|
+
* Player update
|
|
1249
|
+
*/
|
|
1250
|
+
export type PlayerUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1251
|
+
/**
|
|
1252
|
+
* Select specific fields to fetch from the Player
|
|
1253
|
+
*/
|
|
1254
|
+
select?: Prisma.PlayerSelect<ExtArgs> | null;
|
|
1255
|
+
/**
|
|
1256
|
+
* Omit specific fields from the Player
|
|
1257
|
+
*/
|
|
1258
|
+
omit?: Prisma.PlayerOmit<ExtArgs> | null;
|
|
1259
|
+
/**
|
|
1260
|
+
* Choose, which related nodes to fetch as well
|
|
1261
|
+
*/
|
|
1262
|
+
include?: Prisma.PlayerInclude<ExtArgs> | null;
|
|
1263
|
+
/**
|
|
1264
|
+
* The data needed to update a Player.
|
|
1265
|
+
*/
|
|
1266
|
+
data: Prisma.XOR<Prisma.PlayerUpdateInput, Prisma.PlayerUncheckedUpdateInput>;
|
|
1267
|
+
/**
|
|
1268
|
+
* Choose, which Player to update.
|
|
1269
|
+
*/
|
|
1270
|
+
where: Prisma.PlayerWhereUniqueInput;
|
|
1271
|
+
};
|
|
1272
|
+
/**
|
|
1273
|
+
* Player updateMany
|
|
1274
|
+
*/
|
|
1275
|
+
export type PlayerUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1276
|
+
/**
|
|
1277
|
+
* The data used to update Players.
|
|
1278
|
+
*/
|
|
1279
|
+
data: Prisma.XOR<Prisma.PlayerUpdateManyMutationInput, Prisma.PlayerUncheckedUpdateManyInput>;
|
|
1280
|
+
/**
|
|
1281
|
+
* Filter which Players to update
|
|
1282
|
+
*/
|
|
1283
|
+
where?: Prisma.PlayerWhereInput;
|
|
1284
|
+
/**
|
|
1285
|
+
* Limit how many Players to update.
|
|
1286
|
+
*/
|
|
1287
|
+
limit?: number;
|
|
1288
|
+
};
|
|
1289
|
+
/**
|
|
1290
|
+
* Player updateManyAndReturn
|
|
1291
|
+
*/
|
|
1292
|
+
export type PlayerUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1293
|
+
/**
|
|
1294
|
+
* Select specific fields to fetch from the Player
|
|
1295
|
+
*/
|
|
1296
|
+
select?: Prisma.PlayerSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1297
|
+
/**
|
|
1298
|
+
* Omit specific fields from the Player
|
|
1299
|
+
*/
|
|
1300
|
+
omit?: Prisma.PlayerOmit<ExtArgs> | null;
|
|
1301
|
+
/**
|
|
1302
|
+
* The data used to update Players.
|
|
1303
|
+
*/
|
|
1304
|
+
data: Prisma.XOR<Prisma.PlayerUpdateManyMutationInput, Prisma.PlayerUncheckedUpdateManyInput>;
|
|
1305
|
+
/**
|
|
1306
|
+
* Filter which Players to update
|
|
1307
|
+
*/
|
|
1308
|
+
where?: Prisma.PlayerWhereInput;
|
|
1309
|
+
/**
|
|
1310
|
+
* Limit how many Players to update.
|
|
1311
|
+
*/
|
|
1312
|
+
limit?: number;
|
|
1313
|
+
};
|
|
1314
|
+
/**
|
|
1315
|
+
* Player upsert
|
|
1316
|
+
*/
|
|
1317
|
+
export type PlayerUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1318
|
+
/**
|
|
1319
|
+
* Select specific fields to fetch from the Player
|
|
1320
|
+
*/
|
|
1321
|
+
select?: Prisma.PlayerSelect<ExtArgs> | null;
|
|
1322
|
+
/**
|
|
1323
|
+
* Omit specific fields from the Player
|
|
1324
|
+
*/
|
|
1325
|
+
omit?: Prisma.PlayerOmit<ExtArgs> | null;
|
|
1326
|
+
/**
|
|
1327
|
+
* Choose, which related nodes to fetch as well
|
|
1328
|
+
*/
|
|
1329
|
+
include?: Prisma.PlayerInclude<ExtArgs> | null;
|
|
1330
|
+
/**
|
|
1331
|
+
* The filter to search for the Player to update in case it exists.
|
|
1332
|
+
*/
|
|
1333
|
+
where: Prisma.PlayerWhereUniqueInput;
|
|
1334
|
+
/**
|
|
1335
|
+
* In case the Player found by the `where` argument doesn't exist, create a new Player with this data.
|
|
1336
|
+
*/
|
|
1337
|
+
create: Prisma.XOR<Prisma.PlayerCreateInput, Prisma.PlayerUncheckedCreateInput>;
|
|
1338
|
+
/**
|
|
1339
|
+
* In case the Player was found with the provided `where` argument, update it with this data.
|
|
1340
|
+
*/
|
|
1341
|
+
update: Prisma.XOR<Prisma.PlayerUpdateInput, Prisma.PlayerUncheckedUpdateInput>;
|
|
1342
|
+
};
|
|
1343
|
+
/**
|
|
1344
|
+
* Player delete
|
|
1345
|
+
*/
|
|
1346
|
+
export type PlayerDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1347
|
+
/**
|
|
1348
|
+
* Select specific fields to fetch from the Player
|
|
1349
|
+
*/
|
|
1350
|
+
select?: Prisma.PlayerSelect<ExtArgs> | null;
|
|
1351
|
+
/**
|
|
1352
|
+
* Omit specific fields from the Player
|
|
1353
|
+
*/
|
|
1354
|
+
omit?: Prisma.PlayerOmit<ExtArgs> | null;
|
|
1355
|
+
/**
|
|
1356
|
+
* Choose, which related nodes to fetch as well
|
|
1357
|
+
*/
|
|
1358
|
+
include?: Prisma.PlayerInclude<ExtArgs> | null;
|
|
1359
|
+
/**
|
|
1360
|
+
* Filter which Player to delete.
|
|
1361
|
+
*/
|
|
1362
|
+
where: Prisma.PlayerWhereUniqueInput;
|
|
1363
|
+
};
|
|
1364
|
+
/**
|
|
1365
|
+
* Player deleteMany
|
|
1366
|
+
*/
|
|
1367
|
+
export type PlayerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1368
|
+
/**
|
|
1369
|
+
* Filter which Players to delete
|
|
1370
|
+
*/
|
|
1371
|
+
where?: Prisma.PlayerWhereInput;
|
|
1372
|
+
/**
|
|
1373
|
+
* Limit how many Players to delete.
|
|
1374
|
+
*/
|
|
1375
|
+
limit?: number;
|
|
1376
|
+
};
|
|
1377
|
+
/**
|
|
1378
|
+
* Player.linked_roles
|
|
1379
|
+
*/
|
|
1380
|
+
export type Player$linked_rolesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1381
|
+
/**
|
|
1382
|
+
* Select specific fields to fetch from the LinkedMinecraftRole
|
|
1383
|
+
*/
|
|
1384
|
+
select?: Prisma.LinkedMinecraftRoleSelect<ExtArgs> | null;
|
|
1385
|
+
/**
|
|
1386
|
+
* Omit specific fields from the LinkedMinecraftRole
|
|
1387
|
+
*/
|
|
1388
|
+
omit?: Prisma.LinkedMinecraftRoleOmit<ExtArgs> | null;
|
|
1389
|
+
/**
|
|
1390
|
+
* Choose, which related nodes to fetch as well
|
|
1391
|
+
*/
|
|
1392
|
+
include?: Prisma.LinkedMinecraftRoleInclude<ExtArgs> | null;
|
|
1393
|
+
where?: Prisma.LinkedMinecraftRoleWhereInput;
|
|
1394
|
+
orderBy?: Prisma.LinkedMinecraftRoleOrderByWithRelationInput | Prisma.LinkedMinecraftRoleOrderByWithRelationInput[];
|
|
1395
|
+
cursor?: Prisma.LinkedMinecraftRoleWhereUniqueInput;
|
|
1396
|
+
take?: number;
|
|
1397
|
+
skip?: number;
|
|
1398
|
+
distinct?: Prisma.LinkedMinecraftRoleScalarFieldEnum | Prisma.LinkedMinecraftRoleScalarFieldEnum[];
|
|
1399
|
+
};
|
|
1400
|
+
/**
|
|
1401
|
+
* Player.medias
|
|
1402
|
+
*/
|
|
1403
|
+
export type Player$mediasArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1404
|
+
/**
|
|
1405
|
+
* Select specific fields to fetch from the Media
|
|
1406
|
+
*/
|
|
1407
|
+
select?: Prisma.MediaSelect<ExtArgs> | null;
|
|
1408
|
+
/**
|
|
1409
|
+
* Omit specific fields from the Media
|
|
1410
|
+
*/
|
|
1411
|
+
omit?: Prisma.MediaOmit<ExtArgs> | null;
|
|
1412
|
+
/**
|
|
1413
|
+
* Choose, which related nodes to fetch as well
|
|
1414
|
+
*/
|
|
1415
|
+
include?: Prisma.MediaInclude<ExtArgs> | null;
|
|
1416
|
+
where?: Prisma.MediaWhereInput;
|
|
1417
|
+
orderBy?: Prisma.MediaOrderByWithRelationInput | Prisma.MediaOrderByWithRelationInput[];
|
|
1418
|
+
cursor?: Prisma.MediaWhereUniqueInput;
|
|
1419
|
+
take?: number;
|
|
1420
|
+
skip?: number;
|
|
1421
|
+
distinct?: Prisma.MediaScalarFieldEnum | Prisma.MediaScalarFieldEnum[];
|
|
1422
|
+
};
|
|
1423
|
+
/**
|
|
1424
|
+
* Player.user
|
|
1425
|
+
*/
|
|
1426
|
+
export type Player$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1427
|
+
/**
|
|
1428
|
+
* Select specific fields to fetch from the User
|
|
1429
|
+
*/
|
|
1430
|
+
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1431
|
+
/**
|
|
1432
|
+
* Omit specific fields from the User
|
|
1433
|
+
*/
|
|
1434
|
+
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1435
|
+
/**
|
|
1436
|
+
* Choose, which related nodes to fetch as well
|
|
1437
|
+
*/
|
|
1438
|
+
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1439
|
+
where?: Prisma.UserWhereInput;
|
|
1440
|
+
};
|
|
1441
|
+
/**
|
|
1442
|
+
* Player without action
|
|
1443
|
+
*/
|
|
1444
|
+
export type PlayerDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1445
|
+
/**
|
|
1446
|
+
* Select specific fields to fetch from the Player
|
|
1447
|
+
*/
|
|
1448
|
+
select?: Prisma.PlayerSelect<ExtArgs> | null;
|
|
1449
|
+
/**
|
|
1450
|
+
* Omit specific fields from the Player
|
|
1451
|
+
*/
|
|
1452
|
+
omit?: Prisma.PlayerOmit<ExtArgs> | null;
|
|
1453
|
+
/**
|
|
1454
|
+
* Choose, which related nodes to fetch as well
|
|
1455
|
+
*/
|
|
1456
|
+
include?: Prisma.PlayerInclude<ExtArgs> | null;
|
|
1457
|
+
};
|
|
1458
|
+
//# sourceMappingURL=Player.d.ts.map
|