/** * Client **/ import * as runtime from '@prisma/client/runtime/library.js'; import $Types = runtime.Types // general types import $Public = runtime.Types.Public import $Utils = runtime.Types.Utils import $Extensions = runtime.Types.Extensions import $Result = runtime.Types.Result export type PrismaPromise = $Public.PrismaPromise /** * Model GuildSettings * */ export type GuildSettings = $Result.DefaultSelection /** * Model Ticket * */ export type Ticket = $Result.DefaultSelection /** * Model Level * */ export type Level = $Result.DefaultSelection /** * Model TicketSupportSession * */ export type TicketSupportSession = $Result.DefaultSelection /** * Model Birthday * */ export type Birthday = $Result.DefaultSelection /** * Model ReactionRoleSet * */ export type ReactionRoleSet = $Result.DefaultSelection /** * Model Event * */ export type Event = $Result.DefaultSelection /** * Model EventSignup * */ export type EventSignup = $Result.DefaultSelection /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more GuildSettings * const guildSettings = await prisma.guildSettings.findMany() * ``` * * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ export class PrismaClient< ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs > { [K: symbol]: { types: Prisma.TypeMap['other'] } /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more GuildSettings * const guildSettings = await prisma.guildSettings.findMany() * ``` * * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ constructor(optionsArg ?: Prisma.Subset); $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): void; /** * Connect with the database */ $connect(): $Utils.JsPromise; /** * Disconnect from the database */ $disconnect(): $Utils.JsPromise; /** * Add a middleware * @deprecated since 4.16.0. For new code, prefer client extensions instead. * @see https://pris.ly/d/extensions */ $use(cb: Prisma.Middleware): void /** * Executes a prepared raw query and returns the number of affected rows. * @example * ``` * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * Executes a raw query and returns the number of affected rows. * Susceptible to SQL injections, see documentation. * @example * ``` * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; /** * Performs a prepared raw query and returns the `SELECT` data. * @example * ``` * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * Performs a raw query and returns the `SELECT` data. * Susceptible to SQL injections, see documentation. * @example * ``` * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; /** * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. * @example * ``` * const [george, bob, alice] = await prisma.$transaction([ * prisma.user.create({ data: { name: 'George' } }), * prisma.user.create({ data: { name: 'Bob' } }), * prisma.user.create({ data: { name: 'Alice' } }), * ]) * ``` * * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions). */ $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise> $transaction(fn: (prisma: Omit) => $Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs> /** * `prisma.guildSettings`: Exposes CRUD operations for the **GuildSettings** model. * Example usage: * ```ts * // Fetch zero or more GuildSettings * const guildSettings = await prisma.guildSettings.findMany() * ``` */ get guildSettings(): Prisma.GuildSettingsDelegate; /** * `prisma.ticket`: Exposes CRUD operations for the **Ticket** model. * Example usage: * ```ts * // Fetch zero or more Tickets * const tickets = await prisma.ticket.findMany() * ``` */ get ticket(): Prisma.TicketDelegate; /** * `prisma.level`: Exposes CRUD operations for the **Level** model. * Example usage: * ```ts * // Fetch zero or more Levels * const levels = await prisma.level.findMany() * ``` */ get level(): Prisma.LevelDelegate; /** * `prisma.ticketSupportSession`: Exposes CRUD operations for the **TicketSupportSession** model. * Example usage: * ```ts * // Fetch zero or more TicketSupportSessions * const ticketSupportSessions = await prisma.ticketSupportSession.findMany() * ``` */ get ticketSupportSession(): Prisma.TicketSupportSessionDelegate; /** * `prisma.birthday`: Exposes CRUD operations for the **Birthday** model. * Example usage: * ```ts * // Fetch zero or more Birthdays * const birthdays = await prisma.birthday.findMany() * ``` */ get birthday(): Prisma.BirthdayDelegate; /** * `prisma.reactionRoleSet`: Exposes CRUD operations for the **ReactionRoleSet** model. * Example usage: * ```ts * // Fetch zero or more ReactionRoleSets * const reactionRoleSets = await prisma.reactionRoleSet.findMany() * ``` */ get reactionRoleSet(): Prisma.ReactionRoleSetDelegate; /** * `prisma.event`: Exposes CRUD operations for the **Event** model. * Example usage: * ```ts * // Fetch zero or more Events * const events = await prisma.event.findMany() * ``` */ get event(): Prisma.EventDelegate; /** * `prisma.eventSignup`: Exposes CRUD operations for the **EventSignup** model. * Example usage: * ```ts * // Fetch zero or more EventSignups * const eventSignups = await prisma.eventSignup.findMany() * ``` */ get eventSignup(): Prisma.EventSignupDelegate; } export namespace Prisma { export import DMMF = runtime.DMMF export type PrismaPromise = $Public.PrismaPromise /** * Validator */ export import validator = runtime.Public.validator /** * Prisma Errors */ export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError export import PrismaClientInitializationError = runtime.PrismaClientInitializationError export import PrismaClientValidationError = runtime.PrismaClientValidationError export import NotFoundError = runtime.NotFoundError /** * Re-export of sql-template-tag */ export import sql = runtime.sqltag export import empty = runtime.empty export import join = runtime.join export import raw = runtime.raw export import Sql = runtime.Sql /** * Decimal.js */ export import Decimal = runtime.Decimal export type DecimalJsLike = runtime.DecimalJsLike /** * Metrics */ export type Metrics = runtime.Metrics export type Metric = runtime.Metric export type MetricHistogram = runtime.MetricHistogram export type MetricHistogramBucket = runtime.MetricHistogramBucket /** * Extensions */ export import Extension = $Extensions.UserArgs export import getExtensionContext = runtime.Extensions.getExtensionContext export import Args = $Public.Args export import Payload = $Public.Payload export import Result = $Public.Result export import Exact = $Public.Exact /** * Prisma Client JS version: 5.22.0 * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2 */ export type PrismaVersion = { client: string } export const prismaVersion: PrismaVersion /** * Utility Types */ export import JsonObject = runtime.JsonObject export import JsonArray = runtime.JsonArray export import JsonValue = runtime.JsonValue export import InputJsonObject = runtime.InputJsonObject export import InputJsonArray = runtime.InputJsonArray export import InputJsonValue = runtime.InputJsonValue /** * Types of the values used to represent different kinds of `null` values when working with JSON fields. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ namespace NullTypes { /** * Type of `Prisma.DbNull`. * * You cannot use other instances of this class. Please use the `Prisma.DbNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class DbNull { private DbNull: never private constructor() } /** * Type of `Prisma.JsonNull`. * * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class JsonNull { private JsonNull: never private constructor() } /** * Type of `Prisma.AnyNull`. * * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class AnyNull { private AnyNull: never private constructor() } } /** * Helper for filtering JSON entries that have `null` on the database (empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const DbNull: NullTypes.DbNull /** * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const JsonNull: NullTypes.JsonNull /** * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const AnyNull: NullTypes.AnyNull type SelectAndInclude = { select: any include: any } type SelectAndOmit = { select: any omit: any } /** * Get the type of the value, that the Promise holds. */ export type PromiseType> = T extends PromiseLike ? U : T; /** * Get the return type of a function which returns a Promise. */ export type PromiseReturnType $Utils.JsPromise> = PromiseType> /** * From T, pick a set of properties whose keys are in the union K */ type Prisma__Pick = { [P in K]: T[P]; }; export type Enumerable = T | Array; export type RequiredKeys = { [K in keyof T]-?: {} extends Prisma__Pick ? never : K }[keyof T] export type TruthyKeys = keyof { [K in keyof T as T[K] extends false | undefined | null ? never : K]: K } export type TrueKeys = TruthyKeys>> /** * Subset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection */ export type Subset = { [key in keyof T]: key extends keyof U ? T[key] : never; }; /** * SelectSubset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. * Additionally, it validates, if both select and include are present. If the case, it errors. */ export type SelectSubset = { [key in keyof T]: key extends keyof U ? T[key] : never } & (T extends SelectAndInclude ? 'Please either choose `select` or `include`.' : T extends SelectAndOmit ? 'Please either choose `select` or `omit`.' : {}) /** * Subset + Intersection * @desc From `T` pick properties that exist in `U` and intersect `K` */ export type SubsetIntersection = { [key in keyof T]: key extends keyof U ? T[key] : never } & K type Without = { [P in Exclude]?: never }; /** * XOR is needed to have a real mutually exclusive union type * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types */ type XOR = T extends object ? U extends object ? (Without & U) | (Without & T) : U : T /** * Is T a Record? */ type IsObject = T extends Array ? False : T extends Date ? False : T extends Uint8Array ? False : T extends BigInt ? False : T extends object ? True : False /** * If it's T[], return T */ export type UnEnumerate = T extends Array ? U : T /** * From ts-toolbelt */ type __Either = Omit & { // Merge all but K [P in K]: Prisma__Pick // With K possibilities }[K] type EitherStrict = Strict<__Either> type EitherLoose = ComputeRaw<__Either> type _Either< O extends object, K extends Key, strict extends Boolean > = { 1: EitherStrict 0: EitherLoose }[strict] type Either< O extends object, K extends Key, strict extends Boolean = 1 > = O extends unknown ? _Either : never export type Union = any type PatchUndefined = { [K in keyof O]: O[K] extends undefined ? At : O[K] } & {} /** Helper Types for "Merge" **/ export type IntersectOf = ( U extends unknown ? (k: U) => void : never ) extends (k: infer I) => void ? I : never export type Overwrite = { [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; } & {}; type _Merge = IntersectOf; }>>; type Key = string | number | symbol; type AtBasic = K extends keyof O ? O[K] : never; type AtStrict = O[K & keyof O]; type AtLoose = O extends unknown ? AtStrict : never; export type At = { 1: AtStrict; 0: AtLoose; }[strict]; export type ComputeRaw = A extends Function ? A : { [K in keyof A]: A[K]; } & {}; export type OptionalFlat = { [K in keyof O]?: O[K]; } & {}; type _Record = { [P in K]: T; }; // cause typescript not to expand types and preserve names type NoExpand = T extends unknown ? T : never; // this type assumes the passed object is entirely optional type AtLeast = NoExpand< O extends unknown ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) | {[P in keyof O as P extends K ? K : never]-?: O[P]} & O : never>; type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; export type Strict = ComputeRaw<_Strict>; /** End Helper Types for "Merge" **/ export type Merge = ComputeRaw<_Merge>>; /** A [[Boolean]] */ export type Boolean = True | False // /** // 1 // */ export type True = 1 /** 0 */ export type False = 0 export type Not = { 0: 1 1: 0 }[B] export type Extends = [A1] extends [never] ? 0 // anything `never` is false : A1 extends A2 ? 1 : 0 export type Has = Not< Extends, U1> > export type Or = { 0: { 0: 0 1: 1 } 1: { 0: 1 1: 1 } }[B1][B2] export type Keys = U extends unknown ? keyof U : never type Cast = A extends B ? A : B; export const type: unique symbol; /** * Used by group by */ export type GetScalarType = O extends object ? { [P in keyof T]: P extends keyof O ? O[P] : never } : never type FieldPaths< T, U = Omit > = IsObject extends True ? U : T type GetHavingFields = { [K in keyof T]: Or< Or, Extends<'AND', K>>, Extends<'NOT', K> > extends True ? // infer is only needed to not hit TS limit // based on the brilliant idea of Pierre-Antoine Mills // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 T[K] extends infer TK ? GetHavingFields extends object ? Merge> : never> : never : {} extends FieldPaths ? never : K }[keyof T] /** * Convert tuple to union */ type _TupleToUnion = T extends (infer E)[] ? E : never type TupleToUnion = _TupleToUnion type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T /** * Like `Pick`, but additionally can also accept an array of keys */ type PickEnumerable | keyof T> = Prisma__Pick> /** * Exclude all keys with underscores */ type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T export type FieldRef = runtime.FieldRef type FieldRefInputType = Model extends never ? never : FieldRef export const ModelName: { GuildSettings: 'GuildSettings', Ticket: 'Ticket', Level: 'Level', TicketSupportSession: 'TicketSupportSession', Birthday: 'Birthday', ReactionRoleSet: 'ReactionRoleSet', Event: 'Event', EventSignup: 'EventSignup' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type Datasources = { db?: Datasource } interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs, clientOptions: PrismaClientOptions }, $Utils.Record> { returns: Prisma.TypeMap } export type TypeMap = { meta: { modelProps: "guildSettings" | "ticket" | "level" | "ticketSupportSession" | "birthday" | "reactionRoleSet" | "event" | "eventSignup" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { GuildSettings: { payload: Prisma.$GuildSettingsPayload fields: Prisma.GuildSettingsFieldRefs operations: { findUnique: { args: Prisma.GuildSettingsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.GuildSettingsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.GuildSettingsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.GuildSettingsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.GuildSettingsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.GuildSettingsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.GuildSettingsCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.GuildSettingsCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.GuildSettingsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.GuildSettingsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.GuildSettingsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.GuildSettingsUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.GuildSettingsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.GuildSettingsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.GuildSettingsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.GuildSettingsCountArgs result: $Utils.Optional | number } } } Ticket: { payload: Prisma.$TicketPayload fields: Prisma.TicketFieldRefs operations: { findUnique: { args: Prisma.TicketFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.TicketFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.TicketFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.TicketFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.TicketFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.TicketCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.TicketCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.TicketCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.TicketDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.TicketUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.TicketDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.TicketUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.TicketUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.TicketAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.TicketGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.TicketCountArgs result: $Utils.Optional | number } } } Level: { payload: Prisma.$LevelPayload fields: Prisma.LevelFieldRefs operations: { findUnique: { args: Prisma.LevelFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.LevelFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.LevelFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.LevelFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.LevelFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.LevelCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.LevelCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.LevelCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.LevelDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.LevelUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.LevelDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.LevelUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.LevelUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.LevelAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.LevelGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.LevelCountArgs result: $Utils.Optional | number } } } TicketSupportSession: { payload: Prisma.$TicketSupportSessionPayload fields: Prisma.TicketSupportSessionFieldRefs operations: { findUnique: { args: Prisma.TicketSupportSessionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.TicketSupportSessionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.TicketSupportSessionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.TicketSupportSessionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.TicketSupportSessionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.TicketSupportSessionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.TicketSupportSessionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.TicketSupportSessionCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.TicketSupportSessionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.TicketSupportSessionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.TicketSupportSessionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.TicketSupportSessionUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.TicketSupportSessionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.TicketSupportSessionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.TicketSupportSessionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.TicketSupportSessionCountArgs result: $Utils.Optional | number } } } Birthday: { payload: Prisma.$BirthdayPayload fields: Prisma.BirthdayFieldRefs operations: { findUnique: { args: Prisma.BirthdayFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.BirthdayFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.BirthdayFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.BirthdayFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.BirthdayFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.BirthdayCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.BirthdayCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.BirthdayCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.BirthdayDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.BirthdayUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.BirthdayDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.BirthdayUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.BirthdayUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.BirthdayAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.BirthdayGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.BirthdayCountArgs result: $Utils.Optional | number } } } ReactionRoleSet: { payload: Prisma.$ReactionRoleSetPayload fields: Prisma.ReactionRoleSetFieldRefs operations: { findUnique: { args: Prisma.ReactionRoleSetFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ReactionRoleSetFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ReactionRoleSetFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ReactionRoleSetFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ReactionRoleSetFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ReactionRoleSetCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ReactionRoleSetCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ReactionRoleSetCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ReactionRoleSetDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ReactionRoleSetUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ReactionRoleSetDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ReactionRoleSetUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ReactionRoleSetUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ReactionRoleSetAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ReactionRoleSetGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ReactionRoleSetCountArgs result: $Utils.Optional | number } } } Event: { payload: Prisma.$EventPayload fields: Prisma.EventFieldRefs operations: { findUnique: { args: Prisma.EventFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.EventFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.EventFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.EventFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.EventFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.EventCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.EventCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.EventCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.EventDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.EventUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.EventDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.EventUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.EventUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.EventAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.EventGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.EventCountArgs result: $Utils.Optional | number } } } EventSignup: { payload: Prisma.$EventSignupPayload fields: Prisma.EventSignupFieldRefs operations: { findUnique: { args: Prisma.EventSignupFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.EventSignupFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.EventSignupFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.EventSignupFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.EventSignupFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.EventSignupCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.EventSignupCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.EventSignupCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.EventSignupDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.EventSignupUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.EventSignupDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.EventSignupUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.EventSignupUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.EventSignupAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.EventSignupGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.EventSignupCountArgs result: $Utils.Optional | number } } } } } & { other: { payload: any operations: { $executeRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $executeRawUnsafe: { args: [query: string, ...values: any[]], result: any } $queryRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $queryRawUnsafe: { args: [query: string, ...values: any[]], result: any } } } } export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs> export type DefaultPrismaClient = PrismaClient export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' export interface PrismaClientOptions { /** * Overwrites the datasource url from your schema.prisma file */ datasources?: Datasources /** * Overwrites the datasource url from your schema.prisma file */ datasourceUrl?: string /** * @default "colorless" */ errorFormat?: ErrorFormat /** * @example * ``` * // Defaults to stdout * log: ['query', 'info', 'warn', 'error'] * * // Emit as events * log: [ * { emit: 'stdout', level: 'query' }, * { emit: 'stdout', level: 'info' }, * { emit: 'stdout', level: 'warn' } * { emit: 'stdout', level: 'error' } * ] * ``` * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). */ log?: (LogLevel | LogDefinition)[] /** * The default values for transactionOptions * maxWait ?= 2000 * timeout ?= 5000 */ transactionOptions?: { maxWait?: number timeout?: number isolationLevel?: Prisma.TransactionIsolationLevel } } /* Types for Logging */ export type LogLevel = 'info' | 'query' | 'warn' | 'error' export type LogDefinition = { level: LogLevel emit: 'stdout' | 'event' } export type GetLogType = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never export type GetEvents = T extends Array ? GetLogType | GetLogType | GetLogType | GetLogType : never export type QueryEvent = { timestamp: Date query: string params: string duration: number target: string } export type LogEvent = { timestamp: Date message: string target: string } /* End Types for Logging */ export type PrismaAction = | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy' /** * These options are being passed into the middleware as "params" */ export type MiddlewareParams = { model?: ModelName action: PrismaAction args: any dataPath: string[] runInTransaction: boolean } /** * The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation */ export type Middleware = ( params: MiddlewareParams, next: (params: MiddlewareParams) => $Utils.JsPromise, ) => $Utils.JsPromise // tested in getLogLevel.test.ts export function getLogLevel(log: Array): LogLevel | undefined; /** * `PrismaClient` proxy available in interactive transactions. */ export type TransactionClient = Omit export type Datasource = { url?: string } /** * Count Types */ /** * Count Type EventCountOutputType */ export type EventCountOutputType = { signups: number } export type EventCountOutputTypeSelect = { signups?: boolean | EventCountOutputTypeCountSignupsArgs } // Custom InputTypes /** * EventCountOutputType without action */ export type EventCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the EventCountOutputType */ select?: EventCountOutputTypeSelect | null } /** * EventCountOutputType without action */ export type EventCountOutputTypeCountSignupsArgs = { where?: EventSignupWhereInput } /** * Models */ /** * Model GuildSettings */ export type AggregateGuildSettings = { _count: GuildSettingsCountAggregateOutputType | null _min: GuildSettingsMinAggregateOutputType | null _max: GuildSettingsMaxAggregateOutputType | null } export type GuildSettingsMinAggregateOutputType = { guildId: string | null welcomeChannelId: string | null logChannelId: string | null automodEnabled: boolean | null levelingEnabled: boolean | null ticketsEnabled: boolean | null musicEnabled: boolean | null statuspageEnabled: boolean | null dynamicVoiceEnabled: boolean | null birthdayEnabled: boolean | null reactionRolesEnabled: boolean | null eventsEnabled: boolean | null supportRoleId: string | null updatedAt: Date | null createdAt: Date | null } export type GuildSettingsMaxAggregateOutputType = { guildId: string | null welcomeChannelId: string | null logChannelId: string | null automodEnabled: boolean | null levelingEnabled: boolean | null ticketsEnabled: boolean | null musicEnabled: boolean | null statuspageEnabled: boolean | null dynamicVoiceEnabled: boolean | null birthdayEnabled: boolean | null reactionRolesEnabled: boolean | null eventsEnabled: boolean | null supportRoleId: string | null updatedAt: Date | null createdAt: Date | null } export type GuildSettingsCountAggregateOutputType = { guildId: number welcomeChannelId: number logChannelId: number automodEnabled: number automodConfig: number levelingEnabled: number ticketsEnabled: number musicEnabled: number statuspageEnabled: number statuspageConfig: number dynamicVoiceEnabled: number dynamicVoiceConfig: number supportLoginConfig: number birthdayEnabled: number birthdayConfig: number reactionRolesEnabled: number reactionRolesConfig: number eventsEnabled: number supportRoleId: number updatedAt: number createdAt: number _all: number } export type GuildSettingsMinAggregateInputType = { guildId?: true welcomeChannelId?: true logChannelId?: true automodEnabled?: true levelingEnabled?: true ticketsEnabled?: true musicEnabled?: true statuspageEnabled?: true dynamicVoiceEnabled?: true birthdayEnabled?: true reactionRolesEnabled?: true eventsEnabled?: true supportRoleId?: true updatedAt?: true createdAt?: true } export type GuildSettingsMaxAggregateInputType = { guildId?: true welcomeChannelId?: true logChannelId?: true automodEnabled?: true levelingEnabled?: true ticketsEnabled?: true musicEnabled?: true statuspageEnabled?: true dynamicVoiceEnabled?: true birthdayEnabled?: true reactionRolesEnabled?: true eventsEnabled?: true supportRoleId?: true updatedAt?: true createdAt?: true } export type GuildSettingsCountAggregateInputType = { guildId?: true welcomeChannelId?: true logChannelId?: true automodEnabled?: true automodConfig?: true levelingEnabled?: true ticketsEnabled?: true musicEnabled?: true statuspageEnabled?: true statuspageConfig?: true dynamicVoiceEnabled?: true dynamicVoiceConfig?: true supportLoginConfig?: true birthdayEnabled?: true birthdayConfig?: true reactionRolesEnabled?: true reactionRolesConfig?: true eventsEnabled?: true supportRoleId?: true updatedAt?: true createdAt?: true _all?: true } export type GuildSettingsAggregateArgs = { /** * Filter which GuildSettings to aggregate. */ where?: GuildSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GuildSettings to fetch. */ orderBy?: GuildSettingsOrderByWithRelationInput | GuildSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: GuildSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GuildSettings from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` GuildSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned GuildSettings **/ _count?: true | GuildSettingsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: GuildSettingsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: GuildSettingsMaxAggregateInputType } export type GetGuildSettingsAggregateType = { [P in keyof T & keyof AggregateGuildSettings]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type GuildSettingsGroupByArgs = { where?: GuildSettingsWhereInput orderBy?: GuildSettingsOrderByWithAggregationInput | GuildSettingsOrderByWithAggregationInput[] by: GuildSettingsScalarFieldEnum[] | GuildSettingsScalarFieldEnum having?: GuildSettingsScalarWhereWithAggregatesInput take?: number skip?: number _count?: GuildSettingsCountAggregateInputType | true _min?: GuildSettingsMinAggregateInputType _max?: GuildSettingsMaxAggregateInputType } export type GuildSettingsGroupByOutputType = { guildId: string welcomeChannelId: string | null logChannelId: string | null automodEnabled: boolean | null automodConfig: JsonValue | null levelingEnabled: boolean | null ticketsEnabled: boolean | null musicEnabled: boolean | null statuspageEnabled: boolean | null statuspageConfig: JsonValue | null dynamicVoiceEnabled: boolean | null dynamicVoiceConfig: JsonValue | null supportLoginConfig: JsonValue | null birthdayEnabled: boolean | null birthdayConfig: JsonValue | null reactionRolesEnabled: boolean | null reactionRolesConfig: JsonValue | null eventsEnabled: boolean | null supportRoleId: string | null updatedAt: Date createdAt: Date _count: GuildSettingsCountAggregateOutputType | null _min: GuildSettingsMinAggregateOutputType | null _max: GuildSettingsMaxAggregateOutputType | null } type GetGuildSettingsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof GuildSettingsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type GuildSettingsSelect = $Extensions.GetSelect<{ guildId?: boolean welcomeChannelId?: boolean logChannelId?: boolean automodEnabled?: boolean automodConfig?: boolean levelingEnabled?: boolean ticketsEnabled?: boolean musicEnabled?: boolean statuspageEnabled?: boolean statuspageConfig?: boolean dynamicVoiceEnabled?: boolean dynamicVoiceConfig?: boolean supportLoginConfig?: boolean birthdayEnabled?: boolean birthdayConfig?: boolean reactionRolesEnabled?: boolean reactionRolesConfig?: boolean eventsEnabled?: boolean supportRoleId?: boolean updatedAt?: boolean createdAt?: boolean }, ExtArgs["result"]["guildSettings"]> export type GuildSettingsSelectCreateManyAndReturn = $Extensions.GetSelect<{ guildId?: boolean welcomeChannelId?: boolean logChannelId?: boolean automodEnabled?: boolean automodConfig?: boolean levelingEnabled?: boolean ticketsEnabled?: boolean musicEnabled?: boolean statuspageEnabled?: boolean statuspageConfig?: boolean dynamicVoiceEnabled?: boolean dynamicVoiceConfig?: boolean supportLoginConfig?: boolean birthdayEnabled?: boolean birthdayConfig?: boolean reactionRolesEnabled?: boolean reactionRolesConfig?: boolean eventsEnabled?: boolean supportRoleId?: boolean updatedAt?: boolean createdAt?: boolean }, ExtArgs["result"]["guildSettings"]> export type GuildSettingsSelectScalar = { guildId?: boolean welcomeChannelId?: boolean logChannelId?: boolean automodEnabled?: boolean automodConfig?: boolean levelingEnabled?: boolean ticketsEnabled?: boolean musicEnabled?: boolean statuspageEnabled?: boolean statuspageConfig?: boolean dynamicVoiceEnabled?: boolean dynamicVoiceConfig?: boolean supportLoginConfig?: boolean birthdayEnabled?: boolean birthdayConfig?: boolean reactionRolesEnabled?: boolean reactionRolesConfig?: boolean eventsEnabled?: boolean supportRoleId?: boolean updatedAt?: boolean createdAt?: boolean } export type $GuildSettingsPayload = { name: "GuildSettings" objects: {} scalars: $Extensions.GetPayloadResult<{ guildId: string welcomeChannelId: string | null logChannelId: string | null automodEnabled: boolean | null automodConfig: Prisma.JsonValue | null levelingEnabled: boolean | null ticketsEnabled: boolean | null musicEnabled: boolean | null statuspageEnabled: boolean | null statuspageConfig: Prisma.JsonValue | null dynamicVoiceEnabled: boolean | null dynamicVoiceConfig: Prisma.JsonValue | null supportLoginConfig: Prisma.JsonValue | null birthdayEnabled: boolean | null birthdayConfig: Prisma.JsonValue | null reactionRolesEnabled: boolean | null reactionRolesConfig: Prisma.JsonValue | null eventsEnabled: boolean | null supportRoleId: string | null updatedAt: Date createdAt: Date }, ExtArgs["result"]["guildSettings"]> composites: {} } type GuildSettingsGetPayload = $Result.GetResult type GuildSettingsCountArgs = Omit & { select?: GuildSettingsCountAggregateInputType | true } export interface GuildSettingsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['GuildSettings'], meta: { name: 'GuildSettings' } } /** * Find zero or one GuildSettings that matches the filter. * @param {GuildSettingsFindUniqueArgs} args - Arguments to find a GuildSettings * @example * // Get one GuildSettings * const guildSettings = await prisma.guildSettings.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__GuildSettingsClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one GuildSettings that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {GuildSettingsFindUniqueOrThrowArgs} args - Arguments to find a GuildSettings * @example * // Get one GuildSettings * const guildSettings = await prisma.guildSettings.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__GuildSettingsClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first GuildSettings that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GuildSettingsFindFirstArgs} args - Arguments to find a GuildSettings * @example * // Get one GuildSettings * const guildSettings = await prisma.guildSettings.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__GuildSettingsClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first GuildSettings that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GuildSettingsFindFirstOrThrowArgs} args - Arguments to find a GuildSettings * @example * // Get one GuildSettings * const guildSettings = await prisma.guildSettings.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__GuildSettingsClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more GuildSettings that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GuildSettingsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all GuildSettings * const guildSettings = await prisma.guildSettings.findMany() * * // Get first 10 GuildSettings * const guildSettings = await prisma.guildSettings.findMany({ take: 10 }) * * // Only select the `guildId` * const guildSettingsWithGuildIdOnly = await prisma.guildSettings.findMany({ select: { guildId: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a GuildSettings. * @param {GuildSettingsCreateArgs} args - Arguments to create a GuildSettings. * @example * // Create one GuildSettings * const GuildSettings = await prisma.guildSettings.create({ * data: { * // ... data to create a GuildSettings * } * }) * */ create(args: SelectSubset>): Prisma__GuildSettingsClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many GuildSettings. * @param {GuildSettingsCreateManyArgs} args - Arguments to create many GuildSettings. * @example * // Create many GuildSettings * const guildSettings = await prisma.guildSettings.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many GuildSettings and returns the data saved in the database. * @param {GuildSettingsCreateManyAndReturnArgs} args - Arguments to create many GuildSettings. * @example * // Create many GuildSettings * const guildSettings = await prisma.guildSettings.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many GuildSettings and only return the `guildId` * const guildSettingsWithGuildIdOnly = await prisma.guildSettings.createManyAndReturn({ * select: { guildId: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a GuildSettings. * @param {GuildSettingsDeleteArgs} args - Arguments to delete one GuildSettings. * @example * // Delete one GuildSettings * const GuildSettings = await prisma.guildSettings.delete({ * where: { * // ... filter to delete one GuildSettings * } * }) * */ delete(args: SelectSubset>): Prisma__GuildSettingsClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one GuildSettings. * @param {GuildSettingsUpdateArgs} args - Arguments to update one GuildSettings. * @example * // Update one GuildSettings * const guildSettings = await prisma.guildSettings.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__GuildSettingsClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more GuildSettings. * @param {GuildSettingsDeleteManyArgs} args - Arguments to filter GuildSettings to delete. * @example * // Delete a few GuildSettings * const { count } = await prisma.guildSettings.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more GuildSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GuildSettingsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many GuildSettings * const guildSettings = await prisma.guildSettings.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one GuildSettings. * @param {GuildSettingsUpsertArgs} args - Arguments to update or create a GuildSettings. * @example * // Update or create a GuildSettings * const guildSettings = await prisma.guildSettings.upsert({ * create: { * // ... data to create a GuildSettings * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the GuildSettings we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__GuildSettingsClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of GuildSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GuildSettingsCountArgs} args - Arguments to filter GuildSettings to count. * @example * // Count the number of GuildSettings * const count = await prisma.guildSettings.count({ * where: { * // ... the filter for the GuildSettings we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a GuildSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GuildSettingsAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by GuildSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GuildSettingsGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends GuildSettingsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: GuildSettingsGroupByArgs['orderBy'] } : { orderBy?: GuildSettingsGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetGuildSettingsGroupByPayload : Prisma.PrismaPromise /** * Fields of the GuildSettings model */ readonly fields: GuildSettingsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for GuildSettings. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__GuildSettingsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the GuildSettings model */ interface GuildSettingsFieldRefs { readonly guildId: FieldRef<"GuildSettings", 'String'> readonly welcomeChannelId: FieldRef<"GuildSettings", 'String'> readonly logChannelId: FieldRef<"GuildSettings", 'String'> readonly automodEnabled: FieldRef<"GuildSettings", 'Boolean'> readonly automodConfig: FieldRef<"GuildSettings", 'Json'> readonly levelingEnabled: FieldRef<"GuildSettings", 'Boolean'> readonly ticketsEnabled: FieldRef<"GuildSettings", 'Boolean'> readonly musicEnabled: FieldRef<"GuildSettings", 'Boolean'> readonly statuspageEnabled: FieldRef<"GuildSettings", 'Boolean'> readonly statuspageConfig: FieldRef<"GuildSettings", 'Json'> readonly dynamicVoiceEnabled: FieldRef<"GuildSettings", 'Boolean'> readonly dynamicVoiceConfig: FieldRef<"GuildSettings", 'Json'> readonly supportLoginConfig: FieldRef<"GuildSettings", 'Json'> readonly birthdayEnabled: FieldRef<"GuildSettings", 'Boolean'> readonly birthdayConfig: FieldRef<"GuildSettings", 'Json'> readonly reactionRolesEnabled: FieldRef<"GuildSettings", 'Boolean'> readonly reactionRolesConfig: FieldRef<"GuildSettings", 'Json'> readonly eventsEnabled: FieldRef<"GuildSettings", 'Boolean'> readonly supportRoleId: FieldRef<"GuildSettings", 'String'> readonly updatedAt: FieldRef<"GuildSettings", 'DateTime'> readonly createdAt: FieldRef<"GuildSettings", 'DateTime'> } // Custom InputTypes /** * GuildSettings findUnique */ export type GuildSettingsFindUniqueArgs = { /** * Select specific fields to fetch from the GuildSettings */ select?: GuildSettingsSelect | null /** * Filter, which GuildSettings to fetch. */ where: GuildSettingsWhereUniqueInput } /** * GuildSettings findUniqueOrThrow */ export type GuildSettingsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the GuildSettings */ select?: GuildSettingsSelect | null /** * Filter, which GuildSettings to fetch. */ where: GuildSettingsWhereUniqueInput } /** * GuildSettings findFirst */ export type GuildSettingsFindFirstArgs = { /** * Select specific fields to fetch from the GuildSettings */ select?: GuildSettingsSelect | null /** * Filter, which GuildSettings to fetch. */ where?: GuildSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GuildSettings to fetch. */ orderBy?: GuildSettingsOrderByWithRelationInput | GuildSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for GuildSettings. */ cursor?: GuildSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GuildSettings from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` GuildSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of GuildSettings. */ distinct?: GuildSettingsScalarFieldEnum | GuildSettingsScalarFieldEnum[] } /** * GuildSettings findFirstOrThrow */ export type GuildSettingsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the GuildSettings */ select?: GuildSettingsSelect | null /** * Filter, which GuildSettings to fetch. */ where?: GuildSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GuildSettings to fetch. */ orderBy?: GuildSettingsOrderByWithRelationInput | GuildSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for GuildSettings. */ cursor?: GuildSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GuildSettings from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` GuildSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of GuildSettings. */ distinct?: GuildSettingsScalarFieldEnum | GuildSettingsScalarFieldEnum[] } /** * GuildSettings findMany */ export type GuildSettingsFindManyArgs = { /** * Select specific fields to fetch from the GuildSettings */ select?: GuildSettingsSelect | null /** * Filter, which GuildSettings to fetch. */ where?: GuildSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GuildSettings to fetch. */ orderBy?: GuildSettingsOrderByWithRelationInput | GuildSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing GuildSettings. */ cursor?: GuildSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GuildSettings from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` GuildSettings. */ skip?: number distinct?: GuildSettingsScalarFieldEnum | GuildSettingsScalarFieldEnum[] } /** * GuildSettings create */ export type GuildSettingsCreateArgs = { /** * Select specific fields to fetch from the GuildSettings */ select?: GuildSettingsSelect | null /** * The data needed to create a GuildSettings. */ data: XOR } /** * GuildSettings createMany */ export type GuildSettingsCreateManyArgs = { /** * The data used to create many GuildSettings. */ data: GuildSettingsCreateManyInput | GuildSettingsCreateManyInput[] skipDuplicates?: boolean } /** * GuildSettings createManyAndReturn */ export type GuildSettingsCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the GuildSettings */ select?: GuildSettingsSelectCreateManyAndReturn | null /** * The data used to create many GuildSettings. */ data: GuildSettingsCreateManyInput | GuildSettingsCreateManyInput[] skipDuplicates?: boolean } /** * GuildSettings update */ export type GuildSettingsUpdateArgs = { /** * Select specific fields to fetch from the GuildSettings */ select?: GuildSettingsSelect | null /** * The data needed to update a GuildSettings. */ data: XOR /** * Choose, which GuildSettings to update. */ where: GuildSettingsWhereUniqueInput } /** * GuildSettings updateMany */ export type GuildSettingsUpdateManyArgs = { /** * The data used to update GuildSettings. */ data: XOR /** * Filter which GuildSettings to update */ where?: GuildSettingsWhereInput } /** * GuildSettings upsert */ export type GuildSettingsUpsertArgs = { /** * Select specific fields to fetch from the GuildSettings */ select?: GuildSettingsSelect | null /** * The filter to search for the GuildSettings to update in case it exists. */ where: GuildSettingsWhereUniqueInput /** * In case the GuildSettings found by the `where` argument doesn't exist, create a new GuildSettings with this data. */ create: XOR /** * In case the GuildSettings was found with the provided `where` argument, update it with this data. */ update: XOR } /** * GuildSettings delete */ export type GuildSettingsDeleteArgs = { /** * Select specific fields to fetch from the GuildSettings */ select?: GuildSettingsSelect | null /** * Filter which GuildSettings to delete. */ where: GuildSettingsWhereUniqueInput } /** * GuildSettings deleteMany */ export type GuildSettingsDeleteManyArgs = { /** * Filter which GuildSettings to delete */ where?: GuildSettingsWhereInput } /** * GuildSettings without action */ export type GuildSettingsDefaultArgs = { /** * Select specific fields to fetch from the GuildSettings */ select?: GuildSettingsSelect | null } /** * Model Ticket */ export type AggregateTicket = { _count: TicketCountAggregateOutputType | null _avg: TicketAvgAggregateOutputType | null _sum: TicketSumAggregateOutputType | null _min: TicketMinAggregateOutputType | null _max: TicketMaxAggregateOutputType | null } export type TicketAvgAggregateOutputType = { ticketNumber: number | null } export type TicketSumAggregateOutputType = { ticketNumber: number | null } export type TicketMinAggregateOutputType = { id: string | null ticketNumber: number | null userId: string | null channelId: string | null guildId: string | null topic: string | null priority: string | null status: string | null claimedBy: string | null transcript: string | null createdAt: Date | null updatedAt: Date | null } export type TicketMaxAggregateOutputType = { id: string | null ticketNumber: number | null userId: string | null channelId: string | null guildId: string | null topic: string | null priority: string | null status: string | null claimedBy: string | null transcript: string | null createdAt: Date | null updatedAt: Date | null } export type TicketCountAggregateOutputType = { id: number ticketNumber: number userId: number channelId: number guildId: number topic: number priority: number status: number claimedBy: number transcript: number createdAt: number updatedAt: number _all: number } export type TicketAvgAggregateInputType = { ticketNumber?: true } export type TicketSumAggregateInputType = { ticketNumber?: true } export type TicketMinAggregateInputType = { id?: true ticketNumber?: true userId?: true channelId?: true guildId?: true topic?: true priority?: true status?: true claimedBy?: true transcript?: true createdAt?: true updatedAt?: true } export type TicketMaxAggregateInputType = { id?: true ticketNumber?: true userId?: true channelId?: true guildId?: true topic?: true priority?: true status?: true claimedBy?: true transcript?: true createdAt?: true updatedAt?: true } export type TicketCountAggregateInputType = { id?: true ticketNumber?: true userId?: true channelId?: true guildId?: true topic?: true priority?: true status?: true claimedBy?: true transcript?: true createdAt?: true updatedAt?: true _all?: true } export type TicketAggregateArgs = { /** * Filter which Ticket to aggregate. */ where?: TicketWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tickets to fetch. */ orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: TicketWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tickets from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Tickets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Tickets **/ _count?: true | TicketCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TicketAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TicketSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TicketMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TicketMaxAggregateInputType } export type GetTicketAggregateType = { [P in keyof T & keyof AggregateTicket]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type TicketGroupByArgs = { where?: TicketWhereInput orderBy?: TicketOrderByWithAggregationInput | TicketOrderByWithAggregationInput[] by: TicketScalarFieldEnum[] | TicketScalarFieldEnum having?: TicketScalarWhereWithAggregatesInput take?: number skip?: number _count?: TicketCountAggregateInputType | true _avg?: TicketAvgAggregateInputType _sum?: TicketSumAggregateInputType _min?: TicketMinAggregateInputType _max?: TicketMaxAggregateInputType } export type TicketGroupByOutputType = { id: string ticketNumber: number userId: string channelId: string guildId: string topic: string | null priority: string status: string claimedBy: string | null transcript: string | null createdAt: Date updatedAt: Date _count: TicketCountAggregateOutputType | null _avg: TicketAvgAggregateOutputType | null _sum: TicketSumAggregateOutputType | null _min: TicketMinAggregateOutputType | null _max: TicketMaxAggregateOutputType | null } type GetTicketGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof TicketGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type TicketSelect = $Extensions.GetSelect<{ id?: boolean ticketNumber?: boolean userId?: boolean channelId?: boolean guildId?: boolean topic?: boolean priority?: boolean status?: boolean claimedBy?: boolean transcript?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["ticket"]> export type TicketSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean ticketNumber?: boolean userId?: boolean channelId?: boolean guildId?: boolean topic?: boolean priority?: boolean status?: boolean claimedBy?: boolean transcript?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["ticket"]> export type TicketSelectScalar = { id?: boolean ticketNumber?: boolean userId?: boolean channelId?: boolean guildId?: boolean topic?: boolean priority?: boolean status?: boolean claimedBy?: boolean transcript?: boolean createdAt?: boolean updatedAt?: boolean } export type $TicketPayload = { name: "Ticket" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string ticketNumber: number userId: string channelId: string guildId: string topic: string | null priority: string status: string claimedBy: string | null transcript: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["ticket"]> composites: {} } type TicketGetPayload = $Result.GetResult type TicketCountArgs = Omit & { select?: TicketCountAggregateInputType | true } export interface TicketDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Ticket'], meta: { name: 'Ticket' } } /** * Find zero or one Ticket that matches the filter. * @param {TicketFindUniqueArgs} args - Arguments to find a Ticket * @example * // Get one Ticket * const ticket = await prisma.ticket.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__TicketClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Ticket that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TicketFindUniqueOrThrowArgs} args - Arguments to find a Ticket * @example * // Get one Ticket * const ticket = await prisma.ticket.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__TicketClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Ticket that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TicketFindFirstArgs} args - Arguments to find a Ticket * @example * // Get one Ticket * const ticket = await prisma.ticket.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__TicketClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Ticket that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TicketFindFirstOrThrowArgs} args - Arguments to find a Ticket * @example * // Get one Ticket * const ticket = await prisma.ticket.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__TicketClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Tickets that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TicketFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Tickets * const tickets = await prisma.ticket.findMany() * * // Get first 10 Tickets * const tickets = await prisma.ticket.findMany({ take: 10 }) * * // Only select the `id` * const ticketWithIdOnly = await prisma.ticket.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Ticket. * @param {TicketCreateArgs} args - Arguments to create a Ticket. * @example * // Create one Ticket * const Ticket = await prisma.ticket.create({ * data: { * // ... data to create a Ticket * } * }) * */ create(args: SelectSubset>): Prisma__TicketClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Tickets. * @param {TicketCreateManyArgs} args - Arguments to create many Tickets. * @example * // Create many Tickets * const ticket = await prisma.ticket.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Tickets and returns the data saved in the database. * @param {TicketCreateManyAndReturnArgs} args - Arguments to create many Tickets. * @example * // Create many Tickets * const ticket = await prisma.ticket.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Tickets and only return the `id` * const ticketWithIdOnly = await prisma.ticket.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a Ticket. * @param {TicketDeleteArgs} args - Arguments to delete one Ticket. * @example * // Delete one Ticket * const Ticket = await prisma.ticket.delete({ * where: { * // ... filter to delete one Ticket * } * }) * */ delete(args: SelectSubset>): Prisma__TicketClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Ticket. * @param {TicketUpdateArgs} args - Arguments to update one Ticket. * @example * // Update one Ticket * const ticket = await prisma.ticket.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__TicketClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Tickets. * @param {TicketDeleteManyArgs} args - Arguments to filter Tickets to delete. * @example * // Delete a few Tickets * const { count } = await prisma.ticket.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Tickets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TicketUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Tickets * const ticket = await prisma.ticket.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Ticket. * @param {TicketUpsertArgs} args - Arguments to update or create a Ticket. * @example * // Update or create a Ticket * const ticket = await prisma.ticket.upsert({ * create: { * // ... data to create a Ticket * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Ticket we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__TicketClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Tickets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TicketCountArgs} args - Arguments to filter Tickets to count. * @example * // Count the number of Tickets * const count = await prisma.ticket.count({ * where: { * // ... the filter for the Tickets we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Ticket. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TicketAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Ticket. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TicketGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends TicketGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: TicketGroupByArgs['orderBy'] } : { orderBy?: TicketGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetTicketGroupByPayload : Prisma.PrismaPromise /** * Fields of the Ticket model */ readonly fields: TicketFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Ticket. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__TicketClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Ticket model */ interface TicketFieldRefs { readonly id: FieldRef<"Ticket", 'String'> readonly ticketNumber: FieldRef<"Ticket", 'Int'> readonly userId: FieldRef<"Ticket", 'String'> readonly channelId: FieldRef<"Ticket", 'String'> readonly guildId: FieldRef<"Ticket", 'String'> readonly topic: FieldRef<"Ticket", 'String'> readonly priority: FieldRef<"Ticket", 'String'> readonly status: FieldRef<"Ticket", 'String'> readonly claimedBy: FieldRef<"Ticket", 'String'> readonly transcript: FieldRef<"Ticket", 'String'> readonly createdAt: FieldRef<"Ticket", 'DateTime'> readonly updatedAt: FieldRef<"Ticket", 'DateTime'> } // Custom InputTypes /** * Ticket findUnique */ export type TicketFindUniqueArgs = { /** * Select specific fields to fetch from the Ticket */ select?: TicketSelect | null /** * Filter, which Ticket to fetch. */ where: TicketWhereUniqueInput } /** * Ticket findUniqueOrThrow */ export type TicketFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Ticket */ select?: TicketSelect | null /** * Filter, which Ticket to fetch. */ where: TicketWhereUniqueInput } /** * Ticket findFirst */ export type TicketFindFirstArgs = { /** * Select specific fields to fetch from the Ticket */ select?: TicketSelect | null /** * Filter, which Ticket to fetch. */ where?: TicketWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tickets to fetch. */ orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Tickets. */ cursor?: TicketWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tickets from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Tickets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Tickets. */ distinct?: TicketScalarFieldEnum | TicketScalarFieldEnum[] } /** * Ticket findFirstOrThrow */ export type TicketFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Ticket */ select?: TicketSelect | null /** * Filter, which Ticket to fetch. */ where?: TicketWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tickets to fetch. */ orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Tickets. */ cursor?: TicketWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tickets from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Tickets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Tickets. */ distinct?: TicketScalarFieldEnum | TicketScalarFieldEnum[] } /** * Ticket findMany */ export type TicketFindManyArgs = { /** * Select specific fields to fetch from the Ticket */ select?: TicketSelect | null /** * Filter, which Tickets to fetch. */ where?: TicketWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tickets to fetch. */ orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Tickets. */ cursor?: TicketWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tickets from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Tickets. */ skip?: number distinct?: TicketScalarFieldEnum | TicketScalarFieldEnum[] } /** * Ticket create */ export type TicketCreateArgs = { /** * Select specific fields to fetch from the Ticket */ select?: TicketSelect | null /** * The data needed to create a Ticket. */ data: XOR } /** * Ticket createMany */ export type TicketCreateManyArgs = { /** * The data used to create many Tickets. */ data: TicketCreateManyInput | TicketCreateManyInput[] skipDuplicates?: boolean } /** * Ticket createManyAndReturn */ export type TicketCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Ticket */ select?: TicketSelectCreateManyAndReturn | null /** * The data used to create many Tickets. */ data: TicketCreateManyInput | TicketCreateManyInput[] skipDuplicates?: boolean } /** * Ticket update */ export type TicketUpdateArgs = { /** * Select specific fields to fetch from the Ticket */ select?: TicketSelect | null /** * The data needed to update a Ticket. */ data: XOR /** * Choose, which Ticket to update. */ where: TicketWhereUniqueInput } /** * Ticket updateMany */ export type TicketUpdateManyArgs = { /** * The data used to update Tickets. */ data: XOR /** * Filter which Tickets to update */ where?: TicketWhereInput } /** * Ticket upsert */ export type TicketUpsertArgs = { /** * Select specific fields to fetch from the Ticket */ select?: TicketSelect | null /** * The filter to search for the Ticket to update in case it exists. */ where: TicketWhereUniqueInput /** * In case the Ticket found by the `where` argument doesn't exist, create a new Ticket with this data. */ create: XOR /** * In case the Ticket was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Ticket delete */ export type TicketDeleteArgs = { /** * Select specific fields to fetch from the Ticket */ select?: TicketSelect | null /** * Filter which Ticket to delete. */ where: TicketWhereUniqueInput } /** * Ticket deleteMany */ export type TicketDeleteManyArgs = { /** * Filter which Tickets to delete */ where?: TicketWhereInput } /** * Ticket without action */ export type TicketDefaultArgs = { /** * Select specific fields to fetch from the Ticket */ select?: TicketSelect | null } /** * Model Level */ export type AggregateLevel = { _count: LevelCountAggregateOutputType | null _avg: LevelAvgAggregateOutputType | null _sum: LevelSumAggregateOutputType | null _min: LevelMinAggregateOutputType | null _max: LevelMaxAggregateOutputType | null } export type LevelAvgAggregateOutputType = { xp: number | null level: number | null } export type LevelSumAggregateOutputType = { xp: number | null level: number | null } export type LevelMinAggregateOutputType = { id: string | null userId: string | null guildId: string | null xp: number | null level: number | null createdAt: Date | null updatedAt: Date | null } export type LevelMaxAggregateOutputType = { id: string | null userId: string | null guildId: string | null xp: number | null level: number | null createdAt: Date | null updatedAt: Date | null } export type LevelCountAggregateOutputType = { id: number userId: number guildId: number xp: number level: number createdAt: number updatedAt: number _all: number } export type LevelAvgAggregateInputType = { xp?: true level?: true } export type LevelSumAggregateInputType = { xp?: true level?: true } export type LevelMinAggregateInputType = { id?: true userId?: true guildId?: true xp?: true level?: true createdAt?: true updatedAt?: true } export type LevelMaxAggregateInputType = { id?: true userId?: true guildId?: true xp?: true level?: true createdAt?: true updatedAt?: true } export type LevelCountAggregateInputType = { id?: true userId?: true guildId?: true xp?: true level?: true createdAt?: true updatedAt?: true _all?: true } export type LevelAggregateArgs = { /** * Filter which Level to aggregate. */ where?: LevelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Levels to fetch. */ orderBy?: LevelOrderByWithRelationInput | LevelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: LevelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Levels from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Levels. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Levels **/ _count?: true | LevelCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: LevelAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: LevelSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: LevelMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: LevelMaxAggregateInputType } export type GetLevelAggregateType = { [P in keyof T & keyof AggregateLevel]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type LevelGroupByArgs = { where?: LevelWhereInput orderBy?: LevelOrderByWithAggregationInput | LevelOrderByWithAggregationInput[] by: LevelScalarFieldEnum[] | LevelScalarFieldEnum having?: LevelScalarWhereWithAggregatesInput take?: number skip?: number _count?: LevelCountAggregateInputType | true _avg?: LevelAvgAggregateInputType _sum?: LevelSumAggregateInputType _min?: LevelMinAggregateInputType _max?: LevelMaxAggregateInputType } export type LevelGroupByOutputType = { id: string userId: string guildId: string xp: number level: number createdAt: Date updatedAt: Date _count: LevelCountAggregateOutputType | null _avg: LevelAvgAggregateOutputType | null _sum: LevelSumAggregateOutputType | null _min: LevelMinAggregateOutputType | null _max: LevelMaxAggregateOutputType | null } type GetLevelGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof LevelGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type LevelSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean guildId?: boolean xp?: boolean level?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["level"]> export type LevelSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean guildId?: boolean xp?: boolean level?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["level"]> export type LevelSelectScalar = { id?: boolean userId?: boolean guildId?: boolean xp?: boolean level?: boolean createdAt?: boolean updatedAt?: boolean } export type $LevelPayload = { name: "Level" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string userId: string guildId: string xp: number level: number createdAt: Date updatedAt: Date }, ExtArgs["result"]["level"]> composites: {} } type LevelGetPayload = $Result.GetResult type LevelCountArgs = Omit & { select?: LevelCountAggregateInputType | true } export interface LevelDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Level'], meta: { name: 'Level' } } /** * Find zero or one Level that matches the filter. * @param {LevelFindUniqueArgs} args - Arguments to find a Level * @example * // Get one Level * const level = await prisma.level.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__LevelClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Level that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {LevelFindUniqueOrThrowArgs} args - Arguments to find a Level * @example * // Get one Level * const level = await prisma.level.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__LevelClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Level that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LevelFindFirstArgs} args - Arguments to find a Level * @example * // Get one Level * const level = await prisma.level.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__LevelClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Level that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LevelFindFirstOrThrowArgs} args - Arguments to find a Level * @example * // Get one Level * const level = await prisma.level.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__LevelClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Levels that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LevelFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Levels * const levels = await prisma.level.findMany() * * // Get first 10 Levels * const levels = await prisma.level.findMany({ take: 10 }) * * // Only select the `id` * const levelWithIdOnly = await prisma.level.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Level. * @param {LevelCreateArgs} args - Arguments to create a Level. * @example * // Create one Level * const Level = await prisma.level.create({ * data: { * // ... data to create a Level * } * }) * */ create(args: SelectSubset>): Prisma__LevelClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Levels. * @param {LevelCreateManyArgs} args - Arguments to create many Levels. * @example * // Create many Levels * const level = await prisma.level.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Levels and returns the data saved in the database. * @param {LevelCreateManyAndReturnArgs} args - Arguments to create many Levels. * @example * // Create many Levels * const level = await prisma.level.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Levels and only return the `id` * const levelWithIdOnly = await prisma.level.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a Level. * @param {LevelDeleteArgs} args - Arguments to delete one Level. * @example * // Delete one Level * const Level = await prisma.level.delete({ * where: { * // ... filter to delete one Level * } * }) * */ delete(args: SelectSubset>): Prisma__LevelClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Level. * @param {LevelUpdateArgs} args - Arguments to update one Level. * @example * // Update one Level * const level = await prisma.level.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__LevelClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Levels. * @param {LevelDeleteManyArgs} args - Arguments to filter Levels to delete. * @example * // Delete a few Levels * const { count } = await prisma.level.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Levels. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LevelUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Levels * const level = await prisma.level.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Level. * @param {LevelUpsertArgs} args - Arguments to update or create a Level. * @example * // Update or create a Level * const level = await prisma.level.upsert({ * create: { * // ... data to create a Level * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Level we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__LevelClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Levels. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LevelCountArgs} args - Arguments to filter Levels to count. * @example * // Count the number of Levels * const count = await prisma.level.count({ * where: { * // ... the filter for the Levels we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Level. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LevelAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Level. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LevelGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends LevelGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: LevelGroupByArgs['orderBy'] } : { orderBy?: LevelGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetLevelGroupByPayload : Prisma.PrismaPromise /** * Fields of the Level model */ readonly fields: LevelFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Level. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__LevelClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Level model */ interface LevelFieldRefs { readonly id: FieldRef<"Level", 'String'> readonly userId: FieldRef<"Level", 'String'> readonly guildId: FieldRef<"Level", 'String'> readonly xp: FieldRef<"Level", 'Int'> readonly level: FieldRef<"Level", 'Int'> readonly createdAt: FieldRef<"Level", 'DateTime'> readonly updatedAt: FieldRef<"Level", 'DateTime'> } // Custom InputTypes /** * Level findUnique */ export type LevelFindUniqueArgs = { /** * Select specific fields to fetch from the Level */ select?: LevelSelect | null /** * Filter, which Level to fetch. */ where: LevelWhereUniqueInput } /** * Level findUniqueOrThrow */ export type LevelFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Level */ select?: LevelSelect | null /** * Filter, which Level to fetch. */ where: LevelWhereUniqueInput } /** * Level findFirst */ export type LevelFindFirstArgs = { /** * Select specific fields to fetch from the Level */ select?: LevelSelect | null /** * Filter, which Level to fetch. */ where?: LevelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Levels to fetch. */ orderBy?: LevelOrderByWithRelationInput | LevelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Levels. */ cursor?: LevelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Levels from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Levels. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Levels. */ distinct?: LevelScalarFieldEnum | LevelScalarFieldEnum[] } /** * Level findFirstOrThrow */ export type LevelFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Level */ select?: LevelSelect | null /** * Filter, which Level to fetch. */ where?: LevelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Levels to fetch. */ orderBy?: LevelOrderByWithRelationInput | LevelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Levels. */ cursor?: LevelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Levels from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Levels. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Levels. */ distinct?: LevelScalarFieldEnum | LevelScalarFieldEnum[] } /** * Level findMany */ export type LevelFindManyArgs = { /** * Select specific fields to fetch from the Level */ select?: LevelSelect | null /** * Filter, which Levels to fetch. */ where?: LevelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Levels to fetch. */ orderBy?: LevelOrderByWithRelationInput | LevelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Levels. */ cursor?: LevelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Levels from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Levels. */ skip?: number distinct?: LevelScalarFieldEnum | LevelScalarFieldEnum[] } /** * Level create */ export type LevelCreateArgs = { /** * Select specific fields to fetch from the Level */ select?: LevelSelect | null /** * The data needed to create a Level. */ data: XOR } /** * Level createMany */ export type LevelCreateManyArgs = { /** * The data used to create many Levels. */ data: LevelCreateManyInput | LevelCreateManyInput[] skipDuplicates?: boolean } /** * Level createManyAndReturn */ export type LevelCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Level */ select?: LevelSelectCreateManyAndReturn | null /** * The data used to create many Levels. */ data: LevelCreateManyInput | LevelCreateManyInput[] skipDuplicates?: boolean } /** * Level update */ export type LevelUpdateArgs = { /** * Select specific fields to fetch from the Level */ select?: LevelSelect | null /** * The data needed to update a Level. */ data: XOR /** * Choose, which Level to update. */ where: LevelWhereUniqueInput } /** * Level updateMany */ export type LevelUpdateManyArgs = { /** * The data used to update Levels. */ data: XOR /** * Filter which Levels to update */ where?: LevelWhereInput } /** * Level upsert */ export type LevelUpsertArgs = { /** * Select specific fields to fetch from the Level */ select?: LevelSelect | null /** * The filter to search for the Level to update in case it exists. */ where: LevelWhereUniqueInput /** * In case the Level found by the `where` argument doesn't exist, create a new Level with this data. */ create: XOR /** * In case the Level was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Level delete */ export type LevelDeleteArgs = { /** * Select specific fields to fetch from the Level */ select?: LevelSelect | null /** * Filter which Level to delete. */ where: LevelWhereUniqueInput } /** * Level deleteMany */ export type LevelDeleteManyArgs = { /** * Filter which Levels to delete */ where?: LevelWhereInput } /** * Level without action */ export type LevelDefaultArgs = { /** * Select specific fields to fetch from the Level */ select?: LevelSelect | null } /** * Model TicketSupportSession */ export type AggregateTicketSupportSession = { _count: TicketSupportSessionCountAggregateOutputType | null _avg: TicketSupportSessionAvgAggregateOutputType | null _sum: TicketSupportSessionSumAggregateOutputType | null _min: TicketSupportSessionMinAggregateOutputType | null _max: TicketSupportSessionMaxAggregateOutputType | null } export type TicketSupportSessionAvgAggregateOutputType = { durationSeconds: number | null } export type TicketSupportSessionSumAggregateOutputType = { durationSeconds: number | null } export type TicketSupportSessionMinAggregateOutputType = { id: string | null guildId: string | null userId: string | null roleId: string | null startedAt: Date | null endedAt: Date | null durationSeconds: number | null } export type TicketSupportSessionMaxAggregateOutputType = { id: string | null guildId: string | null userId: string | null roleId: string | null startedAt: Date | null endedAt: Date | null durationSeconds: number | null } export type TicketSupportSessionCountAggregateOutputType = { id: number guildId: number userId: number roleId: number startedAt: number endedAt: number durationSeconds: number _all: number } export type TicketSupportSessionAvgAggregateInputType = { durationSeconds?: true } export type TicketSupportSessionSumAggregateInputType = { durationSeconds?: true } export type TicketSupportSessionMinAggregateInputType = { id?: true guildId?: true userId?: true roleId?: true startedAt?: true endedAt?: true durationSeconds?: true } export type TicketSupportSessionMaxAggregateInputType = { id?: true guildId?: true userId?: true roleId?: true startedAt?: true endedAt?: true durationSeconds?: true } export type TicketSupportSessionCountAggregateInputType = { id?: true guildId?: true userId?: true roleId?: true startedAt?: true endedAt?: true durationSeconds?: true _all?: true } export type TicketSupportSessionAggregateArgs = { /** * Filter which TicketSupportSession to aggregate. */ where?: TicketSupportSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TicketSupportSessions to fetch. */ orderBy?: TicketSupportSessionOrderByWithRelationInput | TicketSupportSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: TicketSupportSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TicketSupportSessions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` TicketSupportSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned TicketSupportSessions **/ _count?: true | TicketSupportSessionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TicketSupportSessionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TicketSupportSessionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TicketSupportSessionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TicketSupportSessionMaxAggregateInputType } export type GetTicketSupportSessionAggregateType = { [P in keyof T & keyof AggregateTicketSupportSession]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type TicketSupportSessionGroupByArgs = { where?: TicketSupportSessionWhereInput orderBy?: TicketSupportSessionOrderByWithAggregationInput | TicketSupportSessionOrderByWithAggregationInput[] by: TicketSupportSessionScalarFieldEnum[] | TicketSupportSessionScalarFieldEnum having?: TicketSupportSessionScalarWhereWithAggregatesInput take?: number skip?: number _count?: TicketSupportSessionCountAggregateInputType | true _avg?: TicketSupportSessionAvgAggregateInputType _sum?: TicketSupportSessionSumAggregateInputType _min?: TicketSupportSessionMinAggregateInputType _max?: TicketSupportSessionMaxAggregateInputType } export type TicketSupportSessionGroupByOutputType = { id: string guildId: string userId: string roleId: string startedAt: Date endedAt: Date | null durationSeconds: number | null _count: TicketSupportSessionCountAggregateOutputType | null _avg: TicketSupportSessionAvgAggregateOutputType | null _sum: TicketSupportSessionSumAggregateOutputType | null _min: TicketSupportSessionMinAggregateOutputType | null _max: TicketSupportSessionMaxAggregateOutputType | null } type GetTicketSupportSessionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof TicketSupportSessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type TicketSupportSessionSelect = $Extensions.GetSelect<{ id?: boolean guildId?: boolean userId?: boolean roleId?: boolean startedAt?: boolean endedAt?: boolean durationSeconds?: boolean }, ExtArgs["result"]["ticketSupportSession"]> export type TicketSupportSessionSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean guildId?: boolean userId?: boolean roleId?: boolean startedAt?: boolean endedAt?: boolean durationSeconds?: boolean }, ExtArgs["result"]["ticketSupportSession"]> export type TicketSupportSessionSelectScalar = { id?: boolean guildId?: boolean userId?: boolean roleId?: boolean startedAt?: boolean endedAt?: boolean durationSeconds?: boolean } export type $TicketSupportSessionPayload = { name: "TicketSupportSession" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string guildId: string userId: string roleId: string startedAt: Date endedAt: Date | null durationSeconds: number | null }, ExtArgs["result"]["ticketSupportSession"]> composites: {} } type TicketSupportSessionGetPayload = $Result.GetResult type TicketSupportSessionCountArgs = Omit & { select?: TicketSupportSessionCountAggregateInputType | true } export interface TicketSupportSessionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['TicketSupportSession'], meta: { name: 'TicketSupportSession' } } /** * Find zero or one TicketSupportSession that matches the filter. * @param {TicketSupportSessionFindUniqueArgs} args - Arguments to find a TicketSupportSession * @example * // Get one TicketSupportSession * const ticketSupportSession = await prisma.ticketSupportSession.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__TicketSupportSessionClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one TicketSupportSession that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TicketSupportSessionFindUniqueOrThrowArgs} args - Arguments to find a TicketSupportSession * @example * // Get one TicketSupportSession * const ticketSupportSession = await prisma.ticketSupportSession.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__TicketSupportSessionClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first TicketSupportSession that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TicketSupportSessionFindFirstArgs} args - Arguments to find a TicketSupportSession * @example * // Get one TicketSupportSession * const ticketSupportSession = await prisma.ticketSupportSession.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__TicketSupportSessionClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first TicketSupportSession that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TicketSupportSessionFindFirstOrThrowArgs} args - Arguments to find a TicketSupportSession * @example * // Get one TicketSupportSession * const ticketSupportSession = await prisma.ticketSupportSession.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__TicketSupportSessionClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more TicketSupportSessions that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TicketSupportSessionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all TicketSupportSessions * const ticketSupportSessions = await prisma.ticketSupportSession.findMany() * * // Get first 10 TicketSupportSessions * const ticketSupportSessions = await prisma.ticketSupportSession.findMany({ take: 10 }) * * // Only select the `id` * const ticketSupportSessionWithIdOnly = await prisma.ticketSupportSession.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a TicketSupportSession. * @param {TicketSupportSessionCreateArgs} args - Arguments to create a TicketSupportSession. * @example * // Create one TicketSupportSession * const TicketSupportSession = await prisma.ticketSupportSession.create({ * data: { * // ... data to create a TicketSupportSession * } * }) * */ create(args: SelectSubset>): Prisma__TicketSupportSessionClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many TicketSupportSessions. * @param {TicketSupportSessionCreateManyArgs} args - Arguments to create many TicketSupportSessions. * @example * // Create many TicketSupportSessions * const ticketSupportSession = await prisma.ticketSupportSession.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many TicketSupportSessions and returns the data saved in the database. * @param {TicketSupportSessionCreateManyAndReturnArgs} args - Arguments to create many TicketSupportSessions. * @example * // Create many TicketSupportSessions * const ticketSupportSession = await prisma.ticketSupportSession.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many TicketSupportSessions and only return the `id` * const ticketSupportSessionWithIdOnly = await prisma.ticketSupportSession.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a TicketSupportSession. * @param {TicketSupportSessionDeleteArgs} args - Arguments to delete one TicketSupportSession. * @example * // Delete one TicketSupportSession * const TicketSupportSession = await prisma.ticketSupportSession.delete({ * where: { * // ... filter to delete one TicketSupportSession * } * }) * */ delete(args: SelectSubset>): Prisma__TicketSupportSessionClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one TicketSupportSession. * @param {TicketSupportSessionUpdateArgs} args - Arguments to update one TicketSupportSession. * @example * // Update one TicketSupportSession * const ticketSupportSession = await prisma.ticketSupportSession.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__TicketSupportSessionClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more TicketSupportSessions. * @param {TicketSupportSessionDeleteManyArgs} args - Arguments to filter TicketSupportSessions to delete. * @example * // Delete a few TicketSupportSessions * const { count } = await prisma.ticketSupportSession.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TicketSupportSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TicketSupportSessionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many TicketSupportSessions * const ticketSupportSession = await prisma.ticketSupportSession.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one TicketSupportSession. * @param {TicketSupportSessionUpsertArgs} args - Arguments to update or create a TicketSupportSession. * @example * // Update or create a TicketSupportSession * const ticketSupportSession = await prisma.ticketSupportSession.upsert({ * create: { * // ... data to create a TicketSupportSession * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the TicketSupportSession we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__TicketSupportSessionClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of TicketSupportSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TicketSupportSessionCountArgs} args - Arguments to filter TicketSupportSessions to count. * @example * // Count the number of TicketSupportSessions * const count = await prisma.ticketSupportSession.count({ * where: { * // ... the filter for the TicketSupportSessions we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a TicketSupportSession. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TicketSupportSessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by TicketSupportSession. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TicketSupportSessionGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends TicketSupportSessionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: TicketSupportSessionGroupByArgs['orderBy'] } : { orderBy?: TicketSupportSessionGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetTicketSupportSessionGroupByPayload : Prisma.PrismaPromise /** * Fields of the TicketSupportSession model */ readonly fields: TicketSupportSessionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for TicketSupportSession. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__TicketSupportSessionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the TicketSupportSession model */ interface TicketSupportSessionFieldRefs { readonly id: FieldRef<"TicketSupportSession", 'String'> readonly guildId: FieldRef<"TicketSupportSession", 'String'> readonly userId: FieldRef<"TicketSupportSession", 'String'> readonly roleId: FieldRef<"TicketSupportSession", 'String'> readonly startedAt: FieldRef<"TicketSupportSession", 'DateTime'> readonly endedAt: FieldRef<"TicketSupportSession", 'DateTime'> readonly durationSeconds: FieldRef<"TicketSupportSession", 'Int'> } // Custom InputTypes /** * TicketSupportSession findUnique */ export type TicketSupportSessionFindUniqueArgs = { /** * Select specific fields to fetch from the TicketSupportSession */ select?: TicketSupportSessionSelect | null /** * Filter, which TicketSupportSession to fetch. */ where: TicketSupportSessionWhereUniqueInput } /** * TicketSupportSession findUniqueOrThrow */ export type TicketSupportSessionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the TicketSupportSession */ select?: TicketSupportSessionSelect | null /** * Filter, which TicketSupportSession to fetch. */ where: TicketSupportSessionWhereUniqueInput } /** * TicketSupportSession findFirst */ export type TicketSupportSessionFindFirstArgs = { /** * Select specific fields to fetch from the TicketSupportSession */ select?: TicketSupportSessionSelect | null /** * Filter, which TicketSupportSession to fetch. */ where?: TicketSupportSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TicketSupportSessions to fetch. */ orderBy?: TicketSupportSessionOrderByWithRelationInput | TicketSupportSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TicketSupportSessions. */ cursor?: TicketSupportSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TicketSupportSessions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` TicketSupportSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TicketSupportSessions. */ distinct?: TicketSupportSessionScalarFieldEnum | TicketSupportSessionScalarFieldEnum[] } /** * TicketSupportSession findFirstOrThrow */ export type TicketSupportSessionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the TicketSupportSession */ select?: TicketSupportSessionSelect | null /** * Filter, which TicketSupportSession to fetch. */ where?: TicketSupportSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TicketSupportSessions to fetch. */ orderBy?: TicketSupportSessionOrderByWithRelationInput | TicketSupportSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TicketSupportSessions. */ cursor?: TicketSupportSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TicketSupportSessions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` TicketSupportSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TicketSupportSessions. */ distinct?: TicketSupportSessionScalarFieldEnum | TicketSupportSessionScalarFieldEnum[] } /** * TicketSupportSession findMany */ export type TicketSupportSessionFindManyArgs = { /** * Select specific fields to fetch from the TicketSupportSession */ select?: TicketSupportSessionSelect | null /** * Filter, which TicketSupportSessions to fetch. */ where?: TicketSupportSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TicketSupportSessions to fetch. */ orderBy?: TicketSupportSessionOrderByWithRelationInput | TicketSupportSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing TicketSupportSessions. */ cursor?: TicketSupportSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TicketSupportSessions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` TicketSupportSessions. */ skip?: number distinct?: TicketSupportSessionScalarFieldEnum | TicketSupportSessionScalarFieldEnum[] } /** * TicketSupportSession create */ export type TicketSupportSessionCreateArgs = { /** * Select specific fields to fetch from the TicketSupportSession */ select?: TicketSupportSessionSelect | null /** * The data needed to create a TicketSupportSession. */ data: XOR } /** * TicketSupportSession createMany */ export type TicketSupportSessionCreateManyArgs = { /** * The data used to create many TicketSupportSessions. */ data: TicketSupportSessionCreateManyInput | TicketSupportSessionCreateManyInput[] skipDuplicates?: boolean } /** * TicketSupportSession createManyAndReturn */ export type TicketSupportSessionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the TicketSupportSession */ select?: TicketSupportSessionSelectCreateManyAndReturn | null /** * The data used to create many TicketSupportSessions. */ data: TicketSupportSessionCreateManyInput | TicketSupportSessionCreateManyInput[] skipDuplicates?: boolean } /** * TicketSupportSession update */ export type TicketSupportSessionUpdateArgs = { /** * Select specific fields to fetch from the TicketSupportSession */ select?: TicketSupportSessionSelect | null /** * The data needed to update a TicketSupportSession. */ data: XOR /** * Choose, which TicketSupportSession to update. */ where: TicketSupportSessionWhereUniqueInput } /** * TicketSupportSession updateMany */ export type TicketSupportSessionUpdateManyArgs = { /** * The data used to update TicketSupportSessions. */ data: XOR /** * Filter which TicketSupportSessions to update */ where?: TicketSupportSessionWhereInput } /** * TicketSupportSession upsert */ export type TicketSupportSessionUpsertArgs = { /** * Select specific fields to fetch from the TicketSupportSession */ select?: TicketSupportSessionSelect | null /** * The filter to search for the TicketSupportSession to update in case it exists. */ where: TicketSupportSessionWhereUniqueInput /** * In case the TicketSupportSession found by the `where` argument doesn't exist, create a new TicketSupportSession with this data. */ create: XOR /** * In case the TicketSupportSession was found with the provided `where` argument, update it with this data. */ update: XOR } /** * TicketSupportSession delete */ export type TicketSupportSessionDeleteArgs = { /** * Select specific fields to fetch from the TicketSupportSession */ select?: TicketSupportSessionSelect | null /** * Filter which TicketSupportSession to delete. */ where: TicketSupportSessionWhereUniqueInput } /** * TicketSupportSession deleteMany */ export type TicketSupportSessionDeleteManyArgs = { /** * Filter which TicketSupportSessions to delete */ where?: TicketSupportSessionWhereInput } /** * TicketSupportSession without action */ export type TicketSupportSessionDefaultArgs = { /** * Select specific fields to fetch from the TicketSupportSession */ select?: TicketSupportSessionSelect | null } /** * Model Birthday */ export type AggregateBirthday = { _count: BirthdayCountAggregateOutputType | null _min: BirthdayMinAggregateOutputType | null _max: BirthdayMaxAggregateOutputType | null } export type BirthdayMinAggregateOutputType = { id: string | null userId: string | null guildId: string | null birthDate: string | null createdAt: Date | null updatedAt: Date | null } export type BirthdayMaxAggregateOutputType = { id: string | null userId: string | null guildId: string | null birthDate: string | null createdAt: Date | null updatedAt: Date | null } export type BirthdayCountAggregateOutputType = { id: number userId: number guildId: number birthDate: number createdAt: number updatedAt: number _all: number } export type BirthdayMinAggregateInputType = { id?: true userId?: true guildId?: true birthDate?: true createdAt?: true updatedAt?: true } export type BirthdayMaxAggregateInputType = { id?: true userId?: true guildId?: true birthDate?: true createdAt?: true updatedAt?: true } export type BirthdayCountAggregateInputType = { id?: true userId?: true guildId?: true birthDate?: true createdAt?: true updatedAt?: true _all?: true } export type BirthdayAggregateArgs = { /** * Filter which Birthday to aggregate. */ where?: BirthdayWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Birthdays to fetch. */ orderBy?: BirthdayOrderByWithRelationInput | BirthdayOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: BirthdayWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Birthdays from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Birthdays. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Birthdays **/ _count?: true | BirthdayCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: BirthdayMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: BirthdayMaxAggregateInputType } export type GetBirthdayAggregateType = { [P in keyof T & keyof AggregateBirthday]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type BirthdayGroupByArgs = { where?: BirthdayWhereInput orderBy?: BirthdayOrderByWithAggregationInput | BirthdayOrderByWithAggregationInput[] by: BirthdayScalarFieldEnum[] | BirthdayScalarFieldEnum having?: BirthdayScalarWhereWithAggregatesInput take?: number skip?: number _count?: BirthdayCountAggregateInputType | true _min?: BirthdayMinAggregateInputType _max?: BirthdayMaxAggregateInputType } export type BirthdayGroupByOutputType = { id: string userId: string guildId: string birthDate: string createdAt: Date updatedAt: Date _count: BirthdayCountAggregateOutputType | null _min: BirthdayMinAggregateOutputType | null _max: BirthdayMaxAggregateOutputType | null } type GetBirthdayGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof BirthdayGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type BirthdaySelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean guildId?: boolean birthDate?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["birthday"]> export type BirthdaySelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean guildId?: boolean birthDate?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["birthday"]> export type BirthdaySelectScalar = { id?: boolean userId?: boolean guildId?: boolean birthDate?: boolean createdAt?: boolean updatedAt?: boolean } export type $BirthdayPayload = { name: "Birthday" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string userId: string guildId: string birthDate: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["birthday"]> composites: {} } type BirthdayGetPayload = $Result.GetResult type BirthdayCountArgs = Omit & { select?: BirthdayCountAggregateInputType | true } export interface BirthdayDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Birthday'], meta: { name: 'Birthday' } } /** * Find zero or one Birthday that matches the filter. * @param {BirthdayFindUniqueArgs} args - Arguments to find a Birthday * @example * // Get one Birthday * const birthday = await prisma.birthday.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__BirthdayClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Birthday that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {BirthdayFindUniqueOrThrowArgs} args - Arguments to find a Birthday * @example * // Get one Birthday * const birthday = await prisma.birthday.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__BirthdayClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Birthday that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BirthdayFindFirstArgs} args - Arguments to find a Birthday * @example * // Get one Birthday * const birthday = await prisma.birthday.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__BirthdayClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Birthday that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BirthdayFindFirstOrThrowArgs} args - Arguments to find a Birthday * @example * // Get one Birthday * const birthday = await prisma.birthday.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__BirthdayClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Birthdays that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BirthdayFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Birthdays * const birthdays = await prisma.birthday.findMany() * * // Get first 10 Birthdays * const birthdays = await prisma.birthday.findMany({ take: 10 }) * * // Only select the `id` * const birthdayWithIdOnly = await prisma.birthday.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Birthday. * @param {BirthdayCreateArgs} args - Arguments to create a Birthday. * @example * // Create one Birthday * const Birthday = await prisma.birthday.create({ * data: { * // ... data to create a Birthday * } * }) * */ create(args: SelectSubset>): Prisma__BirthdayClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Birthdays. * @param {BirthdayCreateManyArgs} args - Arguments to create many Birthdays. * @example * // Create many Birthdays * const birthday = await prisma.birthday.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Birthdays and returns the data saved in the database. * @param {BirthdayCreateManyAndReturnArgs} args - Arguments to create many Birthdays. * @example * // Create many Birthdays * const birthday = await prisma.birthday.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Birthdays and only return the `id` * const birthdayWithIdOnly = await prisma.birthday.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a Birthday. * @param {BirthdayDeleteArgs} args - Arguments to delete one Birthday. * @example * // Delete one Birthday * const Birthday = await prisma.birthday.delete({ * where: { * // ... filter to delete one Birthday * } * }) * */ delete(args: SelectSubset>): Prisma__BirthdayClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Birthday. * @param {BirthdayUpdateArgs} args - Arguments to update one Birthday. * @example * // Update one Birthday * const birthday = await prisma.birthday.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__BirthdayClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Birthdays. * @param {BirthdayDeleteManyArgs} args - Arguments to filter Birthdays to delete. * @example * // Delete a few Birthdays * const { count } = await prisma.birthday.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Birthdays. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BirthdayUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Birthdays * const birthday = await prisma.birthday.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Birthday. * @param {BirthdayUpsertArgs} args - Arguments to update or create a Birthday. * @example * // Update or create a Birthday * const birthday = await prisma.birthday.upsert({ * create: { * // ... data to create a Birthday * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Birthday we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__BirthdayClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Birthdays. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BirthdayCountArgs} args - Arguments to filter Birthdays to count. * @example * // Count the number of Birthdays * const count = await prisma.birthday.count({ * where: { * // ... the filter for the Birthdays we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Birthday. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BirthdayAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Birthday. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BirthdayGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends BirthdayGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: BirthdayGroupByArgs['orderBy'] } : { orderBy?: BirthdayGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetBirthdayGroupByPayload : Prisma.PrismaPromise /** * Fields of the Birthday model */ readonly fields: BirthdayFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Birthday. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__BirthdayClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Birthday model */ interface BirthdayFieldRefs { readonly id: FieldRef<"Birthday", 'String'> readonly userId: FieldRef<"Birthday", 'String'> readonly guildId: FieldRef<"Birthday", 'String'> readonly birthDate: FieldRef<"Birthday", 'String'> readonly createdAt: FieldRef<"Birthday", 'DateTime'> readonly updatedAt: FieldRef<"Birthday", 'DateTime'> } // Custom InputTypes /** * Birthday findUnique */ export type BirthdayFindUniqueArgs = { /** * Select specific fields to fetch from the Birthday */ select?: BirthdaySelect | null /** * Filter, which Birthday to fetch. */ where: BirthdayWhereUniqueInput } /** * Birthday findUniqueOrThrow */ export type BirthdayFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Birthday */ select?: BirthdaySelect | null /** * Filter, which Birthday to fetch. */ where: BirthdayWhereUniqueInput } /** * Birthday findFirst */ export type BirthdayFindFirstArgs = { /** * Select specific fields to fetch from the Birthday */ select?: BirthdaySelect | null /** * Filter, which Birthday to fetch. */ where?: BirthdayWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Birthdays to fetch. */ orderBy?: BirthdayOrderByWithRelationInput | BirthdayOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Birthdays. */ cursor?: BirthdayWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Birthdays from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Birthdays. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Birthdays. */ distinct?: BirthdayScalarFieldEnum | BirthdayScalarFieldEnum[] } /** * Birthday findFirstOrThrow */ export type BirthdayFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Birthday */ select?: BirthdaySelect | null /** * Filter, which Birthday to fetch. */ where?: BirthdayWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Birthdays to fetch. */ orderBy?: BirthdayOrderByWithRelationInput | BirthdayOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Birthdays. */ cursor?: BirthdayWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Birthdays from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Birthdays. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Birthdays. */ distinct?: BirthdayScalarFieldEnum | BirthdayScalarFieldEnum[] } /** * Birthday findMany */ export type BirthdayFindManyArgs = { /** * Select specific fields to fetch from the Birthday */ select?: BirthdaySelect | null /** * Filter, which Birthdays to fetch. */ where?: BirthdayWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Birthdays to fetch. */ orderBy?: BirthdayOrderByWithRelationInput | BirthdayOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Birthdays. */ cursor?: BirthdayWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Birthdays from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Birthdays. */ skip?: number distinct?: BirthdayScalarFieldEnum | BirthdayScalarFieldEnum[] } /** * Birthday create */ export type BirthdayCreateArgs = { /** * Select specific fields to fetch from the Birthday */ select?: BirthdaySelect | null /** * The data needed to create a Birthday. */ data: XOR } /** * Birthday createMany */ export type BirthdayCreateManyArgs = { /** * The data used to create many Birthdays. */ data: BirthdayCreateManyInput | BirthdayCreateManyInput[] skipDuplicates?: boolean } /** * Birthday createManyAndReturn */ export type BirthdayCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Birthday */ select?: BirthdaySelectCreateManyAndReturn | null /** * The data used to create many Birthdays. */ data: BirthdayCreateManyInput | BirthdayCreateManyInput[] skipDuplicates?: boolean } /** * Birthday update */ export type BirthdayUpdateArgs = { /** * Select specific fields to fetch from the Birthday */ select?: BirthdaySelect | null /** * The data needed to update a Birthday. */ data: XOR /** * Choose, which Birthday to update. */ where: BirthdayWhereUniqueInput } /** * Birthday updateMany */ export type BirthdayUpdateManyArgs = { /** * The data used to update Birthdays. */ data: XOR /** * Filter which Birthdays to update */ where?: BirthdayWhereInput } /** * Birthday upsert */ export type BirthdayUpsertArgs = { /** * Select specific fields to fetch from the Birthday */ select?: BirthdaySelect | null /** * The filter to search for the Birthday to update in case it exists. */ where: BirthdayWhereUniqueInput /** * In case the Birthday found by the `where` argument doesn't exist, create a new Birthday with this data. */ create: XOR /** * In case the Birthday was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Birthday delete */ export type BirthdayDeleteArgs = { /** * Select specific fields to fetch from the Birthday */ select?: BirthdaySelect | null /** * Filter which Birthday to delete. */ where: BirthdayWhereUniqueInput } /** * Birthday deleteMany */ export type BirthdayDeleteManyArgs = { /** * Filter which Birthdays to delete */ where?: BirthdayWhereInput } /** * Birthday without action */ export type BirthdayDefaultArgs = { /** * Select specific fields to fetch from the Birthday */ select?: BirthdaySelect | null } /** * Model ReactionRoleSet */ export type AggregateReactionRoleSet = { _count: ReactionRoleSetCountAggregateOutputType | null _min: ReactionRoleSetMinAggregateOutputType | null _max: ReactionRoleSetMaxAggregateOutputType | null } export type ReactionRoleSetMinAggregateOutputType = { id: string | null guildId: string | null channelId: string | null messageId: string | null title: string | null description: string | null createdAt: Date | null updatedAt: Date | null } export type ReactionRoleSetMaxAggregateOutputType = { id: string | null guildId: string | null channelId: string | null messageId: string | null title: string | null description: string | null createdAt: Date | null updatedAt: Date | null } export type ReactionRoleSetCountAggregateOutputType = { id: number guildId: number channelId: number messageId: number title: number description: number entries: number createdAt: number updatedAt: number _all: number } export type ReactionRoleSetMinAggregateInputType = { id?: true guildId?: true channelId?: true messageId?: true title?: true description?: true createdAt?: true updatedAt?: true } export type ReactionRoleSetMaxAggregateInputType = { id?: true guildId?: true channelId?: true messageId?: true title?: true description?: true createdAt?: true updatedAt?: true } export type ReactionRoleSetCountAggregateInputType = { id?: true guildId?: true channelId?: true messageId?: true title?: true description?: true entries?: true createdAt?: true updatedAt?: true _all?: true } export type ReactionRoleSetAggregateArgs = { /** * Filter which ReactionRoleSet to aggregate. */ where?: ReactionRoleSetWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ReactionRoleSets to fetch. */ orderBy?: ReactionRoleSetOrderByWithRelationInput | ReactionRoleSetOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ReactionRoleSetWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ReactionRoleSets from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ReactionRoleSets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ReactionRoleSets **/ _count?: true | ReactionRoleSetCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ReactionRoleSetMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ReactionRoleSetMaxAggregateInputType } export type GetReactionRoleSetAggregateType = { [P in keyof T & keyof AggregateReactionRoleSet]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ReactionRoleSetGroupByArgs = { where?: ReactionRoleSetWhereInput orderBy?: ReactionRoleSetOrderByWithAggregationInput | ReactionRoleSetOrderByWithAggregationInput[] by: ReactionRoleSetScalarFieldEnum[] | ReactionRoleSetScalarFieldEnum having?: ReactionRoleSetScalarWhereWithAggregatesInput take?: number skip?: number _count?: ReactionRoleSetCountAggregateInputType | true _min?: ReactionRoleSetMinAggregateInputType _max?: ReactionRoleSetMaxAggregateInputType } export type ReactionRoleSetGroupByOutputType = { id: string guildId: string channelId: string messageId: string | null title: string | null description: string | null entries: JsonValue createdAt: Date updatedAt: Date _count: ReactionRoleSetCountAggregateOutputType | null _min: ReactionRoleSetMinAggregateOutputType | null _max: ReactionRoleSetMaxAggregateOutputType | null } type GetReactionRoleSetGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ReactionRoleSetGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ReactionRoleSetSelect = $Extensions.GetSelect<{ id?: boolean guildId?: boolean channelId?: boolean messageId?: boolean title?: boolean description?: boolean entries?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["reactionRoleSet"]> export type ReactionRoleSetSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean guildId?: boolean channelId?: boolean messageId?: boolean title?: boolean description?: boolean entries?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["reactionRoleSet"]> export type ReactionRoleSetSelectScalar = { id?: boolean guildId?: boolean channelId?: boolean messageId?: boolean title?: boolean description?: boolean entries?: boolean createdAt?: boolean updatedAt?: boolean } export type $ReactionRoleSetPayload = { name: "ReactionRoleSet" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string guildId: string channelId: string messageId: string | null title: string | null description: string | null entries: Prisma.JsonValue createdAt: Date updatedAt: Date }, ExtArgs["result"]["reactionRoleSet"]> composites: {} } type ReactionRoleSetGetPayload = $Result.GetResult type ReactionRoleSetCountArgs = Omit & { select?: ReactionRoleSetCountAggregateInputType | true } export interface ReactionRoleSetDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ReactionRoleSet'], meta: { name: 'ReactionRoleSet' } } /** * Find zero or one ReactionRoleSet that matches the filter. * @param {ReactionRoleSetFindUniqueArgs} args - Arguments to find a ReactionRoleSet * @example * // Get one ReactionRoleSet * const reactionRoleSet = await prisma.reactionRoleSet.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ReactionRoleSetClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one ReactionRoleSet that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ReactionRoleSetFindUniqueOrThrowArgs} args - Arguments to find a ReactionRoleSet * @example * // Get one ReactionRoleSet * const reactionRoleSet = await prisma.reactionRoleSet.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ReactionRoleSetClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first ReactionRoleSet that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ReactionRoleSetFindFirstArgs} args - Arguments to find a ReactionRoleSet * @example * // Get one ReactionRoleSet * const reactionRoleSet = await prisma.reactionRoleSet.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ReactionRoleSetClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first ReactionRoleSet that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ReactionRoleSetFindFirstOrThrowArgs} args - Arguments to find a ReactionRoleSet * @example * // Get one ReactionRoleSet * const reactionRoleSet = await prisma.reactionRoleSet.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ReactionRoleSetClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more ReactionRoleSets that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ReactionRoleSetFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ReactionRoleSets * const reactionRoleSets = await prisma.reactionRoleSet.findMany() * * // Get first 10 ReactionRoleSets * const reactionRoleSets = await prisma.reactionRoleSet.findMany({ take: 10 }) * * // Only select the `id` * const reactionRoleSetWithIdOnly = await prisma.reactionRoleSet.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a ReactionRoleSet. * @param {ReactionRoleSetCreateArgs} args - Arguments to create a ReactionRoleSet. * @example * // Create one ReactionRoleSet * const ReactionRoleSet = await prisma.reactionRoleSet.create({ * data: { * // ... data to create a ReactionRoleSet * } * }) * */ create(args: SelectSubset>): Prisma__ReactionRoleSetClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many ReactionRoleSets. * @param {ReactionRoleSetCreateManyArgs} args - Arguments to create many ReactionRoleSets. * @example * // Create many ReactionRoleSets * const reactionRoleSet = await prisma.reactionRoleSet.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ReactionRoleSets and returns the data saved in the database. * @param {ReactionRoleSetCreateManyAndReturnArgs} args - Arguments to create many ReactionRoleSets. * @example * // Create many ReactionRoleSets * const reactionRoleSet = await prisma.reactionRoleSet.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ReactionRoleSets and only return the `id` * const reactionRoleSetWithIdOnly = await prisma.reactionRoleSet.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a ReactionRoleSet. * @param {ReactionRoleSetDeleteArgs} args - Arguments to delete one ReactionRoleSet. * @example * // Delete one ReactionRoleSet * const ReactionRoleSet = await prisma.reactionRoleSet.delete({ * where: { * // ... filter to delete one ReactionRoleSet * } * }) * */ delete(args: SelectSubset>): Prisma__ReactionRoleSetClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one ReactionRoleSet. * @param {ReactionRoleSetUpdateArgs} args - Arguments to update one ReactionRoleSet. * @example * // Update one ReactionRoleSet * const reactionRoleSet = await prisma.reactionRoleSet.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ReactionRoleSetClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more ReactionRoleSets. * @param {ReactionRoleSetDeleteManyArgs} args - Arguments to filter ReactionRoleSets to delete. * @example * // Delete a few ReactionRoleSets * const { count } = await prisma.reactionRoleSet.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ReactionRoleSets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ReactionRoleSetUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ReactionRoleSets * const reactionRoleSet = await prisma.reactionRoleSet.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one ReactionRoleSet. * @param {ReactionRoleSetUpsertArgs} args - Arguments to update or create a ReactionRoleSet. * @example * // Update or create a ReactionRoleSet * const reactionRoleSet = await prisma.reactionRoleSet.upsert({ * create: { * // ... data to create a ReactionRoleSet * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ReactionRoleSet we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ReactionRoleSetClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of ReactionRoleSets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ReactionRoleSetCountArgs} args - Arguments to filter ReactionRoleSets to count. * @example * // Count the number of ReactionRoleSets * const count = await prisma.reactionRoleSet.count({ * where: { * // ... the filter for the ReactionRoleSets we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a ReactionRoleSet. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ReactionRoleSetAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by ReactionRoleSet. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ReactionRoleSetGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends ReactionRoleSetGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ReactionRoleSetGroupByArgs['orderBy'] } : { orderBy?: ReactionRoleSetGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetReactionRoleSetGroupByPayload : Prisma.PrismaPromise /** * Fields of the ReactionRoleSet model */ readonly fields: ReactionRoleSetFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ReactionRoleSet. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__ReactionRoleSetClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the ReactionRoleSet model */ interface ReactionRoleSetFieldRefs { readonly id: FieldRef<"ReactionRoleSet", 'String'> readonly guildId: FieldRef<"ReactionRoleSet", 'String'> readonly channelId: FieldRef<"ReactionRoleSet", 'String'> readonly messageId: FieldRef<"ReactionRoleSet", 'String'> readonly title: FieldRef<"ReactionRoleSet", 'String'> readonly description: FieldRef<"ReactionRoleSet", 'String'> readonly entries: FieldRef<"ReactionRoleSet", 'Json'> readonly createdAt: FieldRef<"ReactionRoleSet", 'DateTime'> readonly updatedAt: FieldRef<"ReactionRoleSet", 'DateTime'> } // Custom InputTypes /** * ReactionRoleSet findUnique */ export type ReactionRoleSetFindUniqueArgs = { /** * Select specific fields to fetch from the ReactionRoleSet */ select?: ReactionRoleSetSelect | null /** * Filter, which ReactionRoleSet to fetch. */ where: ReactionRoleSetWhereUniqueInput } /** * ReactionRoleSet findUniqueOrThrow */ export type ReactionRoleSetFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ReactionRoleSet */ select?: ReactionRoleSetSelect | null /** * Filter, which ReactionRoleSet to fetch. */ where: ReactionRoleSetWhereUniqueInput } /** * ReactionRoleSet findFirst */ export type ReactionRoleSetFindFirstArgs = { /** * Select specific fields to fetch from the ReactionRoleSet */ select?: ReactionRoleSetSelect | null /** * Filter, which ReactionRoleSet to fetch. */ where?: ReactionRoleSetWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ReactionRoleSets to fetch. */ orderBy?: ReactionRoleSetOrderByWithRelationInput | ReactionRoleSetOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ReactionRoleSets. */ cursor?: ReactionRoleSetWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ReactionRoleSets from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ReactionRoleSets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ReactionRoleSets. */ distinct?: ReactionRoleSetScalarFieldEnum | ReactionRoleSetScalarFieldEnum[] } /** * ReactionRoleSet findFirstOrThrow */ export type ReactionRoleSetFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ReactionRoleSet */ select?: ReactionRoleSetSelect | null /** * Filter, which ReactionRoleSet to fetch. */ where?: ReactionRoleSetWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ReactionRoleSets to fetch. */ orderBy?: ReactionRoleSetOrderByWithRelationInput | ReactionRoleSetOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ReactionRoleSets. */ cursor?: ReactionRoleSetWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ReactionRoleSets from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ReactionRoleSets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ReactionRoleSets. */ distinct?: ReactionRoleSetScalarFieldEnum | ReactionRoleSetScalarFieldEnum[] } /** * ReactionRoleSet findMany */ export type ReactionRoleSetFindManyArgs = { /** * Select specific fields to fetch from the ReactionRoleSet */ select?: ReactionRoleSetSelect | null /** * Filter, which ReactionRoleSets to fetch. */ where?: ReactionRoleSetWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ReactionRoleSets to fetch. */ orderBy?: ReactionRoleSetOrderByWithRelationInput | ReactionRoleSetOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ReactionRoleSets. */ cursor?: ReactionRoleSetWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ReactionRoleSets from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ReactionRoleSets. */ skip?: number distinct?: ReactionRoleSetScalarFieldEnum | ReactionRoleSetScalarFieldEnum[] } /** * ReactionRoleSet create */ export type ReactionRoleSetCreateArgs = { /** * Select specific fields to fetch from the ReactionRoleSet */ select?: ReactionRoleSetSelect | null /** * The data needed to create a ReactionRoleSet. */ data: XOR } /** * ReactionRoleSet createMany */ export type ReactionRoleSetCreateManyArgs = { /** * The data used to create many ReactionRoleSets. */ data: ReactionRoleSetCreateManyInput | ReactionRoleSetCreateManyInput[] skipDuplicates?: boolean } /** * ReactionRoleSet createManyAndReturn */ export type ReactionRoleSetCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ReactionRoleSet */ select?: ReactionRoleSetSelectCreateManyAndReturn | null /** * The data used to create many ReactionRoleSets. */ data: ReactionRoleSetCreateManyInput | ReactionRoleSetCreateManyInput[] skipDuplicates?: boolean } /** * ReactionRoleSet update */ export type ReactionRoleSetUpdateArgs = { /** * Select specific fields to fetch from the ReactionRoleSet */ select?: ReactionRoleSetSelect | null /** * The data needed to update a ReactionRoleSet. */ data: XOR /** * Choose, which ReactionRoleSet to update. */ where: ReactionRoleSetWhereUniqueInput } /** * ReactionRoleSet updateMany */ export type ReactionRoleSetUpdateManyArgs = { /** * The data used to update ReactionRoleSets. */ data: XOR /** * Filter which ReactionRoleSets to update */ where?: ReactionRoleSetWhereInput } /** * ReactionRoleSet upsert */ export type ReactionRoleSetUpsertArgs = { /** * Select specific fields to fetch from the ReactionRoleSet */ select?: ReactionRoleSetSelect | null /** * The filter to search for the ReactionRoleSet to update in case it exists. */ where: ReactionRoleSetWhereUniqueInput /** * In case the ReactionRoleSet found by the `where` argument doesn't exist, create a new ReactionRoleSet with this data. */ create: XOR /** * In case the ReactionRoleSet was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ReactionRoleSet delete */ export type ReactionRoleSetDeleteArgs = { /** * Select specific fields to fetch from the ReactionRoleSet */ select?: ReactionRoleSetSelect | null /** * Filter which ReactionRoleSet to delete. */ where: ReactionRoleSetWhereUniqueInput } /** * ReactionRoleSet deleteMany */ export type ReactionRoleSetDeleteManyArgs = { /** * Filter which ReactionRoleSets to delete */ where?: ReactionRoleSetWhereInput } /** * ReactionRoleSet without action */ export type ReactionRoleSetDefaultArgs = { /** * Select specific fields to fetch from the ReactionRoleSet */ select?: ReactionRoleSetSelect | null } /** * Model Event */ export type AggregateEvent = { _count: EventCountAggregateOutputType | null _avg: EventAvgAggregateOutputType | null _sum: EventSumAggregateOutputType | null _min: EventMinAggregateOutputType | null _max: EventMaxAggregateOutputType | null } export type EventAvgAggregateOutputType = { reminderOffsetMinutes: number | null } export type EventSumAggregateOutputType = { reminderOffsetMinutes: number | null } export type EventMinAggregateOutputType = { id: string | null guildId: string | null title: string | null description: string | null channelId: string | null startTime: Date | null repeatType: string | null reminderOffsetMinutes: number | null roleId: string | null isActive: boolean | null lastReminderAt: Date | null createdAt: Date | null updatedAt: Date | null } export type EventMaxAggregateOutputType = { id: string | null guildId: string | null title: string | null description: string | null channelId: string | null startTime: Date | null repeatType: string | null reminderOffsetMinutes: number | null roleId: string | null isActive: boolean | null lastReminderAt: Date | null createdAt: Date | null updatedAt: Date | null } export type EventCountAggregateOutputType = { id: number guildId: number title: number description: number channelId: number startTime: number repeatType: number repeatConfig: number reminderOffsetMinutes: number roleId: number isActive: number lastReminderAt: number createdAt: number updatedAt: number _all: number } export type EventAvgAggregateInputType = { reminderOffsetMinutes?: true } export type EventSumAggregateInputType = { reminderOffsetMinutes?: true } export type EventMinAggregateInputType = { id?: true guildId?: true title?: true description?: true channelId?: true startTime?: true repeatType?: true reminderOffsetMinutes?: true roleId?: true isActive?: true lastReminderAt?: true createdAt?: true updatedAt?: true } export type EventMaxAggregateInputType = { id?: true guildId?: true title?: true description?: true channelId?: true startTime?: true repeatType?: true reminderOffsetMinutes?: true roleId?: true isActive?: true lastReminderAt?: true createdAt?: true updatedAt?: true } export type EventCountAggregateInputType = { id?: true guildId?: true title?: true description?: true channelId?: true startTime?: true repeatType?: true repeatConfig?: true reminderOffsetMinutes?: true roleId?: true isActive?: true lastReminderAt?: true createdAt?: true updatedAt?: true _all?: true } export type EventAggregateArgs = { /** * Filter which Event to aggregate. */ where?: EventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Events to fetch. */ orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: EventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Events from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Events. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Events **/ _count?: true | EventCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: EventAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: EventSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EventMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EventMaxAggregateInputType } export type GetEventAggregateType = { [P in keyof T & keyof AggregateEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type EventGroupByArgs = { where?: EventWhereInput orderBy?: EventOrderByWithAggregationInput | EventOrderByWithAggregationInput[] by: EventScalarFieldEnum[] | EventScalarFieldEnum having?: EventScalarWhereWithAggregatesInput take?: number skip?: number _count?: EventCountAggregateInputType | true _avg?: EventAvgAggregateInputType _sum?: EventSumAggregateInputType _min?: EventMinAggregateInputType _max?: EventMaxAggregateInputType } export type EventGroupByOutputType = { id: string guildId: string title: string description: string | null channelId: string startTime: Date repeatType: string repeatConfig: JsonValue | null reminderOffsetMinutes: number roleId: string | null isActive: boolean lastReminderAt: Date | null createdAt: Date updatedAt: Date _count: EventCountAggregateOutputType | null _avg: EventAvgAggregateOutputType | null _sum: EventSumAggregateOutputType | null _min: EventMinAggregateOutputType | null _max: EventMaxAggregateOutputType | null } type GetEventGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof EventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type EventSelect = $Extensions.GetSelect<{ id?: boolean guildId?: boolean title?: boolean description?: boolean channelId?: boolean startTime?: boolean repeatType?: boolean repeatConfig?: boolean reminderOffsetMinutes?: boolean roleId?: boolean isActive?: boolean lastReminderAt?: boolean createdAt?: boolean updatedAt?: boolean signups?: boolean | Event$signupsArgs _count?: boolean | EventCountOutputTypeDefaultArgs }, ExtArgs["result"]["event"]> export type EventSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean guildId?: boolean title?: boolean description?: boolean channelId?: boolean startTime?: boolean repeatType?: boolean repeatConfig?: boolean reminderOffsetMinutes?: boolean roleId?: boolean isActive?: boolean lastReminderAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["event"]> export type EventSelectScalar = { id?: boolean guildId?: boolean title?: boolean description?: boolean channelId?: boolean startTime?: boolean repeatType?: boolean repeatConfig?: boolean reminderOffsetMinutes?: boolean roleId?: boolean isActive?: boolean lastReminderAt?: boolean createdAt?: boolean updatedAt?: boolean } export type EventInclude = { signups?: boolean | Event$signupsArgs _count?: boolean | EventCountOutputTypeDefaultArgs } export type EventIncludeCreateManyAndReturn = {} export type $EventPayload = { name: "Event" objects: { signups: Prisma.$EventSignupPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string guildId: string title: string description: string | null channelId: string startTime: Date repeatType: string repeatConfig: Prisma.JsonValue | null reminderOffsetMinutes: number roleId: string | null isActive: boolean lastReminderAt: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["event"]> composites: {} } type EventGetPayload = $Result.GetResult type EventCountArgs = Omit & { select?: EventCountAggregateInputType | true } export interface EventDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Event'], meta: { name: 'Event' } } /** * Find zero or one Event that matches the filter. * @param {EventFindUniqueArgs} args - Arguments to find a Event * @example * // Get one Event * const event = await prisma.event.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Event that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EventFindUniqueOrThrowArgs} args - Arguments to find a Event * @example * // Get one Event * const event = await prisma.event.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Event that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventFindFirstArgs} args - Arguments to find a Event * @example * // Get one Event * const event = await prisma.event.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Event that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventFindFirstOrThrowArgs} args - Arguments to find a Event * @example * // Get one Event * const event = await prisma.event.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Events that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Events * const events = await prisma.event.findMany() * * // Get first 10 Events * const events = await prisma.event.findMany({ take: 10 }) * * // Only select the `id` * const eventWithIdOnly = await prisma.event.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Event. * @param {EventCreateArgs} args - Arguments to create a Event. * @example * // Create one Event * const Event = await prisma.event.create({ * data: { * // ... data to create a Event * } * }) * */ create(args: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Events. * @param {EventCreateManyArgs} args - Arguments to create many Events. * @example * // Create many Events * const event = await prisma.event.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Events and returns the data saved in the database. * @param {EventCreateManyAndReturnArgs} args - Arguments to create many Events. * @example * // Create many Events * const event = await prisma.event.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Events and only return the `id` * const eventWithIdOnly = await prisma.event.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a Event. * @param {EventDeleteArgs} args - Arguments to delete one Event. * @example * // Delete one Event * const Event = await prisma.event.delete({ * where: { * // ... filter to delete one Event * } * }) * */ delete(args: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Event. * @param {EventUpdateArgs} args - Arguments to update one Event. * @example * // Update one Event * const event = await prisma.event.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Events. * @param {EventDeleteManyArgs} args - Arguments to filter Events to delete. * @example * // Delete a few Events * const { count } = await prisma.event.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Events. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Events * const event = await prisma.event.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Event. * @param {EventUpsertArgs} args - Arguments to update or create a Event. * @example * // Update or create a Event * const event = await prisma.event.upsert({ * create: { * // ... data to create a Event * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Event we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Events. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventCountArgs} args - Arguments to filter Events to count. * @example * // Count the number of Events * const count = await prisma.event.count({ * where: { * // ... the filter for the Events we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Event. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Event. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends EventGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: EventGroupByArgs['orderBy'] } : { orderBy?: EventGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetEventGroupByPayload : Prisma.PrismaPromise /** * Fields of the Event model */ readonly fields: EventFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Event. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__EventClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" signups = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Event model */ interface EventFieldRefs { readonly id: FieldRef<"Event", 'String'> readonly guildId: FieldRef<"Event", 'String'> readonly title: FieldRef<"Event", 'String'> readonly description: FieldRef<"Event", 'String'> readonly channelId: FieldRef<"Event", 'String'> readonly startTime: FieldRef<"Event", 'DateTime'> readonly repeatType: FieldRef<"Event", 'String'> readonly repeatConfig: FieldRef<"Event", 'Json'> readonly reminderOffsetMinutes: FieldRef<"Event", 'Int'> readonly roleId: FieldRef<"Event", 'String'> readonly isActive: FieldRef<"Event", 'Boolean'> readonly lastReminderAt: FieldRef<"Event", 'DateTime'> readonly createdAt: FieldRef<"Event", 'DateTime'> readonly updatedAt: FieldRef<"Event", 'DateTime'> } // Custom InputTypes /** * Event findUnique */ export type EventFindUniqueArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * Filter, which Event to fetch. */ where: EventWhereUniqueInput } /** * Event findUniqueOrThrow */ export type EventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * Filter, which Event to fetch. */ where: EventWhereUniqueInput } /** * Event findFirst */ export type EventFindFirstArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * Filter, which Event to fetch. */ where?: EventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Events to fetch. */ orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Events. */ cursor?: EventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Events from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Events. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Events. */ distinct?: EventScalarFieldEnum | EventScalarFieldEnum[] } /** * Event findFirstOrThrow */ export type EventFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * Filter, which Event to fetch. */ where?: EventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Events to fetch. */ orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Events. */ cursor?: EventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Events from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Events. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Events. */ distinct?: EventScalarFieldEnum | EventScalarFieldEnum[] } /** * Event findMany */ export type EventFindManyArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * Filter, which Events to fetch. */ where?: EventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Events to fetch. */ orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Events. */ cursor?: EventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Events from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Events. */ skip?: number distinct?: EventScalarFieldEnum | EventScalarFieldEnum[] } /** * Event create */ export type EventCreateArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * The data needed to create a Event. */ data: XOR } /** * Event createMany */ export type EventCreateManyArgs = { /** * The data used to create many Events. */ data: EventCreateManyInput | EventCreateManyInput[] skipDuplicates?: boolean } /** * Event createManyAndReturn */ export type EventCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelectCreateManyAndReturn | null /** * The data used to create many Events. */ data: EventCreateManyInput | EventCreateManyInput[] skipDuplicates?: boolean } /** * Event update */ export type EventUpdateArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * The data needed to update a Event. */ data: XOR /** * Choose, which Event to update. */ where: EventWhereUniqueInput } /** * Event updateMany */ export type EventUpdateManyArgs = { /** * The data used to update Events. */ data: XOR /** * Filter which Events to update */ where?: EventWhereInput } /** * Event upsert */ export type EventUpsertArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * The filter to search for the Event to update in case it exists. */ where: EventWhereUniqueInput /** * In case the Event found by the `where` argument doesn't exist, create a new Event with this data. */ create: XOR /** * In case the Event was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Event delete */ export type EventDeleteArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * Filter which Event to delete. */ where: EventWhereUniqueInput } /** * Event deleteMany */ export type EventDeleteManyArgs = { /** * Filter which Events to delete */ where?: EventWhereInput } /** * Event.signups */ export type Event$signupsArgs = { /** * Select specific fields to fetch from the EventSignup */ select?: EventSignupSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventSignupInclude | null where?: EventSignupWhereInput orderBy?: EventSignupOrderByWithRelationInput | EventSignupOrderByWithRelationInput[] cursor?: EventSignupWhereUniqueInput take?: number skip?: number distinct?: EventSignupScalarFieldEnum | EventSignupScalarFieldEnum[] } /** * Event without action */ export type EventDefaultArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null } /** * Model EventSignup */ export type AggregateEventSignup = { _count: EventSignupCountAggregateOutputType | null _min: EventSignupMinAggregateOutputType | null _max: EventSignupMaxAggregateOutputType | null } export type EventSignupMinAggregateOutputType = { id: string | null eventId: string | null guildId: string | null userId: string | null createdAt: Date | null canceledAt: Date | null } export type EventSignupMaxAggregateOutputType = { id: string | null eventId: string | null guildId: string | null userId: string | null createdAt: Date | null canceledAt: Date | null } export type EventSignupCountAggregateOutputType = { id: number eventId: number guildId: number userId: number createdAt: number canceledAt: number _all: number } export type EventSignupMinAggregateInputType = { id?: true eventId?: true guildId?: true userId?: true createdAt?: true canceledAt?: true } export type EventSignupMaxAggregateInputType = { id?: true eventId?: true guildId?: true userId?: true createdAt?: true canceledAt?: true } export type EventSignupCountAggregateInputType = { id?: true eventId?: true guildId?: true userId?: true createdAt?: true canceledAt?: true _all?: true } export type EventSignupAggregateArgs = { /** * Filter which EventSignup to aggregate. */ where?: EventSignupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EventSignups to fetch. */ orderBy?: EventSignupOrderByWithRelationInput | EventSignupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: EventSignupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EventSignups from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` EventSignups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EventSignups **/ _count?: true | EventSignupCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EventSignupMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EventSignupMaxAggregateInputType } export type GetEventSignupAggregateType = { [P in keyof T & keyof AggregateEventSignup]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type EventSignupGroupByArgs = { where?: EventSignupWhereInput orderBy?: EventSignupOrderByWithAggregationInput | EventSignupOrderByWithAggregationInput[] by: EventSignupScalarFieldEnum[] | EventSignupScalarFieldEnum having?: EventSignupScalarWhereWithAggregatesInput take?: number skip?: number _count?: EventSignupCountAggregateInputType | true _min?: EventSignupMinAggregateInputType _max?: EventSignupMaxAggregateInputType } export type EventSignupGroupByOutputType = { id: string eventId: string guildId: string userId: string createdAt: Date canceledAt: Date | null _count: EventSignupCountAggregateOutputType | null _min: EventSignupMinAggregateOutputType | null _max: EventSignupMaxAggregateOutputType | null } type GetEventSignupGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof EventSignupGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type EventSignupSelect = $Extensions.GetSelect<{ id?: boolean eventId?: boolean guildId?: boolean userId?: boolean createdAt?: boolean canceledAt?: boolean event?: boolean | EventDefaultArgs }, ExtArgs["result"]["eventSignup"]> export type EventSignupSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean eventId?: boolean guildId?: boolean userId?: boolean createdAt?: boolean canceledAt?: boolean event?: boolean | EventDefaultArgs }, ExtArgs["result"]["eventSignup"]> export type EventSignupSelectScalar = { id?: boolean eventId?: boolean guildId?: boolean userId?: boolean createdAt?: boolean canceledAt?: boolean } export type EventSignupInclude = { event?: boolean | EventDefaultArgs } export type EventSignupIncludeCreateManyAndReturn = { event?: boolean | EventDefaultArgs } export type $EventSignupPayload = { name: "EventSignup" objects: { event: Prisma.$EventPayload } scalars: $Extensions.GetPayloadResult<{ id: string eventId: string guildId: string userId: string createdAt: Date canceledAt: Date | null }, ExtArgs["result"]["eventSignup"]> composites: {} } type EventSignupGetPayload = $Result.GetResult type EventSignupCountArgs = Omit & { select?: EventSignupCountAggregateInputType | true } export interface EventSignupDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EventSignup'], meta: { name: 'EventSignup' } } /** * Find zero or one EventSignup that matches the filter. * @param {EventSignupFindUniqueArgs} args - Arguments to find a EventSignup * @example * // Get one EventSignup * const eventSignup = await prisma.eventSignup.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__EventSignupClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one EventSignup that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EventSignupFindUniqueOrThrowArgs} args - Arguments to find a EventSignup * @example * // Get one EventSignup * const eventSignup = await prisma.eventSignup.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__EventSignupClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first EventSignup that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventSignupFindFirstArgs} args - Arguments to find a EventSignup * @example * // Get one EventSignup * const eventSignup = await prisma.eventSignup.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__EventSignupClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first EventSignup that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventSignupFindFirstOrThrowArgs} args - Arguments to find a EventSignup * @example * // Get one EventSignup * const eventSignup = await prisma.eventSignup.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__EventSignupClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more EventSignups that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventSignupFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EventSignups * const eventSignups = await prisma.eventSignup.findMany() * * // Get first 10 EventSignups * const eventSignups = await prisma.eventSignup.findMany({ take: 10 }) * * // Only select the `id` * const eventSignupWithIdOnly = await prisma.eventSignup.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a EventSignup. * @param {EventSignupCreateArgs} args - Arguments to create a EventSignup. * @example * // Create one EventSignup * const EventSignup = await prisma.eventSignup.create({ * data: { * // ... data to create a EventSignup * } * }) * */ create(args: SelectSubset>): Prisma__EventSignupClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many EventSignups. * @param {EventSignupCreateManyArgs} args - Arguments to create many EventSignups. * @example * // Create many EventSignups * const eventSignup = await prisma.eventSignup.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many EventSignups and returns the data saved in the database. * @param {EventSignupCreateManyAndReturnArgs} args - Arguments to create many EventSignups. * @example * // Create many EventSignups * const eventSignup = await prisma.eventSignup.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many EventSignups and only return the `id` * const eventSignupWithIdOnly = await prisma.eventSignup.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a EventSignup. * @param {EventSignupDeleteArgs} args - Arguments to delete one EventSignup. * @example * // Delete one EventSignup * const EventSignup = await prisma.eventSignup.delete({ * where: { * // ... filter to delete one EventSignup * } * }) * */ delete(args: SelectSubset>): Prisma__EventSignupClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one EventSignup. * @param {EventSignupUpdateArgs} args - Arguments to update one EventSignup. * @example * // Update one EventSignup * const eventSignup = await prisma.eventSignup.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__EventSignupClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more EventSignups. * @param {EventSignupDeleteManyArgs} args - Arguments to filter EventSignups to delete. * @example * // Delete a few EventSignups * const { count } = await prisma.eventSignup.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EventSignups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventSignupUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EventSignups * const eventSignup = await prisma.eventSignup.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one EventSignup. * @param {EventSignupUpsertArgs} args - Arguments to update or create a EventSignup. * @example * // Update or create a EventSignup * const eventSignup = await prisma.eventSignup.upsert({ * create: { * // ... data to create a EventSignup * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EventSignup we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__EventSignupClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of EventSignups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventSignupCountArgs} args - Arguments to filter EventSignups to count. * @example * // Count the number of EventSignups * const count = await prisma.eventSignup.count({ * where: { * // ... the filter for the EventSignups we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a EventSignup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventSignupAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by EventSignup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventSignupGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends EventSignupGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: EventSignupGroupByArgs['orderBy'] } : { orderBy?: EventSignupGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetEventSignupGroupByPayload : Prisma.PrismaPromise /** * Fields of the EventSignup model */ readonly fields: EventSignupFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EventSignup. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__EventSignupClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" event = {}>(args?: Subset>): Prisma__EventClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the EventSignup model */ interface EventSignupFieldRefs { readonly id: FieldRef<"EventSignup", 'String'> readonly eventId: FieldRef<"EventSignup", 'String'> readonly guildId: FieldRef<"EventSignup", 'String'> readonly userId: FieldRef<"EventSignup", 'String'> readonly createdAt: FieldRef<"EventSignup", 'DateTime'> readonly canceledAt: FieldRef<"EventSignup", 'DateTime'> } // Custom InputTypes /** * EventSignup findUnique */ export type EventSignupFindUniqueArgs = { /** * Select specific fields to fetch from the EventSignup */ select?: EventSignupSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventSignupInclude | null /** * Filter, which EventSignup to fetch. */ where: EventSignupWhereUniqueInput } /** * EventSignup findUniqueOrThrow */ export type EventSignupFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the EventSignup */ select?: EventSignupSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventSignupInclude | null /** * Filter, which EventSignup to fetch. */ where: EventSignupWhereUniqueInput } /** * EventSignup findFirst */ export type EventSignupFindFirstArgs = { /** * Select specific fields to fetch from the EventSignup */ select?: EventSignupSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventSignupInclude | null /** * Filter, which EventSignup to fetch. */ where?: EventSignupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EventSignups to fetch. */ orderBy?: EventSignupOrderByWithRelationInput | EventSignupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EventSignups. */ cursor?: EventSignupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EventSignups from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` EventSignups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EventSignups. */ distinct?: EventSignupScalarFieldEnum | EventSignupScalarFieldEnum[] } /** * EventSignup findFirstOrThrow */ export type EventSignupFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the EventSignup */ select?: EventSignupSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventSignupInclude | null /** * Filter, which EventSignup to fetch. */ where?: EventSignupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EventSignups to fetch. */ orderBy?: EventSignupOrderByWithRelationInput | EventSignupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EventSignups. */ cursor?: EventSignupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EventSignups from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` EventSignups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EventSignups. */ distinct?: EventSignupScalarFieldEnum | EventSignupScalarFieldEnum[] } /** * EventSignup findMany */ export type EventSignupFindManyArgs = { /** * Select specific fields to fetch from the EventSignup */ select?: EventSignupSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventSignupInclude | null /** * Filter, which EventSignups to fetch. */ where?: EventSignupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EventSignups to fetch. */ orderBy?: EventSignupOrderByWithRelationInput | EventSignupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EventSignups. */ cursor?: EventSignupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EventSignups from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` EventSignups. */ skip?: number distinct?: EventSignupScalarFieldEnum | EventSignupScalarFieldEnum[] } /** * EventSignup create */ export type EventSignupCreateArgs = { /** * Select specific fields to fetch from the EventSignup */ select?: EventSignupSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventSignupInclude | null /** * The data needed to create a EventSignup. */ data: XOR } /** * EventSignup createMany */ export type EventSignupCreateManyArgs = { /** * The data used to create many EventSignups. */ data: EventSignupCreateManyInput | EventSignupCreateManyInput[] skipDuplicates?: boolean } /** * EventSignup createManyAndReturn */ export type EventSignupCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the EventSignup */ select?: EventSignupSelectCreateManyAndReturn | null /** * The data used to create many EventSignups. */ data: EventSignupCreateManyInput | EventSignupCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: EventSignupIncludeCreateManyAndReturn | null } /** * EventSignup update */ export type EventSignupUpdateArgs = { /** * Select specific fields to fetch from the EventSignup */ select?: EventSignupSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventSignupInclude | null /** * The data needed to update a EventSignup. */ data: XOR /** * Choose, which EventSignup to update. */ where: EventSignupWhereUniqueInput } /** * EventSignup updateMany */ export type EventSignupUpdateManyArgs = { /** * The data used to update EventSignups. */ data: XOR /** * Filter which EventSignups to update */ where?: EventSignupWhereInput } /** * EventSignup upsert */ export type EventSignupUpsertArgs = { /** * Select specific fields to fetch from the EventSignup */ select?: EventSignupSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventSignupInclude | null /** * The filter to search for the EventSignup to update in case it exists. */ where: EventSignupWhereUniqueInput /** * In case the EventSignup found by the `where` argument doesn't exist, create a new EventSignup with this data. */ create: XOR /** * In case the EventSignup was found with the provided `where` argument, update it with this data. */ update: XOR } /** * EventSignup delete */ export type EventSignupDeleteArgs = { /** * Select specific fields to fetch from the EventSignup */ select?: EventSignupSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventSignupInclude | null /** * Filter which EventSignup to delete. */ where: EventSignupWhereUniqueInput } /** * EventSignup deleteMany */ export type EventSignupDeleteManyArgs = { /** * Filter which EventSignups to delete */ where?: EventSignupWhereInput } /** * EventSignup without action */ export type EventSignupDefaultArgs = { /** * Select specific fields to fetch from the EventSignup */ select?: EventSignupSelect | null /** * Choose, which related nodes to fetch as well */ include?: EventSignupInclude | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const GuildSettingsScalarFieldEnum: { guildId: 'guildId', welcomeChannelId: 'welcomeChannelId', logChannelId: 'logChannelId', automodEnabled: 'automodEnabled', automodConfig: 'automodConfig', levelingEnabled: 'levelingEnabled', ticketsEnabled: 'ticketsEnabled', musicEnabled: 'musicEnabled', statuspageEnabled: 'statuspageEnabled', statuspageConfig: 'statuspageConfig', dynamicVoiceEnabled: 'dynamicVoiceEnabled', dynamicVoiceConfig: 'dynamicVoiceConfig', supportLoginConfig: 'supportLoginConfig', birthdayEnabled: 'birthdayEnabled', birthdayConfig: 'birthdayConfig', reactionRolesEnabled: 'reactionRolesEnabled', reactionRolesConfig: 'reactionRolesConfig', eventsEnabled: 'eventsEnabled', supportRoleId: 'supportRoleId', updatedAt: 'updatedAt', createdAt: 'createdAt' }; export type GuildSettingsScalarFieldEnum = (typeof GuildSettingsScalarFieldEnum)[keyof typeof GuildSettingsScalarFieldEnum] export const TicketScalarFieldEnum: { id: 'id', ticketNumber: 'ticketNumber', userId: 'userId', channelId: 'channelId', guildId: 'guildId', topic: 'topic', priority: 'priority', status: 'status', claimedBy: 'claimedBy', transcript: 'transcript', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type TicketScalarFieldEnum = (typeof TicketScalarFieldEnum)[keyof typeof TicketScalarFieldEnum] export const LevelScalarFieldEnum: { id: 'id', userId: 'userId', guildId: 'guildId', xp: 'xp', level: 'level', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type LevelScalarFieldEnum = (typeof LevelScalarFieldEnum)[keyof typeof LevelScalarFieldEnum] export const TicketSupportSessionScalarFieldEnum: { id: 'id', guildId: 'guildId', userId: 'userId', roleId: 'roleId', startedAt: 'startedAt', endedAt: 'endedAt', durationSeconds: 'durationSeconds' }; export type TicketSupportSessionScalarFieldEnum = (typeof TicketSupportSessionScalarFieldEnum)[keyof typeof TicketSupportSessionScalarFieldEnum] export const BirthdayScalarFieldEnum: { id: 'id', userId: 'userId', guildId: 'guildId', birthDate: 'birthDate', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type BirthdayScalarFieldEnum = (typeof BirthdayScalarFieldEnum)[keyof typeof BirthdayScalarFieldEnum] export const ReactionRoleSetScalarFieldEnum: { id: 'id', guildId: 'guildId', channelId: 'channelId', messageId: 'messageId', title: 'title', description: 'description', entries: 'entries', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type ReactionRoleSetScalarFieldEnum = (typeof ReactionRoleSetScalarFieldEnum)[keyof typeof ReactionRoleSetScalarFieldEnum] export const EventScalarFieldEnum: { id: 'id', guildId: 'guildId', title: 'title', description: 'description', channelId: 'channelId', startTime: 'startTime', repeatType: 'repeatType', repeatConfig: 'repeatConfig', reminderOffsetMinutes: 'reminderOffsetMinutes', roleId: 'roleId', isActive: 'isActive', lastReminderAt: 'lastReminderAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type EventScalarFieldEnum = (typeof EventScalarFieldEnum)[keyof typeof EventScalarFieldEnum] export const EventSignupScalarFieldEnum: { id: 'id', eventId: 'eventId', guildId: 'guildId', userId: 'userId', createdAt: 'createdAt', canceledAt: 'canceledAt' }; export type EventSignupScalarFieldEnum = (typeof EventSignupScalarFieldEnum)[keyof typeof EventSignupScalarFieldEnum] export const SortOrder: { asc: 'asc', desc: 'desc' }; export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export const NullableJsonNullValueInput: { DbNull: typeof DbNull, JsonNull: typeof JsonNull }; export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput] export const JsonNullValueInput: { JsonNull: typeof JsonNull }; export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] export const QueryMode: { default: 'default', insensitive: 'insensitive' }; export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] export const JsonNullValueFilter: { DbNull: typeof DbNull, JsonNull: typeof JsonNull, AnyNull: typeof AnyNull }; export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] export const NullsOrder: { first: 'first', last: 'last' }; export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] /** * Field references */ /** * Reference to a field of type 'String' */ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> /** * Reference to a field of type 'String[]' */ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> /** * Reference to a field of type 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * Reference to a field of type 'Json' */ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'> /** * Reference to a field of type 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> /** * Reference to a field of type 'DateTime[]' */ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> /** * Reference to a field of type 'Int' */ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> /** * Reference to a field of type 'Int[]' */ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> /** * Reference to a field of type 'Float' */ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> /** * Reference to a field of type 'Float[]' */ export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> /** * Deep Input Types */ export type GuildSettingsWhereInput = { AND?: GuildSettingsWhereInput | GuildSettingsWhereInput[] OR?: GuildSettingsWhereInput[] NOT?: GuildSettingsWhereInput | GuildSettingsWhereInput[] guildId?: StringFilter<"GuildSettings"> | string welcomeChannelId?: StringNullableFilter<"GuildSettings"> | string | null logChannelId?: StringNullableFilter<"GuildSettings"> | string | null automodEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null automodConfig?: JsonNullableFilter<"GuildSettings"> levelingEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null ticketsEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null musicEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null statuspageEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null statuspageConfig?: JsonNullableFilter<"GuildSettings"> dynamicVoiceEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null dynamicVoiceConfig?: JsonNullableFilter<"GuildSettings"> supportLoginConfig?: JsonNullableFilter<"GuildSettings"> birthdayEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null birthdayConfig?: JsonNullableFilter<"GuildSettings"> reactionRolesEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null reactionRolesConfig?: JsonNullableFilter<"GuildSettings"> eventsEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null supportRoleId?: StringNullableFilter<"GuildSettings"> | string | null updatedAt?: DateTimeFilter<"GuildSettings"> | Date | string createdAt?: DateTimeFilter<"GuildSettings"> | Date | string } export type GuildSettingsOrderByWithRelationInput = { guildId?: SortOrder welcomeChannelId?: SortOrderInput | SortOrder logChannelId?: SortOrderInput | SortOrder automodEnabled?: SortOrderInput | SortOrder automodConfig?: SortOrderInput | SortOrder levelingEnabled?: SortOrderInput | SortOrder ticketsEnabled?: SortOrderInput | SortOrder musicEnabled?: SortOrderInput | SortOrder statuspageEnabled?: SortOrderInput | SortOrder statuspageConfig?: SortOrderInput | SortOrder dynamicVoiceEnabled?: SortOrderInput | SortOrder dynamicVoiceConfig?: SortOrderInput | SortOrder supportLoginConfig?: SortOrderInput | SortOrder birthdayEnabled?: SortOrderInput | SortOrder birthdayConfig?: SortOrderInput | SortOrder reactionRolesEnabled?: SortOrderInput | SortOrder reactionRolesConfig?: SortOrderInput | SortOrder eventsEnabled?: SortOrderInput | SortOrder supportRoleId?: SortOrderInput | SortOrder updatedAt?: SortOrder createdAt?: SortOrder } export type GuildSettingsWhereUniqueInput = Prisma.AtLeast<{ guildId?: string AND?: GuildSettingsWhereInput | GuildSettingsWhereInput[] OR?: GuildSettingsWhereInput[] NOT?: GuildSettingsWhereInput | GuildSettingsWhereInput[] welcomeChannelId?: StringNullableFilter<"GuildSettings"> | string | null logChannelId?: StringNullableFilter<"GuildSettings"> | string | null automodEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null automodConfig?: JsonNullableFilter<"GuildSettings"> levelingEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null ticketsEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null musicEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null statuspageEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null statuspageConfig?: JsonNullableFilter<"GuildSettings"> dynamicVoiceEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null dynamicVoiceConfig?: JsonNullableFilter<"GuildSettings"> supportLoginConfig?: JsonNullableFilter<"GuildSettings"> birthdayEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null birthdayConfig?: JsonNullableFilter<"GuildSettings"> reactionRolesEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null reactionRolesConfig?: JsonNullableFilter<"GuildSettings"> eventsEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null supportRoleId?: StringNullableFilter<"GuildSettings"> | string | null updatedAt?: DateTimeFilter<"GuildSettings"> | Date | string createdAt?: DateTimeFilter<"GuildSettings"> | Date | string }, "guildId"> export type GuildSettingsOrderByWithAggregationInput = { guildId?: SortOrder welcomeChannelId?: SortOrderInput | SortOrder logChannelId?: SortOrderInput | SortOrder automodEnabled?: SortOrderInput | SortOrder automodConfig?: SortOrderInput | SortOrder levelingEnabled?: SortOrderInput | SortOrder ticketsEnabled?: SortOrderInput | SortOrder musicEnabled?: SortOrderInput | SortOrder statuspageEnabled?: SortOrderInput | SortOrder statuspageConfig?: SortOrderInput | SortOrder dynamicVoiceEnabled?: SortOrderInput | SortOrder dynamicVoiceConfig?: SortOrderInput | SortOrder supportLoginConfig?: SortOrderInput | SortOrder birthdayEnabled?: SortOrderInput | SortOrder birthdayConfig?: SortOrderInput | SortOrder reactionRolesEnabled?: SortOrderInput | SortOrder reactionRolesConfig?: SortOrderInput | SortOrder eventsEnabled?: SortOrderInput | SortOrder supportRoleId?: SortOrderInput | SortOrder updatedAt?: SortOrder createdAt?: SortOrder _count?: GuildSettingsCountOrderByAggregateInput _max?: GuildSettingsMaxOrderByAggregateInput _min?: GuildSettingsMinOrderByAggregateInput } export type GuildSettingsScalarWhereWithAggregatesInput = { AND?: GuildSettingsScalarWhereWithAggregatesInput | GuildSettingsScalarWhereWithAggregatesInput[] OR?: GuildSettingsScalarWhereWithAggregatesInput[] NOT?: GuildSettingsScalarWhereWithAggregatesInput | GuildSettingsScalarWhereWithAggregatesInput[] guildId?: StringWithAggregatesFilter<"GuildSettings"> | string welcomeChannelId?: StringNullableWithAggregatesFilter<"GuildSettings"> | string | null logChannelId?: StringNullableWithAggregatesFilter<"GuildSettings"> | string | null automodEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null automodConfig?: JsonNullableWithAggregatesFilter<"GuildSettings"> levelingEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null ticketsEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null musicEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null statuspageEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null statuspageConfig?: JsonNullableWithAggregatesFilter<"GuildSettings"> dynamicVoiceEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null dynamicVoiceConfig?: JsonNullableWithAggregatesFilter<"GuildSettings"> supportLoginConfig?: JsonNullableWithAggregatesFilter<"GuildSettings"> birthdayEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null birthdayConfig?: JsonNullableWithAggregatesFilter<"GuildSettings"> reactionRolesEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null reactionRolesConfig?: JsonNullableWithAggregatesFilter<"GuildSettings"> eventsEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null supportRoleId?: StringNullableWithAggregatesFilter<"GuildSettings"> | string | null updatedAt?: DateTimeWithAggregatesFilter<"GuildSettings"> | Date | string createdAt?: DateTimeWithAggregatesFilter<"GuildSettings"> | Date | string } export type TicketWhereInput = { AND?: TicketWhereInput | TicketWhereInput[] OR?: TicketWhereInput[] NOT?: TicketWhereInput | TicketWhereInput[] id?: StringFilter<"Ticket"> | string ticketNumber?: IntFilter<"Ticket"> | number userId?: StringFilter<"Ticket"> | string channelId?: StringFilter<"Ticket"> | string guildId?: StringFilter<"Ticket"> | string topic?: StringNullableFilter<"Ticket"> | string | null priority?: StringFilter<"Ticket"> | string status?: StringFilter<"Ticket"> | string claimedBy?: StringNullableFilter<"Ticket"> | string | null transcript?: StringNullableFilter<"Ticket"> | string | null createdAt?: DateTimeFilter<"Ticket"> | Date | string updatedAt?: DateTimeFilter<"Ticket"> | Date | string } export type TicketOrderByWithRelationInput = { id?: SortOrder ticketNumber?: SortOrder userId?: SortOrder channelId?: SortOrder guildId?: SortOrder topic?: SortOrderInput | SortOrder priority?: SortOrder status?: SortOrder claimedBy?: SortOrderInput | SortOrder transcript?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type TicketWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: TicketWhereInput | TicketWhereInput[] OR?: TicketWhereInput[] NOT?: TicketWhereInput | TicketWhereInput[] ticketNumber?: IntFilter<"Ticket"> | number userId?: StringFilter<"Ticket"> | string channelId?: StringFilter<"Ticket"> | string guildId?: StringFilter<"Ticket"> | string topic?: StringNullableFilter<"Ticket"> | string | null priority?: StringFilter<"Ticket"> | string status?: StringFilter<"Ticket"> | string claimedBy?: StringNullableFilter<"Ticket"> | string | null transcript?: StringNullableFilter<"Ticket"> | string | null createdAt?: DateTimeFilter<"Ticket"> | Date | string updatedAt?: DateTimeFilter<"Ticket"> | Date | string }, "id"> export type TicketOrderByWithAggregationInput = { id?: SortOrder ticketNumber?: SortOrder userId?: SortOrder channelId?: SortOrder guildId?: SortOrder topic?: SortOrderInput | SortOrder priority?: SortOrder status?: SortOrder claimedBy?: SortOrderInput | SortOrder transcript?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: TicketCountOrderByAggregateInput _avg?: TicketAvgOrderByAggregateInput _max?: TicketMaxOrderByAggregateInput _min?: TicketMinOrderByAggregateInput _sum?: TicketSumOrderByAggregateInput } export type TicketScalarWhereWithAggregatesInput = { AND?: TicketScalarWhereWithAggregatesInput | TicketScalarWhereWithAggregatesInput[] OR?: TicketScalarWhereWithAggregatesInput[] NOT?: TicketScalarWhereWithAggregatesInput | TicketScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Ticket"> | string ticketNumber?: IntWithAggregatesFilter<"Ticket"> | number userId?: StringWithAggregatesFilter<"Ticket"> | string channelId?: StringWithAggregatesFilter<"Ticket"> | string guildId?: StringWithAggregatesFilter<"Ticket"> | string topic?: StringNullableWithAggregatesFilter<"Ticket"> | string | null priority?: StringWithAggregatesFilter<"Ticket"> | string status?: StringWithAggregatesFilter<"Ticket"> | string claimedBy?: StringNullableWithAggregatesFilter<"Ticket"> | string | null transcript?: StringNullableWithAggregatesFilter<"Ticket"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Ticket"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Ticket"> | Date | string } export type LevelWhereInput = { AND?: LevelWhereInput | LevelWhereInput[] OR?: LevelWhereInput[] NOT?: LevelWhereInput | LevelWhereInput[] id?: StringFilter<"Level"> | string userId?: StringFilter<"Level"> | string guildId?: StringFilter<"Level"> | string xp?: IntFilter<"Level"> | number level?: IntFilter<"Level"> | number createdAt?: DateTimeFilter<"Level"> | Date | string updatedAt?: DateTimeFilter<"Level"> | Date | string } export type LevelOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder guildId?: SortOrder xp?: SortOrder level?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LevelWhereUniqueInput = Prisma.AtLeast<{ id?: string userId_guildId?: LevelUserId_guildIdCompoundUniqueInput AND?: LevelWhereInput | LevelWhereInput[] OR?: LevelWhereInput[] NOT?: LevelWhereInput | LevelWhereInput[] userId?: StringFilter<"Level"> | string guildId?: StringFilter<"Level"> | string xp?: IntFilter<"Level"> | number level?: IntFilter<"Level"> | number createdAt?: DateTimeFilter<"Level"> | Date | string updatedAt?: DateTimeFilter<"Level"> | Date | string }, "id" | "userId_guildId"> export type LevelOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder guildId?: SortOrder xp?: SortOrder level?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: LevelCountOrderByAggregateInput _avg?: LevelAvgOrderByAggregateInput _max?: LevelMaxOrderByAggregateInput _min?: LevelMinOrderByAggregateInput _sum?: LevelSumOrderByAggregateInput } export type LevelScalarWhereWithAggregatesInput = { AND?: LevelScalarWhereWithAggregatesInput | LevelScalarWhereWithAggregatesInput[] OR?: LevelScalarWhereWithAggregatesInput[] NOT?: LevelScalarWhereWithAggregatesInput | LevelScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Level"> | string userId?: StringWithAggregatesFilter<"Level"> | string guildId?: StringWithAggregatesFilter<"Level"> | string xp?: IntWithAggregatesFilter<"Level"> | number level?: IntWithAggregatesFilter<"Level"> | number createdAt?: DateTimeWithAggregatesFilter<"Level"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Level"> | Date | string } export type TicketSupportSessionWhereInput = { AND?: TicketSupportSessionWhereInput | TicketSupportSessionWhereInput[] OR?: TicketSupportSessionWhereInput[] NOT?: TicketSupportSessionWhereInput | TicketSupportSessionWhereInput[] id?: StringFilter<"TicketSupportSession"> | string guildId?: StringFilter<"TicketSupportSession"> | string userId?: StringFilter<"TicketSupportSession"> | string roleId?: StringFilter<"TicketSupportSession"> | string startedAt?: DateTimeFilter<"TicketSupportSession"> | Date | string endedAt?: DateTimeNullableFilter<"TicketSupportSession"> | Date | string | null durationSeconds?: IntNullableFilter<"TicketSupportSession"> | number | null } export type TicketSupportSessionOrderByWithRelationInput = { id?: SortOrder guildId?: SortOrder userId?: SortOrder roleId?: SortOrder startedAt?: SortOrder endedAt?: SortOrderInput | SortOrder durationSeconds?: SortOrderInput | SortOrder } export type TicketSupportSessionWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: TicketSupportSessionWhereInput | TicketSupportSessionWhereInput[] OR?: TicketSupportSessionWhereInput[] NOT?: TicketSupportSessionWhereInput | TicketSupportSessionWhereInput[] guildId?: StringFilter<"TicketSupportSession"> | string userId?: StringFilter<"TicketSupportSession"> | string roleId?: StringFilter<"TicketSupportSession"> | string startedAt?: DateTimeFilter<"TicketSupportSession"> | Date | string endedAt?: DateTimeNullableFilter<"TicketSupportSession"> | Date | string | null durationSeconds?: IntNullableFilter<"TicketSupportSession"> | number | null }, "id"> export type TicketSupportSessionOrderByWithAggregationInput = { id?: SortOrder guildId?: SortOrder userId?: SortOrder roleId?: SortOrder startedAt?: SortOrder endedAt?: SortOrderInput | SortOrder durationSeconds?: SortOrderInput | SortOrder _count?: TicketSupportSessionCountOrderByAggregateInput _avg?: TicketSupportSessionAvgOrderByAggregateInput _max?: TicketSupportSessionMaxOrderByAggregateInput _min?: TicketSupportSessionMinOrderByAggregateInput _sum?: TicketSupportSessionSumOrderByAggregateInput } export type TicketSupportSessionScalarWhereWithAggregatesInput = { AND?: TicketSupportSessionScalarWhereWithAggregatesInput | TicketSupportSessionScalarWhereWithAggregatesInput[] OR?: TicketSupportSessionScalarWhereWithAggregatesInput[] NOT?: TicketSupportSessionScalarWhereWithAggregatesInput | TicketSupportSessionScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"TicketSupportSession"> | string guildId?: StringWithAggregatesFilter<"TicketSupportSession"> | string userId?: StringWithAggregatesFilter<"TicketSupportSession"> | string roleId?: StringWithAggregatesFilter<"TicketSupportSession"> | string startedAt?: DateTimeWithAggregatesFilter<"TicketSupportSession"> | Date | string endedAt?: DateTimeNullableWithAggregatesFilter<"TicketSupportSession"> | Date | string | null durationSeconds?: IntNullableWithAggregatesFilter<"TicketSupportSession"> | number | null } export type BirthdayWhereInput = { AND?: BirthdayWhereInput | BirthdayWhereInput[] OR?: BirthdayWhereInput[] NOT?: BirthdayWhereInput | BirthdayWhereInput[] id?: StringFilter<"Birthday"> | string userId?: StringFilter<"Birthday"> | string guildId?: StringFilter<"Birthday"> | string birthDate?: StringFilter<"Birthday"> | string createdAt?: DateTimeFilter<"Birthday"> | Date | string updatedAt?: DateTimeFilter<"Birthday"> | Date | string } export type BirthdayOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder guildId?: SortOrder birthDate?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type BirthdayWhereUniqueInput = Prisma.AtLeast<{ id?: string birthday_user_guild?: BirthdayBirthday_user_guildCompoundUniqueInput AND?: BirthdayWhereInput | BirthdayWhereInput[] OR?: BirthdayWhereInput[] NOT?: BirthdayWhereInput | BirthdayWhereInput[] userId?: StringFilter<"Birthday"> | string guildId?: StringFilter<"Birthday"> | string birthDate?: StringFilter<"Birthday"> | string createdAt?: DateTimeFilter<"Birthday"> | Date | string updatedAt?: DateTimeFilter<"Birthday"> | Date | string }, "id" | "birthday_user_guild"> export type BirthdayOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder guildId?: SortOrder birthDate?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: BirthdayCountOrderByAggregateInput _max?: BirthdayMaxOrderByAggregateInput _min?: BirthdayMinOrderByAggregateInput } export type BirthdayScalarWhereWithAggregatesInput = { AND?: BirthdayScalarWhereWithAggregatesInput | BirthdayScalarWhereWithAggregatesInput[] OR?: BirthdayScalarWhereWithAggregatesInput[] NOT?: BirthdayScalarWhereWithAggregatesInput | BirthdayScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Birthday"> | string userId?: StringWithAggregatesFilter<"Birthday"> | string guildId?: StringWithAggregatesFilter<"Birthday"> | string birthDate?: StringWithAggregatesFilter<"Birthday"> | string createdAt?: DateTimeWithAggregatesFilter<"Birthday"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Birthday"> | Date | string } export type ReactionRoleSetWhereInput = { AND?: ReactionRoleSetWhereInput | ReactionRoleSetWhereInput[] OR?: ReactionRoleSetWhereInput[] NOT?: ReactionRoleSetWhereInput | ReactionRoleSetWhereInput[] id?: StringFilter<"ReactionRoleSet"> | string guildId?: StringFilter<"ReactionRoleSet"> | string channelId?: StringFilter<"ReactionRoleSet"> | string messageId?: StringNullableFilter<"ReactionRoleSet"> | string | null title?: StringNullableFilter<"ReactionRoleSet"> | string | null description?: StringNullableFilter<"ReactionRoleSet"> | string | null entries?: JsonFilter<"ReactionRoleSet"> createdAt?: DateTimeFilter<"ReactionRoleSet"> | Date | string updatedAt?: DateTimeFilter<"ReactionRoleSet"> | Date | string } export type ReactionRoleSetOrderByWithRelationInput = { id?: SortOrder guildId?: SortOrder channelId?: SortOrder messageId?: SortOrderInput | SortOrder title?: SortOrderInput | SortOrder description?: SortOrderInput | SortOrder entries?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ReactionRoleSetWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: ReactionRoleSetWhereInput | ReactionRoleSetWhereInput[] OR?: ReactionRoleSetWhereInput[] NOT?: ReactionRoleSetWhereInput | ReactionRoleSetWhereInput[] guildId?: StringFilter<"ReactionRoleSet"> | string channelId?: StringFilter<"ReactionRoleSet"> | string messageId?: StringNullableFilter<"ReactionRoleSet"> | string | null title?: StringNullableFilter<"ReactionRoleSet"> | string | null description?: StringNullableFilter<"ReactionRoleSet"> | string | null entries?: JsonFilter<"ReactionRoleSet"> createdAt?: DateTimeFilter<"ReactionRoleSet"> | Date | string updatedAt?: DateTimeFilter<"ReactionRoleSet"> | Date | string }, "id"> export type ReactionRoleSetOrderByWithAggregationInput = { id?: SortOrder guildId?: SortOrder channelId?: SortOrder messageId?: SortOrderInput | SortOrder title?: SortOrderInput | SortOrder description?: SortOrderInput | SortOrder entries?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: ReactionRoleSetCountOrderByAggregateInput _max?: ReactionRoleSetMaxOrderByAggregateInput _min?: ReactionRoleSetMinOrderByAggregateInput } export type ReactionRoleSetScalarWhereWithAggregatesInput = { AND?: ReactionRoleSetScalarWhereWithAggregatesInput | ReactionRoleSetScalarWhereWithAggregatesInput[] OR?: ReactionRoleSetScalarWhereWithAggregatesInput[] NOT?: ReactionRoleSetScalarWhereWithAggregatesInput | ReactionRoleSetScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"ReactionRoleSet"> | string guildId?: StringWithAggregatesFilter<"ReactionRoleSet"> | string channelId?: StringWithAggregatesFilter<"ReactionRoleSet"> | string messageId?: StringNullableWithAggregatesFilter<"ReactionRoleSet"> | string | null title?: StringNullableWithAggregatesFilter<"ReactionRoleSet"> | string | null description?: StringNullableWithAggregatesFilter<"ReactionRoleSet"> | string | null entries?: JsonWithAggregatesFilter<"ReactionRoleSet"> createdAt?: DateTimeWithAggregatesFilter<"ReactionRoleSet"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"ReactionRoleSet"> | Date | string } export type EventWhereInput = { AND?: EventWhereInput | EventWhereInput[] OR?: EventWhereInput[] NOT?: EventWhereInput | EventWhereInput[] id?: StringFilter<"Event"> | string guildId?: StringFilter<"Event"> | string title?: StringFilter<"Event"> | string description?: StringNullableFilter<"Event"> | string | null channelId?: StringFilter<"Event"> | string startTime?: DateTimeFilter<"Event"> | Date | string repeatType?: StringFilter<"Event"> | string repeatConfig?: JsonNullableFilter<"Event"> reminderOffsetMinutes?: IntFilter<"Event"> | number roleId?: StringNullableFilter<"Event"> | string | null isActive?: BoolFilter<"Event"> | boolean lastReminderAt?: DateTimeNullableFilter<"Event"> | Date | string | null createdAt?: DateTimeFilter<"Event"> | Date | string updatedAt?: DateTimeFilter<"Event"> | Date | string signups?: EventSignupListRelationFilter } export type EventOrderByWithRelationInput = { id?: SortOrder guildId?: SortOrder title?: SortOrder description?: SortOrderInput | SortOrder channelId?: SortOrder startTime?: SortOrder repeatType?: SortOrder repeatConfig?: SortOrderInput | SortOrder reminderOffsetMinutes?: SortOrder roleId?: SortOrderInput | SortOrder isActive?: SortOrder lastReminderAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder signups?: EventSignupOrderByRelationAggregateInput } export type EventWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: EventWhereInput | EventWhereInput[] OR?: EventWhereInput[] NOT?: EventWhereInput | EventWhereInput[] guildId?: StringFilter<"Event"> | string title?: StringFilter<"Event"> | string description?: StringNullableFilter<"Event"> | string | null channelId?: StringFilter<"Event"> | string startTime?: DateTimeFilter<"Event"> | Date | string repeatType?: StringFilter<"Event"> | string repeatConfig?: JsonNullableFilter<"Event"> reminderOffsetMinutes?: IntFilter<"Event"> | number roleId?: StringNullableFilter<"Event"> | string | null isActive?: BoolFilter<"Event"> | boolean lastReminderAt?: DateTimeNullableFilter<"Event"> | Date | string | null createdAt?: DateTimeFilter<"Event"> | Date | string updatedAt?: DateTimeFilter<"Event"> | Date | string signups?: EventSignupListRelationFilter }, "id"> export type EventOrderByWithAggregationInput = { id?: SortOrder guildId?: SortOrder title?: SortOrder description?: SortOrderInput | SortOrder channelId?: SortOrder startTime?: SortOrder repeatType?: SortOrder repeatConfig?: SortOrderInput | SortOrder reminderOffsetMinutes?: SortOrder roleId?: SortOrderInput | SortOrder isActive?: SortOrder lastReminderAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: EventCountOrderByAggregateInput _avg?: EventAvgOrderByAggregateInput _max?: EventMaxOrderByAggregateInput _min?: EventMinOrderByAggregateInput _sum?: EventSumOrderByAggregateInput } export type EventScalarWhereWithAggregatesInput = { AND?: EventScalarWhereWithAggregatesInput | EventScalarWhereWithAggregatesInput[] OR?: EventScalarWhereWithAggregatesInput[] NOT?: EventScalarWhereWithAggregatesInput | EventScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Event"> | string guildId?: StringWithAggregatesFilter<"Event"> | string title?: StringWithAggregatesFilter<"Event"> | string description?: StringNullableWithAggregatesFilter<"Event"> | string | null channelId?: StringWithAggregatesFilter<"Event"> | string startTime?: DateTimeWithAggregatesFilter<"Event"> | Date | string repeatType?: StringWithAggregatesFilter<"Event"> | string repeatConfig?: JsonNullableWithAggregatesFilter<"Event"> reminderOffsetMinutes?: IntWithAggregatesFilter<"Event"> | number roleId?: StringNullableWithAggregatesFilter<"Event"> | string | null isActive?: BoolWithAggregatesFilter<"Event"> | boolean lastReminderAt?: DateTimeNullableWithAggregatesFilter<"Event"> | Date | string | null createdAt?: DateTimeWithAggregatesFilter<"Event"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Event"> | Date | string } export type EventSignupWhereInput = { AND?: EventSignupWhereInput | EventSignupWhereInput[] OR?: EventSignupWhereInput[] NOT?: EventSignupWhereInput | EventSignupWhereInput[] id?: StringFilter<"EventSignup"> | string eventId?: StringFilter<"EventSignup"> | string guildId?: StringFilter<"EventSignup"> | string userId?: StringFilter<"EventSignup"> | string createdAt?: DateTimeFilter<"EventSignup"> | Date | string canceledAt?: DateTimeNullableFilter<"EventSignup"> | Date | string | null event?: XOR } export type EventSignupOrderByWithRelationInput = { id?: SortOrder eventId?: SortOrder guildId?: SortOrder userId?: SortOrder createdAt?: SortOrder canceledAt?: SortOrderInput | SortOrder event?: EventOrderByWithRelationInput } export type EventSignupWhereUniqueInput = Prisma.AtLeast<{ id?: string eventId_userId?: EventSignupEventIdUserIdCompoundUniqueInput AND?: EventSignupWhereInput | EventSignupWhereInput[] OR?: EventSignupWhereInput[] NOT?: EventSignupWhereInput | EventSignupWhereInput[] eventId?: StringFilter<"EventSignup"> | string guildId?: StringFilter<"EventSignup"> | string userId?: StringFilter<"EventSignup"> | string createdAt?: DateTimeFilter<"EventSignup"> | Date | string canceledAt?: DateTimeNullableFilter<"EventSignup"> | Date | string | null event?: XOR }, "id" | "eventId_userId"> export type EventSignupOrderByWithAggregationInput = { id?: SortOrder eventId?: SortOrder guildId?: SortOrder userId?: SortOrder createdAt?: SortOrder canceledAt?: SortOrderInput | SortOrder _count?: EventSignupCountOrderByAggregateInput _max?: EventSignupMaxOrderByAggregateInput _min?: EventSignupMinOrderByAggregateInput } export type EventSignupScalarWhereWithAggregatesInput = { AND?: EventSignupScalarWhereWithAggregatesInput | EventSignupScalarWhereWithAggregatesInput[] OR?: EventSignupScalarWhereWithAggregatesInput[] NOT?: EventSignupScalarWhereWithAggregatesInput | EventSignupScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"EventSignup"> | string eventId?: StringWithAggregatesFilter<"EventSignup"> | string guildId?: StringWithAggregatesFilter<"EventSignup"> | string userId?: StringWithAggregatesFilter<"EventSignup"> | string createdAt?: DateTimeWithAggregatesFilter<"EventSignup"> | Date | string canceledAt?: DateTimeNullableWithAggregatesFilter<"EventSignup"> | Date | string | null } export type GuildSettingsCreateInput = { guildId: string welcomeChannelId?: string | null logChannelId?: string | null automodEnabled?: boolean | null automodConfig?: NullableJsonNullValueInput | InputJsonValue levelingEnabled?: boolean | null ticketsEnabled?: boolean | null musicEnabled?: boolean | null statuspageEnabled?: boolean | null statuspageConfig?: NullableJsonNullValueInput | InputJsonValue dynamicVoiceEnabled?: boolean | null dynamicVoiceConfig?: NullableJsonNullValueInput | InputJsonValue supportLoginConfig?: NullableJsonNullValueInput | InputJsonValue birthdayEnabled?: boolean | null birthdayConfig?: NullableJsonNullValueInput | InputJsonValue reactionRolesEnabled?: boolean | null reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue eventsEnabled?: boolean | null supportRoleId?: string | null updatedAt?: Date | string createdAt?: Date | string } export type GuildSettingsUncheckedCreateInput = { guildId: string welcomeChannelId?: string | null logChannelId?: string | null automodEnabled?: boolean | null automodConfig?: NullableJsonNullValueInput | InputJsonValue levelingEnabled?: boolean | null ticketsEnabled?: boolean | null musicEnabled?: boolean | null statuspageEnabled?: boolean | null statuspageConfig?: NullableJsonNullValueInput | InputJsonValue dynamicVoiceEnabled?: boolean | null dynamicVoiceConfig?: NullableJsonNullValueInput | InputJsonValue supportLoginConfig?: NullableJsonNullValueInput | InputJsonValue birthdayEnabled?: boolean | null birthdayConfig?: NullableJsonNullValueInput | InputJsonValue reactionRolesEnabled?: boolean | null reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue eventsEnabled?: boolean | null supportRoleId?: string | null updatedAt?: Date | string createdAt?: Date | string } export type GuildSettingsUpdateInput = { guildId?: StringFieldUpdateOperationsInput | string welcomeChannelId?: NullableStringFieldUpdateOperationsInput | string | null logChannelId?: NullableStringFieldUpdateOperationsInput | string | null automodEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null automodConfig?: NullableJsonNullValueInput | InputJsonValue levelingEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null ticketsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null musicEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null statuspageEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null statuspageConfig?: NullableJsonNullValueInput | InputJsonValue dynamicVoiceEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null dynamicVoiceConfig?: NullableJsonNullValueInput | InputJsonValue supportLoginConfig?: NullableJsonNullValueInput | InputJsonValue birthdayEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null birthdayConfig?: NullableJsonNullValueInput | InputJsonValue reactionRolesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue eventsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null supportRoleId?: NullableStringFieldUpdateOperationsInput | string | null updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GuildSettingsUncheckedUpdateInput = { guildId?: StringFieldUpdateOperationsInput | string welcomeChannelId?: NullableStringFieldUpdateOperationsInput | string | null logChannelId?: NullableStringFieldUpdateOperationsInput | string | null automodEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null automodConfig?: NullableJsonNullValueInput | InputJsonValue levelingEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null ticketsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null musicEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null statuspageEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null statuspageConfig?: NullableJsonNullValueInput | InputJsonValue dynamicVoiceEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null dynamicVoiceConfig?: NullableJsonNullValueInput | InputJsonValue supportLoginConfig?: NullableJsonNullValueInput | InputJsonValue birthdayEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null birthdayConfig?: NullableJsonNullValueInput | InputJsonValue reactionRolesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue eventsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null supportRoleId?: NullableStringFieldUpdateOperationsInput | string | null updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GuildSettingsCreateManyInput = { guildId: string welcomeChannelId?: string | null logChannelId?: string | null automodEnabled?: boolean | null automodConfig?: NullableJsonNullValueInput | InputJsonValue levelingEnabled?: boolean | null ticketsEnabled?: boolean | null musicEnabled?: boolean | null statuspageEnabled?: boolean | null statuspageConfig?: NullableJsonNullValueInput | InputJsonValue dynamicVoiceEnabled?: boolean | null dynamicVoiceConfig?: NullableJsonNullValueInput | InputJsonValue supportLoginConfig?: NullableJsonNullValueInput | InputJsonValue birthdayEnabled?: boolean | null birthdayConfig?: NullableJsonNullValueInput | InputJsonValue reactionRolesEnabled?: boolean | null reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue eventsEnabled?: boolean | null supportRoleId?: string | null updatedAt?: Date | string createdAt?: Date | string } export type GuildSettingsUpdateManyMutationInput = { guildId?: StringFieldUpdateOperationsInput | string welcomeChannelId?: NullableStringFieldUpdateOperationsInput | string | null logChannelId?: NullableStringFieldUpdateOperationsInput | string | null automodEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null automodConfig?: NullableJsonNullValueInput | InputJsonValue levelingEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null ticketsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null musicEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null statuspageEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null statuspageConfig?: NullableJsonNullValueInput | InputJsonValue dynamicVoiceEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null dynamicVoiceConfig?: NullableJsonNullValueInput | InputJsonValue supportLoginConfig?: NullableJsonNullValueInput | InputJsonValue birthdayEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null birthdayConfig?: NullableJsonNullValueInput | InputJsonValue reactionRolesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue eventsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null supportRoleId?: NullableStringFieldUpdateOperationsInput | string | null updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GuildSettingsUncheckedUpdateManyInput = { guildId?: StringFieldUpdateOperationsInput | string welcomeChannelId?: NullableStringFieldUpdateOperationsInput | string | null logChannelId?: NullableStringFieldUpdateOperationsInput | string | null automodEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null automodConfig?: NullableJsonNullValueInput | InputJsonValue levelingEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null ticketsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null musicEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null statuspageEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null statuspageConfig?: NullableJsonNullValueInput | InputJsonValue dynamicVoiceEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null dynamicVoiceConfig?: NullableJsonNullValueInput | InputJsonValue supportLoginConfig?: NullableJsonNullValueInput | InputJsonValue birthdayEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null birthdayConfig?: NullableJsonNullValueInput | InputJsonValue reactionRolesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue eventsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null supportRoleId?: NullableStringFieldUpdateOperationsInput | string | null updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type TicketCreateInput = { id?: string ticketNumber?: number userId: string channelId: string guildId: string topic?: string | null priority?: string status: string claimedBy?: string | null transcript?: string | null createdAt?: Date | string updatedAt?: Date | string } export type TicketUncheckedCreateInput = { id?: string ticketNumber?: number userId: string channelId: string guildId: string topic?: string | null priority?: string status: string claimedBy?: string | null transcript?: string | null createdAt?: Date | string updatedAt?: Date | string } export type TicketUpdateInput = { id?: StringFieldUpdateOperationsInput | string ticketNumber?: IntFieldUpdateOperationsInput | number userId?: StringFieldUpdateOperationsInput | string channelId?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string topic?: NullableStringFieldUpdateOperationsInput | string | null priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claimedBy?: NullableStringFieldUpdateOperationsInput | string | null transcript?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type TicketUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string ticketNumber?: IntFieldUpdateOperationsInput | number userId?: StringFieldUpdateOperationsInput | string channelId?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string topic?: NullableStringFieldUpdateOperationsInput | string | null priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claimedBy?: NullableStringFieldUpdateOperationsInput | string | null transcript?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type TicketCreateManyInput = { id?: string ticketNumber?: number userId: string channelId: string guildId: string topic?: string | null priority?: string status: string claimedBy?: string | null transcript?: string | null createdAt?: Date | string updatedAt?: Date | string } export type TicketUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string ticketNumber?: IntFieldUpdateOperationsInput | number userId?: StringFieldUpdateOperationsInput | string channelId?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string topic?: NullableStringFieldUpdateOperationsInput | string | null priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claimedBy?: NullableStringFieldUpdateOperationsInput | string | null transcript?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type TicketUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string ticketNumber?: IntFieldUpdateOperationsInput | number userId?: StringFieldUpdateOperationsInput | string channelId?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string topic?: NullableStringFieldUpdateOperationsInput | string | null priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claimedBy?: NullableStringFieldUpdateOperationsInput | string | null transcript?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LevelCreateInput = { id?: string userId: string guildId: string xp?: number level?: number createdAt?: Date | string updatedAt?: Date | string } export type LevelUncheckedCreateInput = { id?: string userId: string guildId: string xp?: number level?: number createdAt?: Date | string updatedAt?: Date | string } export type LevelUpdateInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string xp?: IntFieldUpdateOperationsInput | number level?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LevelUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string xp?: IntFieldUpdateOperationsInput | number level?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LevelCreateManyInput = { id?: string userId: string guildId: string xp?: number level?: number createdAt?: Date | string updatedAt?: Date | string } export type LevelUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string xp?: IntFieldUpdateOperationsInput | number level?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LevelUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string xp?: IntFieldUpdateOperationsInput | number level?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type TicketSupportSessionCreateInput = { id?: string guildId: string userId: string roleId: string startedAt?: Date | string endedAt?: Date | string | null durationSeconds?: number | null } export type TicketSupportSessionUncheckedCreateInput = { id?: string guildId: string userId: string roleId: string startedAt?: Date | string endedAt?: Date | string | null durationSeconds?: number | null } export type TicketSupportSessionUpdateInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string roleId?: StringFieldUpdateOperationsInput | string startedAt?: DateTimeFieldUpdateOperationsInput | Date | string endedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationSeconds?: NullableIntFieldUpdateOperationsInput | number | null } export type TicketSupportSessionUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string roleId?: StringFieldUpdateOperationsInput | string startedAt?: DateTimeFieldUpdateOperationsInput | Date | string endedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationSeconds?: NullableIntFieldUpdateOperationsInput | number | null } export type TicketSupportSessionCreateManyInput = { id?: string guildId: string userId: string roleId: string startedAt?: Date | string endedAt?: Date | string | null durationSeconds?: number | null } export type TicketSupportSessionUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string roleId?: StringFieldUpdateOperationsInput | string startedAt?: DateTimeFieldUpdateOperationsInput | Date | string endedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationSeconds?: NullableIntFieldUpdateOperationsInput | number | null } export type TicketSupportSessionUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string roleId?: StringFieldUpdateOperationsInput | string startedAt?: DateTimeFieldUpdateOperationsInput | Date | string endedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationSeconds?: NullableIntFieldUpdateOperationsInput | number | null } export type BirthdayCreateInput = { id?: string userId: string guildId: string birthDate: string createdAt?: Date | string updatedAt?: Date | string } export type BirthdayUncheckedCreateInput = { id?: string userId: string guildId: string birthDate: string createdAt?: Date | string updatedAt?: Date | string } export type BirthdayUpdateInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string birthDate?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BirthdayUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string birthDate?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BirthdayCreateManyInput = { id?: string userId: string guildId: string birthDate: string createdAt?: Date | string updatedAt?: Date | string } export type BirthdayUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string birthDate?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BirthdayUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string birthDate?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ReactionRoleSetCreateInput = { id?: string guildId: string channelId: string messageId?: string | null title?: string | null description?: string | null entries: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type ReactionRoleSetUncheckedCreateInput = { id?: string guildId: string channelId: string messageId?: string | null title?: string | null description?: string | null entries: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type ReactionRoleSetUpdateInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string channelId?: StringFieldUpdateOperationsInput | string messageId?: NullableStringFieldUpdateOperationsInput | string | null title?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null entries?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ReactionRoleSetUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string channelId?: StringFieldUpdateOperationsInput | string messageId?: NullableStringFieldUpdateOperationsInput | string | null title?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null entries?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ReactionRoleSetCreateManyInput = { id?: string guildId: string channelId: string messageId?: string | null title?: string | null description?: string | null entries: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type ReactionRoleSetUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string channelId?: StringFieldUpdateOperationsInput | string messageId?: NullableStringFieldUpdateOperationsInput | string | null title?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null entries?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ReactionRoleSetUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string channelId?: StringFieldUpdateOperationsInput | string messageId?: NullableStringFieldUpdateOperationsInput | string | null title?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null entries?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventCreateInput = { id?: string guildId: string title: string description?: string | null channelId: string startTime: Date | string repeatType?: string repeatConfig?: NullableJsonNullValueInput | InputJsonValue reminderOffsetMinutes?: number roleId?: string | null isActive?: boolean lastReminderAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string signups?: EventSignupCreateNestedManyWithoutEventInput } export type EventUncheckedCreateInput = { id?: string guildId: string title: string description?: string | null channelId: string startTime: Date | string repeatType?: string repeatConfig?: NullableJsonNullValueInput | InputJsonValue reminderOffsetMinutes?: number roleId?: string | null isActive?: boolean lastReminderAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string signups?: EventSignupUncheckedCreateNestedManyWithoutEventInput } export type EventUpdateInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null channelId?: StringFieldUpdateOperationsInput | string startTime?: DateTimeFieldUpdateOperationsInput | Date | string repeatType?: StringFieldUpdateOperationsInput | string repeatConfig?: NullableJsonNullValueInput | InputJsonValue reminderOffsetMinutes?: IntFieldUpdateOperationsInput | number roleId?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean lastReminderAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string signups?: EventSignupUpdateManyWithoutEventNestedInput } export type EventUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null channelId?: StringFieldUpdateOperationsInput | string startTime?: DateTimeFieldUpdateOperationsInput | Date | string repeatType?: StringFieldUpdateOperationsInput | string repeatConfig?: NullableJsonNullValueInput | InputJsonValue reminderOffsetMinutes?: IntFieldUpdateOperationsInput | number roleId?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean lastReminderAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string signups?: EventSignupUncheckedUpdateManyWithoutEventNestedInput } export type EventCreateManyInput = { id?: string guildId: string title: string description?: string | null channelId: string startTime: Date | string repeatType?: string repeatConfig?: NullableJsonNullValueInput | InputJsonValue reminderOffsetMinutes?: number roleId?: string | null isActive?: boolean lastReminderAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type EventUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null channelId?: StringFieldUpdateOperationsInput | string startTime?: DateTimeFieldUpdateOperationsInput | Date | string repeatType?: StringFieldUpdateOperationsInput | string repeatConfig?: NullableJsonNullValueInput | InputJsonValue reminderOffsetMinutes?: IntFieldUpdateOperationsInput | number roleId?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean lastReminderAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null channelId?: StringFieldUpdateOperationsInput | string startTime?: DateTimeFieldUpdateOperationsInput | Date | string repeatType?: StringFieldUpdateOperationsInput | string repeatConfig?: NullableJsonNullValueInput | InputJsonValue reminderOffsetMinutes?: IntFieldUpdateOperationsInput | number roleId?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean lastReminderAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventSignupCreateInput = { id?: string guildId: string userId: string createdAt?: Date | string canceledAt?: Date | string | null event: EventCreateNestedOneWithoutSignupsInput } export type EventSignupUncheckedCreateInput = { id?: string eventId: string guildId: string userId: string createdAt?: Date | string canceledAt?: Date | string | null } export type EventSignupUpdateInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string canceledAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null event?: EventUpdateOneRequiredWithoutSignupsNestedInput } export type EventSignupUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string eventId?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string canceledAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type EventSignupCreateManyInput = { id?: string eventId: string guildId: string userId: string createdAt?: Date | string canceledAt?: Date | string | null } export type EventSignupUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string canceledAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type EventSignupUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string eventId?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string canceledAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type StringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringFilter<$PrismaModel> | string } export type StringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type BoolNullableFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null } export type JsonNullableFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonNullableFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type DateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type GuildSettingsCountOrderByAggregateInput = { guildId?: SortOrder welcomeChannelId?: SortOrder logChannelId?: SortOrder automodEnabled?: SortOrder automodConfig?: SortOrder levelingEnabled?: SortOrder ticketsEnabled?: SortOrder musicEnabled?: SortOrder statuspageEnabled?: SortOrder statuspageConfig?: SortOrder dynamicVoiceEnabled?: SortOrder dynamicVoiceConfig?: SortOrder supportLoginConfig?: SortOrder birthdayEnabled?: SortOrder birthdayConfig?: SortOrder reactionRolesEnabled?: SortOrder reactionRolesConfig?: SortOrder eventsEnabled?: SortOrder supportRoleId?: SortOrder updatedAt?: SortOrder createdAt?: SortOrder } export type GuildSettingsMaxOrderByAggregateInput = { guildId?: SortOrder welcomeChannelId?: SortOrder logChannelId?: SortOrder automodEnabled?: SortOrder levelingEnabled?: SortOrder ticketsEnabled?: SortOrder musicEnabled?: SortOrder statuspageEnabled?: SortOrder dynamicVoiceEnabled?: SortOrder birthdayEnabled?: SortOrder reactionRolesEnabled?: SortOrder eventsEnabled?: SortOrder supportRoleId?: SortOrder updatedAt?: SortOrder createdAt?: SortOrder } export type GuildSettingsMinOrderByAggregateInput = { guildId?: SortOrder welcomeChannelId?: SortOrder logChannelId?: SortOrder automodEnabled?: SortOrder levelingEnabled?: SortOrder ticketsEnabled?: SortOrder musicEnabled?: SortOrder statuspageEnabled?: SortOrder dynamicVoiceEnabled?: SortOrder birthdayEnabled?: SortOrder reactionRolesEnabled?: SortOrder eventsEnabled?: SortOrder supportRoleId?: SortOrder updatedAt?: SortOrder createdAt?: SortOrder } export type StringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedBoolNullableFilter<$PrismaModel> _max?: NestedBoolNullableFilter<$PrismaModel> } export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedJsonNullableFilter<$PrismaModel> _max?: NestedJsonNullableFilter<$PrismaModel> } export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type IntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type TicketCountOrderByAggregateInput = { id?: SortOrder ticketNumber?: SortOrder userId?: SortOrder channelId?: SortOrder guildId?: SortOrder topic?: SortOrder priority?: SortOrder status?: SortOrder claimedBy?: SortOrder transcript?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type TicketAvgOrderByAggregateInput = { ticketNumber?: SortOrder } export type TicketMaxOrderByAggregateInput = { id?: SortOrder ticketNumber?: SortOrder userId?: SortOrder channelId?: SortOrder guildId?: SortOrder topic?: SortOrder priority?: SortOrder status?: SortOrder claimedBy?: SortOrder transcript?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type TicketMinOrderByAggregateInput = { id?: SortOrder ticketNumber?: SortOrder userId?: SortOrder channelId?: SortOrder guildId?: SortOrder topic?: SortOrder priority?: SortOrder status?: SortOrder claimedBy?: SortOrder transcript?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type TicketSumOrderByAggregateInput = { ticketNumber?: SortOrder } export type IntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type LevelUserId_guildIdCompoundUniqueInput = { userId: string guildId: string } export type LevelCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder guildId?: SortOrder xp?: SortOrder level?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LevelAvgOrderByAggregateInput = { xp?: SortOrder level?: SortOrder } export type LevelMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder guildId?: SortOrder xp?: SortOrder level?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LevelMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder guildId?: SortOrder xp?: SortOrder level?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LevelSumOrderByAggregateInput = { xp?: SortOrder level?: SortOrder } export type DateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null } export type IntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type TicketSupportSessionCountOrderByAggregateInput = { id?: SortOrder guildId?: SortOrder userId?: SortOrder roleId?: SortOrder startedAt?: SortOrder endedAt?: SortOrder durationSeconds?: SortOrder } export type TicketSupportSessionAvgOrderByAggregateInput = { durationSeconds?: SortOrder } export type TicketSupportSessionMaxOrderByAggregateInput = { id?: SortOrder guildId?: SortOrder userId?: SortOrder roleId?: SortOrder startedAt?: SortOrder endedAt?: SortOrder durationSeconds?: SortOrder } export type TicketSupportSessionMinOrderByAggregateInput = { id?: SortOrder guildId?: SortOrder userId?: SortOrder roleId?: SortOrder startedAt?: SortOrder endedAt?: SortOrder durationSeconds?: SortOrder } export type TicketSupportSessionSumOrderByAggregateInput = { durationSeconds?: SortOrder } export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedDateTimeNullableFilter<$PrismaModel> _max?: NestedDateTimeNullableFilter<$PrismaModel> } export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type BirthdayBirthday_user_guildCompoundUniqueInput = { userId: string guildId: string } export type BirthdayCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder guildId?: SortOrder birthDate?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type BirthdayMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder guildId?: SortOrder birthDate?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type BirthdayMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder guildId?: SortOrder birthDate?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type JsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type ReactionRoleSetCountOrderByAggregateInput = { id?: SortOrder guildId?: SortOrder channelId?: SortOrder messageId?: SortOrder title?: SortOrder description?: SortOrder entries?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ReactionRoleSetMaxOrderByAggregateInput = { id?: SortOrder guildId?: SortOrder channelId?: SortOrder messageId?: SortOrder title?: SortOrder description?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ReactionRoleSetMinOrderByAggregateInput = { id?: SortOrder guildId?: SortOrder channelId?: SortOrder messageId?: SortOrder title?: SortOrder description?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type JsonWithAggregatesFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonWithAggregatesFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter _count?: NestedIntFilter<$PrismaModel> _min?: NestedJsonFilter<$PrismaModel> _max?: NestedJsonFilter<$PrismaModel> } export type BoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type EventSignupListRelationFilter = { every?: EventSignupWhereInput some?: EventSignupWhereInput none?: EventSignupWhereInput } export type EventSignupOrderByRelationAggregateInput = { _count?: SortOrder } export type EventCountOrderByAggregateInput = { id?: SortOrder guildId?: SortOrder title?: SortOrder description?: SortOrder channelId?: SortOrder startTime?: SortOrder repeatType?: SortOrder repeatConfig?: SortOrder reminderOffsetMinutes?: SortOrder roleId?: SortOrder isActive?: SortOrder lastReminderAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EventAvgOrderByAggregateInput = { reminderOffsetMinutes?: SortOrder } export type EventMaxOrderByAggregateInput = { id?: SortOrder guildId?: SortOrder title?: SortOrder description?: SortOrder channelId?: SortOrder startTime?: SortOrder repeatType?: SortOrder reminderOffsetMinutes?: SortOrder roleId?: SortOrder isActive?: SortOrder lastReminderAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EventMinOrderByAggregateInput = { id?: SortOrder guildId?: SortOrder title?: SortOrder description?: SortOrder channelId?: SortOrder startTime?: SortOrder repeatType?: SortOrder reminderOffsetMinutes?: SortOrder roleId?: SortOrder isActive?: SortOrder lastReminderAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EventSumOrderByAggregateInput = { reminderOffsetMinutes?: SortOrder } export type BoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type EventRelationFilter = { is?: EventWhereInput isNot?: EventWhereInput } export type EventSignupEventIdUserIdCompoundUniqueInput = { eventId: string userId: string } export type EventSignupCountOrderByAggregateInput = { id?: SortOrder eventId?: SortOrder guildId?: SortOrder userId?: SortOrder createdAt?: SortOrder canceledAt?: SortOrder } export type EventSignupMaxOrderByAggregateInput = { id?: SortOrder eventId?: SortOrder guildId?: SortOrder userId?: SortOrder createdAt?: SortOrder canceledAt?: SortOrder } export type EventSignupMinOrderByAggregateInput = { id?: SortOrder eventId?: SortOrder guildId?: SortOrder userId?: SortOrder createdAt?: SortOrder canceledAt?: SortOrder } export type StringFieldUpdateOperationsInput = { set?: string } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type NullableBoolFieldUpdateOperationsInput = { set?: boolean | null } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type NullableIntFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type EventSignupCreateNestedManyWithoutEventInput = { create?: XOR | EventSignupCreateWithoutEventInput[] | EventSignupUncheckedCreateWithoutEventInput[] connectOrCreate?: EventSignupCreateOrConnectWithoutEventInput | EventSignupCreateOrConnectWithoutEventInput[] createMany?: EventSignupCreateManyEventInputEnvelope connect?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[] } export type EventSignupUncheckedCreateNestedManyWithoutEventInput = { create?: XOR | EventSignupCreateWithoutEventInput[] | EventSignupUncheckedCreateWithoutEventInput[] connectOrCreate?: EventSignupCreateOrConnectWithoutEventInput | EventSignupCreateOrConnectWithoutEventInput[] createMany?: EventSignupCreateManyEventInputEnvelope connect?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[] } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type EventSignupUpdateManyWithoutEventNestedInput = { create?: XOR | EventSignupCreateWithoutEventInput[] | EventSignupUncheckedCreateWithoutEventInput[] connectOrCreate?: EventSignupCreateOrConnectWithoutEventInput | EventSignupCreateOrConnectWithoutEventInput[] upsert?: EventSignupUpsertWithWhereUniqueWithoutEventInput | EventSignupUpsertWithWhereUniqueWithoutEventInput[] createMany?: EventSignupCreateManyEventInputEnvelope set?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[] disconnect?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[] delete?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[] connect?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[] update?: EventSignupUpdateWithWhereUniqueWithoutEventInput | EventSignupUpdateWithWhereUniqueWithoutEventInput[] updateMany?: EventSignupUpdateManyWithWhereWithoutEventInput | EventSignupUpdateManyWithWhereWithoutEventInput[] deleteMany?: EventSignupScalarWhereInput | EventSignupScalarWhereInput[] } export type EventSignupUncheckedUpdateManyWithoutEventNestedInput = { create?: XOR | EventSignupCreateWithoutEventInput[] | EventSignupUncheckedCreateWithoutEventInput[] connectOrCreate?: EventSignupCreateOrConnectWithoutEventInput | EventSignupCreateOrConnectWithoutEventInput[] upsert?: EventSignupUpsertWithWhereUniqueWithoutEventInput | EventSignupUpsertWithWhereUniqueWithoutEventInput[] createMany?: EventSignupCreateManyEventInputEnvelope set?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[] disconnect?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[] delete?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[] connect?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[] update?: EventSignupUpdateWithWhereUniqueWithoutEventInput | EventSignupUpdateWithWhereUniqueWithoutEventInput[] updateMany?: EventSignupUpdateManyWithWhereWithoutEventInput | EventSignupUpdateManyWithWhereWithoutEventInput[] deleteMany?: EventSignupScalarWhereInput | EventSignupScalarWhereInput[] } export type EventCreateNestedOneWithoutSignupsInput = { create?: XOR connectOrCreate?: EventCreateOrConnectWithoutSignupsInput connect?: EventWhereUniqueInput } export type EventUpdateOneRequiredWithoutSignupsNestedInput = { create?: XOR connectOrCreate?: EventCreateOrConnectWithoutSignupsInput upsert?: EventUpsertWithoutSignupsInput connect?: EventWhereUniqueInput update?: XOR, EventUncheckedUpdateWithoutSignupsInput> } export type NestedStringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringFilter<$PrismaModel> | string } export type NestedStringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type NestedBoolNullableFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null } export type NestedDateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type NestedIntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type NestedIntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedBoolNullableFilter<$PrismaModel> _max?: NestedBoolNullableFilter<$PrismaModel> } export type NestedJsonNullableFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type NestedJsonNullableFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type NestedFloatFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] | ListFloatFieldRefInput<$PrismaModel> notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatFilter<$PrismaModel> | number } export type NestedDateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null } export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedDateTimeNullableFilter<$PrismaModel> _max?: NestedDateTimeNullableFilter<$PrismaModel> } export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type NestedFloatNullableFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> | null in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableFilter<$PrismaModel> | number | null } export type NestedJsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type NestedJsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type NestedBoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type EventSignupCreateWithoutEventInput = { id?: string guildId: string userId: string createdAt?: Date | string canceledAt?: Date | string | null } export type EventSignupUncheckedCreateWithoutEventInput = { id?: string guildId: string userId: string createdAt?: Date | string canceledAt?: Date | string | null } export type EventSignupCreateOrConnectWithoutEventInput = { where: EventSignupWhereUniqueInput create: XOR } export type EventSignupCreateManyEventInputEnvelope = { data: EventSignupCreateManyEventInput | EventSignupCreateManyEventInput[] skipDuplicates?: boolean } export type EventSignupUpsertWithWhereUniqueWithoutEventInput = { where: EventSignupWhereUniqueInput update: XOR create: XOR } export type EventSignupUpdateWithWhereUniqueWithoutEventInput = { where: EventSignupWhereUniqueInput data: XOR } export type EventSignupUpdateManyWithWhereWithoutEventInput = { where: EventSignupScalarWhereInput data: XOR } export type EventSignupScalarWhereInput = { AND?: EventSignupScalarWhereInput | EventSignupScalarWhereInput[] OR?: EventSignupScalarWhereInput[] NOT?: EventSignupScalarWhereInput | EventSignupScalarWhereInput[] id?: StringFilter<"EventSignup"> | string eventId?: StringFilter<"EventSignup"> | string guildId?: StringFilter<"EventSignup"> | string userId?: StringFilter<"EventSignup"> | string createdAt?: DateTimeFilter<"EventSignup"> | Date | string canceledAt?: DateTimeNullableFilter<"EventSignup"> | Date | string | null } export type EventCreateWithoutSignupsInput = { id?: string guildId: string title: string description?: string | null channelId: string startTime: Date | string repeatType?: string repeatConfig?: NullableJsonNullValueInput | InputJsonValue reminderOffsetMinutes?: number roleId?: string | null isActive?: boolean lastReminderAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type EventUncheckedCreateWithoutSignupsInput = { id?: string guildId: string title: string description?: string | null channelId: string startTime: Date | string repeatType?: string repeatConfig?: NullableJsonNullValueInput | InputJsonValue reminderOffsetMinutes?: number roleId?: string | null isActive?: boolean lastReminderAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type EventCreateOrConnectWithoutSignupsInput = { where: EventWhereUniqueInput create: XOR } export type EventUpsertWithoutSignupsInput = { update: XOR create: XOR where?: EventWhereInput } export type EventUpdateToOneWithWhereWithoutSignupsInput = { where?: EventWhereInput data: XOR } export type EventUpdateWithoutSignupsInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null channelId?: StringFieldUpdateOperationsInput | string startTime?: DateTimeFieldUpdateOperationsInput | Date | string repeatType?: StringFieldUpdateOperationsInput | string repeatConfig?: NullableJsonNullValueInput | InputJsonValue reminderOffsetMinutes?: IntFieldUpdateOperationsInput | number roleId?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean lastReminderAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventUncheckedUpdateWithoutSignupsInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null channelId?: StringFieldUpdateOperationsInput | string startTime?: DateTimeFieldUpdateOperationsInput | Date | string repeatType?: StringFieldUpdateOperationsInput | string repeatConfig?: NullableJsonNullValueInput | InputJsonValue reminderOffsetMinutes?: IntFieldUpdateOperationsInput | number roleId?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean lastReminderAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventSignupCreateManyEventInput = { id?: string guildId: string userId: string createdAt?: Date | string canceledAt?: Date | string | null } export type EventSignupUpdateWithoutEventInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string canceledAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type EventSignupUncheckedUpdateWithoutEventInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string canceledAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type EventSignupUncheckedUpdateManyWithoutEventInput = { id?: StringFieldUpdateOperationsInput | string guildId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string canceledAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } /** * Aliases for legacy arg types */ /** * @deprecated Use EventCountOutputTypeDefaultArgs instead */ export type EventCountOutputTypeArgs = EventCountOutputTypeDefaultArgs /** * @deprecated Use GuildSettingsDefaultArgs instead */ export type GuildSettingsArgs = GuildSettingsDefaultArgs /** * @deprecated Use TicketDefaultArgs instead */ export type TicketArgs = TicketDefaultArgs /** * @deprecated Use LevelDefaultArgs instead */ export type LevelArgs = LevelDefaultArgs /** * @deprecated Use TicketSupportSessionDefaultArgs instead */ export type TicketSupportSessionArgs = TicketSupportSessionDefaultArgs /** * @deprecated Use BirthdayDefaultArgs instead */ export type BirthdayArgs = BirthdayDefaultArgs /** * @deprecated Use ReactionRoleSetDefaultArgs instead */ export type ReactionRoleSetArgs = ReactionRoleSetDefaultArgs /** * @deprecated Use EventDefaultArgs instead */ export type EventArgs = EventDefaultArgs /** * @deprecated Use EventSignupDefaultArgs instead */ export type EventSignupArgs = EventSignupDefaultArgs /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }