/** * 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 Unit * */ export type Unit = $Result.DefaultSelection /** * Model Person * */ export type Person = $Result.DefaultSelection /** * Model Group * */ export type Group = $Result.DefaultSelection /** * Model GroupMembership * */ export type GroupMembership = $Result.DefaultSelection /** * Model Event * */ export type Event = $Result.DefaultSelection /** * Model cities * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments */ export type cities = $Result.DefaultSelection /** * Model countries * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments */ export type countries = $Result.DefaultSelection /** * Model states * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments */ export type states = $Result.DefaultSelection /** * Model Address * */ export type Address = $Result.DefaultSelection /** * Model VaultData * */ export type VaultData = $Result.DefaultSelection /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more Units * const units = await prisma.unit.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, const 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 Units * const units = await prisma.unit.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): PrismaClient; /** * Connect with the database */ $connect(): $Utils.JsPromise; /** * Disconnect from the database */ $disconnect(): $Utils.JsPromise; /** * 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, $Utils.Call, { extArgs: ExtArgs }>> /** * `prisma.unit`: Exposes CRUD operations for the **Unit** model. * Example usage: * ```ts * // Fetch zero or more Units * const units = await prisma.unit.findMany() * ``` */ get unit(): Prisma.UnitDelegate; /** * `prisma.person`: Exposes CRUD operations for the **Person** model. * Example usage: * ```ts * // Fetch zero or more People * const people = await prisma.person.findMany() * ``` */ get person(): Prisma.PersonDelegate; /** * `prisma.group`: Exposes CRUD operations for the **Group** model. * Example usage: * ```ts * // Fetch zero or more Groups * const groups = await prisma.group.findMany() * ``` */ get group(): Prisma.GroupDelegate; /** * `prisma.groupMembership`: Exposes CRUD operations for the **GroupMembership** model. * Example usage: * ```ts * // Fetch zero or more GroupMemberships * const groupMemberships = await prisma.groupMembership.findMany() * ``` */ get groupMembership(): Prisma.GroupMembershipDelegate; /** * `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.cities`: Exposes CRUD operations for the **cities** model. * Example usage: * ```ts * // Fetch zero or more Cities * const cities = await prisma.cities.findMany() * ``` */ get cities(): Prisma.citiesDelegate; /** * `prisma.countries`: Exposes CRUD operations for the **countries** model. * Example usage: * ```ts * // Fetch zero or more Countries * const countries = await prisma.countries.findMany() * ``` */ get countries(): Prisma.countriesDelegate; /** * `prisma.states`: Exposes CRUD operations for the **states** model. * Example usage: * ```ts * // Fetch zero or more States * const states = await prisma.states.findMany() * ``` */ get states(): Prisma.statesDelegate; /** * `prisma.address`: Exposes CRUD operations for the **Address** model. * Example usage: * ```ts * // Fetch zero or more Addresses * const addresses = await prisma.address.findMany() * ``` */ get address(): Prisma.AddressDelegate; /** * `prisma.vaultData`: Exposes CRUD operations for the **VaultData** model. * Example usage: * ```ts * // Fetch zero or more VaultData * const vaultData = await prisma.vaultData.findMany() * ``` */ get vaultData(): Prisma.VaultDataDelegate; } 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 /** * 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: 6.19.3 * Query Engine version: a9055b89e58b4b5bfb59600785423b1db3d0e75d */ export type PrismaVersion = { client: string } export const prismaVersion: PrismaVersion /** * Utility Types */ export import Bytes = runtime.Bytes 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 ? P : 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: { Unit: 'Unit', Person: 'Person', Group: 'Group', GroupMembership: 'GroupMembership', Event: 'Event', cities: 'cities', countries: 'countries', states: 'states', Address: 'Address', VaultData: 'VaultData' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type Datasources = { db?: Datasource } interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record> { returns: Prisma.TypeMap } export type TypeMap = { globalOmitOptions: { omit: GlobalOmitOptions } meta: { modelProps: "unit" | "person" | "group" | "groupMembership" | "event" | "cities" | "countries" | "states" | "address" | "vaultData" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { Unit: { payload: Prisma.$UnitPayload fields: Prisma.UnitFieldRefs operations: { findUnique: { args: Prisma.UnitFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UnitFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UnitFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UnitFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UnitFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UnitCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UnitCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.UnitCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.UnitDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UnitUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UnitDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UnitUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.UnitUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.UnitUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UnitAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UnitGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UnitCountArgs result: $Utils.Optional | number } } } Person: { payload: Prisma.$PersonPayload fields: Prisma.PersonFieldRefs operations: { findUnique: { args: Prisma.PersonFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PersonFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PersonFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PersonFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PersonFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PersonCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PersonCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PersonCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PersonDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PersonUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PersonDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PersonUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.PersonUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.PersonUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PersonAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PersonGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PersonCountArgs result: $Utils.Optional | number } } } Group: { payload: Prisma.$GroupPayload fields: Prisma.GroupFieldRefs operations: { findUnique: { args: Prisma.GroupFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.GroupFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.GroupFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.GroupFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.GroupFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.GroupCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.GroupCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.GroupCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.GroupDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.GroupUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.GroupDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.GroupUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.GroupUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.GroupUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.GroupAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.GroupGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.GroupCountArgs result: $Utils.Optional | number } } } GroupMembership: { payload: Prisma.$GroupMembershipPayload fields: Prisma.GroupMembershipFieldRefs operations: { findUnique: { args: Prisma.GroupMembershipFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.GroupMembershipFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.GroupMembershipFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.GroupMembershipFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.GroupMembershipFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.GroupMembershipCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.GroupMembershipCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.GroupMembershipCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.GroupMembershipDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.GroupMembershipUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.GroupMembershipDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.GroupMembershipUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.GroupMembershipUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.GroupMembershipUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.GroupMembershipAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.GroupMembershipGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.GroupMembershipCountArgs 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 } updateManyAndReturn: { args: Prisma.EventUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } 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 } } } cities: { payload: Prisma.$citiesPayload fields: Prisma.citiesFieldRefs operations: { findUnique: { args: Prisma.citiesFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.citiesFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.citiesFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.citiesFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.citiesFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.citiesCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.citiesCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.citiesCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.citiesDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.citiesUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.citiesDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.citiesUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.citiesUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.citiesUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CitiesAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.citiesGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.citiesCountArgs result: $Utils.Optional | number } } } countries: { payload: Prisma.$countriesPayload fields: Prisma.countriesFieldRefs operations: { findUnique: { args: Prisma.countriesFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.countriesFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.countriesFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.countriesFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.countriesFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.countriesCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.countriesCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.countriesCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.countriesDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.countriesUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.countriesDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.countriesUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.countriesUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.countriesUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CountriesAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.countriesGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.countriesCountArgs result: $Utils.Optional | number } } } states: { payload: Prisma.$statesPayload fields: Prisma.statesFieldRefs operations: { findUnique: { args: Prisma.statesFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.statesFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.statesFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.statesFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.statesFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.statesCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.statesCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.statesCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.statesDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.statesUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.statesDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.statesUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.statesUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.statesUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.StatesAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.statesGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.statesCountArgs result: $Utils.Optional | number } } } Address: { payload: Prisma.$AddressPayload fields: Prisma.AddressFieldRefs operations: { findUnique: { args: Prisma.AddressFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AddressFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AddressFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AddressFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AddressFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AddressCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AddressCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AddressCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AddressDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AddressUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AddressDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AddressUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AddressUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AddressUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AddressAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AddressGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AddressCountArgs result: $Utils.Optional | number } } } VaultData: { payload: Prisma.$VaultDataPayload fields: Prisma.VaultDataFieldRefs operations: { findUnique: { args: Prisma.VaultDataFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.VaultDataFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.VaultDataFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.VaultDataFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.VaultDataFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.VaultDataCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.VaultDataCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.VaultDataCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.VaultDataDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.VaultDataUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.VaultDataDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.VaultDataUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.VaultDataUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.VaultDataUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.VaultDataAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.VaultDataGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.VaultDataCountArgs 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 * ``` * // Shorthand for `emit: 'stdout'` * log: ['query', 'info', 'warn', 'error'] * * // Emit as events only * log: [ * { emit: 'event', level: 'query' }, * { emit: 'event', level: 'info' }, * { emit: 'event', level: 'warn' } * { emit: 'event', level: 'error' } * ] * * / Emit as events and log to stdout * og: [ * { 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 } /** * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale` */ adapter?: runtime.SqlDriverAdapterFactory | null /** * Global configuration for omitting model fields by default. * * @example * ``` * const prisma = new PrismaClient({ * omit: { * user: { * password: true * } * } * }) * ``` */ omit?: Prisma.GlobalOmitConfig } export type GlobalOmitConfig = { unit?: UnitOmit person?: PersonOmit group?: GroupOmit groupMembership?: GroupMembershipOmit event?: EventOmit cities?: citiesOmit countries?: countriesOmit states?: statesOmit address?: AddressOmit vaultData?: VaultDataOmit } /* Types for Logging */ export type LogLevel = 'info' | 'query' | 'warn' | 'error' export type LogDefinition = { level: LogLevel emit: 'stdout' | 'event' } export type CheckIsLogLevel = T extends LogLevel ? T : never; export type GetLogType = CheckIsLogLevel< T extends LogDefinition ? T['level'] : T >; export type GetEvents = T extends Array ? 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' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy' // 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 UnitCountOutputType */ export type UnitCountOutputType = { children: number } export type UnitCountOutputTypeSelect = { children?: boolean | UnitCountOutputTypeCountChildrenArgs } // Custom InputTypes /** * UnitCountOutputType without action */ export type UnitCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the UnitCountOutputType */ select?: UnitCountOutputTypeSelect | null } /** * UnitCountOutputType without action */ export type UnitCountOutputTypeCountChildrenArgs = { where?: UnitWhereInput } /** * Count Type PersonCountOutputType */ export type PersonCountOutputType = { groupMemberships: number } export type PersonCountOutputTypeSelect = { groupMemberships?: boolean | PersonCountOutputTypeCountGroupMembershipsArgs } // Custom InputTypes /** * PersonCountOutputType without action */ export type PersonCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the PersonCountOutputType */ select?: PersonCountOutputTypeSelect | null } /** * PersonCountOutputType without action */ export type PersonCountOutputTypeCountGroupMembershipsArgs = { where?: GroupMembershipWhereInput } /** * Count Type GroupCountOutputType */ export type GroupCountOutputType = { members: number } export type GroupCountOutputTypeSelect = { members?: boolean | GroupCountOutputTypeCountMembersArgs } // Custom InputTypes /** * GroupCountOutputType without action */ export type GroupCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the GroupCountOutputType */ select?: GroupCountOutputTypeSelect | null } /** * GroupCountOutputType without action */ export type GroupCountOutputTypeCountMembersArgs = { where?: GroupMembershipWhereInput } /** * Count Type CountriesCountOutputType */ export type CountriesCountOutputType = { cities: number states: number } export type CountriesCountOutputTypeSelect = { cities?: boolean | CountriesCountOutputTypeCountCitiesArgs states?: boolean | CountriesCountOutputTypeCountStatesArgs } // Custom InputTypes /** * CountriesCountOutputType without action */ export type CountriesCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CountriesCountOutputType */ select?: CountriesCountOutputTypeSelect | null } /** * CountriesCountOutputType without action */ export type CountriesCountOutputTypeCountCitiesArgs = { where?: citiesWhereInput } /** * CountriesCountOutputType without action */ export type CountriesCountOutputTypeCountStatesArgs = { where?: statesWhereInput } /** * Count Type StatesCountOutputType */ export type StatesCountOutputType = { cities: number } export type StatesCountOutputTypeSelect = { cities?: boolean | StatesCountOutputTypeCountCitiesArgs } // Custom InputTypes /** * StatesCountOutputType without action */ export type StatesCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the StatesCountOutputType */ select?: StatesCountOutputTypeSelect | null } /** * StatesCountOutputType without action */ export type StatesCountOutputTypeCountCitiesArgs = { where?: citiesWhereInput } /** * Models */ /** * Model Unit */ export type AggregateUnit = { _count: UnitCountAggregateOutputType | null _min: UnitMinAggregateOutputType | null _max: UnitMaxAggregateOutputType | null } export type UnitMinAggregateOutputType = { id: string | null name: string | null description: string | null parentId: string | null createdAt: Date | null updatedAt: Date | null } export type UnitMaxAggregateOutputType = { id: string | null name: string | null description: string | null parentId: string | null createdAt: Date | null updatedAt: Date | null } export type UnitCountAggregateOutputType = { id: number name: number description: number parentId: number traits: number createdAt: number updatedAt: number _all: number } export type UnitMinAggregateInputType = { id?: true name?: true description?: true parentId?: true createdAt?: true updatedAt?: true } export type UnitMaxAggregateInputType = { id?: true name?: true description?: true parentId?: true createdAt?: true updatedAt?: true } export type UnitCountAggregateInputType = { id?: true name?: true description?: true parentId?: true traits?: true createdAt?: true updatedAt?: true _all?: true } export type UnitAggregateArgs = { /** * Filter which Unit to aggregate. */ where?: UnitWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Units to fetch. */ orderBy?: UnitOrderByWithRelationInput | UnitOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: UnitWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Units 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` Units. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Units **/ _count?: true | UnitCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UnitMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UnitMaxAggregateInputType } export type GetUnitAggregateType = { [P in keyof T & keyof AggregateUnit]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type UnitGroupByArgs = { where?: UnitWhereInput orderBy?: UnitOrderByWithAggregationInput | UnitOrderByWithAggregationInput[] by: UnitScalarFieldEnum[] | UnitScalarFieldEnum having?: UnitScalarWhereWithAggregatesInput take?: number skip?: number _count?: UnitCountAggregateInputType | true _min?: UnitMinAggregateInputType _max?: UnitMaxAggregateInputType } export type UnitGroupByOutputType = { id: string name: string description: string | null parentId: string | null traits: JsonValue createdAt: Date updatedAt: Date _count: UnitCountAggregateOutputType | null _min: UnitMinAggregateOutputType | null _max: UnitMaxAggregateOutputType | null } type GetUnitGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UnitGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UnitSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean description?: boolean parentId?: boolean traits?: boolean createdAt?: boolean updatedAt?: boolean parent?: boolean | Unit$parentArgs children?: boolean | Unit$childrenArgs _count?: boolean | UnitCountOutputTypeDefaultArgs }, ExtArgs["result"]["unit"]> export type UnitSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean description?: boolean parentId?: boolean traits?: boolean createdAt?: boolean updatedAt?: boolean parent?: boolean | Unit$parentArgs }, ExtArgs["result"]["unit"]> export type UnitSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean description?: boolean parentId?: boolean traits?: boolean createdAt?: boolean updatedAt?: boolean parent?: boolean | Unit$parentArgs }, ExtArgs["result"]["unit"]> export type UnitSelectScalar = { id?: boolean name?: boolean description?: boolean parentId?: boolean traits?: boolean createdAt?: boolean updatedAt?: boolean } export type UnitOmit = $Extensions.GetOmit<"id" | "name" | "description" | "parentId" | "traits" | "createdAt" | "updatedAt", ExtArgs["result"]["unit"]> export type UnitInclude = { parent?: boolean | Unit$parentArgs children?: boolean | Unit$childrenArgs _count?: boolean | UnitCountOutputTypeDefaultArgs } export type UnitIncludeCreateManyAndReturn = { parent?: boolean | Unit$parentArgs } export type UnitIncludeUpdateManyAndReturn = { parent?: boolean | Unit$parentArgs } export type $UnitPayload = { name: "Unit" objects: { parent: Prisma.$UnitPayload | null children: Prisma.$UnitPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string name: string description: string | null parentId: string | null traits: Prisma.JsonValue createdAt: Date updatedAt: Date }, ExtArgs["result"]["unit"]> composites: {} } type UnitGetPayload = $Result.GetResult type UnitCountArgs = Omit & { select?: UnitCountAggregateInputType | true } export interface UnitDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Unit'], meta: { name: 'Unit' } } /** * Find zero or one Unit that matches the filter. * @param {UnitFindUniqueArgs} args - Arguments to find a Unit * @example * // Get one Unit * const unit = await prisma.unit.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__UnitClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Unit that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UnitFindUniqueOrThrowArgs} args - Arguments to find a Unit * @example * // Get one Unit * const unit = await prisma.unit.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__UnitClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Unit 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 {UnitFindFirstArgs} args - Arguments to find a Unit * @example * // Get one Unit * const unit = await prisma.unit.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__UnitClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Unit 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 {UnitFindFirstOrThrowArgs} args - Arguments to find a Unit * @example * // Get one Unit * const unit = await prisma.unit.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__UnitClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Units 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 {UnitFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Units * const units = await prisma.unit.findMany() * * // Get first 10 Units * const units = await prisma.unit.findMany({ take: 10 }) * * // Only select the `id` * const unitWithIdOnly = await prisma.unit.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Unit. * @param {UnitCreateArgs} args - Arguments to create a Unit. * @example * // Create one Unit * const Unit = await prisma.unit.create({ * data: { * // ... data to create a Unit * } * }) * */ create(args: SelectSubset>): Prisma__UnitClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Units. * @param {UnitCreateManyArgs} args - Arguments to create many Units. * @example * // Create many Units * const unit = await prisma.unit.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Units and returns the data saved in the database. * @param {UnitCreateManyAndReturnArgs} args - Arguments to create many Units. * @example * // Create many Units * const unit = await prisma.unit.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Units and only return the `id` * const unitWithIdOnly = await prisma.unit.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", GlobalOmitOptions>> /** * Delete a Unit. * @param {UnitDeleteArgs} args - Arguments to delete one Unit. * @example * // Delete one Unit * const Unit = await prisma.unit.delete({ * where: { * // ... filter to delete one Unit * } * }) * */ delete(args: SelectSubset>): Prisma__UnitClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Unit. * @param {UnitUpdateArgs} args - Arguments to update one Unit. * @example * // Update one Unit * const unit = await prisma.unit.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__UnitClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Units. * @param {UnitDeleteManyArgs} args - Arguments to filter Units to delete. * @example * // Delete a few Units * const { count } = await prisma.unit.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Units. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UnitUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Units * const unit = await prisma.unit.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Units and returns the data updated in the database. * @param {UnitUpdateManyAndReturnArgs} args - Arguments to update many Units. * @example * // Update many Units * const unit = await prisma.unit.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Units and only return the `id` * const unitWithIdOnly = await prisma.unit.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * 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 * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Unit. * @param {UnitUpsertArgs} args - Arguments to update or create a Unit. * @example * // Update or create a Unit * const unit = await prisma.unit.upsert({ * create: { * // ... data to create a Unit * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Unit we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__UnitClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Units. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UnitCountArgs} args - Arguments to filter Units to count. * @example * // Count the number of Units * const count = await prisma.unit.count({ * where: { * // ... the filter for the Units 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 Unit. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UnitAggregateArgs} 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 Unit. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UnitGroupByArgs} 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 UnitGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UnitGroupByArgs['orderBy'] } : { orderBy?: UnitGroupByArgs['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 ? GetUnitGroupByPayload : Prisma.PrismaPromise /** * Fields of the Unit model */ readonly fields: UnitFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Unit. * 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__UnitClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" parent = {}>(args?: Subset>): Prisma__UnitClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> children = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | 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 Unit model */ interface UnitFieldRefs { readonly id: FieldRef<"Unit", 'String'> readonly name: FieldRef<"Unit", 'String'> readonly description: FieldRef<"Unit", 'String'> readonly parentId: FieldRef<"Unit", 'String'> readonly traits: FieldRef<"Unit", 'Json'> readonly createdAt: FieldRef<"Unit", 'DateTime'> readonly updatedAt: FieldRef<"Unit", 'DateTime'> } // Custom InputTypes /** * Unit findUnique */ export type UnitFindUniqueArgs = { /** * Select specific fields to fetch from the Unit */ select?: UnitSelect | null /** * Omit specific fields from the Unit */ omit?: UnitOmit | null /** * Choose, which related nodes to fetch as well */ include?: UnitInclude | null /** * Filter, which Unit to fetch. */ where: UnitWhereUniqueInput } /** * Unit findUniqueOrThrow */ export type UnitFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Unit */ select?: UnitSelect | null /** * Omit specific fields from the Unit */ omit?: UnitOmit | null /** * Choose, which related nodes to fetch as well */ include?: UnitInclude | null /** * Filter, which Unit to fetch. */ where: UnitWhereUniqueInput } /** * Unit findFirst */ export type UnitFindFirstArgs = { /** * Select specific fields to fetch from the Unit */ select?: UnitSelect | null /** * Omit specific fields from the Unit */ omit?: UnitOmit | null /** * Choose, which related nodes to fetch as well */ include?: UnitInclude | null /** * Filter, which Unit to fetch. */ where?: UnitWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Units to fetch. */ orderBy?: UnitOrderByWithRelationInput | UnitOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Units. */ cursor?: UnitWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Units 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` Units. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Units. */ distinct?: UnitScalarFieldEnum | UnitScalarFieldEnum[] } /** * Unit findFirstOrThrow */ export type UnitFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Unit */ select?: UnitSelect | null /** * Omit specific fields from the Unit */ omit?: UnitOmit | null /** * Choose, which related nodes to fetch as well */ include?: UnitInclude | null /** * Filter, which Unit to fetch. */ where?: UnitWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Units to fetch. */ orderBy?: UnitOrderByWithRelationInput | UnitOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Units. */ cursor?: UnitWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Units 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` Units. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Units. */ distinct?: UnitScalarFieldEnum | UnitScalarFieldEnum[] } /** * Unit findMany */ export type UnitFindManyArgs = { /** * Select specific fields to fetch from the Unit */ select?: UnitSelect | null /** * Omit specific fields from the Unit */ omit?: UnitOmit | null /** * Choose, which related nodes to fetch as well */ include?: UnitInclude | null /** * Filter, which Units to fetch. */ where?: UnitWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Units to fetch. */ orderBy?: UnitOrderByWithRelationInput | UnitOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Units. */ cursor?: UnitWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Units 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` Units. */ skip?: number distinct?: UnitScalarFieldEnum | UnitScalarFieldEnum[] } /** * Unit create */ export type UnitCreateArgs = { /** * Select specific fields to fetch from the Unit */ select?: UnitSelect | null /** * Omit specific fields from the Unit */ omit?: UnitOmit | null /** * Choose, which related nodes to fetch as well */ include?: UnitInclude | null /** * The data needed to create a Unit. */ data: XOR } /** * Unit createMany */ export type UnitCreateManyArgs = { /** * The data used to create many Units. */ data: UnitCreateManyInput | UnitCreateManyInput[] skipDuplicates?: boolean } /** * Unit createManyAndReturn */ export type UnitCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Unit */ select?: UnitSelectCreateManyAndReturn | null /** * Omit specific fields from the Unit */ omit?: UnitOmit | null /** * The data used to create many Units. */ data: UnitCreateManyInput | UnitCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: UnitIncludeCreateManyAndReturn | null } /** * Unit update */ export type UnitUpdateArgs = { /** * Select specific fields to fetch from the Unit */ select?: UnitSelect | null /** * Omit specific fields from the Unit */ omit?: UnitOmit | null /** * Choose, which related nodes to fetch as well */ include?: UnitInclude | null /** * The data needed to update a Unit. */ data: XOR /** * Choose, which Unit to update. */ where: UnitWhereUniqueInput } /** * Unit updateMany */ export type UnitUpdateManyArgs = { /** * The data used to update Units. */ data: XOR /** * Filter which Units to update */ where?: UnitWhereInput /** * Limit how many Units to update. */ limit?: number } /** * Unit updateManyAndReturn */ export type UnitUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Unit */ select?: UnitSelectUpdateManyAndReturn | null /** * Omit specific fields from the Unit */ omit?: UnitOmit | null /** * The data used to update Units. */ data: XOR /** * Filter which Units to update */ where?: UnitWhereInput /** * Limit how many Units to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: UnitIncludeUpdateManyAndReturn | null } /** * Unit upsert */ export type UnitUpsertArgs = { /** * Select specific fields to fetch from the Unit */ select?: UnitSelect | null /** * Omit specific fields from the Unit */ omit?: UnitOmit | null /** * Choose, which related nodes to fetch as well */ include?: UnitInclude | null /** * The filter to search for the Unit to update in case it exists. */ where: UnitWhereUniqueInput /** * In case the Unit found by the `where` argument doesn't exist, create a new Unit with this data. */ create: XOR /** * In case the Unit was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Unit delete */ export type UnitDeleteArgs = { /** * Select specific fields to fetch from the Unit */ select?: UnitSelect | null /** * Omit specific fields from the Unit */ omit?: UnitOmit | null /** * Choose, which related nodes to fetch as well */ include?: UnitInclude | null /** * Filter which Unit to delete. */ where: UnitWhereUniqueInput } /** * Unit deleteMany */ export type UnitDeleteManyArgs = { /** * Filter which Units to delete */ where?: UnitWhereInput /** * Limit how many Units to delete. */ limit?: number } /** * Unit.parent */ export type Unit$parentArgs = { /** * Select specific fields to fetch from the Unit */ select?: UnitSelect | null /** * Omit specific fields from the Unit */ omit?: UnitOmit | null /** * Choose, which related nodes to fetch as well */ include?: UnitInclude | null where?: UnitWhereInput } /** * Unit.children */ export type Unit$childrenArgs = { /** * Select specific fields to fetch from the Unit */ select?: UnitSelect | null /** * Omit specific fields from the Unit */ omit?: UnitOmit | null /** * Choose, which related nodes to fetch as well */ include?: UnitInclude | null where?: UnitWhereInput orderBy?: UnitOrderByWithRelationInput | UnitOrderByWithRelationInput[] cursor?: UnitWhereUniqueInput take?: number skip?: number distinct?: UnitScalarFieldEnum | UnitScalarFieldEnum[] } /** * Unit without action */ export type UnitDefaultArgs = { /** * Select specific fields to fetch from the Unit */ select?: UnitSelect | null /** * Omit specific fields from the Unit */ omit?: UnitOmit | null /** * Choose, which related nodes to fetch as well */ include?: UnitInclude | null } /** * Model Person */ export type AggregatePerson = { _count: PersonCountAggregateOutputType | null _min: PersonMinAggregateOutputType | null _max: PersonMaxAggregateOutputType | null } export type PersonMinAggregateOutputType = { id: string | null firstName: string | null lastName: string | null email: string | null phone: string | null ssoId: string | null createdAt: Date | null updatedAt: Date | null } export type PersonMaxAggregateOutputType = { id: string | null firstName: string | null lastName: string | null email: string | null phone: string | null ssoId: string | null createdAt: Date | null updatedAt: Date | null } export type PersonCountAggregateOutputType = { id: number firstName: number lastName: number email: number phone: number ssoId: number traits: number createdAt: number updatedAt: number _all: number } export type PersonMinAggregateInputType = { id?: true firstName?: true lastName?: true email?: true phone?: true ssoId?: true createdAt?: true updatedAt?: true } export type PersonMaxAggregateInputType = { id?: true firstName?: true lastName?: true email?: true phone?: true ssoId?: true createdAt?: true updatedAt?: true } export type PersonCountAggregateInputType = { id?: true firstName?: true lastName?: true email?: true phone?: true ssoId?: true traits?: true createdAt?: true updatedAt?: true _all?: true } export type PersonAggregateArgs = { /** * Filter which Person to aggregate. */ where?: PersonWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of People to fetch. */ orderBy?: PersonOrderByWithRelationInput | PersonOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PersonWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` People 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` People. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned People **/ _count?: true | PersonCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PersonMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PersonMaxAggregateInputType } export type GetPersonAggregateType = { [P in keyof T & keyof AggregatePerson]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PersonGroupByArgs = { where?: PersonWhereInput orderBy?: PersonOrderByWithAggregationInput | PersonOrderByWithAggregationInput[] by: PersonScalarFieldEnum[] | PersonScalarFieldEnum having?: PersonScalarWhereWithAggregatesInput take?: number skip?: number _count?: PersonCountAggregateInputType | true _min?: PersonMinAggregateInputType _max?: PersonMaxAggregateInputType } export type PersonGroupByOutputType = { id: string firstName: string lastName: string email: string | null phone: string | null ssoId: string | null traits: JsonValue createdAt: Date updatedAt: Date _count: PersonCountAggregateOutputType | null _min: PersonMinAggregateOutputType | null _max: PersonMaxAggregateOutputType | null } type GetPersonGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PersonGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PersonSelect = $Extensions.GetSelect<{ id?: boolean firstName?: boolean lastName?: boolean email?: boolean phone?: boolean ssoId?: boolean traits?: boolean createdAt?: boolean updatedAt?: boolean groupMemberships?: boolean | Person$groupMembershipsArgs _count?: boolean | PersonCountOutputTypeDefaultArgs }, ExtArgs["result"]["person"]> export type PersonSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean firstName?: boolean lastName?: boolean email?: boolean phone?: boolean ssoId?: boolean traits?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["person"]> export type PersonSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean firstName?: boolean lastName?: boolean email?: boolean phone?: boolean ssoId?: boolean traits?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["person"]> export type PersonSelectScalar = { id?: boolean firstName?: boolean lastName?: boolean email?: boolean phone?: boolean ssoId?: boolean traits?: boolean createdAt?: boolean updatedAt?: boolean } export type PersonOmit = $Extensions.GetOmit<"id" | "firstName" | "lastName" | "email" | "phone" | "ssoId" | "traits" | "createdAt" | "updatedAt", ExtArgs["result"]["person"]> export type PersonInclude = { groupMemberships?: boolean | Person$groupMembershipsArgs _count?: boolean | PersonCountOutputTypeDefaultArgs } export type PersonIncludeCreateManyAndReturn = {} export type PersonIncludeUpdateManyAndReturn = {} export type $PersonPayload = { name: "Person" objects: { groupMemberships: Prisma.$GroupMembershipPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string firstName: string lastName: string email: string | null phone: string | null ssoId: string | null traits: Prisma.JsonValue createdAt: Date updatedAt: Date }, ExtArgs["result"]["person"]> composites: {} } type PersonGetPayload = $Result.GetResult type PersonCountArgs = Omit & { select?: PersonCountAggregateInputType | true } export interface PersonDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Person'], meta: { name: 'Person' } } /** * Find zero or one Person that matches the filter. * @param {PersonFindUniqueArgs} args - Arguments to find a Person * @example * // Get one Person * const person = await prisma.person.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PersonClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Person that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PersonFindUniqueOrThrowArgs} args - Arguments to find a Person * @example * // Get one Person * const person = await prisma.person.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PersonClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Person 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 {PersonFindFirstArgs} args - Arguments to find a Person * @example * // Get one Person * const person = await prisma.person.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PersonClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Person 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 {PersonFindFirstOrThrowArgs} args - Arguments to find a Person * @example * // Get one Person * const person = await prisma.person.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PersonClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more People 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 {PersonFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all People * const people = await prisma.person.findMany() * * // Get first 10 People * const people = await prisma.person.findMany({ take: 10 }) * * // Only select the `id` * const personWithIdOnly = await prisma.person.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Person. * @param {PersonCreateArgs} args - Arguments to create a Person. * @example * // Create one Person * const Person = await prisma.person.create({ * data: { * // ... data to create a Person * } * }) * */ create(args: SelectSubset>): Prisma__PersonClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many People. * @param {PersonCreateManyArgs} args - Arguments to create many People. * @example * // Create many People * const person = await prisma.person.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many People and returns the data saved in the database. * @param {PersonCreateManyAndReturnArgs} args - Arguments to create many People. * @example * // Create many People * const person = await prisma.person.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many People and only return the `id` * const personWithIdOnly = await prisma.person.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", GlobalOmitOptions>> /** * Delete a Person. * @param {PersonDeleteArgs} args - Arguments to delete one Person. * @example * // Delete one Person * const Person = await prisma.person.delete({ * where: { * // ... filter to delete one Person * } * }) * */ delete(args: SelectSubset>): Prisma__PersonClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Person. * @param {PersonUpdateArgs} args - Arguments to update one Person. * @example * // Update one Person * const person = await prisma.person.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PersonClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more People. * @param {PersonDeleteManyArgs} args - Arguments to filter People to delete. * @example * // Delete a few People * const { count } = await prisma.person.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more People. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PersonUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many People * const person = await prisma.person.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more People and returns the data updated in the database. * @param {PersonUpdateManyAndReturnArgs} args - Arguments to update many People. * @example * // Update many People * const person = await prisma.person.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more People and only return the `id` * const personWithIdOnly = await prisma.person.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * 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 * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Person. * @param {PersonUpsertArgs} args - Arguments to update or create a Person. * @example * // Update or create a Person * const person = await prisma.person.upsert({ * create: { * // ... data to create a Person * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Person we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PersonClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of People. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PersonCountArgs} args - Arguments to filter People to count. * @example * // Count the number of People * const count = await prisma.person.count({ * where: { * // ... the filter for the People 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 Person. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PersonAggregateArgs} 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 Person. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PersonGroupByArgs} 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 PersonGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PersonGroupByArgs['orderBy'] } : { orderBy?: PersonGroupByArgs['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 ? GetPersonGroupByPayload : Prisma.PrismaPromise /** * Fields of the Person model */ readonly fields: PersonFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Person. * 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__PersonClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" groupMemberships = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | 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 Person model */ interface PersonFieldRefs { readonly id: FieldRef<"Person", 'String'> readonly firstName: FieldRef<"Person", 'String'> readonly lastName: FieldRef<"Person", 'String'> readonly email: FieldRef<"Person", 'String'> readonly phone: FieldRef<"Person", 'String'> readonly ssoId: FieldRef<"Person", 'String'> readonly traits: FieldRef<"Person", 'Json'> readonly createdAt: FieldRef<"Person", 'DateTime'> readonly updatedAt: FieldRef<"Person", 'DateTime'> } // Custom InputTypes /** * Person findUnique */ export type PersonFindUniqueArgs = { /** * Select specific fields to fetch from the Person */ select?: PersonSelect | null /** * Omit specific fields from the Person */ omit?: PersonOmit | null /** * Choose, which related nodes to fetch as well */ include?: PersonInclude | null /** * Filter, which Person to fetch. */ where: PersonWhereUniqueInput } /** * Person findUniqueOrThrow */ export type PersonFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Person */ select?: PersonSelect | null /** * Omit specific fields from the Person */ omit?: PersonOmit | null /** * Choose, which related nodes to fetch as well */ include?: PersonInclude | null /** * Filter, which Person to fetch. */ where: PersonWhereUniqueInput } /** * Person findFirst */ export type PersonFindFirstArgs = { /** * Select specific fields to fetch from the Person */ select?: PersonSelect | null /** * Omit specific fields from the Person */ omit?: PersonOmit | null /** * Choose, which related nodes to fetch as well */ include?: PersonInclude | null /** * Filter, which Person to fetch. */ where?: PersonWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of People to fetch. */ orderBy?: PersonOrderByWithRelationInput | PersonOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for People. */ cursor?: PersonWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` People 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` People. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of People. */ distinct?: PersonScalarFieldEnum | PersonScalarFieldEnum[] } /** * Person findFirstOrThrow */ export type PersonFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Person */ select?: PersonSelect | null /** * Omit specific fields from the Person */ omit?: PersonOmit | null /** * Choose, which related nodes to fetch as well */ include?: PersonInclude | null /** * Filter, which Person to fetch. */ where?: PersonWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of People to fetch. */ orderBy?: PersonOrderByWithRelationInput | PersonOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for People. */ cursor?: PersonWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` People 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` People. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of People. */ distinct?: PersonScalarFieldEnum | PersonScalarFieldEnum[] } /** * Person findMany */ export type PersonFindManyArgs = { /** * Select specific fields to fetch from the Person */ select?: PersonSelect | null /** * Omit specific fields from the Person */ omit?: PersonOmit | null /** * Choose, which related nodes to fetch as well */ include?: PersonInclude | null /** * Filter, which People to fetch. */ where?: PersonWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of People to fetch. */ orderBy?: PersonOrderByWithRelationInput | PersonOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing People. */ cursor?: PersonWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` People 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` People. */ skip?: number distinct?: PersonScalarFieldEnum | PersonScalarFieldEnum[] } /** * Person create */ export type PersonCreateArgs = { /** * Select specific fields to fetch from the Person */ select?: PersonSelect | null /** * Omit specific fields from the Person */ omit?: PersonOmit | null /** * Choose, which related nodes to fetch as well */ include?: PersonInclude | null /** * The data needed to create a Person. */ data: XOR } /** * Person createMany */ export type PersonCreateManyArgs = { /** * The data used to create many People. */ data: PersonCreateManyInput | PersonCreateManyInput[] skipDuplicates?: boolean } /** * Person createManyAndReturn */ export type PersonCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Person */ select?: PersonSelectCreateManyAndReturn | null /** * Omit specific fields from the Person */ omit?: PersonOmit | null /** * The data used to create many People. */ data: PersonCreateManyInput | PersonCreateManyInput[] skipDuplicates?: boolean } /** * Person update */ export type PersonUpdateArgs = { /** * Select specific fields to fetch from the Person */ select?: PersonSelect | null /** * Omit specific fields from the Person */ omit?: PersonOmit | null /** * Choose, which related nodes to fetch as well */ include?: PersonInclude | null /** * The data needed to update a Person. */ data: XOR /** * Choose, which Person to update. */ where: PersonWhereUniqueInput } /** * Person updateMany */ export type PersonUpdateManyArgs = { /** * The data used to update People. */ data: XOR /** * Filter which People to update */ where?: PersonWhereInput /** * Limit how many People to update. */ limit?: number } /** * Person updateManyAndReturn */ export type PersonUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Person */ select?: PersonSelectUpdateManyAndReturn | null /** * Omit specific fields from the Person */ omit?: PersonOmit | null /** * The data used to update People. */ data: XOR /** * Filter which People to update */ where?: PersonWhereInput /** * Limit how many People to update. */ limit?: number } /** * Person upsert */ export type PersonUpsertArgs = { /** * Select specific fields to fetch from the Person */ select?: PersonSelect | null /** * Omit specific fields from the Person */ omit?: PersonOmit | null /** * Choose, which related nodes to fetch as well */ include?: PersonInclude | null /** * The filter to search for the Person to update in case it exists. */ where: PersonWhereUniqueInput /** * In case the Person found by the `where` argument doesn't exist, create a new Person with this data. */ create: XOR /** * In case the Person was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Person delete */ export type PersonDeleteArgs = { /** * Select specific fields to fetch from the Person */ select?: PersonSelect | null /** * Omit specific fields from the Person */ omit?: PersonOmit | null /** * Choose, which related nodes to fetch as well */ include?: PersonInclude | null /** * Filter which Person to delete. */ where: PersonWhereUniqueInput } /** * Person deleteMany */ export type PersonDeleteManyArgs = { /** * Filter which People to delete */ where?: PersonWhereInput /** * Limit how many People to delete. */ limit?: number } /** * Person.groupMemberships */ export type Person$groupMembershipsArgs = { /** * Select specific fields to fetch from the GroupMembership */ select?: GroupMembershipSelect | null /** * Omit specific fields from the GroupMembership */ omit?: GroupMembershipOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupMembershipInclude | null where?: GroupMembershipWhereInput orderBy?: GroupMembershipOrderByWithRelationInput | GroupMembershipOrderByWithRelationInput[] cursor?: GroupMembershipWhereUniqueInput take?: number skip?: number distinct?: GroupMembershipScalarFieldEnum | GroupMembershipScalarFieldEnum[] } /** * Person without action */ export type PersonDefaultArgs = { /** * Select specific fields to fetch from the Person */ select?: PersonSelect | null /** * Omit specific fields from the Person */ omit?: PersonOmit | null /** * Choose, which related nodes to fetch as well */ include?: PersonInclude | null } /** * Model Group */ export type AggregateGroup = { _count: GroupCountAggregateOutputType | null _min: GroupMinAggregateOutputType | null _max: GroupMaxAggregateOutputType | null } export type GroupMinAggregateOutputType = { id: string | null name: string | null createdAt: Date | null updatedAt: Date | null } export type GroupMaxAggregateOutputType = { id: string | null name: string | null createdAt: Date | null updatedAt: Date | null } export type GroupCountAggregateOutputType = { id: number name: number traits: number createdAt: number updatedAt: number _all: number } export type GroupMinAggregateInputType = { id?: true name?: true createdAt?: true updatedAt?: true } export type GroupMaxAggregateInputType = { id?: true name?: true createdAt?: true updatedAt?: true } export type GroupCountAggregateInputType = { id?: true name?: true traits?: true createdAt?: true updatedAt?: true _all?: true } export type GroupAggregateArgs = { /** * Filter which Group to aggregate. */ where?: GroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Groups to fetch. */ orderBy?: GroupOrderByWithRelationInput | GroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: GroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Groups 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` Groups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Groups **/ _count?: true | GroupCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: GroupMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: GroupMaxAggregateInputType } export type GetGroupAggregateType = { [P in keyof T & keyof AggregateGroup]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type GroupGroupByArgs = { where?: GroupWhereInput orderBy?: GroupOrderByWithAggregationInput | GroupOrderByWithAggregationInput[] by: GroupScalarFieldEnum[] | GroupScalarFieldEnum having?: GroupScalarWhereWithAggregatesInput take?: number skip?: number _count?: GroupCountAggregateInputType | true _min?: GroupMinAggregateInputType _max?: GroupMaxAggregateInputType } export type GroupGroupByOutputType = { id: string name: string traits: JsonValue createdAt: Date updatedAt: Date _count: GroupCountAggregateOutputType | null _min: GroupMinAggregateOutputType | null _max: GroupMaxAggregateOutputType | null } type GetGroupGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof GroupGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type GroupSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean traits?: boolean createdAt?: boolean updatedAt?: boolean members?: boolean | Group$membersArgs _count?: boolean | GroupCountOutputTypeDefaultArgs }, ExtArgs["result"]["group"]> export type GroupSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean traits?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["group"]> export type GroupSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean traits?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["group"]> export type GroupSelectScalar = { id?: boolean name?: boolean traits?: boolean createdAt?: boolean updatedAt?: boolean } export type GroupOmit = $Extensions.GetOmit<"id" | "name" | "traits" | "createdAt" | "updatedAt", ExtArgs["result"]["group"]> export type GroupInclude = { members?: boolean | Group$membersArgs _count?: boolean | GroupCountOutputTypeDefaultArgs } export type GroupIncludeCreateManyAndReturn = {} export type GroupIncludeUpdateManyAndReturn = {} export type $GroupPayload = { name: "Group" objects: { members: Prisma.$GroupMembershipPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string name: string traits: Prisma.JsonValue createdAt: Date updatedAt: Date }, ExtArgs["result"]["group"]> composites: {} } type GroupGetPayload = $Result.GetResult type GroupCountArgs = Omit & { select?: GroupCountAggregateInputType | true } export interface GroupDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Group'], meta: { name: 'Group' } } /** * Find zero or one Group that matches the filter. * @param {GroupFindUniqueArgs} args - Arguments to find a Group * @example * // Get one Group * const group = await prisma.group.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__GroupClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Group that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {GroupFindUniqueOrThrowArgs} args - Arguments to find a Group * @example * // Get one Group * const group = await prisma.group.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__GroupClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Group 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 {GroupFindFirstArgs} args - Arguments to find a Group * @example * // Get one Group * const group = await prisma.group.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__GroupClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Group 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 {GroupFindFirstOrThrowArgs} args - Arguments to find a Group * @example * // Get one Group * const group = await prisma.group.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__GroupClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Groups 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 {GroupFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Groups * const groups = await prisma.group.findMany() * * // Get first 10 Groups * const groups = await prisma.group.findMany({ take: 10 }) * * // Only select the `id` * const groupWithIdOnly = await prisma.group.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Group. * @param {GroupCreateArgs} args - Arguments to create a Group. * @example * // Create one Group * const Group = await prisma.group.create({ * data: { * // ... data to create a Group * } * }) * */ create(args: SelectSubset>): Prisma__GroupClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Groups. * @param {GroupCreateManyArgs} args - Arguments to create many Groups. * @example * // Create many Groups * const group = await prisma.group.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Groups and returns the data saved in the database. * @param {GroupCreateManyAndReturnArgs} args - Arguments to create many Groups. * @example * // Create many Groups * const group = await prisma.group.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Groups and only return the `id` * const groupWithIdOnly = await prisma.group.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", GlobalOmitOptions>> /** * Delete a Group. * @param {GroupDeleteArgs} args - Arguments to delete one Group. * @example * // Delete one Group * const Group = await prisma.group.delete({ * where: { * // ... filter to delete one Group * } * }) * */ delete(args: SelectSubset>): Prisma__GroupClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Group. * @param {GroupUpdateArgs} args - Arguments to update one Group. * @example * // Update one Group * const group = await prisma.group.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__GroupClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Groups. * @param {GroupDeleteManyArgs} args - Arguments to filter Groups to delete. * @example * // Delete a few Groups * const { count } = await prisma.group.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Groups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GroupUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Groups * const group = await prisma.group.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Groups and returns the data updated in the database. * @param {GroupUpdateManyAndReturnArgs} args - Arguments to update many Groups. * @example * // Update many Groups * const group = await prisma.group.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Groups and only return the `id` * const groupWithIdOnly = await prisma.group.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * 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 * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Group. * @param {GroupUpsertArgs} args - Arguments to update or create a Group. * @example * // Update or create a Group * const group = await prisma.group.upsert({ * create: { * // ... data to create a Group * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Group we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__GroupClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Groups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GroupCountArgs} args - Arguments to filter Groups to count. * @example * // Count the number of Groups * const count = await prisma.group.count({ * where: { * // ... the filter for the Groups 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 Group. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GroupAggregateArgs} 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 Group. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GroupGroupByArgs} 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 GroupGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: GroupGroupByArgs['orderBy'] } : { orderBy?: GroupGroupByArgs['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 ? GetGroupGroupByPayload : Prisma.PrismaPromise /** * Fields of the Group model */ readonly fields: GroupFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Group. * 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__GroupClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" members = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | 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 Group model */ interface GroupFieldRefs { readonly id: FieldRef<"Group", 'String'> readonly name: FieldRef<"Group", 'String'> readonly traits: FieldRef<"Group", 'Json'> readonly createdAt: FieldRef<"Group", 'DateTime'> readonly updatedAt: FieldRef<"Group", 'DateTime'> } // Custom InputTypes /** * Group findUnique */ export type GroupFindUniqueArgs = { /** * Select specific fields to fetch from the Group */ select?: GroupSelect | null /** * Omit specific fields from the Group */ omit?: GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupInclude | null /** * Filter, which Group to fetch. */ where: GroupWhereUniqueInput } /** * Group findUniqueOrThrow */ export type GroupFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Group */ select?: GroupSelect | null /** * Omit specific fields from the Group */ omit?: GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupInclude | null /** * Filter, which Group to fetch. */ where: GroupWhereUniqueInput } /** * Group findFirst */ export type GroupFindFirstArgs = { /** * Select specific fields to fetch from the Group */ select?: GroupSelect | null /** * Omit specific fields from the Group */ omit?: GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupInclude | null /** * Filter, which Group to fetch. */ where?: GroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Groups to fetch. */ orderBy?: GroupOrderByWithRelationInput | GroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Groups. */ cursor?: GroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Groups 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` Groups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Groups. */ distinct?: GroupScalarFieldEnum | GroupScalarFieldEnum[] } /** * Group findFirstOrThrow */ export type GroupFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Group */ select?: GroupSelect | null /** * Omit specific fields from the Group */ omit?: GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupInclude | null /** * Filter, which Group to fetch. */ where?: GroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Groups to fetch. */ orderBy?: GroupOrderByWithRelationInput | GroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Groups. */ cursor?: GroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Groups 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` Groups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Groups. */ distinct?: GroupScalarFieldEnum | GroupScalarFieldEnum[] } /** * Group findMany */ export type GroupFindManyArgs = { /** * Select specific fields to fetch from the Group */ select?: GroupSelect | null /** * Omit specific fields from the Group */ omit?: GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupInclude | null /** * Filter, which Groups to fetch. */ where?: GroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Groups to fetch. */ orderBy?: GroupOrderByWithRelationInput | GroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Groups. */ cursor?: GroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Groups 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` Groups. */ skip?: number distinct?: GroupScalarFieldEnum | GroupScalarFieldEnum[] } /** * Group create */ export type GroupCreateArgs = { /** * Select specific fields to fetch from the Group */ select?: GroupSelect | null /** * Omit specific fields from the Group */ omit?: GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupInclude | null /** * The data needed to create a Group. */ data: XOR } /** * Group createMany */ export type GroupCreateManyArgs = { /** * The data used to create many Groups. */ data: GroupCreateManyInput | GroupCreateManyInput[] skipDuplicates?: boolean } /** * Group createManyAndReturn */ export type GroupCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Group */ select?: GroupSelectCreateManyAndReturn | null /** * Omit specific fields from the Group */ omit?: GroupOmit | null /** * The data used to create many Groups. */ data: GroupCreateManyInput | GroupCreateManyInput[] skipDuplicates?: boolean } /** * Group update */ export type GroupUpdateArgs = { /** * Select specific fields to fetch from the Group */ select?: GroupSelect | null /** * Omit specific fields from the Group */ omit?: GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupInclude | null /** * The data needed to update a Group. */ data: XOR /** * Choose, which Group to update. */ where: GroupWhereUniqueInput } /** * Group updateMany */ export type GroupUpdateManyArgs = { /** * The data used to update Groups. */ data: XOR /** * Filter which Groups to update */ where?: GroupWhereInput /** * Limit how many Groups to update. */ limit?: number } /** * Group updateManyAndReturn */ export type GroupUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Group */ select?: GroupSelectUpdateManyAndReturn | null /** * Omit specific fields from the Group */ omit?: GroupOmit | null /** * The data used to update Groups. */ data: XOR /** * Filter which Groups to update */ where?: GroupWhereInput /** * Limit how many Groups to update. */ limit?: number } /** * Group upsert */ export type GroupUpsertArgs = { /** * Select specific fields to fetch from the Group */ select?: GroupSelect | null /** * Omit specific fields from the Group */ omit?: GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupInclude | null /** * The filter to search for the Group to update in case it exists. */ where: GroupWhereUniqueInput /** * In case the Group found by the `where` argument doesn't exist, create a new Group with this data. */ create: XOR /** * In case the Group was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Group delete */ export type GroupDeleteArgs = { /** * Select specific fields to fetch from the Group */ select?: GroupSelect | null /** * Omit specific fields from the Group */ omit?: GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupInclude | null /** * Filter which Group to delete. */ where: GroupWhereUniqueInput } /** * Group deleteMany */ export type GroupDeleteManyArgs = { /** * Filter which Groups to delete */ where?: GroupWhereInput /** * Limit how many Groups to delete. */ limit?: number } /** * Group.members */ export type Group$membersArgs = { /** * Select specific fields to fetch from the GroupMembership */ select?: GroupMembershipSelect | null /** * Omit specific fields from the GroupMembership */ omit?: GroupMembershipOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupMembershipInclude | null where?: GroupMembershipWhereInput orderBy?: GroupMembershipOrderByWithRelationInput | GroupMembershipOrderByWithRelationInput[] cursor?: GroupMembershipWhereUniqueInput take?: number skip?: number distinct?: GroupMembershipScalarFieldEnum | GroupMembershipScalarFieldEnum[] } /** * Group without action */ export type GroupDefaultArgs = { /** * Select specific fields to fetch from the Group */ select?: GroupSelect | null /** * Omit specific fields from the Group */ omit?: GroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupInclude | null } /** * Model GroupMembership */ export type AggregateGroupMembership = { _count: GroupMembershipCountAggregateOutputType | null _min: GroupMembershipMinAggregateOutputType | null _max: GroupMembershipMaxAggregateOutputType | null } export type GroupMembershipMinAggregateOutputType = { id: string | null personId: string | null groupId: string | null role: string | null } export type GroupMembershipMaxAggregateOutputType = { id: string | null personId: string | null groupId: string | null role: string | null } export type GroupMembershipCountAggregateOutputType = { id: number personId: number groupId: number role: number _all: number } export type GroupMembershipMinAggregateInputType = { id?: true personId?: true groupId?: true role?: true } export type GroupMembershipMaxAggregateInputType = { id?: true personId?: true groupId?: true role?: true } export type GroupMembershipCountAggregateInputType = { id?: true personId?: true groupId?: true role?: true _all?: true } export type GroupMembershipAggregateArgs = { /** * Filter which GroupMembership to aggregate. */ where?: GroupMembershipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GroupMemberships to fetch. */ orderBy?: GroupMembershipOrderByWithRelationInput | GroupMembershipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: GroupMembershipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GroupMemberships 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` GroupMemberships. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned GroupMemberships **/ _count?: true | GroupMembershipCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: GroupMembershipMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: GroupMembershipMaxAggregateInputType } export type GetGroupMembershipAggregateType = { [P in keyof T & keyof AggregateGroupMembership]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type GroupMembershipGroupByArgs = { where?: GroupMembershipWhereInput orderBy?: GroupMembershipOrderByWithAggregationInput | GroupMembershipOrderByWithAggregationInput[] by: GroupMembershipScalarFieldEnum[] | GroupMembershipScalarFieldEnum having?: GroupMembershipScalarWhereWithAggregatesInput take?: number skip?: number _count?: GroupMembershipCountAggregateInputType | true _min?: GroupMembershipMinAggregateInputType _max?: GroupMembershipMaxAggregateInputType } export type GroupMembershipGroupByOutputType = { id: string personId: string groupId: string role: string _count: GroupMembershipCountAggregateOutputType | null _min: GroupMembershipMinAggregateOutputType | null _max: GroupMembershipMaxAggregateOutputType | null } type GetGroupMembershipGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof GroupMembershipGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type GroupMembershipSelect = $Extensions.GetSelect<{ id?: boolean personId?: boolean groupId?: boolean role?: boolean group?: boolean | GroupDefaultArgs person?: boolean | PersonDefaultArgs }, ExtArgs["result"]["groupMembership"]> export type GroupMembershipSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean personId?: boolean groupId?: boolean role?: boolean group?: boolean | GroupDefaultArgs person?: boolean | PersonDefaultArgs }, ExtArgs["result"]["groupMembership"]> export type GroupMembershipSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean personId?: boolean groupId?: boolean role?: boolean group?: boolean | GroupDefaultArgs person?: boolean | PersonDefaultArgs }, ExtArgs["result"]["groupMembership"]> export type GroupMembershipSelectScalar = { id?: boolean personId?: boolean groupId?: boolean role?: boolean } export type GroupMembershipOmit = $Extensions.GetOmit<"id" | "personId" | "groupId" | "role", ExtArgs["result"]["groupMembership"]> export type GroupMembershipInclude = { group?: boolean | GroupDefaultArgs person?: boolean | PersonDefaultArgs } export type GroupMembershipIncludeCreateManyAndReturn = { group?: boolean | GroupDefaultArgs person?: boolean | PersonDefaultArgs } export type GroupMembershipIncludeUpdateManyAndReturn = { group?: boolean | GroupDefaultArgs person?: boolean | PersonDefaultArgs } export type $GroupMembershipPayload = { name: "GroupMembership" objects: { group: Prisma.$GroupPayload person: Prisma.$PersonPayload } scalars: $Extensions.GetPayloadResult<{ id: string personId: string groupId: string role: string }, ExtArgs["result"]["groupMembership"]> composites: {} } type GroupMembershipGetPayload = $Result.GetResult type GroupMembershipCountArgs = Omit & { select?: GroupMembershipCountAggregateInputType | true } export interface GroupMembershipDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['GroupMembership'], meta: { name: 'GroupMembership' } } /** * Find zero or one GroupMembership that matches the filter. * @param {GroupMembershipFindUniqueArgs} args - Arguments to find a GroupMembership * @example * // Get one GroupMembership * const groupMembership = await prisma.groupMembership.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__GroupMembershipClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one GroupMembership that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {GroupMembershipFindUniqueOrThrowArgs} args - Arguments to find a GroupMembership * @example * // Get one GroupMembership * const groupMembership = await prisma.groupMembership.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__GroupMembershipClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first GroupMembership 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 {GroupMembershipFindFirstArgs} args - Arguments to find a GroupMembership * @example * // Get one GroupMembership * const groupMembership = await prisma.groupMembership.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__GroupMembershipClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first GroupMembership 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 {GroupMembershipFindFirstOrThrowArgs} args - Arguments to find a GroupMembership * @example * // Get one GroupMembership * const groupMembership = await prisma.groupMembership.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__GroupMembershipClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more GroupMemberships 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 {GroupMembershipFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all GroupMemberships * const groupMemberships = await prisma.groupMembership.findMany() * * // Get first 10 GroupMemberships * const groupMemberships = await prisma.groupMembership.findMany({ take: 10 }) * * // Only select the `id` * const groupMembershipWithIdOnly = await prisma.groupMembership.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a GroupMembership. * @param {GroupMembershipCreateArgs} args - Arguments to create a GroupMembership. * @example * // Create one GroupMembership * const GroupMembership = await prisma.groupMembership.create({ * data: { * // ... data to create a GroupMembership * } * }) * */ create(args: SelectSubset>): Prisma__GroupMembershipClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many GroupMemberships. * @param {GroupMembershipCreateManyArgs} args - Arguments to create many GroupMemberships. * @example * // Create many GroupMemberships * const groupMembership = await prisma.groupMembership.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many GroupMemberships and returns the data saved in the database. * @param {GroupMembershipCreateManyAndReturnArgs} args - Arguments to create many GroupMemberships. * @example * // Create many GroupMemberships * const groupMembership = await prisma.groupMembership.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many GroupMemberships and only return the `id` * const groupMembershipWithIdOnly = await prisma.groupMembership.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", GlobalOmitOptions>> /** * Delete a GroupMembership. * @param {GroupMembershipDeleteArgs} args - Arguments to delete one GroupMembership. * @example * // Delete one GroupMembership * const GroupMembership = await prisma.groupMembership.delete({ * where: { * // ... filter to delete one GroupMembership * } * }) * */ delete(args: SelectSubset>): Prisma__GroupMembershipClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one GroupMembership. * @param {GroupMembershipUpdateArgs} args - Arguments to update one GroupMembership. * @example * // Update one GroupMembership * const groupMembership = await prisma.groupMembership.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__GroupMembershipClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more GroupMemberships. * @param {GroupMembershipDeleteManyArgs} args - Arguments to filter GroupMemberships to delete. * @example * // Delete a few GroupMemberships * const { count } = await prisma.groupMembership.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more GroupMemberships. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GroupMembershipUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many GroupMemberships * const groupMembership = await prisma.groupMembership.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more GroupMemberships and returns the data updated in the database. * @param {GroupMembershipUpdateManyAndReturnArgs} args - Arguments to update many GroupMemberships. * @example * // Update many GroupMemberships * const groupMembership = await prisma.groupMembership.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more GroupMemberships and only return the `id` * const groupMembershipWithIdOnly = await prisma.groupMembership.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * 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 * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one GroupMembership. * @param {GroupMembershipUpsertArgs} args - Arguments to update or create a GroupMembership. * @example * // Update or create a GroupMembership * const groupMembership = await prisma.groupMembership.upsert({ * create: { * // ... data to create a GroupMembership * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the GroupMembership we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__GroupMembershipClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of GroupMemberships. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GroupMembershipCountArgs} args - Arguments to filter GroupMemberships to count. * @example * // Count the number of GroupMemberships * const count = await prisma.groupMembership.count({ * where: { * // ... the filter for the GroupMemberships 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 GroupMembership. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GroupMembershipAggregateArgs} 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 GroupMembership. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GroupMembershipGroupByArgs} 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 GroupMembershipGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: GroupMembershipGroupByArgs['orderBy'] } : { orderBy?: GroupMembershipGroupByArgs['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 ? GetGroupMembershipGroupByPayload : Prisma.PrismaPromise /** * Fields of the GroupMembership model */ readonly fields: GroupMembershipFieldRefs; } /** * The delegate class that acts as a "Promise-like" for GroupMembership. * 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__GroupMembershipClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" group = {}>(args?: Subset>): Prisma__GroupClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> person = {}>(args?: Subset>): Prisma__PersonClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 GroupMembership model */ interface GroupMembershipFieldRefs { readonly id: FieldRef<"GroupMembership", 'String'> readonly personId: FieldRef<"GroupMembership", 'String'> readonly groupId: FieldRef<"GroupMembership", 'String'> readonly role: FieldRef<"GroupMembership", 'String'> } // Custom InputTypes /** * GroupMembership findUnique */ export type GroupMembershipFindUniqueArgs = { /** * Select specific fields to fetch from the GroupMembership */ select?: GroupMembershipSelect | null /** * Omit specific fields from the GroupMembership */ omit?: GroupMembershipOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupMembershipInclude | null /** * Filter, which GroupMembership to fetch. */ where: GroupMembershipWhereUniqueInput } /** * GroupMembership findUniqueOrThrow */ export type GroupMembershipFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the GroupMembership */ select?: GroupMembershipSelect | null /** * Omit specific fields from the GroupMembership */ omit?: GroupMembershipOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupMembershipInclude | null /** * Filter, which GroupMembership to fetch. */ where: GroupMembershipWhereUniqueInput } /** * GroupMembership findFirst */ export type GroupMembershipFindFirstArgs = { /** * Select specific fields to fetch from the GroupMembership */ select?: GroupMembershipSelect | null /** * Omit specific fields from the GroupMembership */ omit?: GroupMembershipOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupMembershipInclude | null /** * Filter, which GroupMembership to fetch. */ where?: GroupMembershipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GroupMemberships to fetch. */ orderBy?: GroupMembershipOrderByWithRelationInput | GroupMembershipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for GroupMemberships. */ cursor?: GroupMembershipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GroupMemberships 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` GroupMemberships. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of GroupMemberships. */ distinct?: GroupMembershipScalarFieldEnum | GroupMembershipScalarFieldEnum[] } /** * GroupMembership findFirstOrThrow */ export type GroupMembershipFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the GroupMembership */ select?: GroupMembershipSelect | null /** * Omit specific fields from the GroupMembership */ omit?: GroupMembershipOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupMembershipInclude | null /** * Filter, which GroupMembership to fetch. */ where?: GroupMembershipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GroupMemberships to fetch. */ orderBy?: GroupMembershipOrderByWithRelationInput | GroupMembershipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for GroupMemberships. */ cursor?: GroupMembershipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GroupMemberships 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` GroupMemberships. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of GroupMemberships. */ distinct?: GroupMembershipScalarFieldEnum | GroupMembershipScalarFieldEnum[] } /** * GroupMembership findMany */ export type GroupMembershipFindManyArgs = { /** * Select specific fields to fetch from the GroupMembership */ select?: GroupMembershipSelect | null /** * Omit specific fields from the GroupMembership */ omit?: GroupMembershipOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupMembershipInclude | null /** * Filter, which GroupMemberships to fetch. */ where?: GroupMembershipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GroupMemberships to fetch. */ orderBy?: GroupMembershipOrderByWithRelationInput | GroupMembershipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing GroupMemberships. */ cursor?: GroupMembershipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GroupMemberships 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` GroupMemberships. */ skip?: number distinct?: GroupMembershipScalarFieldEnum | GroupMembershipScalarFieldEnum[] } /** * GroupMembership create */ export type GroupMembershipCreateArgs = { /** * Select specific fields to fetch from the GroupMembership */ select?: GroupMembershipSelect | null /** * Omit specific fields from the GroupMembership */ omit?: GroupMembershipOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupMembershipInclude | null /** * The data needed to create a GroupMembership. */ data: XOR } /** * GroupMembership createMany */ export type GroupMembershipCreateManyArgs = { /** * The data used to create many GroupMemberships. */ data: GroupMembershipCreateManyInput | GroupMembershipCreateManyInput[] skipDuplicates?: boolean } /** * GroupMembership createManyAndReturn */ export type GroupMembershipCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the GroupMembership */ select?: GroupMembershipSelectCreateManyAndReturn | null /** * Omit specific fields from the GroupMembership */ omit?: GroupMembershipOmit | null /** * The data used to create many GroupMemberships. */ data: GroupMembershipCreateManyInput | GroupMembershipCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: GroupMembershipIncludeCreateManyAndReturn | null } /** * GroupMembership update */ export type GroupMembershipUpdateArgs = { /** * Select specific fields to fetch from the GroupMembership */ select?: GroupMembershipSelect | null /** * Omit specific fields from the GroupMembership */ omit?: GroupMembershipOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupMembershipInclude | null /** * The data needed to update a GroupMembership. */ data: XOR /** * Choose, which GroupMembership to update. */ where: GroupMembershipWhereUniqueInput } /** * GroupMembership updateMany */ export type GroupMembershipUpdateManyArgs = { /** * The data used to update GroupMemberships. */ data: XOR /** * Filter which GroupMemberships to update */ where?: GroupMembershipWhereInput /** * Limit how many GroupMemberships to update. */ limit?: number } /** * GroupMembership updateManyAndReturn */ export type GroupMembershipUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the GroupMembership */ select?: GroupMembershipSelectUpdateManyAndReturn | null /** * Omit specific fields from the GroupMembership */ omit?: GroupMembershipOmit | null /** * The data used to update GroupMemberships. */ data: XOR /** * Filter which GroupMemberships to update */ where?: GroupMembershipWhereInput /** * Limit how many GroupMemberships to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: GroupMembershipIncludeUpdateManyAndReturn | null } /** * GroupMembership upsert */ export type GroupMembershipUpsertArgs = { /** * Select specific fields to fetch from the GroupMembership */ select?: GroupMembershipSelect | null /** * Omit specific fields from the GroupMembership */ omit?: GroupMembershipOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupMembershipInclude | null /** * The filter to search for the GroupMembership to update in case it exists. */ where: GroupMembershipWhereUniqueInput /** * In case the GroupMembership found by the `where` argument doesn't exist, create a new GroupMembership with this data. */ create: XOR /** * In case the GroupMembership was found with the provided `where` argument, update it with this data. */ update: XOR } /** * GroupMembership delete */ export type GroupMembershipDeleteArgs = { /** * Select specific fields to fetch from the GroupMembership */ select?: GroupMembershipSelect | null /** * Omit specific fields from the GroupMembership */ omit?: GroupMembershipOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupMembershipInclude | null /** * Filter which GroupMembership to delete. */ where: GroupMembershipWhereUniqueInput } /** * GroupMembership deleteMany */ export type GroupMembershipDeleteManyArgs = { /** * Filter which GroupMemberships to delete */ where?: GroupMembershipWhereInput /** * Limit how many GroupMemberships to delete. */ limit?: number } /** * GroupMembership without action */ export type GroupMembershipDefaultArgs = { /** * Select specific fields to fetch from the GroupMembership */ select?: GroupMembershipSelect | null /** * Omit specific fields from the GroupMembership */ omit?: GroupMembershipOmit | null /** * Choose, which related nodes to fetch as well */ include?: GroupMembershipInclude | null } /** * Model Event */ export type AggregateEvent = { _count: EventCountAggregateOutputType | null _min: EventMinAggregateOutputType | null _max: EventMaxAggregateOutputType | null } export type EventMinAggregateOutputType = { id: string | null type: string | null status: string | null startTime: Date | null endTime: Date | null targetUnitId: string | null targetGroupId: string | null targetPersonId: string | null parentEventId: string | null createdAt: Date | null updatedAt: Date | null } export type EventMaxAggregateOutputType = { id: string | null type: string | null status: string | null startTime: Date | null endTime: Date | null targetUnitId: string | null targetGroupId: string | null targetPersonId: string | null parentEventId: string | null createdAt: Date | null updatedAt: Date | null } export type EventCountAggregateOutputType = { id: number type: number status: number startTime: number endTime: number targetUnitId: number targetGroupId: number targetPersonId: number payload: number parentEventId: number createdAt: number updatedAt: number _all: number } export type EventMinAggregateInputType = { id?: true type?: true status?: true startTime?: true endTime?: true targetUnitId?: true targetGroupId?: true targetPersonId?: true parentEventId?: true createdAt?: true updatedAt?: true } export type EventMaxAggregateInputType = { id?: true type?: true status?: true startTime?: true endTime?: true targetUnitId?: true targetGroupId?: true targetPersonId?: true parentEventId?: true createdAt?: true updatedAt?: true } export type EventCountAggregateInputType = { id?: true type?: true status?: true startTime?: true endTime?: true targetUnitId?: true targetGroupId?: true targetPersonId?: true payload?: true parentEventId?: 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 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 _min?: EventMinAggregateInputType _max?: EventMaxAggregateInputType } export type EventGroupByOutputType = { id: string type: string status: string startTime: Date endTime: Date | null targetUnitId: string | null targetGroupId: string | null targetPersonId: string | null payload: JsonValue parentEventId: string | null createdAt: Date updatedAt: Date _count: EventCountAggregateOutputType | 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 type?: boolean status?: boolean startTime?: boolean endTime?: boolean targetUnitId?: boolean targetGroupId?: boolean targetPersonId?: boolean payload?: boolean parentEventId?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["event"]> export type EventSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean type?: boolean status?: boolean startTime?: boolean endTime?: boolean targetUnitId?: boolean targetGroupId?: boolean targetPersonId?: boolean payload?: boolean parentEventId?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["event"]> export type EventSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean type?: boolean status?: boolean startTime?: boolean endTime?: boolean targetUnitId?: boolean targetGroupId?: boolean targetPersonId?: boolean payload?: boolean parentEventId?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["event"]> export type EventSelectScalar = { id?: boolean type?: boolean status?: boolean startTime?: boolean endTime?: boolean targetUnitId?: boolean targetGroupId?: boolean targetPersonId?: boolean payload?: boolean parentEventId?: boolean createdAt?: boolean updatedAt?: boolean } export type EventOmit = $Extensions.GetOmit<"id" | "type" | "status" | "startTime" | "endTime" | "targetUnitId" | "targetGroupId" | "targetPersonId" | "payload" | "parentEventId" | "createdAt" | "updatedAt", ExtArgs["result"]["event"]> export type $EventPayload = { name: "Event" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string type: string status: string startTime: Date endTime: Date | null targetUnitId: string | null targetGroupId: string | null targetPersonId: string | null payload: Prisma.JsonValue parentEventId: string | 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", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions>> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions>> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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 /** * Update zero or more Events and returns the data updated in the database. * @param {EventUpdateManyAndReturnArgs} args - Arguments to update many Events. * @example * // Update many Events * const event = await prisma.event.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Events and only return the `id` * const eventWithIdOnly = await prisma.event.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * 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 * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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" /** * 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 type: FieldRef<"Event", 'String'> readonly status: FieldRef<"Event", 'String'> readonly startTime: FieldRef<"Event", 'DateTime'> readonly endTime: FieldRef<"Event", 'DateTime'> readonly targetUnitId: FieldRef<"Event", 'String'> readonly targetGroupId: FieldRef<"Event", 'String'> readonly targetPersonId: FieldRef<"Event", 'String'> readonly payload: FieldRef<"Event", 'Json'> readonly parentEventId: FieldRef<"Event", 'String'> 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 /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * Filter, which Event to fetch. */ where: EventWhereUniqueInput } /** * Event findUniqueOrThrow */ export type EventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * Filter, which Event to fetch. */ where: EventWhereUniqueInput } /** * Event findFirst */ export type EventFindFirstArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | 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 /** * Omit specific fields from the Event */ omit?: EventOmit | 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 /** * Omit specific fields from the Event */ omit?: EventOmit | 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 /** * Omit specific fields from the Event */ omit?: EventOmit | 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 /** * Omit specific fields from the Event */ omit?: EventOmit | 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 /** * Omit specific fields from the Event */ omit?: EventOmit | 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 /** * Limit how many Events to update. */ limit?: number } /** * Event updateManyAndReturn */ export type EventUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelectUpdateManyAndReturn | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * The data used to update Events. */ data: XOR /** * Filter which Events to update */ where?: EventWhereInput /** * Limit how many Events to update. */ limit?: number } /** * Event upsert */ export type EventUpsertArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | 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 /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * Filter which Event to delete. */ where: EventWhereUniqueInput } /** * Event deleteMany */ export type EventDeleteManyArgs = { /** * Filter which Events to delete */ where?: EventWhereInput /** * Limit how many Events to delete. */ limit?: number } /** * Event without action */ export type EventDefaultArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | null } /** * Model cities */ export type AggregateCities = { _count: CitiesCountAggregateOutputType | null _avg: CitiesAvgAggregateOutputType | null _sum: CitiesSumAggregateOutputType | null _min: CitiesMinAggregateOutputType | null _max: CitiesMaxAggregateOutputType | null } export type CitiesAvgAggregateOutputType = { id: number | null state_id: number | null country_id: number | null level: number | null parent_id: number | null latitude: Decimal | null longitude: Decimal | null population: number | null flag: number | null } export type CitiesSumAggregateOutputType = { id: bigint | null state_id: bigint | null country_id: bigint | null level: number | null parent_id: bigint | null latitude: Decimal | null longitude: Decimal | null population: bigint | null flag: number | null } export type CitiesMinAggregateOutputType = { id: bigint | null name: string | null state_id: bigint | null state_code: string | null country_id: bigint | null country_code: string | null type: string | null level: number | null parent_id: bigint | null latitude: Decimal | null longitude: Decimal | null native: string | null population: bigint | null timezone: string | null translations: string | null created_at: Date | null updated_at: Date | null flag: number | null wikiDataId: string | null } export type CitiesMaxAggregateOutputType = { id: bigint | null name: string | null state_id: bigint | null state_code: string | null country_id: bigint | null country_code: string | null type: string | null level: number | null parent_id: bigint | null latitude: Decimal | null longitude: Decimal | null native: string | null population: bigint | null timezone: string | null translations: string | null created_at: Date | null updated_at: Date | null flag: number | null wikiDataId: string | null } export type CitiesCountAggregateOutputType = { id: number name: number state_id: number state_code: number country_id: number country_code: number type: number level: number parent_id: number latitude: number longitude: number native: number population: number timezone: number translations: number created_at: number updated_at: number flag: number wikiDataId: number _all: number } export type CitiesAvgAggregateInputType = { id?: true state_id?: true country_id?: true level?: true parent_id?: true latitude?: true longitude?: true population?: true flag?: true } export type CitiesSumAggregateInputType = { id?: true state_id?: true country_id?: true level?: true parent_id?: true latitude?: true longitude?: true population?: true flag?: true } export type CitiesMinAggregateInputType = { id?: true name?: true state_id?: true state_code?: true country_id?: true country_code?: true type?: true level?: true parent_id?: true latitude?: true longitude?: true native?: true population?: true timezone?: true translations?: true created_at?: true updated_at?: true flag?: true wikiDataId?: true } export type CitiesMaxAggregateInputType = { id?: true name?: true state_id?: true state_code?: true country_id?: true country_code?: true type?: true level?: true parent_id?: true latitude?: true longitude?: true native?: true population?: true timezone?: true translations?: true created_at?: true updated_at?: true flag?: true wikiDataId?: true } export type CitiesCountAggregateInputType = { id?: true name?: true state_id?: true state_code?: true country_id?: true country_code?: true type?: true level?: true parent_id?: true latitude?: true longitude?: true native?: true population?: true timezone?: true translations?: true created_at?: true updated_at?: true flag?: true wikiDataId?: true _all?: true } export type CitiesAggregateArgs = { /** * Filter which cities to aggregate. */ where?: citiesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of cities to fetch. */ orderBy?: citiesOrderByWithRelationInput | citiesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: citiesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` cities 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` cities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned cities **/ _count?: true | CitiesCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CitiesAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CitiesSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CitiesMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CitiesMaxAggregateInputType } export type GetCitiesAggregateType = { [P in keyof T & keyof AggregateCities]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type citiesGroupByArgs = { where?: citiesWhereInput orderBy?: citiesOrderByWithAggregationInput | citiesOrderByWithAggregationInput[] by: CitiesScalarFieldEnum[] | CitiesScalarFieldEnum having?: citiesScalarWhereWithAggregatesInput take?: number skip?: number _count?: CitiesCountAggregateInputType | true _avg?: CitiesAvgAggregateInputType _sum?: CitiesSumAggregateInputType _min?: CitiesMinAggregateInputType _max?: CitiesMaxAggregateInputType } export type CitiesGroupByOutputType = { id: bigint name: string state_id: bigint state_code: string country_id: bigint country_code: string type: string | null level: number | null parent_id: bigint | null latitude: Decimal longitude: Decimal native: string | null population: bigint | null timezone: string | null translations: string | null created_at: Date updated_at: Date flag: number wikiDataId: string | null _count: CitiesCountAggregateOutputType | null _avg: CitiesAvgAggregateOutputType | null _sum: CitiesSumAggregateOutputType | null _min: CitiesMinAggregateOutputType | null _max: CitiesMaxAggregateOutputType | null } type GetCitiesGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CitiesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type citiesSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean state_id?: boolean state_code?: boolean country_id?: boolean country_code?: boolean type?: boolean level?: boolean parent_id?: boolean latitude?: boolean longitude?: boolean native?: boolean population?: boolean timezone?: boolean translations?: boolean created_at?: boolean updated_at?: boolean flag?: boolean wikiDataId?: boolean countries?: boolean | countriesDefaultArgs states?: boolean | statesDefaultArgs }, ExtArgs["result"]["cities"]> export type citiesSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean state_id?: boolean state_code?: boolean country_id?: boolean country_code?: boolean type?: boolean level?: boolean parent_id?: boolean latitude?: boolean longitude?: boolean native?: boolean population?: boolean timezone?: boolean translations?: boolean created_at?: boolean updated_at?: boolean flag?: boolean wikiDataId?: boolean countries?: boolean | countriesDefaultArgs states?: boolean | statesDefaultArgs }, ExtArgs["result"]["cities"]> export type citiesSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean state_id?: boolean state_code?: boolean country_id?: boolean country_code?: boolean type?: boolean level?: boolean parent_id?: boolean latitude?: boolean longitude?: boolean native?: boolean population?: boolean timezone?: boolean translations?: boolean created_at?: boolean updated_at?: boolean flag?: boolean wikiDataId?: boolean countries?: boolean | countriesDefaultArgs states?: boolean | statesDefaultArgs }, ExtArgs["result"]["cities"]> export type citiesSelectScalar = { id?: boolean name?: boolean state_id?: boolean state_code?: boolean country_id?: boolean country_code?: boolean type?: boolean level?: boolean parent_id?: boolean latitude?: boolean longitude?: boolean native?: boolean population?: boolean timezone?: boolean translations?: boolean created_at?: boolean updated_at?: boolean flag?: boolean wikiDataId?: boolean } export type citiesOmit = $Extensions.GetOmit<"id" | "name" | "state_id" | "state_code" | "country_id" | "country_code" | "type" | "level" | "parent_id" | "latitude" | "longitude" | "native" | "population" | "timezone" | "translations" | "created_at" | "updated_at" | "flag" | "wikiDataId", ExtArgs["result"]["cities"]> export type citiesInclude = { countries?: boolean | countriesDefaultArgs states?: boolean | statesDefaultArgs } export type citiesIncludeCreateManyAndReturn = { countries?: boolean | countriesDefaultArgs states?: boolean | statesDefaultArgs } export type citiesIncludeUpdateManyAndReturn = { countries?: boolean | countriesDefaultArgs states?: boolean | statesDefaultArgs } export type $citiesPayload = { name: "cities" objects: { countries: Prisma.$countriesPayload states: Prisma.$statesPayload } scalars: $Extensions.GetPayloadResult<{ id: bigint name: string state_id: bigint state_code: string country_id: bigint country_code: string type: string | null level: number | null parent_id: bigint | null latitude: Prisma.Decimal longitude: Prisma.Decimal native: string | null population: bigint | null timezone: string | null translations: string | null created_at: Date updated_at: Date flag: number wikiDataId: string | null }, ExtArgs["result"]["cities"]> composites: {} } type citiesGetPayload = $Result.GetResult type citiesCountArgs = Omit & { select?: CitiesCountAggregateInputType | true } export interface citiesDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['cities'], meta: { name: 'cities' } } /** * Find zero or one Cities that matches the filter. * @param {citiesFindUniqueArgs} args - Arguments to find a Cities * @example * // Get one Cities * const cities = await prisma.cities.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__citiesClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Cities that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {citiesFindUniqueOrThrowArgs} args - Arguments to find a Cities * @example * // Get one Cities * const cities = await prisma.cities.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__citiesClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Cities 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 {citiesFindFirstArgs} args - Arguments to find a Cities * @example * // Get one Cities * const cities = await prisma.cities.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__citiesClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Cities 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 {citiesFindFirstOrThrowArgs} args - Arguments to find a Cities * @example * // Get one Cities * const cities = await prisma.cities.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__citiesClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Cities 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 {citiesFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Cities * const cities = await prisma.cities.findMany() * * // Get first 10 Cities * const cities = await prisma.cities.findMany({ take: 10 }) * * // Only select the `id` * const citiesWithIdOnly = await prisma.cities.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Cities. * @param {citiesCreateArgs} args - Arguments to create a Cities. * @example * // Create one Cities * const Cities = await prisma.cities.create({ * data: { * // ... data to create a Cities * } * }) * */ create(args: SelectSubset>): Prisma__citiesClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Cities. * @param {citiesCreateManyArgs} args - Arguments to create many Cities. * @example * // Create many Cities * const cities = await prisma.cities.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Cities and returns the data saved in the database. * @param {citiesCreateManyAndReturnArgs} args - Arguments to create many Cities. * @example * // Create many Cities * const cities = await prisma.cities.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Cities and only return the `id` * const citiesWithIdOnly = await prisma.cities.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", GlobalOmitOptions>> /** * Delete a Cities. * @param {citiesDeleteArgs} args - Arguments to delete one Cities. * @example * // Delete one Cities * const Cities = await prisma.cities.delete({ * where: { * // ... filter to delete one Cities * } * }) * */ delete(args: SelectSubset>): Prisma__citiesClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Cities. * @param {citiesUpdateArgs} args - Arguments to update one Cities. * @example * // Update one Cities * const cities = await prisma.cities.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__citiesClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Cities. * @param {citiesDeleteManyArgs} args - Arguments to filter Cities to delete. * @example * // Delete a few Cities * const { count } = await prisma.cities.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Cities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {citiesUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Cities * const cities = await prisma.cities.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Cities and returns the data updated in the database. * @param {citiesUpdateManyAndReturnArgs} args - Arguments to update many Cities. * @example * // Update many Cities * const cities = await prisma.cities.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Cities and only return the `id` * const citiesWithIdOnly = await prisma.cities.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * 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 * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Cities. * @param {citiesUpsertArgs} args - Arguments to update or create a Cities. * @example * // Update or create a Cities * const cities = await prisma.cities.upsert({ * create: { * // ... data to create a Cities * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Cities we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__citiesClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Cities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {citiesCountArgs} args - Arguments to filter Cities to count. * @example * // Count the number of Cities * const count = await prisma.cities.count({ * where: { * // ... the filter for the Cities 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 Cities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CitiesAggregateArgs} 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 Cities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {citiesGroupByArgs} 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 citiesGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: citiesGroupByArgs['orderBy'] } : { orderBy?: citiesGroupByArgs['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 ? GetCitiesGroupByPayload : Prisma.PrismaPromise /** * Fields of the cities model */ readonly fields: citiesFieldRefs; } /** * The delegate class that acts as a "Promise-like" for cities. * 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__citiesClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" countries = {}>(args?: Subset>): Prisma__countriesClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> states = {}>(args?: Subset>): Prisma__statesClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 cities model */ interface citiesFieldRefs { readonly id: FieldRef<"cities", 'BigInt'> readonly name: FieldRef<"cities", 'String'> readonly state_id: FieldRef<"cities", 'BigInt'> readonly state_code: FieldRef<"cities", 'String'> readonly country_id: FieldRef<"cities", 'BigInt'> readonly country_code: FieldRef<"cities", 'String'> readonly type: FieldRef<"cities", 'String'> readonly level: FieldRef<"cities", 'Int'> readonly parent_id: FieldRef<"cities", 'BigInt'> readonly latitude: FieldRef<"cities", 'Decimal'> readonly longitude: FieldRef<"cities", 'Decimal'> readonly native: FieldRef<"cities", 'String'> readonly population: FieldRef<"cities", 'BigInt'> readonly timezone: FieldRef<"cities", 'String'> readonly translations: FieldRef<"cities", 'String'> readonly created_at: FieldRef<"cities", 'DateTime'> readonly updated_at: FieldRef<"cities", 'DateTime'> readonly flag: FieldRef<"cities", 'Int'> readonly wikiDataId: FieldRef<"cities", 'String'> } // Custom InputTypes /** * cities findUnique */ export type citiesFindUniqueArgs = { /** * Select specific fields to fetch from the cities */ select?: citiesSelect | null /** * Omit specific fields from the cities */ omit?: citiesOmit | null /** * Choose, which related nodes to fetch as well */ include?: citiesInclude | null /** * Filter, which cities to fetch. */ where: citiesWhereUniqueInput } /** * cities findUniqueOrThrow */ export type citiesFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the cities */ select?: citiesSelect | null /** * Omit specific fields from the cities */ omit?: citiesOmit | null /** * Choose, which related nodes to fetch as well */ include?: citiesInclude | null /** * Filter, which cities to fetch. */ where: citiesWhereUniqueInput } /** * cities findFirst */ export type citiesFindFirstArgs = { /** * Select specific fields to fetch from the cities */ select?: citiesSelect | null /** * Omit specific fields from the cities */ omit?: citiesOmit | null /** * Choose, which related nodes to fetch as well */ include?: citiesInclude | null /** * Filter, which cities to fetch. */ where?: citiesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of cities to fetch. */ orderBy?: citiesOrderByWithRelationInput | citiesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for cities. */ cursor?: citiesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` cities 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` cities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of cities. */ distinct?: CitiesScalarFieldEnum | CitiesScalarFieldEnum[] } /** * cities findFirstOrThrow */ export type citiesFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the cities */ select?: citiesSelect | null /** * Omit specific fields from the cities */ omit?: citiesOmit | null /** * Choose, which related nodes to fetch as well */ include?: citiesInclude | null /** * Filter, which cities to fetch. */ where?: citiesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of cities to fetch. */ orderBy?: citiesOrderByWithRelationInput | citiesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for cities. */ cursor?: citiesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` cities 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` cities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of cities. */ distinct?: CitiesScalarFieldEnum | CitiesScalarFieldEnum[] } /** * cities findMany */ export type citiesFindManyArgs = { /** * Select specific fields to fetch from the cities */ select?: citiesSelect | null /** * Omit specific fields from the cities */ omit?: citiesOmit | null /** * Choose, which related nodes to fetch as well */ include?: citiesInclude | null /** * Filter, which cities to fetch. */ where?: citiesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of cities to fetch. */ orderBy?: citiesOrderByWithRelationInput | citiesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing cities. */ cursor?: citiesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` cities 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` cities. */ skip?: number distinct?: CitiesScalarFieldEnum | CitiesScalarFieldEnum[] } /** * cities create */ export type citiesCreateArgs = { /** * Select specific fields to fetch from the cities */ select?: citiesSelect | null /** * Omit specific fields from the cities */ omit?: citiesOmit | null /** * Choose, which related nodes to fetch as well */ include?: citiesInclude | null /** * The data needed to create a cities. */ data: XOR } /** * cities createMany */ export type citiesCreateManyArgs = { /** * The data used to create many cities. */ data: citiesCreateManyInput | citiesCreateManyInput[] skipDuplicates?: boolean } /** * cities createManyAndReturn */ export type citiesCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the cities */ select?: citiesSelectCreateManyAndReturn | null /** * Omit specific fields from the cities */ omit?: citiesOmit | null /** * The data used to create many cities. */ data: citiesCreateManyInput | citiesCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: citiesIncludeCreateManyAndReturn | null } /** * cities update */ export type citiesUpdateArgs = { /** * Select specific fields to fetch from the cities */ select?: citiesSelect | null /** * Omit specific fields from the cities */ omit?: citiesOmit | null /** * Choose, which related nodes to fetch as well */ include?: citiesInclude | null /** * The data needed to update a cities. */ data: XOR /** * Choose, which cities to update. */ where: citiesWhereUniqueInput } /** * cities updateMany */ export type citiesUpdateManyArgs = { /** * The data used to update cities. */ data: XOR /** * Filter which cities to update */ where?: citiesWhereInput /** * Limit how many cities to update. */ limit?: number } /** * cities updateManyAndReturn */ export type citiesUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the cities */ select?: citiesSelectUpdateManyAndReturn | null /** * Omit specific fields from the cities */ omit?: citiesOmit | null /** * The data used to update cities. */ data: XOR /** * Filter which cities to update */ where?: citiesWhereInput /** * Limit how many cities to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: citiesIncludeUpdateManyAndReturn | null } /** * cities upsert */ export type citiesUpsertArgs = { /** * Select specific fields to fetch from the cities */ select?: citiesSelect | null /** * Omit specific fields from the cities */ omit?: citiesOmit | null /** * Choose, which related nodes to fetch as well */ include?: citiesInclude | null /** * The filter to search for the cities to update in case it exists. */ where: citiesWhereUniqueInput /** * In case the cities found by the `where` argument doesn't exist, create a new cities with this data. */ create: XOR /** * In case the cities was found with the provided `where` argument, update it with this data. */ update: XOR } /** * cities delete */ export type citiesDeleteArgs = { /** * Select specific fields to fetch from the cities */ select?: citiesSelect | null /** * Omit specific fields from the cities */ omit?: citiesOmit | null /** * Choose, which related nodes to fetch as well */ include?: citiesInclude | null /** * Filter which cities to delete. */ where: citiesWhereUniqueInput } /** * cities deleteMany */ export type citiesDeleteManyArgs = { /** * Filter which cities to delete */ where?: citiesWhereInput /** * Limit how many cities to delete. */ limit?: number } /** * cities without action */ export type citiesDefaultArgs = { /** * Select specific fields to fetch from the cities */ select?: citiesSelect | null /** * Omit specific fields from the cities */ omit?: citiesOmit | null /** * Choose, which related nodes to fetch as well */ include?: citiesInclude | null } /** * Model countries */ export type AggregateCountries = { _count: CountriesCountAggregateOutputType | null _avg: CountriesAvgAggregateOutputType | null _sum: CountriesSumAggregateOutputType | null _min: CountriesMinAggregateOutputType | null _max: CountriesMaxAggregateOutputType | null } export type CountriesAvgAggregateOutputType = { id: number | null population: number | null gdp: number | null region_id: number | null subregion_id: number | null area_sq_km: number | null latitude: Decimal | null longitude: Decimal | null flag: number | null } export type CountriesSumAggregateOutputType = { id: bigint | null population: bigint | null gdp: bigint | null region_id: bigint | null subregion_id: bigint | null area_sq_km: number | null latitude: Decimal | null longitude: Decimal | null flag: number | null } export type CountriesMinAggregateOutputType = { id: bigint | null name: string | null iso3: string | null numeric_code: string | null iso2: string | null phonecode: string | null capital: string | null currency: string | null currency_name: string | null currency_symbol: string | null tld: string | null native: string | null population: bigint | null gdp: bigint | null region: string | null region_id: bigint | null subregion: string | null subregion_id: bigint | null nationality: string | null area_sq_km: number | null postal_code_format: string | null postal_code_regex: string | null timezones: string | null translations: string | null latitude: Decimal | null longitude: Decimal | null emoji: string | null emojiU: string | null created_at: Date | null updated_at: Date | null flag: number | null wikiDataId: string | null } export type CountriesMaxAggregateOutputType = { id: bigint | null name: string | null iso3: string | null numeric_code: string | null iso2: string | null phonecode: string | null capital: string | null currency: string | null currency_name: string | null currency_symbol: string | null tld: string | null native: string | null population: bigint | null gdp: bigint | null region: string | null region_id: bigint | null subregion: string | null subregion_id: bigint | null nationality: string | null area_sq_km: number | null postal_code_format: string | null postal_code_regex: string | null timezones: string | null translations: string | null latitude: Decimal | null longitude: Decimal | null emoji: string | null emojiU: string | null created_at: Date | null updated_at: Date | null flag: number | null wikiDataId: string | null } export type CountriesCountAggregateOutputType = { id: number name: number iso3: number numeric_code: number iso2: number phonecode: number capital: number currency: number currency_name: number currency_symbol: number tld: number native: number population: number gdp: number region: number region_id: number subregion: number subregion_id: number nationality: number area_sq_km: number postal_code_format: number postal_code_regex: number timezones: number translations: number latitude: number longitude: number emoji: number emojiU: number created_at: number updated_at: number flag: number wikiDataId: number _all: number } export type CountriesAvgAggregateInputType = { id?: true population?: true gdp?: true region_id?: true subregion_id?: true area_sq_km?: true latitude?: true longitude?: true flag?: true } export type CountriesSumAggregateInputType = { id?: true population?: true gdp?: true region_id?: true subregion_id?: true area_sq_km?: true latitude?: true longitude?: true flag?: true } export type CountriesMinAggregateInputType = { id?: true name?: true iso3?: true numeric_code?: true iso2?: true phonecode?: true capital?: true currency?: true currency_name?: true currency_symbol?: true tld?: true native?: true population?: true gdp?: true region?: true region_id?: true subregion?: true subregion_id?: true nationality?: true area_sq_km?: true postal_code_format?: true postal_code_regex?: true timezones?: true translations?: true latitude?: true longitude?: true emoji?: true emojiU?: true created_at?: true updated_at?: true flag?: true wikiDataId?: true } export type CountriesMaxAggregateInputType = { id?: true name?: true iso3?: true numeric_code?: true iso2?: true phonecode?: true capital?: true currency?: true currency_name?: true currency_symbol?: true tld?: true native?: true population?: true gdp?: true region?: true region_id?: true subregion?: true subregion_id?: true nationality?: true area_sq_km?: true postal_code_format?: true postal_code_regex?: true timezones?: true translations?: true latitude?: true longitude?: true emoji?: true emojiU?: true created_at?: true updated_at?: true flag?: true wikiDataId?: true } export type CountriesCountAggregateInputType = { id?: true name?: true iso3?: true numeric_code?: true iso2?: true phonecode?: true capital?: true currency?: true currency_name?: true currency_symbol?: true tld?: true native?: true population?: true gdp?: true region?: true region_id?: true subregion?: true subregion_id?: true nationality?: true area_sq_km?: true postal_code_format?: true postal_code_regex?: true timezones?: true translations?: true latitude?: true longitude?: true emoji?: true emojiU?: true created_at?: true updated_at?: true flag?: true wikiDataId?: true _all?: true } export type CountriesAggregateArgs = { /** * Filter which countries to aggregate. */ where?: countriesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of countries to fetch. */ orderBy?: countriesOrderByWithRelationInput | countriesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: countriesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` countries 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` countries. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned countries **/ _count?: true | CountriesCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CountriesAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CountriesSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CountriesMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CountriesMaxAggregateInputType } export type GetCountriesAggregateType = { [P in keyof T & keyof AggregateCountries]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type countriesGroupByArgs = { where?: countriesWhereInput orderBy?: countriesOrderByWithAggregationInput | countriesOrderByWithAggregationInput[] by: CountriesScalarFieldEnum[] | CountriesScalarFieldEnum having?: countriesScalarWhereWithAggregatesInput take?: number skip?: number _count?: CountriesCountAggregateInputType | true _avg?: CountriesAvgAggregateInputType _sum?: CountriesSumAggregateInputType _min?: CountriesMinAggregateInputType _max?: CountriesMaxAggregateInputType } export type CountriesGroupByOutputType = { id: bigint name: string iso3: string | null numeric_code: string | null iso2: string | null phonecode: string | null capital: string | null currency: string | null currency_name: string | null currency_symbol: string | null tld: string | null native: string | null population: bigint | null gdp: bigint | null region: string | null region_id: bigint | null subregion: string | null subregion_id: bigint | null nationality: string | null area_sq_km: number | null postal_code_format: string | null postal_code_regex: string | null timezones: string | null translations: string | null latitude: Decimal | null longitude: Decimal | null emoji: string | null emojiU: string | null created_at: Date | null updated_at: Date flag: number wikiDataId: string | null _count: CountriesCountAggregateOutputType | null _avg: CountriesAvgAggregateOutputType | null _sum: CountriesSumAggregateOutputType | null _min: CountriesMinAggregateOutputType | null _max: CountriesMaxAggregateOutputType | null } type GetCountriesGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CountriesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type countriesSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean iso3?: boolean numeric_code?: boolean iso2?: boolean phonecode?: boolean capital?: boolean currency?: boolean currency_name?: boolean currency_symbol?: boolean tld?: boolean native?: boolean population?: boolean gdp?: boolean region?: boolean region_id?: boolean subregion?: boolean subregion_id?: boolean nationality?: boolean area_sq_km?: boolean postal_code_format?: boolean postal_code_regex?: boolean timezones?: boolean translations?: boolean latitude?: boolean longitude?: boolean emoji?: boolean emojiU?: boolean created_at?: boolean updated_at?: boolean flag?: boolean wikiDataId?: boolean cities?: boolean | countries$citiesArgs states?: boolean | countries$statesArgs _count?: boolean | CountriesCountOutputTypeDefaultArgs }, ExtArgs["result"]["countries"]> export type countriesSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean iso3?: boolean numeric_code?: boolean iso2?: boolean phonecode?: boolean capital?: boolean currency?: boolean currency_name?: boolean currency_symbol?: boolean tld?: boolean native?: boolean population?: boolean gdp?: boolean region?: boolean region_id?: boolean subregion?: boolean subregion_id?: boolean nationality?: boolean area_sq_km?: boolean postal_code_format?: boolean postal_code_regex?: boolean timezones?: boolean translations?: boolean latitude?: boolean longitude?: boolean emoji?: boolean emojiU?: boolean created_at?: boolean updated_at?: boolean flag?: boolean wikiDataId?: boolean }, ExtArgs["result"]["countries"]> export type countriesSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean iso3?: boolean numeric_code?: boolean iso2?: boolean phonecode?: boolean capital?: boolean currency?: boolean currency_name?: boolean currency_symbol?: boolean tld?: boolean native?: boolean population?: boolean gdp?: boolean region?: boolean region_id?: boolean subregion?: boolean subregion_id?: boolean nationality?: boolean area_sq_km?: boolean postal_code_format?: boolean postal_code_regex?: boolean timezones?: boolean translations?: boolean latitude?: boolean longitude?: boolean emoji?: boolean emojiU?: boolean created_at?: boolean updated_at?: boolean flag?: boolean wikiDataId?: boolean }, ExtArgs["result"]["countries"]> export type countriesSelectScalar = { id?: boolean name?: boolean iso3?: boolean numeric_code?: boolean iso2?: boolean phonecode?: boolean capital?: boolean currency?: boolean currency_name?: boolean currency_symbol?: boolean tld?: boolean native?: boolean population?: boolean gdp?: boolean region?: boolean region_id?: boolean subregion?: boolean subregion_id?: boolean nationality?: boolean area_sq_km?: boolean postal_code_format?: boolean postal_code_regex?: boolean timezones?: boolean translations?: boolean latitude?: boolean longitude?: boolean emoji?: boolean emojiU?: boolean created_at?: boolean updated_at?: boolean flag?: boolean wikiDataId?: boolean } export type countriesOmit = $Extensions.GetOmit<"id" | "name" | "iso3" | "numeric_code" | "iso2" | "phonecode" | "capital" | "currency" | "currency_name" | "currency_symbol" | "tld" | "native" | "population" | "gdp" | "region" | "region_id" | "subregion" | "subregion_id" | "nationality" | "area_sq_km" | "postal_code_format" | "postal_code_regex" | "timezones" | "translations" | "latitude" | "longitude" | "emoji" | "emojiU" | "created_at" | "updated_at" | "flag" | "wikiDataId", ExtArgs["result"]["countries"]> export type countriesInclude = { cities?: boolean | countries$citiesArgs states?: boolean | countries$statesArgs _count?: boolean | CountriesCountOutputTypeDefaultArgs } export type countriesIncludeCreateManyAndReturn = {} export type countriesIncludeUpdateManyAndReturn = {} export type $countriesPayload = { name: "countries" objects: { cities: Prisma.$citiesPayload[] states: Prisma.$statesPayload[] } scalars: $Extensions.GetPayloadResult<{ id: bigint name: string iso3: string | null numeric_code: string | null iso2: string | null phonecode: string | null capital: string | null currency: string | null currency_name: string | null currency_symbol: string | null tld: string | null native: string | null population: bigint | null gdp: bigint | null region: string | null region_id: bigint | null subregion: string | null subregion_id: bigint | null nationality: string | null area_sq_km: number | null postal_code_format: string | null postal_code_regex: string | null timezones: string | null translations: string | null latitude: Prisma.Decimal | null longitude: Prisma.Decimal | null emoji: string | null emojiU: string | null created_at: Date | null updated_at: Date flag: number wikiDataId: string | null }, ExtArgs["result"]["countries"]> composites: {} } type countriesGetPayload = $Result.GetResult type countriesCountArgs = Omit & { select?: CountriesCountAggregateInputType | true } export interface countriesDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['countries'], meta: { name: 'countries' } } /** * Find zero or one Countries that matches the filter. * @param {countriesFindUniqueArgs} args - Arguments to find a Countries * @example * // Get one Countries * const countries = await prisma.countries.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__countriesClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Countries that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {countriesFindUniqueOrThrowArgs} args - Arguments to find a Countries * @example * // Get one Countries * const countries = await prisma.countries.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__countriesClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Countries 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 {countriesFindFirstArgs} args - Arguments to find a Countries * @example * // Get one Countries * const countries = await prisma.countries.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__countriesClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Countries 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 {countriesFindFirstOrThrowArgs} args - Arguments to find a Countries * @example * // Get one Countries * const countries = await prisma.countries.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__countriesClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Countries 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 {countriesFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Countries * const countries = await prisma.countries.findMany() * * // Get first 10 Countries * const countries = await prisma.countries.findMany({ take: 10 }) * * // Only select the `id` * const countriesWithIdOnly = await prisma.countries.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Countries. * @param {countriesCreateArgs} args - Arguments to create a Countries. * @example * // Create one Countries * const Countries = await prisma.countries.create({ * data: { * // ... data to create a Countries * } * }) * */ create(args: SelectSubset>): Prisma__countriesClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Countries. * @param {countriesCreateManyArgs} args - Arguments to create many Countries. * @example * // Create many Countries * const countries = await prisma.countries.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Countries and returns the data saved in the database. * @param {countriesCreateManyAndReturnArgs} args - Arguments to create many Countries. * @example * // Create many Countries * const countries = await prisma.countries.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Countries and only return the `id` * const countriesWithIdOnly = await prisma.countries.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", GlobalOmitOptions>> /** * Delete a Countries. * @param {countriesDeleteArgs} args - Arguments to delete one Countries. * @example * // Delete one Countries * const Countries = await prisma.countries.delete({ * where: { * // ... filter to delete one Countries * } * }) * */ delete(args: SelectSubset>): Prisma__countriesClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Countries. * @param {countriesUpdateArgs} args - Arguments to update one Countries. * @example * // Update one Countries * const countries = await prisma.countries.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__countriesClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Countries. * @param {countriesDeleteManyArgs} args - Arguments to filter Countries to delete. * @example * // Delete a few Countries * const { count } = await prisma.countries.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Countries. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {countriesUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Countries * const countries = await prisma.countries.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Countries and returns the data updated in the database. * @param {countriesUpdateManyAndReturnArgs} args - Arguments to update many Countries. * @example * // Update many Countries * const countries = await prisma.countries.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Countries and only return the `id` * const countriesWithIdOnly = await prisma.countries.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * 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 * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Countries. * @param {countriesUpsertArgs} args - Arguments to update or create a Countries. * @example * // Update or create a Countries * const countries = await prisma.countries.upsert({ * create: { * // ... data to create a Countries * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Countries we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__countriesClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Countries. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {countriesCountArgs} args - Arguments to filter Countries to count. * @example * // Count the number of Countries * const count = await prisma.countries.count({ * where: { * // ... the filter for the Countries 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 Countries. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CountriesAggregateArgs} 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 Countries. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {countriesGroupByArgs} 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 countriesGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: countriesGroupByArgs['orderBy'] } : { orderBy?: countriesGroupByArgs['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 ? GetCountriesGroupByPayload : Prisma.PrismaPromise /** * Fields of the countries model */ readonly fields: countriesFieldRefs; } /** * The delegate class that acts as a "Promise-like" for countries. * 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__countriesClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" cities = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> states = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | 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 countries model */ interface countriesFieldRefs { readonly id: FieldRef<"countries", 'BigInt'> readonly name: FieldRef<"countries", 'String'> readonly iso3: FieldRef<"countries", 'String'> readonly numeric_code: FieldRef<"countries", 'String'> readonly iso2: FieldRef<"countries", 'String'> readonly phonecode: FieldRef<"countries", 'String'> readonly capital: FieldRef<"countries", 'String'> readonly currency: FieldRef<"countries", 'String'> readonly currency_name: FieldRef<"countries", 'String'> readonly currency_symbol: FieldRef<"countries", 'String'> readonly tld: FieldRef<"countries", 'String'> readonly native: FieldRef<"countries", 'String'> readonly population: FieldRef<"countries", 'BigInt'> readonly gdp: FieldRef<"countries", 'BigInt'> readonly region: FieldRef<"countries", 'String'> readonly region_id: FieldRef<"countries", 'BigInt'> readonly subregion: FieldRef<"countries", 'String'> readonly subregion_id: FieldRef<"countries", 'BigInt'> readonly nationality: FieldRef<"countries", 'String'> readonly area_sq_km: FieldRef<"countries", 'Float'> readonly postal_code_format: FieldRef<"countries", 'String'> readonly postal_code_regex: FieldRef<"countries", 'String'> readonly timezones: FieldRef<"countries", 'String'> readonly translations: FieldRef<"countries", 'String'> readonly latitude: FieldRef<"countries", 'Decimal'> readonly longitude: FieldRef<"countries", 'Decimal'> readonly emoji: FieldRef<"countries", 'String'> readonly emojiU: FieldRef<"countries", 'String'> readonly created_at: FieldRef<"countries", 'DateTime'> readonly updated_at: FieldRef<"countries", 'DateTime'> readonly flag: FieldRef<"countries", 'Int'> readonly wikiDataId: FieldRef<"countries", 'String'> } // Custom InputTypes /** * countries findUnique */ export type countriesFindUniqueArgs = { /** * Select specific fields to fetch from the countries */ select?: countriesSelect | null /** * Omit specific fields from the countries */ omit?: countriesOmit | null /** * Choose, which related nodes to fetch as well */ include?: countriesInclude | null /** * Filter, which countries to fetch. */ where: countriesWhereUniqueInput } /** * countries findUniqueOrThrow */ export type countriesFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the countries */ select?: countriesSelect | null /** * Omit specific fields from the countries */ omit?: countriesOmit | null /** * Choose, which related nodes to fetch as well */ include?: countriesInclude | null /** * Filter, which countries to fetch. */ where: countriesWhereUniqueInput } /** * countries findFirst */ export type countriesFindFirstArgs = { /** * Select specific fields to fetch from the countries */ select?: countriesSelect | null /** * Omit specific fields from the countries */ omit?: countriesOmit | null /** * Choose, which related nodes to fetch as well */ include?: countriesInclude | null /** * Filter, which countries to fetch. */ where?: countriesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of countries to fetch. */ orderBy?: countriesOrderByWithRelationInput | countriesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for countries. */ cursor?: countriesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` countries 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` countries. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of countries. */ distinct?: CountriesScalarFieldEnum | CountriesScalarFieldEnum[] } /** * countries findFirstOrThrow */ export type countriesFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the countries */ select?: countriesSelect | null /** * Omit specific fields from the countries */ omit?: countriesOmit | null /** * Choose, which related nodes to fetch as well */ include?: countriesInclude | null /** * Filter, which countries to fetch. */ where?: countriesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of countries to fetch. */ orderBy?: countriesOrderByWithRelationInput | countriesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for countries. */ cursor?: countriesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` countries 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` countries. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of countries. */ distinct?: CountriesScalarFieldEnum | CountriesScalarFieldEnum[] } /** * countries findMany */ export type countriesFindManyArgs = { /** * Select specific fields to fetch from the countries */ select?: countriesSelect | null /** * Omit specific fields from the countries */ omit?: countriesOmit | null /** * Choose, which related nodes to fetch as well */ include?: countriesInclude | null /** * Filter, which countries to fetch. */ where?: countriesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of countries to fetch. */ orderBy?: countriesOrderByWithRelationInput | countriesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing countries. */ cursor?: countriesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` countries 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` countries. */ skip?: number distinct?: CountriesScalarFieldEnum | CountriesScalarFieldEnum[] } /** * countries create */ export type countriesCreateArgs = { /** * Select specific fields to fetch from the countries */ select?: countriesSelect | null /** * Omit specific fields from the countries */ omit?: countriesOmit | null /** * Choose, which related nodes to fetch as well */ include?: countriesInclude | null /** * The data needed to create a countries. */ data: XOR } /** * countries createMany */ export type countriesCreateManyArgs = { /** * The data used to create many countries. */ data: countriesCreateManyInput | countriesCreateManyInput[] skipDuplicates?: boolean } /** * countries createManyAndReturn */ export type countriesCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the countries */ select?: countriesSelectCreateManyAndReturn | null /** * Omit specific fields from the countries */ omit?: countriesOmit | null /** * The data used to create many countries. */ data: countriesCreateManyInput | countriesCreateManyInput[] skipDuplicates?: boolean } /** * countries update */ export type countriesUpdateArgs = { /** * Select specific fields to fetch from the countries */ select?: countriesSelect | null /** * Omit specific fields from the countries */ omit?: countriesOmit | null /** * Choose, which related nodes to fetch as well */ include?: countriesInclude | null /** * The data needed to update a countries. */ data: XOR /** * Choose, which countries to update. */ where: countriesWhereUniqueInput } /** * countries updateMany */ export type countriesUpdateManyArgs = { /** * The data used to update countries. */ data: XOR /** * Filter which countries to update */ where?: countriesWhereInput /** * Limit how many countries to update. */ limit?: number } /** * countries updateManyAndReturn */ export type countriesUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the countries */ select?: countriesSelectUpdateManyAndReturn | null /** * Omit specific fields from the countries */ omit?: countriesOmit | null /** * The data used to update countries. */ data: XOR /** * Filter which countries to update */ where?: countriesWhereInput /** * Limit how many countries to update. */ limit?: number } /** * countries upsert */ export type countriesUpsertArgs = { /** * Select specific fields to fetch from the countries */ select?: countriesSelect | null /** * Omit specific fields from the countries */ omit?: countriesOmit | null /** * Choose, which related nodes to fetch as well */ include?: countriesInclude | null /** * The filter to search for the countries to update in case it exists. */ where: countriesWhereUniqueInput /** * In case the countries found by the `where` argument doesn't exist, create a new countries with this data. */ create: XOR /** * In case the countries was found with the provided `where` argument, update it with this data. */ update: XOR } /** * countries delete */ export type countriesDeleteArgs = { /** * Select specific fields to fetch from the countries */ select?: countriesSelect | null /** * Omit specific fields from the countries */ omit?: countriesOmit | null /** * Choose, which related nodes to fetch as well */ include?: countriesInclude | null /** * Filter which countries to delete. */ where: countriesWhereUniqueInput } /** * countries deleteMany */ export type countriesDeleteManyArgs = { /** * Filter which countries to delete */ where?: countriesWhereInput /** * Limit how many countries to delete. */ limit?: number } /** * countries.cities */ export type countries$citiesArgs = { /** * Select specific fields to fetch from the cities */ select?: citiesSelect | null /** * Omit specific fields from the cities */ omit?: citiesOmit | null /** * Choose, which related nodes to fetch as well */ include?: citiesInclude | null where?: citiesWhereInput orderBy?: citiesOrderByWithRelationInput | citiesOrderByWithRelationInput[] cursor?: citiesWhereUniqueInput take?: number skip?: number distinct?: CitiesScalarFieldEnum | CitiesScalarFieldEnum[] } /** * countries.states */ export type countries$statesArgs = { /** * Select specific fields to fetch from the states */ select?: statesSelect | null /** * Omit specific fields from the states */ omit?: statesOmit | null /** * Choose, which related nodes to fetch as well */ include?: statesInclude | null where?: statesWhereInput orderBy?: statesOrderByWithRelationInput | statesOrderByWithRelationInput[] cursor?: statesWhereUniqueInput take?: number skip?: number distinct?: StatesScalarFieldEnum | StatesScalarFieldEnum[] } /** * countries without action */ export type countriesDefaultArgs = { /** * Select specific fields to fetch from the countries */ select?: countriesSelect | null /** * Omit specific fields from the countries */ omit?: countriesOmit | null /** * Choose, which related nodes to fetch as well */ include?: countriesInclude | null } /** * Model states */ export type AggregateStates = { _count: StatesCountAggregateOutputType | null _avg: StatesAvgAggregateOutputType | null _sum: StatesSumAggregateOutputType | null _min: StatesMinAggregateOutputType | null _max: StatesMaxAggregateOutputType | null } export type StatesAvgAggregateOutputType = { id: number | null country_id: number | null level: number | null parent_id: number | null latitude: Decimal | null longitude: Decimal | null flag: number | null } export type StatesSumAggregateOutputType = { id: bigint | null country_id: bigint | null level: number | null parent_id: bigint | null latitude: Decimal | null longitude: Decimal | null flag: number | null } export type StatesMinAggregateOutputType = { id: bigint | null name: string | null country_id: bigint | null country_code: string | null fips_code: string | null iso2: string | null iso3166_2: string | null type: string | null level: number | null parent_id: bigint | null native: string | null latitude: Decimal | null longitude: Decimal | null timezone: string | null translations: string | null created_at: Date | null updated_at: Date | null flag: number | null wikiDataId: string | null population: string | null } export type StatesMaxAggregateOutputType = { id: bigint | null name: string | null country_id: bigint | null country_code: string | null fips_code: string | null iso2: string | null iso3166_2: string | null type: string | null level: number | null parent_id: bigint | null native: string | null latitude: Decimal | null longitude: Decimal | null timezone: string | null translations: string | null created_at: Date | null updated_at: Date | null flag: number | null wikiDataId: string | null population: string | null } export type StatesCountAggregateOutputType = { id: number name: number country_id: number country_code: number fips_code: number iso2: number iso3166_2: number type: number level: number parent_id: number native: number latitude: number longitude: number timezone: number translations: number created_at: number updated_at: number flag: number wikiDataId: number population: number _all: number } export type StatesAvgAggregateInputType = { id?: true country_id?: true level?: true parent_id?: true latitude?: true longitude?: true flag?: true } export type StatesSumAggregateInputType = { id?: true country_id?: true level?: true parent_id?: true latitude?: true longitude?: true flag?: true } export type StatesMinAggregateInputType = { id?: true name?: true country_id?: true country_code?: true fips_code?: true iso2?: true iso3166_2?: true type?: true level?: true parent_id?: true native?: true latitude?: true longitude?: true timezone?: true translations?: true created_at?: true updated_at?: true flag?: true wikiDataId?: true population?: true } export type StatesMaxAggregateInputType = { id?: true name?: true country_id?: true country_code?: true fips_code?: true iso2?: true iso3166_2?: true type?: true level?: true parent_id?: true native?: true latitude?: true longitude?: true timezone?: true translations?: true created_at?: true updated_at?: true flag?: true wikiDataId?: true population?: true } export type StatesCountAggregateInputType = { id?: true name?: true country_id?: true country_code?: true fips_code?: true iso2?: true iso3166_2?: true type?: true level?: true parent_id?: true native?: true latitude?: true longitude?: true timezone?: true translations?: true created_at?: true updated_at?: true flag?: true wikiDataId?: true population?: true _all?: true } export type StatesAggregateArgs = { /** * Filter which states to aggregate. */ where?: statesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of states to fetch. */ orderBy?: statesOrderByWithRelationInput | statesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: statesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` states 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` states. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned states **/ _count?: true | StatesCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: StatesAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: StatesSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: StatesMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: StatesMaxAggregateInputType } export type GetStatesAggregateType = { [P in keyof T & keyof AggregateStates]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type statesGroupByArgs = { where?: statesWhereInput orderBy?: statesOrderByWithAggregationInput | statesOrderByWithAggregationInput[] by: StatesScalarFieldEnum[] | StatesScalarFieldEnum having?: statesScalarWhereWithAggregatesInput take?: number skip?: number _count?: StatesCountAggregateInputType | true _avg?: StatesAvgAggregateInputType _sum?: StatesSumAggregateInputType _min?: StatesMinAggregateInputType _max?: StatesMaxAggregateInputType } export type StatesGroupByOutputType = { id: bigint name: string country_id: bigint country_code: string fips_code: string | null iso2: string | null iso3166_2: string | null type: string | null level: number | null parent_id: bigint | null native: string | null latitude: Decimal | null longitude: Decimal | null timezone: string | null translations: string | null created_at: Date | null updated_at: Date flag: number wikiDataId: string | null population: string | null _count: StatesCountAggregateOutputType | null _avg: StatesAvgAggregateOutputType | null _sum: StatesSumAggregateOutputType | null _min: StatesMinAggregateOutputType | null _max: StatesMaxAggregateOutputType | null } type GetStatesGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof StatesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type statesSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean country_id?: boolean country_code?: boolean fips_code?: boolean iso2?: boolean iso3166_2?: boolean type?: boolean level?: boolean parent_id?: boolean native?: boolean latitude?: boolean longitude?: boolean timezone?: boolean translations?: boolean created_at?: boolean updated_at?: boolean flag?: boolean wikiDataId?: boolean population?: boolean cities?: boolean | states$citiesArgs countries?: boolean | countriesDefaultArgs _count?: boolean | StatesCountOutputTypeDefaultArgs }, ExtArgs["result"]["states"]> export type statesSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean country_id?: boolean country_code?: boolean fips_code?: boolean iso2?: boolean iso3166_2?: boolean type?: boolean level?: boolean parent_id?: boolean native?: boolean latitude?: boolean longitude?: boolean timezone?: boolean translations?: boolean created_at?: boolean updated_at?: boolean flag?: boolean wikiDataId?: boolean population?: boolean countries?: boolean | countriesDefaultArgs }, ExtArgs["result"]["states"]> export type statesSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean country_id?: boolean country_code?: boolean fips_code?: boolean iso2?: boolean iso3166_2?: boolean type?: boolean level?: boolean parent_id?: boolean native?: boolean latitude?: boolean longitude?: boolean timezone?: boolean translations?: boolean created_at?: boolean updated_at?: boolean flag?: boolean wikiDataId?: boolean population?: boolean countries?: boolean | countriesDefaultArgs }, ExtArgs["result"]["states"]> export type statesSelectScalar = { id?: boolean name?: boolean country_id?: boolean country_code?: boolean fips_code?: boolean iso2?: boolean iso3166_2?: boolean type?: boolean level?: boolean parent_id?: boolean native?: boolean latitude?: boolean longitude?: boolean timezone?: boolean translations?: boolean created_at?: boolean updated_at?: boolean flag?: boolean wikiDataId?: boolean population?: boolean } export type statesOmit = $Extensions.GetOmit<"id" | "name" | "country_id" | "country_code" | "fips_code" | "iso2" | "iso3166_2" | "type" | "level" | "parent_id" | "native" | "latitude" | "longitude" | "timezone" | "translations" | "created_at" | "updated_at" | "flag" | "wikiDataId" | "population", ExtArgs["result"]["states"]> export type statesInclude = { cities?: boolean | states$citiesArgs countries?: boolean | countriesDefaultArgs _count?: boolean | StatesCountOutputTypeDefaultArgs } export type statesIncludeCreateManyAndReturn = { countries?: boolean | countriesDefaultArgs } export type statesIncludeUpdateManyAndReturn = { countries?: boolean | countriesDefaultArgs } export type $statesPayload = { name: "states" objects: { cities: Prisma.$citiesPayload[] countries: Prisma.$countriesPayload } scalars: $Extensions.GetPayloadResult<{ id: bigint name: string country_id: bigint country_code: string fips_code: string | null iso2: string | null iso3166_2: string | null type: string | null level: number | null parent_id: bigint | null native: string | null latitude: Prisma.Decimal | null longitude: Prisma.Decimal | null timezone: string | null translations: string | null created_at: Date | null updated_at: Date flag: number wikiDataId: string | null population: string | null }, ExtArgs["result"]["states"]> composites: {} } type statesGetPayload = $Result.GetResult type statesCountArgs = Omit & { select?: StatesCountAggregateInputType | true } export interface statesDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['states'], meta: { name: 'states' } } /** * Find zero or one States that matches the filter. * @param {statesFindUniqueArgs} args - Arguments to find a States * @example * // Get one States * const states = await prisma.states.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__statesClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one States that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {statesFindUniqueOrThrowArgs} args - Arguments to find a States * @example * // Get one States * const states = await prisma.states.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__statesClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first States 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 {statesFindFirstArgs} args - Arguments to find a States * @example * // Get one States * const states = await prisma.states.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__statesClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first States 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 {statesFindFirstOrThrowArgs} args - Arguments to find a States * @example * // Get one States * const states = await prisma.states.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__statesClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more States 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 {statesFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all States * const states = await prisma.states.findMany() * * // Get first 10 States * const states = await prisma.states.findMany({ take: 10 }) * * // Only select the `id` * const statesWithIdOnly = await prisma.states.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a States. * @param {statesCreateArgs} args - Arguments to create a States. * @example * // Create one States * const States = await prisma.states.create({ * data: { * // ... data to create a States * } * }) * */ create(args: SelectSubset>): Prisma__statesClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many States. * @param {statesCreateManyArgs} args - Arguments to create many States. * @example * // Create many States * const states = await prisma.states.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many States and returns the data saved in the database. * @param {statesCreateManyAndReturnArgs} args - Arguments to create many States. * @example * // Create many States * const states = await prisma.states.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many States and only return the `id` * const statesWithIdOnly = await prisma.states.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", GlobalOmitOptions>> /** * Delete a States. * @param {statesDeleteArgs} args - Arguments to delete one States. * @example * // Delete one States * const States = await prisma.states.delete({ * where: { * // ... filter to delete one States * } * }) * */ delete(args: SelectSubset>): Prisma__statesClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one States. * @param {statesUpdateArgs} args - Arguments to update one States. * @example * // Update one States * const states = await prisma.states.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__statesClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more States. * @param {statesDeleteManyArgs} args - Arguments to filter States to delete. * @example * // Delete a few States * const { count } = await prisma.states.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more States. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {statesUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many States * const states = await prisma.states.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more States and returns the data updated in the database. * @param {statesUpdateManyAndReturnArgs} args - Arguments to update many States. * @example * // Update many States * const states = await prisma.states.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more States and only return the `id` * const statesWithIdOnly = await prisma.states.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * 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 * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one States. * @param {statesUpsertArgs} args - Arguments to update or create a States. * @example * // Update or create a States * const states = await prisma.states.upsert({ * create: { * // ... data to create a States * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the States we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__statesClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of States. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {statesCountArgs} args - Arguments to filter States to count. * @example * // Count the number of States * const count = await prisma.states.count({ * where: { * // ... the filter for the States 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 States. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatesAggregateArgs} 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 States. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {statesGroupByArgs} 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 statesGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: statesGroupByArgs['orderBy'] } : { orderBy?: statesGroupByArgs['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 ? GetStatesGroupByPayload : Prisma.PrismaPromise /** * Fields of the states model */ readonly fields: statesFieldRefs; } /** * The delegate class that acts as a "Promise-like" for states. * 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__statesClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" cities = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> countries = {}>(args?: Subset>): Prisma__countriesClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 states model */ interface statesFieldRefs { readonly id: FieldRef<"states", 'BigInt'> readonly name: FieldRef<"states", 'String'> readonly country_id: FieldRef<"states", 'BigInt'> readonly country_code: FieldRef<"states", 'String'> readonly fips_code: FieldRef<"states", 'String'> readonly iso2: FieldRef<"states", 'String'> readonly iso3166_2: FieldRef<"states", 'String'> readonly type: FieldRef<"states", 'String'> readonly level: FieldRef<"states", 'Int'> readonly parent_id: FieldRef<"states", 'BigInt'> readonly native: FieldRef<"states", 'String'> readonly latitude: FieldRef<"states", 'Decimal'> readonly longitude: FieldRef<"states", 'Decimal'> readonly timezone: FieldRef<"states", 'String'> readonly translations: FieldRef<"states", 'String'> readonly created_at: FieldRef<"states", 'DateTime'> readonly updated_at: FieldRef<"states", 'DateTime'> readonly flag: FieldRef<"states", 'Int'> readonly wikiDataId: FieldRef<"states", 'String'> readonly population: FieldRef<"states", 'String'> } // Custom InputTypes /** * states findUnique */ export type statesFindUniqueArgs = { /** * Select specific fields to fetch from the states */ select?: statesSelect | null /** * Omit specific fields from the states */ omit?: statesOmit | null /** * Choose, which related nodes to fetch as well */ include?: statesInclude | null /** * Filter, which states to fetch. */ where: statesWhereUniqueInput } /** * states findUniqueOrThrow */ export type statesFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the states */ select?: statesSelect | null /** * Omit specific fields from the states */ omit?: statesOmit | null /** * Choose, which related nodes to fetch as well */ include?: statesInclude | null /** * Filter, which states to fetch. */ where: statesWhereUniqueInput } /** * states findFirst */ export type statesFindFirstArgs = { /** * Select specific fields to fetch from the states */ select?: statesSelect | null /** * Omit specific fields from the states */ omit?: statesOmit | null /** * Choose, which related nodes to fetch as well */ include?: statesInclude | null /** * Filter, which states to fetch. */ where?: statesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of states to fetch. */ orderBy?: statesOrderByWithRelationInput | statesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for states. */ cursor?: statesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` states 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` states. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of states. */ distinct?: StatesScalarFieldEnum | StatesScalarFieldEnum[] } /** * states findFirstOrThrow */ export type statesFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the states */ select?: statesSelect | null /** * Omit specific fields from the states */ omit?: statesOmit | null /** * Choose, which related nodes to fetch as well */ include?: statesInclude | null /** * Filter, which states to fetch. */ where?: statesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of states to fetch. */ orderBy?: statesOrderByWithRelationInput | statesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for states. */ cursor?: statesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` states 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` states. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of states. */ distinct?: StatesScalarFieldEnum | StatesScalarFieldEnum[] } /** * states findMany */ export type statesFindManyArgs = { /** * Select specific fields to fetch from the states */ select?: statesSelect | null /** * Omit specific fields from the states */ omit?: statesOmit | null /** * Choose, which related nodes to fetch as well */ include?: statesInclude | null /** * Filter, which states to fetch. */ where?: statesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of states to fetch. */ orderBy?: statesOrderByWithRelationInput | statesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing states. */ cursor?: statesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` states 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` states. */ skip?: number distinct?: StatesScalarFieldEnum | StatesScalarFieldEnum[] } /** * states create */ export type statesCreateArgs = { /** * Select specific fields to fetch from the states */ select?: statesSelect | null /** * Omit specific fields from the states */ omit?: statesOmit | null /** * Choose, which related nodes to fetch as well */ include?: statesInclude | null /** * The data needed to create a states. */ data: XOR } /** * states createMany */ export type statesCreateManyArgs = { /** * The data used to create many states. */ data: statesCreateManyInput | statesCreateManyInput[] skipDuplicates?: boolean } /** * states createManyAndReturn */ export type statesCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the states */ select?: statesSelectCreateManyAndReturn | null /** * Omit specific fields from the states */ omit?: statesOmit | null /** * The data used to create many states. */ data: statesCreateManyInput | statesCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: statesIncludeCreateManyAndReturn | null } /** * states update */ export type statesUpdateArgs = { /** * Select specific fields to fetch from the states */ select?: statesSelect | null /** * Omit specific fields from the states */ omit?: statesOmit | null /** * Choose, which related nodes to fetch as well */ include?: statesInclude | null /** * The data needed to update a states. */ data: XOR /** * Choose, which states to update. */ where: statesWhereUniqueInput } /** * states updateMany */ export type statesUpdateManyArgs = { /** * The data used to update states. */ data: XOR /** * Filter which states to update */ where?: statesWhereInput /** * Limit how many states to update. */ limit?: number } /** * states updateManyAndReturn */ export type statesUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the states */ select?: statesSelectUpdateManyAndReturn | null /** * Omit specific fields from the states */ omit?: statesOmit | null /** * The data used to update states. */ data: XOR /** * Filter which states to update */ where?: statesWhereInput /** * Limit how many states to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: statesIncludeUpdateManyAndReturn | null } /** * states upsert */ export type statesUpsertArgs = { /** * Select specific fields to fetch from the states */ select?: statesSelect | null /** * Omit specific fields from the states */ omit?: statesOmit | null /** * Choose, which related nodes to fetch as well */ include?: statesInclude | null /** * The filter to search for the states to update in case it exists. */ where: statesWhereUniqueInput /** * In case the states found by the `where` argument doesn't exist, create a new states with this data. */ create: XOR /** * In case the states was found with the provided `where` argument, update it with this data. */ update: XOR } /** * states delete */ export type statesDeleteArgs = { /** * Select specific fields to fetch from the states */ select?: statesSelect | null /** * Omit specific fields from the states */ omit?: statesOmit | null /** * Choose, which related nodes to fetch as well */ include?: statesInclude | null /** * Filter which states to delete. */ where: statesWhereUniqueInput } /** * states deleteMany */ export type statesDeleteManyArgs = { /** * Filter which states to delete */ where?: statesWhereInput /** * Limit how many states to delete. */ limit?: number } /** * states.cities */ export type states$citiesArgs = { /** * Select specific fields to fetch from the cities */ select?: citiesSelect | null /** * Omit specific fields from the cities */ omit?: citiesOmit | null /** * Choose, which related nodes to fetch as well */ include?: citiesInclude | null where?: citiesWhereInput orderBy?: citiesOrderByWithRelationInput | citiesOrderByWithRelationInput[] cursor?: citiesWhereUniqueInput take?: number skip?: number distinct?: CitiesScalarFieldEnum | CitiesScalarFieldEnum[] } /** * states without action */ export type statesDefaultArgs = { /** * Select specific fields to fetch from the states */ select?: statesSelect | null /** * Omit specific fields from the states */ omit?: statesOmit | null /** * Choose, which related nodes to fetch as well */ include?: statesInclude | null } /** * Model Address */ export type AggregateAddress = { _count: AddressCountAggregateOutputType | null _avg: AddressAvgAggregateOutputType | null _sum: AddressSumAggregateOutputType | null _min: AddressMinAggregateOutputType | null _max: AddressMaxAggregateOutputType | null } export type AddressAvgAggregateOutputType = { cityId: number | null stateId: number | null countryId: number | null } export type AddressSumAggregateOutputType = { cityId: number | null stateId: number | null countryId: number | null } export type AddressMinAggregateOutputType = { id: string | null street: string | null streetNo: string | null postalCode: string | null cityId: number | null stateId: number | null countryId: number | null rawCity: string | null rawCountry: string | null createdAt: Date | null updatedAt: Date | null } export type AddressMaxAggregateOutputType = { id: string | null street: string | null streetNo: string | null postalCode: string | null cityId: number | null stateId: number | null countryId: number | null rawCity: string | null rawCountry: string | null createdAt: Date | null updatedAt: Date | null } export type AddressCountAggregateOutputType = { id: number street: number streetNo: number postalCode: number cityId: number stateId: number countryId: number rawCity: number rawCountry: number createdAt: number updatedAt: number _all: number } export type AddressAvgAggregateInputType = { cityId?: true stateId?: true countryId?: true } export type AddressSumAggregateInputType = { cityId?: true stateId?: true countryId?: true } export type AddressMinAggregateInputType = { id?: true street?: true streetNo?: true postalCode?: true cityId?: true stateId?: true countryId?: true rawCity?: true rawCountry?: true createdAt?: true updatedAt?: true } export type AddressMaxAggregateInputType = { id?: true street?: true streetNo?: true postalCode?: true cityId?: true stateId?: true countryId?: true rawCity?: true rawCountry?: true createdAt?: true updatedAt?: true } export type AddressCountAggregateInputType = { id?: true street?: true streetNo?: true postalCode?: true cityId?: true stateId?: true countryId?: true rawCity?: true rawCountry?: true createdAt?: true updatedAt?: true _all?: true } export type AddressAggregateArgs = { /** * Filter which Address to aggregate. */ where?: AddressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Addresses to fetch. */ orderBy?: AddressOrderByWithRelationInput | AddressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AddressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Addresses 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` Addresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Addresses **/ _count?: true | AddressCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AddressAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AddressSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AddressMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AddressMaxAggregateInputType } export type GetAddressAggregateType = { [P in keyof T & keyof AggregateAddress]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AddressGroupByArgs = { where?: AddressWhereInput orderBy?: AddressOrderByWithAggregationInput | AddressOrderByWithAggregationInput[] by: AddressScalarFieldEnum[] | AddressScalarFieldEnum having?: AddressScalarWhereWithAggregatesInput take?: number skip?: number _count?: AddressCountAggregateInputType | true _avg?: AddressAvgAggregateInputType _sum?: AddressSumAggregateInputType _min?: AddressMinAggregateInputType _max?: AddressMaxAggregateInputType } export type AddressGroupByOutputType = { id: string street: string streetNo: string | null postalCode: string | null cityId: number | null stateId: number | null countryId: number | null rawCity: string | null rawCountry: string | null createdAt: Date updatedAt: Date _count: AddressCountAggregateOutputType | null _avg: AddressAvgAggregateOutputType | null _sum: AddressSumAggregateOutputType | null _min: AddressMinAggregateOutputType | null _max: AddressMaxAggregateOutputType | null } type GetAddressGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AddressGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AddressSelect = $Extensions.GetSelect<{ id?: boolean street?: boolean streetNo?: boolean postalCode?: boolean cityId?: boolean stateId?: boolean countryId?: boolean rawCity?: boolean rawCountry?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["address"]> export type AddressSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean street?: boolean streetNo?: boolean postalCode?: boolean cityId?: boolean stateId?: boolean countryId?: boolean rawCity?: boolean rawCountry?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["address"]> export type AddressSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean street?: boolean streetNo?: boolean postalCode?: boolean cityId?: boolean stateId?: boolean countryId?: boolean rawCity?: boolean rawCountry?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["address"]> export type AddressSelectScalar = { id?: boolean street?: boolean streetNo?: boolean postalCode?: boolean cityId?: boolean stateId?: boolean countryId?: boolean rawCity?: boolean rawCountry?: boolean createdAt?: boolean updatedAt?: boolean } export type AddressOmit = $Extensions.GetOmit<"id" | "street" | "streetNo" | "postalCode" | "cityId" | "stateId" | "countryId" | "rawCity" | "rawCountry" | "createdAt" | "updatedAt", ExtArgs["result"]["address"]> export type $AddressPayload = { name: "Address" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string street: string streetNo: string | null postalCode: string | null cityId: number | null stateId: number | null countryId: number | null rawCity: string | null rawCountry: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["address"]> composites: {} } type AddressGetPayload = $Result.GetResult type AddressCountArgs = Omit & { select?: AddressCountAggregateInputType | true } export interface AddressDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Address'], meta: { name: 'Address' } } /** * Find zero or one Address that matches the filter. * @param {AddressFindUniqueArgs} args - Arguments to find a Address * @example * // Get one Address * const address = await prisma.address.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Address that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AddressFindUniqueOrThrowArgs} args - Arguments to find a Address * @example * // Get one Address * const address = await prisma.address.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Address 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 {AddressFindFirstArgs} args - Arguments to find a Address * @example * // Get one Address * const address = await prisma.address.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Address 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 {AddressFindFirstOrThrowArgs} args - Arguments to find a Address * @example * // Get one Address * const address = await prisma.address.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Addresses 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 {AddressFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Addresses * const addresses = await prisma.address.findMany() * * // Get first 10 Addresses * const addresses = await prisma.address.findMany({ take: 10 }) * * // Only select the `id` * const addressWithIdOnly = await prisma.address.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Address. * @param {AddressCreateArgs} args - Arguments to create a Address. * @example * // Create one Address * const Address = await prisma.address.create({ * data: { * // ... data to create a Address * } * }) * */ create(args: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Addresses. * @param {AddressCreateManyArgs} args - Arguments to create many Addresses. * @example * // Create many Addresses * const address = await prisma.address.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Addresses and returns the data saved in the database. * @param {AddressCreateManyAndReturnArgs} args - Arguments to create many Addresses. * @example * // Create many Addresses * const address = await prisma.address.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Addresses and only return the `id` * const addressWithIdOnly = await prisma.address.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", GlobalOmitOptions>> /** * Delete a Address. * @param {AddressDeleteArgs} args - Arguments to delete one Address. * @example * // Delete one Address * const Address = await prisma.address.delete({ * where: { * // ... filter to delete one Address * } * }) * */ delete(args: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Address. * @param {AddressUpdateArgs} args - Arguments to update one Address. * @example * // Update one Address * const address = await prisma.address.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Addresses. * @param {AddressDeleteManyArgs} args - Arguments to filter Addresses to delete. * @example * // Delete a few Addresses * const { count } = await prisma.address.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Addresses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AddressUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Addresses * const address = await prisma.address.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Addresses and returns the data updated in the database. * @param {AddressUpdateManyAndReturnArgs} args - Arguments to update many Addresses. * @example * // Update many Addresses * const address = await prisma.address.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Addresses and only return the `id` * const addressWithIdOnly = await prisma.address.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * 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 * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Address. * @param {AddressUpsertArgs} args - Arguments to update or create a Address. * @example * // Update or create a Address * const address = await prisma.address.upsert({ * create: { * // ... data to create a Address * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Address we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Addresses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AddressCountArgs} args - Arguments to filter Addresses to count. * @example * // Count the number of Addresses * const count = await prisma.address.count({ * where: { * // ... the filter for the Addresses 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 Address. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AddressAggregateArgs} 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 Address. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AddressGroupByArgs} 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 AddressGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AddressGroupByArgs['orderBy'] } : { orderBy?: AddressGroupByArgs['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 ? GetAddressGroupByPayload : Prisma.PrismaPromise /** * Fields of the Address model */ readonly fields: AddressFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Address. * 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__AddressClient 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 Address model */ interface AddressFieldRefs { readonly id: FieldRef<"Address", 'String'> readonly street: FieldRef<"Address", 'String'> readonly streetNo: FieldRef<"Address", 'String'> readonly postalCode: FieldRef<"Address", 'String'> readonly cityId: FieldRef<"Address", 'Int'> readonly stateId: FieldRef<"Address", 'Int'> readonly countryId: FieldRef<"Address", 'Int'> readonly rawCity: FieldRef<"Address", 'String'> readonly rawCountry: FieldRef<"Address", 'String'> readonly createdAt: FieldRef<"Address", 'DateTime'> readonly updatedAt: FieldRef<"Address", 'DateTime'> } // Custom InputTypes /** * Address findUnique */ export type AddressFindUniqueArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Omit specific fields from the Address */ omit?: AddressOmit | null /** * Filter, which Address to fetch. */ where: AddressWhereUniqueInput } /** * Address findUniqueOrThrow */ export type AddressFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Omit specific fields from the Address */ omit?: AddressOmit | null /** * Filter, which Address to fetch. */ where: AddressWhereUniqueInput } /** * Address findFirst */ export type AddressFindFirstArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Omit specific fields from the Address */ omit?: AddressOmit | null /** * Filter, which Address to fetch. */ where?: AddressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Addresses to fetch. */ orderBy?: AddressOrderByWithRelationInput | AddressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Addresses. */ cursor?: AddressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Addresses 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` Addresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Addresses. */ distinct?: AddressScalarFieldEnum | AddressScalarFieldEnum[] } /** * Address findFirstOrThrow */ export type AddressFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Omit specific fields from the Address */ omit?: AddressOmit | null /** * Filter, which Address to fetch. */ where?: AddressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Addresses to fetch. */ orderBy?: AddressOrderByWithRelationInput | AddressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Addresses. */ cursor?: AddressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Addresses 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` Addresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Addresses. */ distinct?: AddressScalarFieldEnum | AddressScalarFieldEnum[] } /** * Address findMany */ export type AddressFindManyArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Omit specific fields from the Address */ omit?: AddressOmit | null /** * Filter, which Addresses to fetch. */ where?: AddressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Addresses to fetch. */ orderBy?: AddressOrderByWithRelationInput | AddressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Addresses. */ cursor?: AddressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Addresses 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` Addresses. */ skip?: number distinct?: AddressScalarFieldEnum | AddressScalarFieldEnum[] } /** * Address create */ export type AddressCreateArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Omit specific fields from the Address */ omit?: AddressOmit | null /** * The data needed to create a Address. */ data: XOR } /** * Address createMany */ export type AddressCreateManyArgs = { /** * The data used to create many Addresses. */ data: AddressCreateManyInput | AddressCreateManyInput[] skipDuplicates?: boolean } /** * Address createManyAndReturn */ export type AddressCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelectCreateManyAndReturn | null /** * Omit specific fields from the Address */ omit?: AddressOmit | null /** * The data used to create many Addresses. */ data: AddressCreateManyInput | AddressCreateManyInput[] skipDuplicates?: boolean } /** * Address update */ export type AddressUpdateArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Omit specific fields from the Address */ omit?: AddressOmit | null /** * The data needed to update a Address. */ data: XOR /** * Choose, which Address to update. */ where: AddressWhereUniqueInput } /** * Address updateMany */ export type AddressUpdateManyArgs = { /** * The data used to update Addresses. */ data: XOR /** * Filter which Addresses to update */ where?: AddressWhereInput /** * Limit how many Addresses to update. */ limit?: number } /** * Address updateManyAndReturn */ export type AddressUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelectUpdateManyAndReturn | null /** * Omit specific fields from the Address */ omit?: AddressOmit | null /** * The data used to update Addresses. */ data: XOR /** * Filter which Addresses to update */ where?: AddressWhereInput /** * Limit how many Addresses to update. */ limit?: number } /** * Address upsert */ export type AddressUpsertArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Omit specific fields from the Address */ omit?: AddressOmit | null /** * The filter to search for the Address to update in case it exists. */ where: AddressWhereUniqueInput /** * In case the Address found by the `where` argument doesn't exist, create a new Address with this data. */ create: XOR /** * In case the Address was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Address delete */ export type AddressDeleteArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Omit specific fields from the Address */ omit?: AddressOmit | null /** * Filter which Address to delete. */ where: AddressWhereUniqueInput } /** * Address deleteMany */ export type AddressDeleteManyArgs = { /** * Filter which Addresses to delete */ where?: AddressWhereInput /** * Limit how many Addresses to delete. */ limit?: number } /** * Address without action */ export type AddressDefaultArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Omit specific fields from the Address */ omit?: AddressOmit | null } /** * Model VaultData */ export type AggregateVaultData = { _count: VaultDataCountAggregateOutputType | null _min: VaultDataMinAggregateOutputType | null _max: VaultDataMaxAggregateOutputType | null } export type VaultDataMinAggregateOutputType = { id: string | null entityType: string | null entityId: string | null secureData: string | null createdAt: Date | null } export type VaultDataMaxAggregateOutputType = { id: string | null entityType: string | null entityId: string | null secureData: string | null createdAt: Date | null } export type VaultDataCountAggregateOutputType = { id: number entityType: number entityId: number secureData: number createdAt: number _all: number } export type VaultDataMinAggregateInputType = { id?: true entityType?: true entityId?: true secureData?: true createdAt?: true } export type VaultDataMaxAggregateInputType = { id?: true entityType?: true entityId?: true secureData?: true createdAt?: true } export type VaultDataCountAggregateInputType = { id?: true entityType?: true entityId?: true secureData?: true createdAt?: true _all?: true } export type VaultDataAggregateArgs = { /** * Filter which VaultData to aggregate. */ where?: VaultDataWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of VaultData to fetch. */ orderBy?: VaultDataOrderByWithRelationInput | VaultDataOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: VaultDataWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` VaultData 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` VaultData. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned VaultData **/ _count?: true | VaultDataCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: VaultDataMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: VaultDataMaxAggregateInputType } export type GetVaultDataAggregateType = { [P in keyof T & keyof AggregateVaultData]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type VaultDataGroupByArgs = { where?: VaultDataWhereInput orderBy?: VaultDataOrderByWithAggregationInput | VaultDataOrderByWithAggregationInput[] by: VaultDataScalarFieldEnum[] | VaultDataScalarFieldEnum having?: VaultDataScalarWhereWithAggregatesInput take?: number skip?: number _count?: VaultDataCountAggregateInputType | true _min?: VaultDataMinAggregateInputType _max?: VaultDataMaxAggregateInputType } export type VaultDataGroupByOutputType = { id: string entityType: string entityId: string secureData: string createdAt: Date _count: VaultDataCountAggregateOutputType | null _min: VaultDataMinAggregateOutputType | null _max: VaultDataMaxAggregateOutputType | null } type GetVaultDataGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof VaultDataGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type VaultDataSelect = $Extensions.GetSelect<{ id?: boolean entityType?: boolean entityId?: boolean secureData?: boolean createdAt?: boolean }, ExtArgs["result"]["vaultData"]> export type VaultDataSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean entityType?: boolean entityId?: boolean secureData?: boolean createdAt?: boolean }, ExtArgs["result"]["vaultData"]> export type VaultDataSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean entityType?: boolean entityId?: boolean secureData?: boolean createdAt?: boolean }, ExtArgs["result"]["vaultData"]> export type VaultDataSelectScalar = { id?: boolean entityType?: boolean entityId?: boolean secureData?: boolean createdAt?: boolean } export type VaultDataOmit = $Extensions.GetOmit<"id" | "entityType" | "entityId" | "secureData" | "createdAt", ExtArgs["result"]["vaultData"]> export type $VaultDataPayload = { name: "VaultData" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string entityType: string entityId: string secureData: string createdAt: Date }, ExtArgs["result"]["vaultData"]> composites: {} } type VaultDataGetPayload = $Result.GetResult type VaultDataCountArgs = Omit & { select?: VaultDataCountAggregateInputType | true } export interface VaultDataDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['VaultData'], meta: { name: 'VaultData' } } /** * Find zero or one VaultData that matches the filter. * @param {VaultDataFindUniqueArgs} args - Arguments to find a VaultData * @example * // Get one VaultData * const vaultData = await prisma.vaultData.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__VaultDataClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one VaultData that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {VaultDataFindUniqueOrThrowArgs} args - Arguments to find a VaultData * @example * // Get one VaultData * const vaultData = await prisma.vaultData.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__VaultDataClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first VaultData 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 {VaultDataFindFirstArgs} args - Arguments to find a VaultData * @example * // Get one VaultData * const vaultData = await prisma.vaultData.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__VaultDataClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first VaultData 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 {VaultDataFindFirstOrThrowArgs} args - Arguments to find a VaultData * @example * // Get one VaultData * const vaultData = await prisma.vaultData.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__VaultDataClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more VaultData 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 {VaultDataFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all VaultData * const vaultData = await prisma.vaultData.findMany() * * // Get first 10 VaultData * const vaultData = await prisma.vaultData.findMany({ take: 10 }) * * // Only select the `id` * const vaultDataWithIdOnly = await prisma.vaultData.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a VaultData. * @param {VaultDataCreateArgs} args - Arguments to create a VaultData. * @example * // Create one VaultData * const VaultData = await prisma.vaultData.create({ * data: { * // ... data to create a VaultData * } * }) * */ create(args: SelectSubset>): Prisma__VaultDataClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many VaultData. * @param {VaultDataCreateManyArgs} args - Arguments to create many VaultData. * @example * // Create many VaultData * const vaultData = await prisma.vaultData.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many VaultData and returns the data saved in the database. * @param {VaultDataCreateManyAndReturnArgs} args - Arguments to create many VaultData. * @example * // Create many VaultData * const vaultData = await prisma.vaultData.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many VaultData and only return the `id` * const vaultDataWithIdOnly = await prisma.vaultData.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", GlobalOmitOptions>> /** * Delete a VaultData. * @param {VaultDataDeleteArgs} args - Arguments to delete one VaultData. * @example * // Delete one VaultData * const VaultData = await prisma.vaultData.delete({ * where: { * // ... filter to delete one VaultData * } * }) * */ delete(args: SelectSubset>): Prisma__VaultDataClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one VaultData. * @param {VaultDataUpdateArgs} args - Arguments to update one VaultData. * @example * // Update one VaultData * const vaultData = await prisma.vaultData.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__VaultDataClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more VaultData. * @param {VaultDataDeleteManyArgs} args - Arguments to filter VaultData to delete. * @example * // Delete a few VaultData * const { count } = await prisma.vaultData.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more VaultData. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {VaultDataUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many VaultData * const vaultData = await prisma.vaultData.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more VaultData and returns the data updated in the database. * @param {VaultDataUpdateManyAndReturnArgs} args - Arguments to update many VaultData. * @example * // Update many VaultData * const vaultData = await prisma.vaultData.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more VaultData and only return the `id` * const vaultDataWithIdOnly = await prisma.vaultData.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * 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 * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one VaultData. * @param {VaultDataUpsertArgs} args - Arguments to update or create a VaultData. * @example * // Update or create a VaultData * const vaultData = await prisma.vaultData.upsert({ * create: { * // ... data to create a VaultData * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the VaultData we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__VaultDataClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of VaultData. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {VaultDataCountArgs} args - Arguments to filter VaultData to count. * @example * // Count the number of VaultData * const count = await prisma.vaultData.count({ * where: { * // ... the filter for the VaultData 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 VaultData. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {VaultDataAggregateArgs} 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 VaultData. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {VaultDataGroupByArgs} 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 VaultDataGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: VaultDataGroupByArgs['orderBy'] } : { orderBy?: VaultDataGroupByArgs['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 ? GetVaultDataGroupByPayload : Prisma.PrismaPromise /** * Fields of the VaultData model */ readonly fields: VaultDataFieldRefs; } /** * The delegate class that acts as a "Promise-like" for VaultData. * 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__VaultDataClient 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 VaultData model */ interface VaultDataFieldRefs { readonly id: FieldRef<"VaultData", 'String'> readonly entityType: FieldRef<"VaultData", 'String'> readonly entityId: FieldRef<"VaultData", 'String'> readonly secureData: FieldRef<"VaultData", 'String'> readonly createdAt: FieldRef<"VaultData", 'DateTime'> } // Custom InputTypes /** * VaultData findUnique */ export type VaultDataFindUniqueArgs = { /** * Select specific fields to fetch from the VaultData */ select?: VaultDataSelect | null /** * Omit specific fields from the VaultData */ omit?: VaultDataOmit | null /** * Filter, which VaultData to fetch. */ where: VaultDataWhereUniqueInput } /** * VaultData findUniqueOrThrow */ export type VaultDataFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the VaultData */ select?: VaultDataSelect | null /** * Omit specific fields from the VaultData */ omit?: VaultDataOmit | null /** * Filter, which VaultData to fetch. */ where: VaultDataWhereUniqueInput } /** * VaultData findFirst */ export type VaultDataFindFirstArgs = { /** * Select specific fields to fetch from the VaultData */ select?: VaultDataSelect | null /** * Omit specific fields from the VaultData */ omit?: VaultDataOmit | null /** * Filter, which VaultData to fetch. */ where?: VaultDataWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of VaultData to fetch. */ orderBy?: VaultDataOrderByWithRelationInput | VaultDataOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for VaultData. */ cursor?: VaultDataWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` VaultData 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` VaultData. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of VaultData. */ distinct?: VaultDataScalarFieldEnum | VaultDataScalarFieldEnum[] } /** * VaultData findFirstOrThrow */ export type VaultDataFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the VaultData */ select?: VaultDataSelect | null /** * Omit specific fields from the VaultData */ omit?: VaultDataOmit | null /** * Filter, which VaultData to fetch. */ where?: VaultDataWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of VaultData to fetch. */ orderBy?: VaultDataOrderByWithRelationInput | VaultDataOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for VaultData. */ cursor?: VaultDataWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` VaultData 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` VaultData. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of VaultData. */ distinct?: VaultDataScalarFieldEnum | VaultDataScalarFieldEnum[] } /** * VaultData findMany */ export type VaultDataFindManyArgs = { /** * Select specific fields to fetch from the VaultData */ select?: VaultDataSelect | null /** * Omit specific fields from the VaultData */ omit?: VaultDataOmit | null /** * Filter, which VaultData to fetch. */ where?: VaultDataWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of VaultData to fetch. */ orderBy?: VaultDataOrderByWithRelationInput | VaultDataOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing VaultData. */ cursor?: VaultDataWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` VaultData 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` VaultData. */ skip?: number distinct?: VaultDataScalarFieldEnum | VaultDataScalarFieldEnum[] } /** * VaultData create */ export type VaultDataCreateArgs = { /** * Select specific fields to fetch from the VaultData */ select?: VaultDataSelect | null /** * Omit specific fields from the VaultData */ omit?: VaultDataOmit | null /** * The data needed to create a VaultData. */ data: XOR } /** * VaultData createMany */ export type VaultDataCreateManyArgs = { /** * The data used to create many VaultData. */ data: VaultDataCreateManyInput | VaultDataCreateManyInput[] skipDuplicates?: boolean } /** * VaultData createManyAndReturn */ export type VaultDataCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the VaultData */ select?: VaultDataSelectCreateManyAndReturn | null /** * Omit specific fields from the VaultData */ omit?: VaultDataOmit | null /** * The data used to create many VaultData. */ data: VaultDataCreateManyInput | VaultDataCreateManyInput[] skipDuplicates?: boolean } /** * VaultData update */ export type VaultDataUpdateArgs = { /** * Select specific fields to fetch from the VaultData */ select?: VaultDataSelect | null /** * Omit specific fields from the VaultData */ omit?: VaultDataOmit | null /** * The data needed to update a VaultData. */ data: XOR /** * Choose, which VaultData to update. */ where: VaultDataWhereUniqueInput } /** * VaultData updateMany */ export type VaultDataUpdateManyArgs = { /** * The data used to update VaultData. */ data: XOR /** * Filter which VaultData to update */ where?: VaultDataWhereInput /** * Limit how many VaultData to update. */ limit?: number } /** * VaultData updateManyAndReturn */ export type VaultDataUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the VaultData */ select?: VaultDataSelectUpdateManyAndReturn | null /** * Omit specific fields from the VaultData */ omit?: VaultDataOmit | null /** * The data used to update VaultData. */ data: XOR /** * Filter which VaultData to update */ where?: VaultDataWhereInput /** * Limit how many VaultData to update. */ limit?: number } /** * VaultData upsert */ export type VaultDataUpsertArgs = { /** * Select specific fields to fetch from the VaultData */ select?: VaultDataSelect | null /** * Omit specific fields from the VaultData */ omit?: VaultDataOmit | null /** * The filter to search for the VaultData to update in case it exists. */ where: VaultDataWhereUniqueInput /** * In case the VaultData found by the `where` argument doesn't exist, create a new VaultData with this data. */ create: XOR /** * In case the VaultData was found with the provided `where` argument, update it with this data. */ update: XOR } /** * VaultData delete */ export type VaultDataDeleteArgs = { /** * Select specific fields to fetch from the VaultData */ select?: VaultDataSelect | null /** * Omit specific fields from the VaultData */ omit?: VaultDataOmit | null /** * Filter which VaultData to delete. */ where: VaultDataWhereUniqueInput } /** * VaultData deleteMany */ export type VaultDataDeleteManyArgs = { /** * Filter which VaultData to delete */ where?: VaultDataWhereInput /** * Limit how many VaultData to delete. */ limit?: number } /** * VaultData without action */ export type VaultDataDefaultArgs = { /** * Select specific fields to fetch from the VaultData */ select?: VaultDataSelect | null /** * Omit specific fields from the VaultData */ omit?: VaultDataOmit | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const UnitScalarFieldEnum: { id: 'id', name: 'name', description: 'description', parentId: 'parentId', traits: 'traits', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type UnitScalarFieldEnum = (typeof UnitScalarFieldEnum)[keyof typeof UnitScalarFieldEnum] export const PersonScalarFieldEnum: { id: 'id', firstName: 'firstName', lastName: 'lastName', email: 'email', phone: 'phone', ssoId: 'ssoId', traits: 'traits', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type PersonScalarFieldEnum = (typeof PersonScalarFieldEnum)[keyof typeof PersonScalarFieldEnum] export const GroupScalarFieldEnum: { id: 'id', name: 'name', traits: 'traits', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type GroupScalarFieldEnum = (typeof GroupScalarFieldEnum)[keyof typeof GroupScalarFieldEnum] export const GroupMembershipScalarFieldEnum: { id: 'id', personId: 'personId', groupId: 'groupId', role: 'role' }; export type GroupMembershipScalarFieldEnum = (typeof GroupMembershipScalarFieldEnum)[keyof typeof GroupMembershipScalarFieldEnum] export const EventScalarFieldEnum: { id: 'id', type: 'type', status: 'status', startTime: 'startTime', endTime: 'endTime', targetUnitId: 'targetUnitId', targetGroupId: 'targetGroupId', targetPersonId: 'targetPersonId', payload: 'payload', parentEventId: 'parentEventId', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type EventScalarFieldEnum = (typeof EventScalarFieldEnum)[keyof typeof EventScalarFieldEnum] export const CitiesScalarFieldEnum: { id: 'id', name: 'name', state_id: 'state_id', state_code: 'state_code', country_id: 'country_id', country_code: 'country_code', type: 'type', level: 'level', parent_id: 'parent_id', latitude: 'latitude', longitude: 'longitude', native: 'native', population: 'population', timezone: 'timezone', translations: 'translations', created_at: 'created_at', updated_at: 'updated_at', flag: 'flag', wikiDataId: 'wikiDataId' }; export type CitiesScalarFieldEnum = (typeof CitiesScalarFieldEnum)[keyof typeof CitiesScalarFieldEnum] export const CountriesScalarFieldEnum: { id: 'id', name: 'name', iso3: 'iso3', numeric_code: 'numeric_code', iso2: 'iso2', phonecode: 'phonecode', capital: 'capital', currency: 'currency', currency_name: 'currency_name', currency_symbol: 'currency_symbol', tld: 'tld', native: 'native', population: 'population', gdp: 'gdp', region: 'region', region_id: 'region_id', subregion: 'subregion', subregion_id: 'subregion_id', nationality: 'nationality', area_sq_km: 'area_sq_km', postal_code_format: 'postal_code_format', postal_code_regex: 'postal_code_regex', timezones: 'timezones', translations: 'translations', latitude: 'latitude', longitude: 'longitude', emoji: 'emoji', emojiU: 'emojiU', created_at: 'created_at', updated_at: 'updated_at', flag: 'flag', wikiDataId: 'wikiDataId' }; export type CountriesScalarFieldEnum = (typeof CountriesScalarFieldEnum)[keyof typeof CountriesScalarFieldEnum] export const StatesScalarFieldEnum: { id: 'id', name: 'name', country_id: 'country_id', country_code: 'country_code', fips_code: 'fips_code', iso2: 'iso2', iso3166_2: 'iso3166_2', type: 'type', level: 'level', parent_id: 'parent_id', native: 'native', latitude: 'latitude', longitude: 'longitude', timezone: 'timezone', translations: 'translations', created_at: 'created_at', updated_at: 'updated_at', flag: 'flag', wikiDataId: 'wikiDataId', population: 'population' }; export type StatesScalarFieldEnum = (typeof StatesScalarFieldEnum)[keyof typeof StatesScalarFieldEnum] export const AddressScalarFieldEnum: { id: 'id', street: 'street', streetNo: 'streetNo', postalCode: 'postalCode', cityId: 'cityId', stateId: 'stateId', countryId: 'countryId', rawCity: 'rawCity', rawCountry: 'rawCountry', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type AddressScalarFieldEnum = (typeof AddressScalarFieldEnum)[keyof typeof AddressScalarFieldEnum] export const VaultDataScalarFieldEnum: { id: 'id', entityType: 'entityType', entityId: 'entityId', secureData: 'secureData', createdAt: 'createdAt' }; export type VaultDataScalarFieldEnum = (typeof VaultDataScalarFieldEnum)[keyof typeof VaultDataScalarFieldEnum] export const SortOrder: { asc: 'asc', desc: 'desc' }; export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] 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 'Json' */ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'> /** * Reference to a field of type 'QueryMode' */ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'> /** * 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 'BigInt' */ export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'> /** * Reference to a field of type 'BigInt[]' */ export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'> /** * 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 'Decimal' */ export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'> /** * Reference to a field of type 'Decimal[]' */ export type ListDecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal[]'> /** * 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 UnitWhereInput = { AND?: UnitWhereInput | UnitWhereInput[] OR?: UnitWhereInput[] NOT?: UnitWhereInput | UnitWhereInput[] id?: StringFilter<"Unit"> | string name?: StringFilter<"Unit"> | string description?: StringNullableFilter<"Unit"> | string | null parentId?: StringNullableFilter<"Unit"> | string | null traits?: JsonFilter<"Unit"> createdAt?: DateTimeFilter<"Unit"> | Date | string updatedAt?: DateTimeFilter<"Unit"> | Date | string parent?: XOR | null children?: UnitListRelationFilter } export type UnitOrderByWithRelationInput = { id?: SortOrder name?: SortOrder description?: SortOrderInput | SortOrder parentId?: SortOrderInput | SortOrder traits?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder parent?: UnitOrderByWithRelationInput children?: UnitOrderByRelationAggregateInput } export type UnitWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: UnitWhereInput | UnitWhereInput[] OR?: UnitWhereInput[] NOT?: UnitWhereInput | UnitWhereInput[] name?: StringFilter<"Unit"> | string description?: StringNullableFilter<"Unit"> | string | null parentId?: StringNullableFilter<"Unit"> | string | null traits?: JsonFilter<"Unit"> createdAt?: DateTimeFilter<"Unit"> | Date | string updatedAt?: DateTimeFilter<"Unit"> | Date | string parent?: XOR | null children?: UnitListRelationFilter }, "id"> export type UnitOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder description?: SortOrderInput | SortOrder parentId?: SortOrderInput | SortOrder traits?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: UnitCountOrderByAggregateInput _max?: UnitMaxOrderByAggregateInput _min?: UnitMinOrderByAggregateInput } export type UnitScalarWhereWithAggregatesInput = { AND?: UnitScalarWhereWithAggregatesInput | UnitScalarWhereWithAggregatesInput[] OR?: UnitScalarWhereWithAggregatesInput[] NOT?: UnitScalarWhereWithAggregatesInput | UnitScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Unit"> | string name?: StringWithAggregatesFilter<"Unit"> | string description?: StringNullableWithAggregatesFilter<"Unit"> | string | null parentId?: StringNullableWithAggregatesFilter<"Unit"> | string | null traits?: JsonWithAggregatesFilter<"Unit"> createdAt?: DateTimeWithAggregatesFilter<"Unit"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Unit"> | Date | string } export type PersonWhereInput = { AND?: PersonWhereInput | PersonWhereInput[] OR?: PersonWhereInput[] NOT?: PersonWhereInput | PersonWhereInput[] id?: StringFilter<"Person"> | string firstName?: StringFilter<"Person"> | string lastName?: StringFilter<"Person"> | string email?: StringNullableFilter<"Person"> | string | null phone?: StringNullableFilter<"Person"> | string | null ssoId?: StringNullableFilter<"Person"> | string | null traits?: JsonFilter<"Person"> createdAt?: DateTimeFilter<"Person"> | Date | string updatedAt?: DateTimeFilter<"Person"> | Date | string groupMemberships?: GroupMembershipListRelationFilter } export type PersonOrderByWithRelationInput = { id?: SortOrder firstName?: SortOrder lastName?: SortOrder email?: SortOrderInput | SortOrder phone?: SortOrderInput | SortOrder ssoId?: SortOrderInput | SortOrder traits?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder groupMemberships?: GroupMembershipOrderByRelationAggregateInput } export type PersonWhereUniqueInput = Prisma.AtLeast<{ id?: string email?: string ssoId?: string AND?: PersonWhereInput | PersonWhereInput[] OR?: PersonWhereInput[] NOT?: PersonWhereInput | PersonWhereInput[] firstName?: StringFilter<"Person"> | string lastName?: StringFilter<"Person"> | string phone?: StringNullableFilter<"Person"> | string | null traits?: JsonFilter<"Person"> createdAt?: DateTimeFilter<"Person"> | Date | string updatedAt?: DateTimeFilter<"Person"> | Date | string groupMemberships?: GroupMembershipListRelationFilter }, "id" | "email" | "ssoId"> export type PersonOrderByWithAggregationInput = { id?: SortOrder firstName?: SortOrder lastName?: SortOrder email?: SortOrderInput | SortOrder phone?: SortOrderInput | SortOrder ssoId?: SortOrderInput | SortOrder traits?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: PersonCountOrderByAggregateInput _max?: PersonMaxOrderByAggregateInput _min?: PersonMinOrderByAggregateInput } export type PersonScalarWhereWithAggregatesInput = { AND?: PersonScalarWhereWithAggregatesInput | PersonScalarWhereWithAggregatesInput[] OR?: PersonScalarWhereWithAggregatesInput[] NOT?: PersonScalarWhereWithAggregatesInput | PersonScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Person"> | string firstName?: StringWithAggregatesFilter<"Person"> | string lastName?: StringWithAggregatesFilter<"Person"> | string email?: StringNullableWithAggregatesFilter<"Person"> | string | null phone?: StringNullableWithAggregatesFilter<"Person"> | string | null ssoId?: StringNullableWithAggregatesFilter<"Person"> | string | null traits?: JsonWithAggregatesFilter<"Person"> createdAt?: DateTimeWithAggregatesFilter<"Person"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Person"> | Date | string } export type GroupWhereInput = { AND?: GroupWhereInput | GroupWhereInput[] OR?: GroupWhereInput[] NOT?: GroupWhereInput | GroupWhereInput[] id?: StringFilter<"Group"> | string name?: StringFilter<"Group"> | string traits?: JsonFilter<"Group"> createdAt?: DateTimeFilter<"Group"> | Date | string updatedAt?: DateTimeFilter<"Group"> | Date | string members?: GroupMembershipListRelationFilter } export type GroupOrderByWithRelationInput = { id?: SortOrder name?: SortOrder traits?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder members?: GroupMembershipOrderByRelationAggregateInput } export type GroupWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: GroupWhereInput | GroupWhereInput[] OR?: GroupWhereInput[] NOT?: GroupWhereInput | GroupWhereInput[] name?: StringFilter<"Group"> | string traits?: JsonFilter<"Group"> createdAt?: DateTimeFilter<"Group"> | Date | string updatedAt?: DateTimeFilter<"Group"> | Date | string members?: GroupMembershipListRelationFilter }, "id"> export type GroupOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder traits?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: GroupCountOrderByAggregateInput _max?: GroupMaxOrderByAggregateInput _min?: GroupMinOrderByAggregateInput } export type GroupScalarWhereWithAggregatesInput = { AND?: GroupScalarWhereWithAggregatesInput | GroupScalarWhereWithAggregatesInput[] OR?: GroupScalarWhereWithAggregatesInput[] NOT?: GroupScalarWhereWithAggregatesInput | GroupScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Group"> | string name?: StringWithAggregatesFilter<"Group"> | string traits?: JsonWithAggregatesFilter<"Group"> createdAt?: DateTimeWithAggregatesFilter<"Group"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Group"> | Date | string } export type GroupMembershipWhereInput = { AND?: GroupMembershipWhereInput | GroupMembershipWhereInput[] OR?: GroupMembershipWhereInput[] NOT?: GroupMembershipWhereInput | GroupMembershipWhereInput[] id?: StringFilter<"GroupMembership"> | string personId?: StringFilter<"GroupMembership"> | string groupId?: StringFilter<"GroupMembership"> | string role?: StringFilter<"GroupMembership"> | string group?: XOR person?: XOR } export type GroupMembershipOrderByWithRelationInput = { id?: SortOrder personId?: SortOrder groupId?: SortOrder role?: SortOrder group?: GroupOrderByWithRelationInput person?: PersonOrderByWithRelationInput } export type GroupMembershipWhereUniqueInput = Prisma.AtLeast<{ id?: string personId_groupId_role?: GroupMembershipPersonIdGroupIdRoleCompoundUniqueInput AND?: GroupMembershipWhereInput | GroupMembershipWhereInput[] OR?: GroupMembershipWhereInput[] NOT?: GroupMembershipWhereInput | GroupMembershipWhereInput[] personId?: StringFilter<"GroupMembership"> | string groupId?: StringFilter<"GroupMembership"> | string role?: StringFilter<"GroupMembership"> | string group?: XOR person?: XOR }, "id" | "personId_groupId_role"> export type GroupMembershipOrderByWithAggregationInput = { id?: SortOrder personId?: SortOrder groupId?: SortOrder role?: SortOrder _count?: GroupMembershipCountOrderByAggregateInput _max?: GroupMembershipMaxOrderByAggregateInput _min?: GroupMembershipMinOrderByAggregateInput } export type GroupMembershipScalarWhereWithAggregatesInput = { AND?: GroupMembershipScalarWhereWithAggregatesInput | GroupMembershipScalarWhereWithAggregatesInput[] OR?: GroupMembershipScalarWhereWithAggregatesInput[] NOT?: GroupMembershipScalarWhereWithAggregatesInput | GroupMembershipScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"GroupMembership"> | string personId?: StringWithAggregatesFilter<"GroupMembership"> | string groupId?: StringWithAggregatesFilter<"GroupMembership"> | string role?: StringWithAggregatesFilter<"GroupMembership"> | string } export type EventWhereInput = { AND?: EventWhereInput | EventWhereInput[] OR?: EventWhereInput[] NOT?: EventWhereInput | EventWhereInput[] id?: StringFilter<"Event"> | string type?: StringFilter<"Event"> | string status?: StringFilter<"Event"> | string startTime?: DateTimeFilter<"Event"> | Date | string endTime?: DateTimeNullableFilter<"Event"> | Date | string | null targetUnitId?: StringNullableFilter<"Event"> | string | null targetGroupId?: StringNullableFilter<"Event"> | string | null targetPersonId?: StringNullableFilter<"Event"> | string | null payload?: JsonFilter<"Event"> parentEventId?: StringNullableFilter<"Event"> | string | null createdAt?: DateTimeFilter<"Event"> | Date | string updatedAt?: DateTimeFilter<"Event"> | Date | string } export type EventOrderByWithRelationInput = { id?: SortOrder type?: SortOrder status?: SortOrder startTime?: SortOrder endTime?: SortOrderInput | SortOrder targetUnitId?: SortOrderInput | SortOrder targetGroupId?: SortOrderInput | SortOrder targetPersonId?: SortOrderInput | SortOrder payload?: SortOrder parentEventId?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EventWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: EventWhereInput | EventWhereInput[] OR?: EventWhereInput[] NOT?: EventWhereInput | EventWhereInput[] type?: StringFilter<"Event"> | string status?: StringFilter<"Event"> | string startTime?: DateTimeFilter<"Event"> | Date | string endTime?: DateTimeNullableFilter<"Event"> | Date | string | null targetUnitId?: StringNullableFilter<"Event"> | string | null targetGroupId?: StringNullableFilter<"Event"> | string | null targetPersonId?: StringNullableFilter<"Event"> | string | null payload?: JsonFilter<"Event"> parentEventId?: StringNullableFilter<"Event"> | string | null createdAt?: DateTimeFilter<"Event"> | Date | string updatedAt?: DateTimeFilter<"Event"> | Date | string }, "id"> export type EventOrderByWithAggregationInput = { id?: SortOrder type?: SortOrder status?: SortOrder startTime?: SortOrder endTime?: SortOrderInput | SortOrder targetUnitId?: SortOrderInput | SortOrder targetGroupId?: SortOrderInput | SortOrder targetPersonId?: SortOrderInput | SortOrder payload?: SortOrder parentEventId?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: EventCountOrderByAggregateInput _max?: EventMaxOrderByAggregateInput _min?: EventMinOrderByAggregateInput } export type EventScalarWhereWithAggregatesInput = { AND?: EventScalarWhereWithAggregatesInput | EventScalarWhereWithAggregatesInput[] OR?: EventScalarWhereWithAggregatesInput[] NOT?: EventScalarWhereWithAggregatesInput | EventScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Event"> | string type?: StringWithAggregatesFilter<"Event"> | string status?: StringWithAggregatesFilter<"Event"> | string startTime?: DateTimeWithAggregatesFilter<"Event"> | Date | string endTime?: DateTimeNullableWithAggregatesFilter<"Event"> | Date | string | null targetUnitId?: StringNullableWithAggregatesFilter<"Event"> | string | null targetGroupId?: StringNullableWithAggregatesFilter<"Event"> | string | null targetPersonId?: StringNullableWithAggregatesFilter<"Event"> | string | null payload?: JsonWithAggregatesFilter<"Event"> parentEventId?: StringNullableWithAggregatesFilter<"Event"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Event"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Event"> | Date | string } export type citiesWhereInput = { AND?: citiesWhereInput | citiesWhereInput[] OR?: citiesWhereInput[] NOT?: citiesWhereInput | citiesWhereInput[] id?: BigIntFilter<"cities"> | bigint | number name?: StringFilter<"cities"> | string state_id?: BigIntFilter<"cities"> | bigint | number state_code?: StringFilter<"cities"> | string country_id?: BigIntFilter<"cities"> | bigint | number country_code?: StringFilter<"cities"> | string type?: StringNullableFilter<"cities"> | string | null level?: IntNullableFilter<"cities"> | number | null parent_id?: BigIntNullableFilter<"cities"> | bigint | number | null latitude?: DecimalFilter<"cities"> | Decimal | DecimalJsLike | number | string longitude?: DecimalFilter<"cities"> | Decimal | DecimalJsLike | number | string native?: StringNullableFilter<"cities"> | string | null population?: BigIntNullableFilter<"cities"> | bigint | number | null timezone?: StringNullableFilter<"cities"> | string | null translations?: StringNullableFilter<"cities"> | string | null created_at?: DateTimeFilter<"cities"> | Date | string updated_at?: DateTimeFilter<"cities"> | Date | string flag?: IntFilter<"cities"> | number wikiDataId?: StringNullableFilter<"cities"> | string | null countries?: XOR states?: XOR } export type citiesOrderByWithRelationInput = { id?: SortOrder name?: SortOrder state_id?: SortOrder state_code?: SortOrder country_id?: SortOrder country_code?: SortOrder type?: SortOrderInput | SortOrder level?: SortOrderInput | SortOrder parent_id?: SortOrderInput | SortOrder latitude?: SortOrder longitude?: SortOrder native?: SortOrderInput | SortOrder population?: SortOrderInput | SortOrder timezone?: SortOrderInput | SortOrder translations?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder flag?: SortOrder wikiDataId?: SortOrderInput | SortOrder countries?: countriesOrderByWithRelationInput states?: statesOrderByWithRelationInput } export type citiesWhereUniqueInput = Prisma.AtLeast<{ id?: bigint | number AND?: citiesWhereInput | citiesWhereInput[] OR?: citiesWhereInput[] NOT?: citiesWhereInput | citiesWhereInput[] name?: StringFilter<"cities"> | string state_id?: BigIntFilter<"cities"> | bigint | number state_code?: StringFilter<"cities"> | string country_id?: BigIntFilter<"cities"> | bigint | number country_code?: StringFilter<"cities"> | string type?: StringNullableFilter<"cities"> | string | null level?: IntNullableFilter<"cities"> | number | null parent_id?: BigIntNullableFilter<"cities"> | bigint | number | null latitude?: DecimalFilter<"cities"> | Decimal | DecimalJsLike | number | string longitude?: DecimalFilter<"cities"> | Decimal | DecimalJsLike | number | string native?: StringNullableFilter<"cities"> | string | null population?: BigIntNullableFilter<"cities"> | bigint | number | null timezone?: StringNullableFilter<"cities"> | string | null translations?: StringNullableFilter<"cities"> | string | null created_at?: DateTimeFilter<"cities"> | Date | string updated_at?: DateTimeFilter<"cities"> | Date | string flag?: IntFilter<"cities"> | number wikiDataId?: StringNullableFilter<"cities"> | string | null countries?: XOR states?: XOR }, "id"> export type citiesOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder state_id?: SortOrder state_code?: SortOrder country_id?: SortOrder country_code?: SortOrder type?: SortOrderInput | SortOrder level?: SortOrderInput | SortOrder parent_id?: SortOrderInput | SortOrder latitude?: SortOrder longitude?: SortOrder native?: SortOrderInput | SortOrder population?: SortOrderInput | SortOrder timezone?: SortOrderInput | SortOrder translations?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder flag?: SortOrder wikiDataId?: SortOrderInput | SortOrder _count?: citiesCountOrderByAggregateInput _avg?: citiesAvgOrderByAggregateInput _max?: citiesMaxOrderByAggregateInput _min?: citiesMinOrderByAggregateInput _sum?: citiesSumOrderByAggregateInput } export type citiesScalarWhereWithAggregatesInput = { AND?: citiesScalarWhereWithAggregatesInput | citiesScalarWhereWithAggregatesInput[] OR?: citiesScalarWhereWithAggregatesInput[] NOT?: citiesScalarWhereWithAggregatesInput | citiesScalarWhereWithAggregatesInput[] id?: BigIntWithAggregatesFilter<"cities"> | bigint | number name?: StringWithAggregatesFilter<"cities"> | string state_id?: BigIntWithAggregatesFilter<"cities"> | bigint | number state_code?: StringWithAggregatesFilter<"cities"> | string country_id?: BigIntWithAggregatesFilter<"cities"> | bigint | number country_code?: StringWithAggregatesFilter<"cities"> | string type?: StringNullableWithAggregatesFilter<"cities"> | string | null level?: IntNullableWithAggregatesFilter<"cities"> | number | null parent_id?: BigIntNullableWithAggregatesFilter<"cities"> | bigint | number | null latitude?: DecimalWithAggregatesFilter<"cities"> | Decimal | DecimalJsLike | number | string longitude?: DecimalWithAggregatesFilter<"cities"> | Decimal | DecimalJsLike | number | string native?: StringNullableWithAggregatesFilter<"cities"> | string | null population?: BigIntNullableWithAggregatesFilter<"cities"> | bigint | number | null timezone?: StringNullableWithAggregatesFilter<"cities"> | string | null translations?: StringNullableWithAggregatesFilter<"cities"> | string | null created_at?: DateTimeWithAggregatesFilter<"cities"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"cities"> | Date | string flag?: IntWithAggregatesFilter<"cities"> | number wikiDataId?: StringNullableWithAggregatesFilter<"cities"> | string | null } export type countriesWhereInput = { AND?: countriesWhereInput | countriesWhereInput[] OR?: countriesWhereInput[] NOT?: countriesWhereInput | countriesWhereInput[] id?: BigIntFilter<"countries"> | bigint | number name?: StringFilter<"countries"> | string iso3?: StringNullableFilter<"countries"> | string | null numeric_code?: StringNullableFilter<"countries"> | string | null iso2?: StringNullableFilter<"countries"> | string | null phonecode?: StringNullableFilter<"countries"> | string | null capital?: StringNullableFilter<"countries"> | string | null currency?: StringNullableFilter<"countries"> | string | null currency_name?: StringNullableFilter<"countries"> | string | null currency_symbol?: StringNullableFilter<"countries"> | string | null tld?: StringNullableFilter<"countries"> | string | null native?: StringNullableFilter<"countries"> | string | null population?: BigIntNullableFilter<"countries"> | bigint | number | null gdp?: BigIntNullableFilter<"countries"> | bigint | number | null region?: StringNullableFilter<"countries"> | string | null region_id?: BigIntNullableFilter<"countries"> | bigint | number | null subregion?: StringNullableFilter<"countries"> | string | null subregion_id?: BigIntNullableFilter<"countries"> | bigint | number | null nationality?: StringNullableFilter<"countries"> | string | null area_sq_km?: FloatNullableFilter<"countries"> | number | null postal_code_format?: StringNullableFilter<"countries"> | string | null postal_code_regex?: StringNullableFilter<"countries"> | string | null timezones?: StringNullableFilter<"countries"> | string | null translations?: StringNullableFilter<"countries"> | string | null latitude?: DecimalNullableFilter<"countries"> | Decimal | DecimalJsLike | number | string | null longitude?: DecimalNullableFilter<"countries"> | Decimal | DecimalJsLike | number | string | null emoji?: StringNullableFilter<"countries"> | string | null emojiU?: StringNullableFilter<"countries"> | string | null created_at?: DateTimeNullableFilter<"countries"> | Date | string | null updated_at?: DateTimeFilter<"countries"> | Date | string flag?: IntFilter<"countries"> | number wikiDataId?: StringNullableFilter<"countries"> | string | null cities?: CitiesListRelationFilter states?: StatesListRelationFilter } export type countriesOrderByWithRelationInput = { id?: SortOrder name?: SortOrder iso3?: SortOrderInput | SortOrder numeric_code?: SortOrderInput | SortOrder iso2?: SortOrderInput | SortOrder phonecode?: SortOrderInput | SortOrder capital?: SortOrderInput | SortOrder currency?: SortOrderInput | SortOrder currency_name?: SortOrderInput | SortOrder currency_symbol?: SortOrderInput | SortOrder tld?: SortOrderInput | SortOrder native?: SortOrderInput | SortOrder population?: SortOrderInput | SortOrder gdp?: SortOrderInput | SortOrder region?: SortOrderInput | SortOrder region_id?: SortOrderInput | SortOrder subregion?: SortOrderInput | SortOrder subregion_id?: SortOrderInput | SortOrder nationality?: SortOrderInput | SortOrder area_sq_km?: SortOrderInput | SortOrder postal_code_format?: SortOrderInput | SortOrder postal_code_regex?: SortOrderInput | SortOrder timezones?: SortOrderInput | SortOrder translations?: SortOrderInput | SortOrder latitude?: SortOrderInput | SortOrder longitude?: SortOrderInput | SortOrder emoji?: SortOrderInput | SortOrder emojiU?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrder flag?: SortOrder wikiDataId?: SortOrderInput | SortOrder cities?: citiesOrderByRelationAggregateInput states?: statesOrderByRelationAggregateInput } export type countriesWhereUniqueInput = Prisma.AtLeast<{ id?: bigint | number AND?: countriesWhereInput | countriesWhereInput[] OR?: countriesWhereInput[] NOT?: countriesWhereInput | countriesWhereInput[] name?: StringFilter<"countries"> | string iso3?: StringNullableFilter<"countries"> | string | null numeric_code?: StringNullableFilter<"countries"> | string | null iso2?: StringNullableFilter<"countries"> | string | null phonecode?: StringNullableFilter<"countries"> | string | null capital?: StringNullableFilter<"countries"> | string | null currency?: StringNullableFilter<"countries"> | string | null currency_name?: StringNullableFilter<"countries"> | string | null currency_symbol?: StringNullableFilter<"countries"> | string | null tld?: StringNullableFilter<"countries"> | string | null native?: StringNullableFilter<"countries"> | string | null population?: BigIntNullableFilter<"countries"> | bigint | number | null gdp?: BigIntNullableFilter<"countries"> | bigint | number | null region?: StringNullableFilter<"countries"> | string | null region_id?: BigIntNullableFilter<"countries"> | bigint | number | null subregion?: StringNullableFilter<"countries"> | string | null subregion_id?: BigIntNullableFilter<"countries"> | bigint | number | null nationality?: StringNullableFilter<"countries"> | string | null area_sq_km?: FloatNullableFilter<"countries"> | number | null postal_code_format?: StringNullableFilter<"countries"> | string | null postal_code_regex?: StringNullableFilter<"countries"> | string | null timezones?: StringNullableFilter<"countries"> | string | null translations?: StringNullableFilter<"countries"> | string | null latitude?: DecimalNullableFilter<"countries"> | Decimal | DecimalJsLike | number | string | null longitude?: DecimalNullableFilter<"countries"> | Decimal | DecimalJsLike | number | string | null emoji?: StringNullableFilter<"countries"> | string | null emojiU?: StringNullableFilter<"countries"> | string | null created_at?: DateTimeNullableFilter<"countries"> | Date | string | null updated_at?: DateTimeFilter<"countries"> | Date | string flag?: IntFilter<"countries"> | number wikiDataId?: StringNullableFilter<"countries"> | string | null cities?: CitiesListRelationFilter states?: StatesListRelationFilter }, "id"> export type countriesOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder iso3?: SortOrderInput | SortOrder numeric_code?: SortOrderInput | SortOrder iso2?: SortOrderInput | SortOrder phonecode?: SortOrderInput | SortOrder capital?: SortOrderInput | SortOrder currency?: SortOrderInput | SortOrder currency_name?: SortOrderInput | SortOrder currency_symbol?: SortOrderInput | SortOrder tld?: SortOrderInput | SortOrder native?: SortOrderInput | SortOrder population?: SortOrderInput | SortOrder gdp?: SortOrderInput | SortOrder region?: SortOrderInput | SortOrder region_id?: SortOrderInput | SortOrder subregion?: SortOrderInput | SortOrder subregion_id?: SortOrderInput | SortOrder nationality?: SortOrderInput | SortOrder area_sq_km?: SortOrderInput | SortOrder postal_code_format?: SortOrderInput | SortOrder postal_code_regex?: SortOrderInput | SortOrder timezones?: SortOrderInput | SortOrder translations?: SortOrderInput | SortOrder latitude?: SortOrderInput | SortOrder longitude?: SortOrderInput | SortOrder emoji?: SortOrderInput | SortOrder emojiU?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrder flag?: SortOrder wikiDataId?: SortOrderInput | SortOrder _count?: countriesCountOrderByAggregateInput _avg?: countriesAvgOrderByAggregateInput _max?: countriesMaxOrderByAggregateInput _min?: countriesMinOrderByAggregateInput _sum?: countriesSumOrderByAggregateInput } export type countriesScalarWhereWithAggregatesInput = { AND?: countriesScalarWhereWithAggregatesInput | countriesScalarWhereWithAggregatesInput[] OR?: countriesScalarWhereWithAggregatesInput[] NOT?: countriesScalarWhereWithAggregatesInput | countriesScalarWhereWithAggregatesInput[] id?: BigIntWithAggregatesFilter<"countries"> | bigint | number name?: StringWithAggregatesFilter<"countries"> | string iso3?: StringNullableWithAggregatesFilter<"countries"> | string | null numeric_code?: StringNullableWithAggregatesFilter<"countries"> | string | null iso2?: StringNullableWithAggregatesFilter<"countries"> | string | null phonecode?: StringNullableWithAggregatesFilter<"countries"> | string | null capital?: StringNullableWithAggregatesFilter<"countries"> | string | null currency?: StringNullableWithAggregatesFilter<"countries"> | string | null currency_name?: StringNullableWithAggregatesFilter<"countries"> | string | null currency_symbol?: StringNullableWithAggregatesFilter<"countries"> | string | null tld?: StringNullableWithAggregatesFilter<"countries"> | string | null native?: StringNullableWithAggregatesFilter<"countries"> | string | null population?: BigIntNullableWithAggregatesFilter<"countries"> | bigint | number | null gdp?: BigIntNullableWithAggregatesFilter<"countries"> | bigint | number | null region?: StringNullableWithAggregatesFilter<"countries"> | string | null region_id?: BigIntNullableWithAggregatesFilter<"countries"> | bigint | number | null subregion?: StringNullableWithAggregatesFilter<"countries"> | string | null subregion_id?: BigIntNullableWithAggregatesFilter<"countries"> | bigint | number | null nationality?: StringNullableWithAggregatesFilter<"countries"> | string | null area_sq_km?: FloatNullableWithAggregatesFilter<"countries"> | number | null postal_code_format?: StringNullableWithAggregatesFilter<"countries"> | string | null postal_code_regex?: StringNullableWithAggregatesFilter<"countries"> | string | null timezones?: StringNullableWithAggregatesFilter<"countries"> | string | null translations?: StringNullableWithAggregatesFilter<"countries"> | string | null latitude?: DecimalNullableWithAggregatesFilter<"countries"> | Decimal | DecimalJsLike | number | string | null longitude?: DecimalNullableWithAggregatesFilter<"countries"> | Decimal | DecimalJsLike | number | string | null emoji?: StringNullableWithAggregatesFilter<"countries"> | string | null emojiU?: StringNullableWithAggregatesFilter<"countries"> | string | null created_at?: DateTimeNullableWithAggregatesFilter<"countries"> | Date | string | null updated_at?: DateTimeWithAggregatesFilter<"countries"> | Date | string flag?: IntWithAggregatesFilter<"countries"> | number wikiDataId?: StringNullableWithAggregatesFilter<"countries"> | string | null } export type statesWhereInput = { AND?: statesWhereInput | statesWhereInput[] OR?: statesWhereInput[] NOT?: statesWhereInput | statesWhereInput[] id?: BigIntFilter<"states"> | bigint | number name?: StringFilter<"states"> | string country_id?: BigIntFilter<"states"> | bigint | number country_code?: StringFilter<"states"> | string fips_code?: StringNullableFilter<"states"> | string | null iso2?: StringNullableFilter<"states"> | string | null iso3166_2?: StringNullableFilter<"states"> | string | null type?: StringNullableFilter<"states"> | string | null level?: IntNullableFilter<"states"> | number | null parent_id?: BigIntNullableFilter<"states"> | bigint | number | null native?: StringNullableFilter<"states"> | string | null latitude?: DecimalNullableFilter<"states"> | Decimal | DecimalJsLike | number | string | null longitude?: DecimalNullableFilter<"states"> | Decimal | DecimalJsLike | number | string | null timezone?: StringNullableFilter<"states"> | string | null translations?: StringNullableFilter<"states"> | string | null created_at?: DateTimeNullableFilter<"states"> | Date | string | null updated_at?: DateTimeFilter<"states"> | Date | string flag?: IntFilter<"states"> | number wikiDataId?: StringNullableFilter<"states"> | string | null population?: StringNullableFilter<"states"> | string | null cities?: CitiesListRelationFilter countries?: XOR } export type statesOrderByWithRelationInput = { id?: SortOrder name?: SortOrder country_id?: SortOrder country_code?: SortOrder fips_code?: SortOrderInput | SortOrder iso2?: SortOrderInput | SortOrder iso3166_2?: SortOrderInput | SortOrder type?: SortOrderInput | SortOrder level?: SortOrderInput | SortOrder parent_id?: SortOrderInput | SortOrder native?: SortOrderInput | SortOrder latitude?: SortOrderInput | SortOrder longitude?: SortOrderInput | SortOrder timezone?: SortOrderInput | SortOrder translations?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrder flag?: SortOrder wikiDataId?: SortOrderInput | SortOrder population?: SortOrderInput | SortOrder cities?: citiesOrderByRelationAggregateInput countries?: countriesOrderByWithRelationInput } export type statesWhereUniqueInput = Prisma.AtLeast<{ id?: bigint | number AND?: statesWhereInput | statesWhereInput[] OR?: statesWhereInput[] NOT?: statesWhereInput | statesWhereInput[] name?: StringFilter<"states"> | string country_id?: BigIntFilter<"states"> | bigint | number country_code?: StringFilter<"states"> | string fips_code?: StringNullableFilter<"states"> | string | null iso2?: StringNullableFilter<"states"> | string | null iso3166_2?: StringNullableFilter<"states"> | string | null type?: StringNullableFilter<"states"> | string | null level?: IntNullableFilter<"states"> | number | null parent_id?: BigIntNullableFilter<"states"> | bigint | number | null native?: StringNullableFilter<"states"> | string | null latitude?: DecimalNullableFilter<"states"> | Decimal | DecimalJsLike | number | string | null longitude?: DecimalNullableFilter<"states"> | Decimal | DecimalJsLike | number | string | null timezone?: StringNullableFilter<"states"> | string | null translations?: StringNullableFilter<"states"> | string | null created_at?: DateTimeNullableFilter<"states"> | Date | string | null updated_at?: DateTimeFilter<"states"> | Date | string flag?: IntFilter<"states"> | number wikiDataId?: StringNullableFilter<"states"> | string | null population?: StringNullableFilter<"states"> | string | null cities?: CitiesListRelationFilter countries?: XOR }, "id"> export type statesOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder country_id?: SortOrder country_code?: SortOrder fips_code?: SortOrderInput | SortOrder iso2?: SortOrderInput | SortOrder iso3166_2?: SortOrderInput | SortOrder type?: SortOrderInput | SortOrder level?: SortOrderInput | SortOrder parent_id?: SortOrderInput | SortOrder native?: SortOrderInput | SortOrder latitude?: SortOrderInput | SortOrder longitude?: SortOrderInput | SortOrder timezone?: SortOrderInput | SortOrder translations?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrder flag?: SortOrder wikiDataId?: SortOrderInput | SortOrder population?: SortOrderInput | SortOrder _count?: statesCountOrderByAggregateInput _avg?: statesAvgOrderByAggregateInput _max?: statesMaxOrderByAggregateInput _min?: statesMinOrderByAggregateInput _sum?: statesSumOrderByAggregateInput } export type statesScalarWhereWithAggregatesInput = { AND?: statesScalarWhereWithAggregatesInput | statesScalarWhereWithAggregatesInput[] OR?: statesScalarWhereWithAggregatesInput[] NOT?: statesScalarWhereWithAggregatesInput | statesScalarWhereWithAggregatesInput[] id?: BigIntWithAggregatesFilter<"states"> | bigint | number name?: StringWithAggregatesFilter<"states"> | string country_id?: BigIntWithAggregatesFilter<"states"> | bigint | number country_code?: StringWithAggregatesFilter<"states"> | string fips_code?: StringNullableWithAggregatesFilter<"states"> | string | null iso2?: StringNullableWithAggregatesFilter<"states"> | string | null iso3166_2?: StringNullableWithAggregatesFilter<"states"> | string | null type?: StringNullableWithAggregatesFilter<"states"> | string | null level?: IntNullableWithAggregatesFilter<"states"> | number | null parent_id?: BigIntNullableWithAggregatesFilter<"states"> | bigint | number | null native?: StringNullableWithAggregatesFilter<"states"> | string | null latitude?: DecimalNullableWithAggregatesFilter<"states"> | Decimal | DecimalJsLike | number | string | null longitude?: DecimalNullableWithAggregatesFilter<"states"> | Decimal | DecimalJsLike | number | string | null timezone?: StringNullableWithAggregatesFilter<"states"> | string | null translations?: StringNullableWithAggregatesFilter<"states"> | string | null created_at?: DateTimeNullableWithAggregatesFilter<"states"> | Date | string | null updated_at?: DateTimeWithAggregatesFilter<"states"> | Date | string flag?: IntWithAggregatesFilter<"states"> | number wikiDataId?: StringNullableWithAggregatesFilter<"states"> | string | null population?: StringNullableWithAggregatesFilter<"states"> | string | null } export type AddressWhereInput = { AND?: AddressWhereInput | AddressWhereInput[] OR?: AddressWhereInput[] NOT?: AddressWhereInput | AddressWhereInput[] id?: StringFilter<"Address"> | string street?: StringFilter<"Address"> | string streetNo?: StringNullableFilter<"Address"> | string | null postalCode?: StringNullableFilter<"Address"> | string | null cityId?: IntNullableFilter<"Address"> | number | null stateId?: IntNullableFilter<"Address"> | number | null countryId?: IntNullableFilter<"Address"> | number | null rawCity?: StringNullableFilter<"Address"> | string | null rawCountry?: StringNullableFilter<"Address"> | string | null createdAt?: DateTimeFilter<"Address"> | Date | string updatedAt?: DateTimeFilter<"Address"> | Date | string } export type AddressOrderByWithRelationInput = { id?: SortOrder street?: SortOrder streetNo?: SortOrderInput | SortOrder postalCode?: SortOrderInput | SortOrder cityId?: SortOrderInput | SortOrder stateId?: SortOrderInput | SortOrder countryId?: SortOrderInput | SortOrder rawCity?: SortOrderInput | SortOrder rawCountry?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AddressWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: AddressWhereInput | AddressWhereInput[] OR?: AddressWhereInput[] NOT?: AddressWhereInput | AddressWhereInput[] street?: StringFilter<"Address"> | string streetNo?: StringNullableFilter<"Address"> | string | null postalCode?: StringNullableFilter<"Address"> | string | null cityId?: IntNullableFilter<"Address"> | number | null stateId?: IntNullableFilter<"Address"> | number | null countryId?: IntNullableFilter<"Address"> | number | null rawCity?: StringNullableFilter<"Address"> | string | null rawCountry?: StringNullableFilter<"Address"> | string | null createdAt?: DateTimeFilter<"Address"> | Date | string updatedAt?: DateTimeFilter<"Address"> | Date | string }, "id"> export type AddressOrderByWithAggregationInput = { id?: SortOrder street?: SortOrder streetNo?: SortOrderInput | SortOrder postalCode?: SortOrderInput | SortOrder cityId?: SortOrderInput | SortOrder stateId?: SortOrderInput | SortOrder countryId?: SortOrderInput | SortOrder rawCity?: SortOrderInput | SortOrder rawCountry?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: AddressCountOrderByAggregateInput _avg?: AddressAvgOrderByAggregateInput _max?: AddressMaxOrderByAggregateInput _min?: AddressMinOrderByAggregateInput _sum?: AddressSumOrderByAggregateInput } export type AddressScalarWhereWithAggregatesInput = { AND?: AddressScalarWhereWithAggregatesInput | AddressScalarWhereWithAggregatesInput[] OR?: AddressScalarWhereWithAggregatesInput[] NOT?: AddressScalarWhereWithAggregatesInput | AddressScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Address"> | string street?: StringWithAggregatesFilter<"Address"> | string streetNo?: StringNullableWithAggregatesFilter<"Address"> | string | null postalCode?: StringNullableWithAggregatesFilter<"Address"> | string | null cityId?: IntNullableWithAggregatesFilter<"Address"> | number | null stateId?: IntNullableWithAggregatesFilter<"Address"> | number | null countryId?: IntNullableWithAggregatesFilter<"Address"> | number | null rawCity?: StringNullableWithAggregatesFilter<"Address"> | string | null rawCountry?: StringNullableWithAggregatesFilter<"Address"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Address"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Address"> | Date | string } export type VaultDataWhereInput = { AND?: VaultDataWhereInput | VaultDataWhereInput[] OR?: VaultDataWhereInput[] NOT?: VaultDataWhereInput | VaultDataWhereInput[] id?: StringFilter<"VaultData"> | string entityType?: StringFilter<"VaultData"> | string entityId?: StringFilter<"VaultData"> | string secureData?: StringFilter<"VaultData"> | string createdAt?: DateTimeFilter<"VaultData"> | Date | string } export type VaultDataOrderByWithRelationInput = { id?: SortOrder entityType?: SortOrder entityId?: SortOrder secureData?: SortOrder createdAt?: SortOrder } export type VaultDataWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: VaultDataWhereInput | VaultDataWhereInput[] OR?: VaultDataWhereInput[] NOT?: VaultDataWhereInput | VaultDataWhereInput[] entityType?: StringFilter<"VaultData"> | string entityId?: StringFilter<"VaultData"> | string secureData?: StringFilter<"VaultData"> | string createdAt?: DateTimeFilter<"VaultData"> | Date | string }, "id"> export type VaultDataOrderByWithAggregationInput = { id?: SortOrder entityType?: SortOrder entityId?: SortOrder secureData?: SortOrder createdAt?: SortOrder _count?: VaultDataCountOrderByAggregateInput _max?: VaultDataMaxOrderByAggregateInput _min?: VaultDataMinOrderByAggregateInput } export type VaultDataScalarWhereWithAggregatesInput = { AND?: VaultDataScalarWhereWithAggregatesInput | VaultDataScalarWhereWithAggregatesInput[] OR?: VaultDataScalarWhereWithAggregatesInput[] NOT?: VaultDataScalarWhereWithAggregatesInput | VaultDataScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"VaultData"> | string entityType?: StringWithAggregatesFilter<"VaultData"> | string entityId?: StringWithAggregatesFilter<"VaultData"> | string secureData?: StringWithAggregatesFilter<"VaultData"> | string createdAt?: DateTimeWithAggregatesFilter<"VaultData"> | Date | string } export type UnitCreateInput = { id?: string name: string description?: string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string parent?: UnitCreateNestedOneWithoutChildrenInput children?: UnitCreateNestedManyWithoutParentInput } export type UnitUncheckedCreateInput = { id?: string name: string description?: string | null parentId?: string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string children?: UnitUncheckedCreateNestedManyWithoutParentInput } export type UnitUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string parent?: UnitUpdateOneWithoutChildrenNestedInput children?: UnitUpdateManyWithoutParentNestedInput } export type UnitUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null parentId?: NullableStringFieldUpdateOperationsInput | string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string children?: UnitUncheckedUpdateManyWithoutParentNestedInput } export type UnitCreateManyInput = { id?: string name: string description?: string | null parentId?: string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type UnitUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UnitUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null parentId?: NullableStringFieldUpdateOperationsInput | string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PersonCreateInput = { id?: string firstName: string lastName: string email?: string | null phone?: string | null ssoId?: string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string groupMemberships?: GroupMembershipCreateNestedManyWithoutPersonInput } export type PersonUncheckedCreateInput = { id?: string firstName: string lastName: string email?: string | null phone?: string | null ssoId?: string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string groupMemberships?: GroupMembershipUncheckedCreateNestedManyWithoutPersonInput } export type PersonUpdateInput = { id?: StringFieldUpdateOperationsInput | string firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null ssoId?: NullableStringFieldUpdateOperationsInput | string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string groupMemberships?: GroupMembershipUpdateManyWithoutPersonNestedInput } export type PersonUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null ssoId?: NullableStringFieldUpdateOperationsInput | string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string groupMemberships?: GroupMembershipUncheckedUpdateManyWithoutPersonNestedInput } export type PersonCreateManyInput = { id?: string firstName: string lastName: string email?: string | null phone?: string | null ssoId?: string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type PersonUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null ssoId?: NullableStringFieldUpdateOperationsInput | string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PersonUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null ssoId?: NullableStringFieldUpdateOperationsInput | string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GroupCreateInput = { id?: string name: string traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string members?: GroupMembershipCreateNestedManyWithoutGroupInput } export type GroupUncheckedCreateInput = { id?: string name: string traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string members?: GroupMembershipUncheckedCreateNestedManyWithoutGroupInput } export type GroupUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string members?: GroupMembershipUpdateManyWithoutGroupNestedInput } export type GroupUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string members?: GroupMembershipUncheckedUpdateManyWithoutGroupNestedInput } export type GroupCreateManyInput = { id?: string name: string traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type GroupUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GroupUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GroupMembershipCreateInput = { id?: string role: string group: GroupCreateNestedOneWithoutMembersInput person: PersonCreateNestedOneWithoutGroupMembershipsInput } export type GroupMembershipUncheckedCreateInput = { id?: string personId: string groupId: string role: string } export type GroupMembershipUpdateInput = { id?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string group?: GroupUpdateOneRequiredWithoutMembersNestedInput person?: PersonUpdateOneRequiredWithoutGroupMembershipsNestedInput } export type GroupMembershipUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string personId?: StringFieldUpdateOperationsInput | string groupId?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string } export type GroupMembershipCreateManyInput = { id?: string personId: string groupId: string role: string } export type GroupMembershipUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string } export type GroupMembershipUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string personId?: StringFieldUpdateOperationsInput | string groupId?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string } export type EventCreateInput = { id?: string type: string status: string startTime: Date | string endTime?: Date | string | null targetUnitId?: string | null targetGroupId?: string | null targetPersonId?: string | null payload?: JsonNullValueInput | InputJsonValue parentEventId?: string | null createdAt?: Date | string updatedAt?: Date | string } export type EventUncheckedCreateInput = { id?: string type: string status: string startTime: Date | string endTime?: Date | string | null targetUnitId?: string | null targetGroupId?: string | null targetPersonId?: string | null payload?: JsonNullValueInput | InputJsonValue parentEventId?: string | null createdAt?: Date | string updatedAt?: Date | string } export type EventUpdateInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string startTime?: DateTimeFieldUpdateOperationsInput | Date | string endTime?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null targetUnitId?: NullableStringFieldUpdateOperationsInput | string | null targetGroupId?: NullableStringFieldUpdateOperationsInput | string | null targetPersonId?: NullableStringFieldUpdateOperationsInput | string | null payload?: JsonNullValueInput | InputJsonValue parentEventId?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string startTime?: DateTimeFieldUpdateOperationsInput | Date | string endTime?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null targetUnitId?: NullableStringFieldUpdateOperationsInput | string | null targetGroupId?: NullableStringFieldUpdateOperationsInput | string | null targetPersonId?: NullableStringFieldUpdateOperationsInput | string | null payload?: JsonNullValueInput | InputJsonValue parentEventId?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventCreateManyInput = { id?: string type: string status: string startTime: Date | string endTime?: Date | string | null targetUnitId?: string | null targetGroupId?: string | null targetPersonId?: string | null payload?: JsonNullValueInput | InputJsonValue parentEventId?: string | null createdAt?: Date | string updatedAt?: Date | string } export type EventUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string startTime?: DateTimeFieldUpdateOperationsInput | Date | string endTime?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null targetUnitId?: NullableStringFieldUpdateOperationsInput | string | null targetGroupId?: NullableStringFieldUpdateOperationsInput | string | null targetPersonId?: NullableStringFieldUpdateOperationsInput | string | null payload?: JsonNullValueInput | InputJsonValue parentEventId?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string startTime?: DateTimeFieldUpdateOperationsInput | Date | string endTime?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null targetUnitId?: NullableStringFieldUpdateOperationsInput | string | null targetGroupId?: NullableStringFieldUpdateOperationsInput | string | null targetPersonId?: NullableStringFieldUpdateOperationsInput | string | null payload?: JsonNullValueInput | InputJsonValue parentEventId?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type citiesCreateInput = { id?: bigint | number name: string state_code: string country_code: string type?: string | null level?: number | null parent_id?: bigint | number | null latitude: Decimal | DecimalJsLike | number | string longitude: Decimal | DecimalJsLike | number | string native?: string | null population?: bigint | number | null timezone?: string | null translations?: string | null created_at?: Date | string updated_at?: Date | string flag?: number wikiDataId?: string | null countries: countriesCreateNestedOneWithoutCitiesInput states: statesCreateNestedOneWithoutCitiesInput } export type citiesUncheckedCreateInput = { id?: bigint | number name: string state_id: bigint | number state_code: string country_id: bigint | number country_code: string type?: string | null level?: number | null parent_id?: bigint | number | null latitude: Decimal | DecimalJsLike | number | string longitude: Decimal | DecimalJsLike | number | string native?: string | null population?: bigint | number | null timezone?: string | null translations?: string | null created_at?: Date | string updated_at?: Date | string flag?: number wikiDataId?: string | null } export type citiesUpdateInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string state_code?: StringFieldUpdateOperationsInput | string country_code?: StringFieldUpdateOperationsInput | string type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null latitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string longitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null countries?: countriesUpdateOneRequiredWithoutCitiesNestedInput states?: statesUpdateOneRequiredWithoutCitiesNestedInput } export type citiesUncheckedUpdateInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string state_id?: BigIntFieldUpdateOperationsInput | bigint | number state_code?: StringFieldUpdateOperationsInput | string country_id?: BigIntFieldUpdateOperationsInput | bigint | number country_code?: StringFieldUpdateOperationsInput | string type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null latitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string longitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null } export type citiesCreateManyInput = { id?: bigint | number name: string state_id: bigint | number state_code: string country_id: bigint | number country_code: string type?: string | null level?: number | null parent_id?: bigint | number | null latitude: Decimal | DecimalJsLike | number | string longitude: Decimal | DecimalJsLike | number | string native?: string | null population?: bigint | number | null timezone?: string | null translations?: string | null created_at?: Date | string updated_at?: Date | string flag?: number wikiDataId?: string | null } export type citiesUpdateManyMutationInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string state_code?: StringFieldUpdateOperationsInput | string country_code?: StringFieldUpdateOperationsInput | string type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null latitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string longitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null } export type citiesUncheckedUpdateManyInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string state_id?: BigIntFieldUpdateOperationsInput | bigint | number state_code?: StringFieldUpdateOperationsInput | string country_id?: BigIntFieldUpdateOperationsInput | bigint | number country_code?: StringFieldUpdateOperationsInput | string type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null latitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string longitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null } export type countriesCreateInput = { id?: bigint | number name: string iso3?: string | null numeric_code?: string | null iso2?: string | null phonecode?: string | null capital?: string | null currency?: string | null currency_name?: string | null currency_symbol?: string | null tld?: string | null native?: string | null population?: bigint | number | null gdp?: bigint | number | null region?: string | null region_id?: bigint | number | null subregion?: string | null subregion_id?: bigint | number | null nationality?: string | null area_sq_km?: number | null postal_code_format?: string | null postal_code_regex?: string | null timezones?: string | null translations?: string | null latitude?: Decimal | DecimalJsLike | number | string | null longitude?: Decimal | DecimalJsLike | number | string | null emoji?: string | null emojiU?: string | null created_at?: Date | string | null updated_at?: Date | string flag?: number wikiDataId?: string | null cities?: citiesCreateNestedManyWithoutCountriesInput states?: statesCreateNestedManyWithoutCountriesInput } export type countriesUncheckedCreateInput = { id?: bigint | number name: string iso3?: string | null numeric_code?: string | null iso2?: string | null phonecode?: string | null capital?: string | null currency?: string | null currency_name?: string | null currency_symbol?: string | null tld?: string | null native?: string | null population?: bigint | number | null gdp?: bigint | number | null region?: string | null region_id?: bigint | number | null subregion?: string | null subregion_id?: bigint | number | null nationality?: string | null area_sq_km?: number | null postal_code_format?: string | null postal_code_regex?: string | null timezones?: string | null translations?: string | null latitude?: Decimal | DecimalJsLike | number | string | null longitude?: Decimal | DecimalJsLike | number | string | null emoji?: string | null emojiU?: string | null created_at?: Date | string | null updated_at?: Date | string flag?: number wikiDataId?: string | null cities?: citiesUncheckedCreateNestedManyWithoutCountriesInput states?: statesUncheckedCreateNestedManyWithoutCountriesInput } export type countriesUpdateInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string iso3?: NullableStringFieldUpdateOperationsInput | string | null numeric_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null phonecode?: NullableStringFieldUpdateOperationsInput | string | null capital?: NullableStringFieldUpdateOperationsInput | string | null currency?: NullableStringFieldUpdateOperationsInput | string | null currency_name?: NullableStringFieldUpdateOperationsInput | string | null currency_symbol?: NullableStringFieldUpdateOperationsInput | string | null tld?: NullableStringFieldUpdateOperationsInput | string | null native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null gdp?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null region?: NullableStringFieldUpdateOperationsInput | string | null region_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null subregion?: NullableStringFieldUpdateOperationsInput | string | null subregion_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null nationality?: NullableStringFieldUpdateOperationsInput | string | null area_sq_km?: NullableFloatFieldUpdateOperationsInput | number | null postal_code_format?: NullableStringFieldUpdateOperationsInput | string | null postal_code_regex?: NullableStringFieldUpdateOperationsInput | string | null timezones?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null emoji?: NullableStringFieldUpdateOperationsInput | string | null emojiU?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null cities?: citiesUpdateManyWithoutCountriesNestedInput states?: statesUpdateManyWithoutCountriesNestedInput } export type countriesUncheckedUpdateInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string iso3?: NullableStringFieldUpdateOperationsInput | string | null numeric_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null phonecode?: NullableStringFieldUpdateOperationsInput | string | null capital?: NullableStringFieldUpdateOperationsInput | string | null currency?: NullableStringFieldUpdateOperationsInput | string | null currency_name?: NullableStringFieldUpdateOperationsInput | string | null currency_symbol?: NullableStringFieldUpdateOperationsInput | string | null tld?: NullableStringFieldUpdateOperationsInput | string | null native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null gdp?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null region?: NullableStringFieldUpdateOperationsInput | string | null region_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null subregion?: NullableStringFieldUpdateOperationsInput | string | null subregion_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null nationality?: NullableStringFieldUpdateOperationsInput | string | null area_sq_km?: NullableFloatFieldUpdateOperationsInput | number | null postal_code_format?: NullableStringFieldUpdateOperationsInput | string | null postal_code_regex?: NullableStringFieldUpdateOperationsInput | string | null timezones?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null emoji?: NullableStringFieldUpdateOperationsInput | string | null emojiU?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null cities?: citiesUncheckedUpdateManyWithoutCountriesNestedInput states?: statesUncheckedUpdateManyWithoutCountriesNestedInput } export type countriesCreateManyInput = { id?: bigint | number name: string iso3?: string | null numeric_code?: string | null iso2?: string | null phonecode?: string | null capital?: string | null currency?: string | null currency_name?: string | null currency_symbol?: string | null tld?: string | null native?: string | null population?: bigint | number | null gdp?: bigint | number | null region?: string | null region_id?: bigint | number | null subregion?: string | null subregion_id?: bigint | number | null nationality?: string | null area_sq_km?: number | null postal_code_format?: string | null postal_code_regex?: string | null timezones?: string | null translations?: string | null latitude?: Decimal | DecimalJsLike | number | string | null longitude?: Decimal | DecimalJsLike | number | string | null emoji?: string | null emojiU?: string | null created_at?: Date | string | null updated_at?: Date | string flag?: number wikiDataId?: string | null } export type countriesUpdateManyMutationInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string iso3?: NullableStringFieldUpdateOperationsInput | string | null numeric_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null phonecode?: NullableStringFieldUpdateOperationsInput | string | null capital?: NullableStringFieldUpdateOperationsInput | string | null currency?: NullableStringFieldUpdateOperationsInput | string | null currency_name?: NullableStringFieldUpdateOperationsInput | string | null currency_symbol?: NullableStringFieldUpdateOperationsInput | string | null tld?: NullableStringFieldUpdateOperationsInput | string | null native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null gdp?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null region?: NullableStringFieldUpdateOperationsInput | string | null region_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null subregion?: NullableStringFieldUpdateOperationsInput | string | null subregion_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null nationality?: NullableStringFieldUpdateOperationsInput | string | null area_sq_km?: NullableFloatFieldUpdateOperationsInput | number | null postal_code_format?: NullableStringFieldUpdateOperationsInput | string | null postal_code_regex?: NullableStringFieldUpdateOperationsInput | string | null timezones?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null emoji?: NullableStringFieldUpdateOperationsInput | string | null emojiU?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null } export type countriesUncheckedUpdateManyInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string iso3?: NullableStringFieldUpdateOperationsInput | string | null numeric_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null phonecode?: NullableStringFieldUpdateOperationsInput | string | null capital?: NullableStringFieldUpdateOperationsInput | string | null currency?: NullableStringFieldUpdateOperationsInput | string | null currency_name?: NullableStringFieldUpdateOperationsInput | string | null currency_symbol?: NullableStringFieldUpdateOperationsInput | string | null tld?: NullableStringFieldUpdateOperationsInput | string | null native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null gdp?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null region?: NullableStringFieldUpdateOperationsInput | string | null region_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null subregion?: NullableStringFieldUpdateOperationsInput | string | null subregion_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null nationality?: NullableStringFieldUpdateOperationsInput | string | null area_sq_km?: NullableFloatFieldUpdateOperationsInput | number | null postal_code_format?: NullableStringFieldUpdateOperationsInput | string | null postal_code_regex?: NullableStringFieldUpdateOperationsInput | string | null timezones?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null emoji?: NullableStringFieldUpdateOperationsInput | string | null emojiU?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null } export type statesCreateInput = { id?: bigint | number name: string country_code: string fips_code?: string | null iso2?: string | null iso3166_2?: string | null type?: string | null level?: number | null parent_id?: bigint | number | null native?: string | null latitude?: Decimal | DecimalJsLike | number | string | null longitude?: Decimal | DecimalJsLike | number | string | null timezone?: string | null translations?: string | null created_at?: Date | string | null updated_at?: Date | string flag?: number wikiDataId?: string | null population?: string | null cities?: citiesCreateNestedManyWithoutStatesInput countries: countriesCreateNestedOneWithoutStatesInput } export type statesUncheckedCreateInput = { id?: bigint | number name: string country_id: bigint | number country_code: string fips_code?: string | null iso2?: string | null iso3166_2?: string | null type?: string | null level?: number | null parent_id?: bigint | number | null native?: string | null latitude?: Decimal | DecimalJsLike | number | string | null longitude?: Decimal | DecimalJsLike | number | string | null timezone?: string | null translations?: string | null created_at?: Date | string | null updated_at?: Date | string flag?: number wikiDataId?: string | null population?: string | null cities?: citiesUncheckedCreateNestedManyWithoutStatesInput } export type statesUpdateInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string country_code?: StringFieldUpdateOperationsInput | string fips_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null iso3166_2?: NullableStringFieldUpdateOperationsInput | string | null type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null native?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableStringFieldUpdateOperationsInput | string | null cities?: citiesUpdateManyWithoutStatesNestedInput countries?: countriesUpdateOneRequiredWithoutStatesNestedInput } export type statesUncheckedUpdateInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string country_id?: BigIntFieldUpdateOperationsInput | bigint | number country_code?: StringFieldUpdateOperationsInput | string fips_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null iso3166_2?: NullableStringFieldUpdateOperationsInput | string | null type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null native?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableStringFieldUpdateOperationsInput | string | null cities?: citiesUncheckedUpdateManyWithoutStatesNestedInput } export type statesCreateManyInput = { id?: bigint | number name: string country_id: bigint | number country_code: string fips_code?: string | null iso2?: string | null iso3166_2?: string | null type?: string | null level?: number | null parent_id?: bigint | number | null native?: string | null latitude?: Decimal | DecimalJsLike | number | string | null longitude?: Decimal | DecimalJsLike | number | string | null timezone?: string | null translations?: string | null created_at?: Date | string | null updated_at?: Date | string flag?: number wikiDataId?: string | null population?: string | null } export type statesUpdateManyMutationInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string country_code?: StringFieldUpdateOperationsInput | string fips_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null iso3166_2?: NullableStringFieldUpdateOperationsInput | string | null type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null native?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableStringFieldUpdateOperationsInput | string | null } export type statesUncheckedUpdateManyInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string country_id?: BigIntFieldUpdateOperationsInput | bigint | number country_code?: StringFieldUpdateOperationsInput | string fips_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null iso3166_2?: NullableStringFieldUpdateOperationsInput | string | null type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null native?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableStringFieldUpdateOperationsInput | string | null } export type AddressCreateInput = { id?: string street: string streetNo?: string | null postalCode?: string | null cityId?: number | null stateId?: number | null countryId?: number | null rawCity?: string | null rawCountry?: string | null createdAt?: Date | string updatedAt?: Date | string } export type AddressUncheckedCreateInput = { id?: string street: string streetNo?: string | null postalCode?: string | null cityId?: number | null stateId?: number | null countryId?: number | null rawCity?: string | null rawCountry?: string | null createdAt?: Date | string updatedAt?: Date | string } export type AddressUpdateInput = { id?: StringFieldUpdateOperationsInput | string street?: StringFieldUpdateOperationsInput | string streetNo?: NullableStringFieldUpdateOperationsInput | string | null postalCode?: NullableStringFieldUpdateOperationsInput | string | null cityId?: NullableIntFieldUpdateOperationsInput | number | null stateId?: NullableIntFieldUpdateOperationsInput | number | null countryId?: NullableIntFieldUpdateOperationsInput | number | null rawCity?: NullableStringFieldUpdateOperationsInput | string | null rawCountry?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AddressUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string street?: StringFieldUpdateOperationsInput | string streetNo?: NullableStringFieldUpdateOperationsInput | string | null postalCode?: NullableStringFieldUpdateOperationsInput | string | null cityId?: NullableIntFieldUpdateOperationsInput | number | null stateId?: NullableIntFieldUpdateOperationsInput | number | null countryId?: NullableIntFieldUpdateOperationsInput | number | null rawCity?: NullableStringFieldUpdateOperationsInput | string | null rawCountry?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AddressCreateManyInput = { id?: string street: string streetNo?: string | null postalCode?: string | null cityId?: number | null stateId?: number | null countryId?: number | null rawCity?: string | null rawCountry?: string | null createdAt?: Date | string updatedAt?: Date | string } export type AddressUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string street?: StringFieldUpdateOperationsInput | string streetNo?: NullableStringFieldUpdateOperationsInput | string | null postalCode?: NullableStringFieldUpdateOperationsInput | string | null cityId?: NullableIntFieldUpdateOperationsInput | number | null stateId?: NullableIntFieldUpdateOperationsInput | number | null countryId?: NullableIntFieldUpdateOperationsInput | number | null rawCity?: NullableStringFieldUpdateOperationsInput | string | null rawCountry?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AddressUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string street?: StringFieldUpdateOperationsInput | string streetNo?: NullableStringFieldUpdateOperationsInput | string | null postalCode?: NullableStringFieldUpdateOperationsInput | string | null cityId?: NullableIntFieldUpdateOperationsInput | number | null stateId?: NullableIntFieldUpdateOperationsInput | number | null countryId?: NullableIntFieldUpdateOperationsInput | number | null rawCity?: NullableStringFieldUpdateOperationsInput | string | null rawCountry?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type VaultDataCreateInput = { id?: string entityType: string entityId: string secureData: string createdAt?: Date | string } export type VaultDataUncheckedCreateInput = { id?: string entityType: string entityId: string secureData: string createdAt?: Date | string } export type VaultDataUpdateInput = { id?: StringFieldUpdateOperationsInput | string entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string secureData?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type VaultDataUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string secureData?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type VaultDataCreateManyInput = { id?: string entityType: string entityId: string secureData: string createdAt?: Date | string } export type VaultDataUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string secureData?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type VaultDataUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string secureData?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } 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 JsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: 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 UnitNullableScalarRelationFilter = { is?: UnitWhereInput | null isNot?: UnitWhereInput | null } export type UnitListRelationFilter = { every?: UnitWhereInput some?: UnitWhereInput none?: UnitWhereInput } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type UnitOrderByRelationAggregateInput = { _count?: SortOrder } export type UnitCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder description?: SortOrder parentId?: SortOrder traits?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UnitMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder description?: SortOrder parentId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UnitMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder description?: SortOrder parentId?: SortOrder createdAt?: SortOrder updatedAt?: 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 JsonWithAggregatesFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonWithAggregatesFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: 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 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 GroupMembershipListRelationFilter = { every?: GroupMembershipWhereInput some?: GroupMembershipWhereInput none?: GroupMembershipWhereInput } export type GroupMembershipOrderByRelationAggregateInput = { _count?: SortOrder } export type PersonCountOrderByAggregateInput = { id?: SortOrder firstName?: SortOrder lastName?: SortOrder email?: SortOrder phone?: SortOrder ssoId?: SortOrder traits?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PersonMaxOrderByAggregateInput = { id?: SortOrder firstName?: SortOrder lastName?: SortOrder email?: SortOrder phone?: SortOrder ssoId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PersonMinOrderByAggregateInput = { id?: SortOrder firstName?: SortOrder lastName?: SortOrder email?: SortOrder phone?: SortOrder ssoId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type GroupCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder traits?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type GroupMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type GroupMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type GroupScalarRelationFilter = { is?: GroupWhereInput isNot?: GroupWhereInput } export type PersonScalarRelationFilter = { is?: PersonWhereInput isNot?: PersonWhereInput } export type GroupMembershipPersonIdGroupIdRoleCompoundUniqueInput = { personId: string groupId: string role: string } export type GroupMembershipCountOrderByAggregateInput = { id?: SortOrder personId?: SortOrder groupId?: SortOrder role?: SortOrder } export type GroupMembershipMaxOrderByAggregateInput = { id?: SortOrder personId?: SortOrder groupId?: SortOrder role?: SortOrder } export type GroupMembershipMinOrderByAggregateInput = { id?: SortOrder personId?: SortOrder groupId?: SortOrder role?: 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 EventCountOrderByAggregateInput = { id?: SortOrder type?: SortOrder status?: SortOrder startTime?: SortOrder endTime?: SortOrder targetUnitId?: SortOrder targetGroupId?: SortOrder targetPersonId?: SortOrder payload?: SortOrder parentEventId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EventMaxOrderByAggregateInput = { id?: SortOrder type?: SortOrder status?: SortOrder startTime?: SortOrder endTime?: SortOrder targetUnitId?: SortOrder targetGroupId?: SortOrder targetPersonId?: SortOrder parentEventId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EventMinOrderByAggregateInput = { id?: SortOrder type?: SortOrder status?: SortOrder startTime?: SortOrder endTime?: SortOrder targetUnitId?: SortOrder targetGroupId?: SortOrder targetPersonId?: SortOrder parentEventId?: SortOrder createdAt?: SortOrder updatedAt?: 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 BigIntFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntFilter<$PrismaModel> | bigint | number } 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 BigIntNullableFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null } export type DecimalFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string } 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 CountriesScalarRelationFilter = { is?: countriesWhereInput isNot?: countriesWhereInput } export type StatesScalarRelationFilter = { is?: statesWhereInput isNot?: statesWhereInput } export type citiesCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder state_id?: SortOrder state_code?: SortOrder country_id?: SortOrder country_code?: SortOrder type?: SortOrder level?: SortOrder parent_id?: SortOrder latitude?: SortOrder longitude?: SortOrder native?: SortOrder population?: SortOrder timezone?: SortOrder translations?: SortOrder created_at?: SortOrder updated_at?: SortOrder flag?: SortOrder wikiDataId?: SortOrder } export type citiesAvgOrderByAggregateInput = { id?: SortOrder state_id?: SortOrder country_id?: SortOrder level?: SortOrder parent_id?: SortOrder latitude?: SortOrder longitude?: SortOrder population?: SortOrder flag?: SortOrder } export type citiesMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder state_id?: SortOrder state_code?: SortOrder country_id?: SortOrder country_code?: SortOrder type?: SortOrder level?: SortOrder parent_id?: SortOrder latitude?: SortOrder longitude?: SortOrder native?: SortOrder population?: SortOrder timezone?: SortOrder translations?: SortOrder created_at?: SortOrder updated_at?: SortOrder flag?: SortOrder wikiDataId?: SortOrder } export type citiesMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder state_id?: SortOrder state_code?: SortOrder country_id?: SortOrder country_code?: SortOrder type?: SortOrder level?: SortOrder parent_id?: SortOrder latitude?: SortOrder longitude?: SortOrder native?: SortOrder population?: SortOrder timezone?: SortOrder translations?: SortOrder created_at?: SortOrder updated_at?: SortOrder flag?: SortOrder wikiDataId?: SortOrder } export type citiesSumOrderByAggregateInput = { id?: SortOrder state_id?: SortOrder country_id?: SortOrder level?: SortOrder parent_id?: SortOrder latitude?: SortOrder longitude?: SortOrder population?: SortOrder flag?: SortOrder } export type BigIntWithAggregatesFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedBigIntFilter<$PrismaModel> _min?: NestedBigIntFilter<$PrismaModel> _max?: NestedBigIntFilter<$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 BigIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedBigIntNullableFilter<$PrismaModel> _min?: NestedBigIntNullableFilter<$PrismaModel> _max?: NestedBigIntNullableFilter<$PrismaModel> } export type DecimalWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string _count?: NestedIntFilter<$PrismaModel> _avg?: NestedDecimalFilter<$PrismaModel> _sum?: NestedDecimalFilter<$PrismaModel> _min?: NestedDecimalFilter<$PrismaModel> _max?: NestedDecimalFilter<$PrismaModel> } 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 FloatNullableFilter<$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 DecimalNullableFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null } export type CitiesListRelationFilter = { every?: citiesWhereInput some?: citiesWhereInput none?: citiesWhereInput } export type StatesListRelationFilter = { every?: statesWhereInput some?: statesWhereInput none?: statesWhereInput } export type citiesOrderByRelationAggregateInput = { _count?: SortOrder } export type statesOrderByRelationAggregateInput = { _count?: SortOrder } export type countriesCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder iso3?: SortOrder numeric_code?: SortOrder iso2?: SortOrder phonecode?: SortOrder capital?: SortOrder currency?: SortOrder currency_name?: SortOrder currency_symbol?: SortOrder tld?: SortOrder native?: SortOrder population?: SortOrder gdp?: SortOrder region?: SortOrder region_id?: SortOrder subregion?: SortOrder subregion_id?: SortOrder nationality?: SortOrder area_sq_km?: SortOrder postal_code_format?: SortOrder postal_code_regex?: SortOrder timezones?: SortOrder translations?: SortOrder latitude?: SortOrder longitude?: SortOrder emoji?: SortOrder emojiU?: SortOrder created_at?: SortOrder updated_at?: SortOrder flag?: SortOrder wikiDataId?: SortOrder } export type countriesAvgOrderByAggregateInput = { id?: SortOrder population?: SortOrder gdp?: SortOrder region_id?: SortOrder subregion_id?: SortOrder area_sq_km?: SortOrder latitude?: SortOrder longitude?: SortOrder flag?: SortOrder } export type countriesMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder iso3?: SortOrder numeric_code?: SortOrder iso2?: SortOrder phonecode?: SortOrder capital?: SortOrder currency?: SortOrder currency_name?: SortOrder currency_symbol?: SortOrder tld?: SortOrder native?: SortOrder population?: SortOrder gdp?: SortOrder region?: SortOrder region_id?: SortOrder subregion?: SortOrder subregion_id?: SortOrder nationality?: SortOrder area_sq_km?: SortOrder postal_code_format?: SortOrder postal_code_regex?: SortOrder timezones?: SortOrder translations?: SortOrder latitude?: SortOrder longitude?: SortOrder emoji?: SortOrder emojiU?: SortOrder created_at?: SortOrder updated_at?: SortOrder flag?: SortOrder wikiDataId?: SortOrder } export type countriesMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder iso3?: SortOrder numeric_code?: SortOrder iso2?: SortOrder phonecode?: SortOrder capital?: SortOrder currency?: SortOrder currency_name?: SortOrder currency_symbol?: SortOrder tld?: SortOrder native?: SortOrder population?: SortOrder gdp?: SortOrder region?: SortOrder region_id?: SortOrder subregion?: SortOrder subregion_id?: SortOrder nationality?: SortOrder area_sq_km?: SortOrder postal_code_format?: SortOrder postal_code_regex?: SortOrder timezones?: SortOrder translations?: SortOrder latitude?: SortOrder longitude?: SortOrder emoji?: SortOrder emojiU?: SortOrder created_at?: SortOrder updated_at?: SortOrder flag?: SortOrder wikiDataId?: SortOrder } export type countriesSumOrderByAggregateInput = { id?: SortOrder population?: SortOrder gdp?: SortOrder region_id?: SortOrder subregion_id?: SortOrder area_sq_km?: SortOrder latitude?: SortOrder longitude?: SortOrder flag?: SortOrder } export type FloatNullableWithAggregatesFilter<$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?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedFloatNullableFilter<$PrismaModel> _min?: NestedFloatNullableFilter<$PrismaModel> _max?: NestedFloatNullableFilter<$PrismaModel> } export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedDecimalNullableFilter<$PrismaModel> _sum?: NestedDecimalNullableFilter<$PrismaModel> _min?: NestedDecimalNullableFilter<$PrismaModel> _max?: NestedDecimalNullableFilter<$PrismaModel> } export type statesCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder country_id?: SortOrder country_code?: SortOrder fips_code?: SortOrder iso2?: SortOrder iso3166_2?: SortOrder type?: SortOrder level?: SortOrder parent_id?: SortOrder native?: SortOrder latitude?: SortOrder longitude?: SortOrder timezone?: SortOrder translations?: SortOrder created_at?: SortOrder updated_at?: SortOrder flag?: SortOrder wikiDataId?: SortOrder population?: SortOrder } export type statesAvgOrderByAggregateInput = { id?: SortOrder country_id?: SortOrder level?: SortOrder parent_id?: SortOrder latitude?: SortOrder longitude?: SortOrder flag?: SortOrder } export type statesMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder country_id?: SortOrder country_code?: SortOrder fips_code?: SortOrder iso2?: SortOrder iso3166_2?: SortOrder type?: SortOrder level?: SortOrder parent_id?: SortOrder native?: SortOrder latitude?: SortOrder longitude?: SortOrder timezone?: SortOrder translations?: SortOrder created_at?: SortOrder updated_at?: SortOrder flag?: SortOrder wikiDataId?: SortOrder population?: SortOrder } export type statesMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder country_id?: SortOrder country_code?: SortOrder fips_code?: SortOrder iso2?: SortOrder iso3166_2?: SortOrder type?: SortOrder level?: SortOrder parent_id?: SortOrder native?: SortOrder latitude?: SortOrder longitude?: SortOrder timezone?: SortOrder translations?: SortOrder created_at?: SortOrder updated_at?: SortOrder flag?: SortOrder wikiDataId?: SortOrder population?: SortOrder } export type statesSumOrderByAggregateInput = { id?: SortOrder country_id?: SortOrder level?: SortOrder parent_id?: SortOrder latitude?: SortOrder longitude?: SortOrder flag?: SortOrder } export type AddressCountOrderByAggregateInput = { id?: SortOrder street?: SortOrder streetNo?: SortOrder postalCode?: SortOrder cityId?: SortOrder stateId?: SortOrder countryId?: SortOrder rawCity?: SortOrder rawCountry?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AddressAvgOrderByAggregateInput = { cityId?: SortOrder stateId?: SortOrder countryId?: SortOrder } export type AddressMaxOrderByAggregateInput = { id?: SortOrder street?: SortOrder streetNo?: SortOrder postalCode?: SortOrder cityId?: SortOrder stateId?: SortOrder countryId?: SortOrder rawCity?: SortOrder rawCountry?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AddressMinOrderByAggregateInput = { id?: SortOrder street?: SortOrder streetNo?: SortOrder postalCode?: SortOrder cityId?: SortOrder stateId?: SortOrder countryId?: SortOrder rawCity?: SortOrder rawCountry?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AddressSumOrderByAggregateInput = { cityId?: SortOrder stateId?: SortOrder countryId?: SortOrder } export type VaultDataCountOrderByAggregateInput = { id?: SortOrder entityType?: SortOrder entityId?: SortOrder secureData?: SortOrder createdAt?: SortOrder } export type VaultDataMaxOrderByAggregateInput = { id?: SortOrder entityType?: SortOrder entityId?: SortOrder secureData?: SortOrder createdAt?: SortOrder } export type VaultDataMinOrderByAggregateInput = { id?: SortOrder entityType?: SortOrder entityId?: SortOrder secureData?: SortOrder createdAt?: SortOrder } export type UnitCreateNestedOneWithoutChildrenInput = { create?: XOR connectOrCreate?: UnitCreateOrConnectWithoutChildrenInput connect?: UnitWhereUniqueInput } export type UnitCreateNestedManyWithoutParentInput = { create?: XOR | UnitCreateWithoutParentInput[] | UnitUncheckedCreateWithoutParentInput[] connectOrCreate?: UnitCreateOrConnectWithoutParentInput | UnitCreateOrConnectWithoutParentInput[] createMany?: UnitCreateManyParentInputEnvelope connect?: UnitWhereUniqueInput | UnitWhereUniqueInput[] } export type UnitUncheckedCreateNestedManyWithoutParentInput = { create?: XOR | UnitCreateWithoutParentInput[] | UnitUncheckedCreateWithoutParentInput[] connectOrCreate?: UnitCreateOrConnectWithoutParentInput | UnitCreateOrConnectWithoutParentInput[] createMany?: UnitCreateManyParentInputEnvelope connect?: UnitWhereUniqueInput | UnitWhereUniqueInput[] } export type StringFieldUpdateOperationsInput = { set?: string } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type UnitUpdateOneWithoutChildrenNestedInput = { create?: XOR connectOrCreate?: UnitCreateOrConnectWithoutChildrenInput upsert?: UnitUpsertWithoutChildrenInput disconnect?: UnitWhereInput | boolean delete?: UnitWhereInput | boolean connect?: UnitWhereUniqueInput update?: XOR, UnitUncheckedUpdateWithoutChildrenInput> } export type UnitUpdateManyWithoutParentNestedInput = { create?: XOR | UnitCreateWithoutParentInput[] | UnitUncheckedCreateWithoutParentInput[] connectOrCreate?: UnitCreateOrConnectWithoutParentInput | UnitCreateOrConnectWithoutParentInput[] upsert?: UnitUpsertWithWhereUniqueWithoutParentInput | UnitUpsertWithWhereUniqueWithoutParentInput[] createMany?: UnitCreateManyParentInputEnvelope set?: UnitWhereUniqueInput | UnitWhereUniqueInput[] disconnect?: UnitWhereUniqueInput | UnitWhereUniqueInput[] delete?: UnitWhereUniqueInput | UnitWhereUniqueInput[] connect?: UnitWhereUniqueInput | UnitWhereUniqueInput[] update?: UnitUpdateWithWhereUniqueWithoutParentInput | UnitUpdateWithWhereUniqueWithoutParentInput[] updateMany?: UnitUpdateManyWithWhereWithoutParentInput | UnitUpdateManyWithWhereWithoutParentInput[] deleteMany?: UnitScalarWhereInput | UnitScalarWhereInput[] } export type UnitUncheckedUpdateManyWithoutParentNestedInput = { create?: XOR | UnitCreateWithoutParentInput[] | UnitUncheckedCreateWithoutParentInput[] connectOrCreate?: UnitCreateOrConnectWithoutParentInput | UnitCreateOrConnectWithoutParentInput[] upsert?: UnitUpsertWithWhereUniqueWithoutParentInput | UnitUpsertWithWhereUniqueWithoutParentInput[] createMany?: UnitCreateManyParentInputEnvelope set?: UnitWhereUniqueInput | UnitWhereUniqueInput[] disconnect?: UnitWhereUniqueInput | UnitWhereUniqueInput[] delete?: UnitWhereUniqueInput | UnitWhereUniqueInput[] connect?: UnitWhereUniqueInput | UnitWhereUniqueInput[] update?: UnitUpdateWithWhereUniqueWithoutParentInput | UnitUpdateWithWhereUniqueWithoutParentInput[] updateMany?: UnitUpdateManyWithWhereWithoutParentInput | UnitUpdateManyWithWhereWithoutParentInput[] deleteMany?: UnitScalarWhereInput | UnitScalarWhereInput[] } export type GroupMembershipCreateNestedManyWithoutPersonInput = { create?: XOR | GroupMembershipCreateWithoutPersonInput[] | GroupMembershipUncheckedCreateWithoutPersonInput[] connectOrCreate?: GroupMembershipCreateOrConnectWithoutPersonInput | GroupMembershipCreateOrConnectWithoutPersonInput[] createMany?: GroupMembershipCreateManyPersonInputEnvelope connect?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] } export type GroupMembershipUncheckedCreateNestedManyWithoutPersonInput = { create?: XOR | GroupMembershipCreateWithoutPersonInput[] | GroupMembershipUncheckedCreateWithoutPersonInput[] connectOrCreate?: GroupMembershipCreateOrConnectWithoutPersonInput | GroupMembershipCreateOrConnectWithoutPersonInput[] createMany?: GroupMembershipCreateManyPersonInputEnvelope connect?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] } export type GroupMembershipUpdateManyWithoutPersonNestedInput = { create?: XOR | GroupMembershipCreateWithoutPersonInput[] | GroupMembershipUncheckedCreateWithoutPersonInput[] connectOrCreate?: GroupMembershipCreateOrConnectWithoutPersonInput | GroupMembershipCreateOrConnectWithoutPersonInput[] upsert?: GroupMembershipUpsertWithWhereUniqueWithoutPersonInput | GroupMembershipUpsertWithWhereUniqueWithoutPersonInput[] createMany?: GroupMembershipCreateManyPersonInputEnvelope set?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] disconnect?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] delete?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] connect?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] update?: GroupMembershipUpdateWithWhereUniqueWithoutPersonInput | GroupMembershipUpdateWithWhereUniqueWithoutPersonInput[] updateMany?: GroupMembershipUpdateManyWithWhereWithoutPersonInput | GroupMembershipUpdateManyWithWhereWithoutPersonInput[] deleteMany?: GroupMembershipScalarWhereInput | GroupMembershipScalarWhereInput[] } export type GroupMembershipUncheckedUpdateManyWithoutPersonNestedInput = { create?: XOR | GroupMembershipCreateWithoutPersonInput[] | GroupMembershipUncheckedCreateWithoutPersonInput[] connectOrCreate?: GroupMembershipCreateOrConnectWithoutPersonInput | GroupMembershipCreateOrConnectWithoutPersonInput[] upsert?: GroupMembershipUpsertWithWhereUniqueWithoutPersonInput | GroupMembershipUpsertWithWhereUniqueWithoutPersonInput[] createMany?: GroupMembershipCreateManyPersonInputEnvelope set?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] disconnect?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] delete?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] connect?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] update?: GroupMembershipUpdateWithWhereUniqueWithoutPersonInput | GroupMembershipUpdateWithWhereUniqueWithoutPersonInput[] updateMany?: GroupMembershipUpdateManyWithWhereWithoutPersonInput | GroupMembershipUpdateManyWithWhereWithoutPersonInput[] deleteMany?: GroupMembershipScalarWhereInput | GroupMembershipScalarWhereInput[] } export type GroupMembershipCreateNestedManyWithoutGroupInput = { create?: XOR | GroupMembershipCreateWithoutGroupInput[] | GroupMembershipUncheckedCreateWithoutGroupInput[] connectOrCreate?: GroupMembershipCreateOrConnectWithoutGroupInput | GroupMembershipCreateOrConnectWithoutGroupInput[] createMany?: GroupMembershipCreateManyGroupInputEnvelope connect?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] } export type GroupMembershipUncheckedCreateNestedManyWithoutGroupInput = { create?: XOR | GroupMembershipCreateWithoutGroupInput[] | GroupMembershipUncheckedCreateWithoutGroupInput[] connectOrCreate?: GroupMembershipCreateOrConnectWithoutGroupInput | GroupMembershipCreateOrConnectWithoutGroupInput[] createMany?: GroupMembershipCreateManyGroupInputEnvelope connect?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] } export type GroupMembershipUpdateManyWithoutGroupNestedInput = { create?: XOR | GroupMembershipCreateWithoutGroupInput[] | GroupMembershipUncheckedCreateWithoutGroupInput[] connectOrCreate?: GroupMembershipCreateOrConnectWithoutGroupInput | GroupMembershipCreateOrConnectWithoutGroupInput[] upsert?: GroupMembershipUpsertWithWhereUniqueWithoutGroupInput | GroupMembershipUpsertWithWhereUniqueWithoutGroupInput[] createMany?: GroupMembershipCreateManyGroupInputEnvelope set?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] disconnect?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] delete?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] connect?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] update?: GroupMembershipUpdateWithWhereUniqueWithoutGroupInput | GroupMembershipUpdateWithWhereUniqueWithoutGroupInput[] updateMany?: GroupMembershipUpdateManyWithWhereWithoutGroupInput | GroupMembershipUpdateManyWithWhereWithoutGroupInput[] deleteMany?: GroupMembershipScalarWhereInput | GroupMembershipScalarWhereInput[] } export type GroupMembershipUncheckedUpdateManyWithoutGroupNestedInput = { create?: XOR | GroupMembershipCreateWithoutGroupInput[] | GroupMembershipUncheckedCreateWithoutGroupInput[] connectOrCreate?: GroupMembershipCreateOrConnectWithoutGroupInput | GroupMembershipCreateOrConnectWithoutGroupInput[] upsert?: GroupMembershipUpsertWithWhereUniqueWithoutGroupInput | GroupMembershipUpsertWithWhereUniqueWithoutGroupInput[] createMany?: GroupMembershipCreateManyGroupInputEnvelope set?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] disconnect?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] delete?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] connect?: GroupMembershipWhereUniqueInput | GroupMembershipWhereUniqueInput[] update?: GroupMembershipUpdateWithWhereUniqueWithoutGroupInput | GroupMembershipUpdateWithWhereUniqueWithoutGroupInput[] updateMany?: GroupMembershipUpdateManyWithWhereWithoutGroupInput | GroupMembershipUpdateManyWithWhereWithoutGroupInput[] deleteMany?: GroupMembershipScalarWhereInput | GroupMembershipScalarWhereInput[] } export type GroupCreateNestedOneWithoutMembersInput = { create?: XOR connectOrCreate?: GroupCreateOrConnectWithoutMembersInput connect?: GroupWhereUniqueInput } export type PersonCreateNestedOneWithoutGroupMembershipsInput = { create?: XOR connectOrCreate?: PersonCreateOrConnectWithoutGroupMembershipsInput connect?: PersonWhereUniqueInput } export type GroupUpdateOneRequiredWithoutMembersNestedInput = { create?: XOR connectOrCreate?: GroupCreateOrConnectWithoutMembersInput upsert?: GroupUpsertWithoutMembersInput connect?: GroupWhereUniqueInput update?: XOR, GroupUncheckedUpdateWithoutMembersInput> } export type PersonUpdateOneRequiredWithoutGroupMembershipsNestedInput = { create?: XOR connectOrCreate?: PersonCreateOrConnectWithoutGroupMembershipsInput upsert?: PersonUpsertWithoutGroupMembershipsInput connect?: PersonWhereUniqueInput update?: XOR, PersonUncheckedUpdateWithoutGroupMembershipsInput> } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type countriesCreateNestedOneWithoutCitiesInput = { create?: XOR connectOrCreate?: countriesCreateOrConnectWithoutCitiesInput connect?: countriesWhereUniqueInput } export type statesCreateNestedOneWithoutCitiesInput = { create?: XOR connectOrCreate?: statesCreateOrConnectWithoutCitiesInput connect?: statesWhereUniqueInput } export type BigIntFieldUpdateOperationsInput = { set?: bigint | number increment?: bigint | number decrement?: bigint | number multiply?: bigint | number divide?: bigint | number } export type NullableIntFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type NullableBigIntFieldUpdateOperationsInput = { set?: bigint | number | null increment?: bigint | number decrement?: bigint | number multiply?: bigint | number divide?: bigint | number } export type DecimalFieldUpdateOperationsInput = { set?: Decimal | DecimalJsLike | number | string increment?: Decimal | DecimalJsLike | number | string decrement?: Decimal | DecimalJsLike | number | string multiply?: Decimal | DecimalJsLike | number | string divide?: Decimal | DecimalJsLike | number | string } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type countriesUpdateOneRequiredWithoutCitiesNestedInput = { create?: XOR connectOrCreate?: countriesCreateOrConnectWithoutCitiesInput upsert?: countriesUpsertWithoutCitiesInput connect?: countriesWhereUniqueInput update?: XOR, countriesUncheckedUpdateWithoutCitiesInput> } export type statesUpdateOneRequiredWithoutCitiesNestedInput = { create?: XOR connectOrCreate?: statesCreateOrConnectWithoutCitiesInput upsert?: statesUpsertWithoutCitiesInput connect?: statesWhereUniqueInput update?: XOR, statesUncheckedUpdateWithoutCitiesInput> } export type citiesCreateNestedManyWithoutCountriesInput = { create?: XOR | citiesCreateWithoutCountriesInput[] | citiesUncheckedCreateWithoutCountriesInput[] connectOrCreate?: citiesCreateOrConnectWithoutCountriesInput | citiesCreateOrConnectWithoutCountriesInput[] createMany?: citiesCreateManyCountriesInputEnvelope connect?: citiesWhereUniqueInput | citiesWhereUniqueInput[] } export type statesCreateNestedManyWithoutCountriesInput = { create?: XOR | statesCreateWithoutCountriesInput[] | statesUncheckedCreateWithoutCountriesInput[] connectOrCreate?: statesCreateOrConnectWithoutCountriesInput | statesCreateOrConnectWithoutCountriesInput[] createMany?: statesCreateManyCountriesInputEnvelope connect?: statesWhereUniqueInput | statesWhereUniqueInput[] } export type citiesUncheckedCreateNestedManyWithoutCountriesInput = { create?: XOR | citiesCreateWithoutCountriesInput[] | citiesUncheckedCreateWithoutCountriesInput[] connectOrCreate?: citiesCreateOrConnectWithoutCountriesInput | citiesCreateOrConnectWithoutCountriesInput[] createMany?: citiesCreateManyCountriesInputEnvelope connect?: citiesWhereUniqueInput | citiesWhereUniqueInput[] } export type statesUncheckedCreateNestedManyWithoutCountriesInput = { create?: XOR | statesCreateWithoutCountriesInput[] | statesUncheckedCreateWithoutCountriesInput[] connectOrCreate?: statesCreateOrConnectWithoutCountriesInput | statesCreateOrConnectWithoutCountriesInput[] createMany?: statesCreateManyCountriesInputEnvelope connect?: statesWhereUniqueInput | statesWhereUniqueInput[] } export type NullableFloatFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type NullableDecimalFieldUpdateOperationsInput = { set?: Decimal | DecimalJsLike | number | string | null increment?: Decimal | DecimalJsLike | number | string decrement?: Decimal | DecimalJsLike | number | string multiply?: Decimal | DecimalJsLike | number | string divide?: Decimal | DecimalJsLike | number | string } export type citiesUpdateManyWithoutCountriesNestedInput = { create?: XOR | citiesCreateWithoutCountriesInput[] | citiesUncheckedCreateWithoutCountriesInput[] connectOrCreate?: citiesCreateOrConnectWithoutCountriesInput | citiesCreateOrConnectWithoutCountriesInput[] upsert?: citiesUpsertWithWhereUniqueWithoutCountriesInput | citiesUpsertWithWhereUniqueWithoutCountriesInput[] createMany?: citiesCreateManyCountriesInputEnvelope set?: citiesWhereUniqueInput | citiesWhereUniqueInput[] disconnect?: citiesWhereUniqueInput | citiesWhereUniqueInput[] delete?: citiesWhereUniqueInput | citiesWhereUniqueInput[] connect?: citiesWhereUniqueInput | citiesWhereUniqueInput[] update?: citiesUpdateWithWhereUniqueWithoutCountriesInput | citiesUpdateWithWhereUniqueWithoutCountriesInput[] updateMany?: citiesUpdateManyWithWhereWithoutCountriesInput | citiesUpdateManyWithWhereWithoutCountriesInput[] deleteMany?: citiesScalarWhereInput | citiesScalarWhereInput[] } export type statesUpdateManyWithoutCountriesNestedInput = { create?: XOR | statesCreateWithoutCountriesInput[] | statesUncheckedCreateWithoutCountriesInput[] connectOrCreate?: statesCreateOrConnectWithoutCountriesInput | statesCreateOrConnectWithoutCountriesInput[] upsert?: statesUpsertWithWhereUniqueWithoutCountriesInput | statesUpsertWithWhereUniqueWithoutCountriesInput[] createMany?: statesCreateManyCountriesInputEnvelope set?: statesWhereUniqueInput | statesWhereUniqueInput[] disconnect?: statesWhereUniqueInput | statesWhereUniqueInput[] delete?: statesWhereUniqueInput | statesWhereUniqueInput[] connect?: statesWhereUniqueInput | statesWhereUniqueInput[] update?: statesUpdateWithWhereUniqueWithoutCountriesInput | statesUpdateWithWhereUniqueWithoutCountriesInput[] updateMany?: statesUpdateManyWithWhereWithoutCountriesInput | statesUpdateManyWithWhereWithoutCountriesInput[] deleteMany?: statesScalarWhereInput | statesScalarWhereInput[] } export type citiesUncheckedUpdateManyWithoutCountriesNestedInput = { create?: XOR | citiesCreateWithoutCountriesInput[] | citiesUncheckedCreateWithoutCountriesInput[] connectOrCreate?: citiesCreateOrConnectWithoutCountriesInput | citiesCreateOrConnectWithoutCountriesInput[] upsert?: citiesUpsertWithWhereUniqueWithoutCountriesInput | citiesUpsertWithWhereUniqueWithoutCountriesInput[] createMany?: citiesCreateManyCountriesInputEnvelope set?: citiesWhereUniqueInput | citiesWhereUniqueInput[] disconnect?: citiesWhereUniqueInput | citiesWhereUniqueInput[] delete?: citiesWhereUniqueInput | citiesWhereUniqueInput[] connect?: citiesWhereUniqueInput | citiesWhereUniqueInput[] update?: citiesUpdateWithWhereUniqueWithoutCountriesInput | citiesUpdateWithWhereUniqueWithoutCountriesInput[] updateMany?: citiesUpdateManyWithWhereWithoutCountriesInput | citiesUpdateManyWithWhereWithoutCountriesInput[] deleteMany?: citiesScalarWhereInput | citiesScalarWhereInput[] } export type statesUncheckedUpdateManyWithoutCountriesNestedInput = { create?: XOR | statesCreateWithoutCountriesInput[] | statesUncheckedCreateWithoutCountriesInput[] connectOrCreate?: statesCreateOrConnectWithoutCountriesInput | statesCreateOrConnectWithoutCountriesInput[] upsert?: statesUpsertWithWhereUniqueWithoutCountriesInput | statesUpsertWithWhereUniqueWithoutCountriesInput[] createMany?: statesCreateManyCountriesInputEnvelope set?: statesWhereUniqueInput | statesWhereUniqueInput[] disconnect?: statesWhereUniqueInput | statesWhereUniqueInput[] delete?: statesWhereUniqueInput | statesWhereUniqueInput[] connect?: statesWhereUniqueInput | statesWhereUniqueInput[] update?: statesUpdateWithWhereUniqueWithoutCountriesInput | statesUpdateWithWhereUniqueWithoutCountriesInput[] updateMany?: statesUpdateManyWithWhereWithoutCountriesInput | statesUpdateManyWithWhereWithoutCountriesInput[] deleteMany?: statesScalarWhereInput | statesScalarWhereInput[] } export type citiesCreateNestedManyWithoutStatesInput = { create?: XOR | citiesCreateWithoutStatesInput[] | citiesUncheckedCreateWithoutStatesInput[] connectOrCreate?: citiesCreateOrConnectWithoutStatesInput | citiesCreateOrConnectWithoutStatesInput[] createMany?: citiesCreateManyStatesInputEnvelope connect?: citiesWhereUniqueInput | citiesWhereUniqueInput[] } export type countriesCreateNestedOneWithoutStatesInput = { create?: XOR connectOrCreate?: countriesCreateOrConnectWithoutStatesInput connect?: countriesWhereUniqueInput } export type citiesUncheckedCreateNestedManyWithoutStatesInput = { create?: XOR | citiesCreateWithoutStatesInput[] | citiesUncheckedCreateWithoutStatesInput[] connectOrCreate?: citiesCreateOrConnectWithoutStatesInput | citiesCreateOrConnectWithoutStatesInput[] createMany?: citiesCreateManyStatesInputEnvelope connect?: citiesWhereUniqueInput | citiesWhereUniqueInput[] } export type citiesUpdateManyWithoutStatesNestedInput = { create?: XOR | citiesCreateWithoutStatesInput[] | citiesUncheckedCreateWithoutStatesInput[] connectOrCreate?: citiesCreateOrConnectWithoutStatesInput | citiesCreateOrConnectWithoutStatesInput[] upsert?: citiesUpsertWithWhereUniqueWithoutStatesInput | citiesUpsertWithWhereUniqueWithoutStatesInput[] createMany?: citiesCreateManyStatesInputEnvelope set?: citiesWhereUniqueInput | citiesWhereUniqueInput[] disconnect?: citiesWhereUniqueInput | citiesWhereUniqueInput[] delete?: citiesWhereUniqueInput | citiesWhereUniqueInput[] connect?: citiesWhereUniqueInput | citiesWhereUniqueInput[] update?: citiesUpdateWithWhereUniqueWithoutStatesInput | citiesUpdateWithWhereUniqueWithoutStatesInput[] updateMany?: citiesUpdateManyWithWhereWithoutStatesInput | citiesUpdateManyWithWhereWithoutStatesInput[] deleteMany?: citiesScalarWhereInput | citiesScalarWhereInput[] } export type countriesUpdateOneRequiredWithoutStatesNestedInput = { create?: XOR connectOrCreate?: countriesCreateOrConnectWithoutStatesInput upsert?: countriesUpsertWithoutStatesInput connect?: countriesWhereUniqueInput update?: XOR, countriesUncheckedUpdateWithoutStatesInput> } export type citiesUncheckedUpdateManyWithoutStatesNestedInput = { create?: XOR | citiesCreateWithoutStatesInput[] | citiesUncheckedCreateWithoutStatesInput[] connectOrCreate?: citiesCreateOrConnectWithoutStatesInput | citiesCreateOrConnectWithoutStatesInput[] upsert?: citiesUpsertWithWhereUniqueWithoutStatesInput | citiesUpsertWithWhereUniqueWithoutStatesInput[] createMany?: citiesCreateManyStatesInputEnvelope set?: citiesWhereUniqueInput | citiesWhereUniqueInput[] disconnect?: citiesWhereUniqueInput | citiesWhereUniqueInput[] delete?: citiesWhereUniqueInput | citiesWhereUniqueInput[] connect?: citiesWhereUniqueInput | citiesWhereUniqueInput[] update?: citiesUpdateWithWhereUniqueWithoutStatesInput | citiesUpdateWithWhereUniqueWithoutStatesInput[] updateMany?: citiesUpdateManyWithWhereWithoutStatesInput | citiesUpdateManyWithWhereWithoutStatesInput[] deleteMany?: citiesScalarWhereInput | citiesScalarWhereInput[] } 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 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 NestedJsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type NestedJsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: 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 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 NestedBigIntFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntFilter<$PrismaModel> | bigint | number } export type NestedBigIntNullableFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null } export type NestedDecimalFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string } export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedBigIntFilter<$PrismaModel> _min?: NestedBigIntFilter<$PrismaModel> _max?: NestedBigIntFilter<$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 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 NestedBigIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedBigIntNullableFilter<$PrismaModel> _min?: NestedBigIntNullableFilter<$PrismaModel> _max?: NestedBigIntNullableFilter<$PrismaModel> } export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string _count?: NestedIntFilter<$PrismaModel> _avg?: NestedDecimalFilter<$PrismaModel> _sum?: NestedDecimalFilter<$PrismaModel> _min?: NestedDecimalFilter<$PrismaModel> _max?: NestedDecimalFilter<$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 NestedDecimalNullableFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null } export type NestedFloatNullableWithAggregatesFilter<$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?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedFloatNullableFilter<$PrismaModel> _min?: NestedFloatNullableFilter<$PrismaModel> _max?: NestedFloatNullableFilter<$PrismaModel> } export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedDecimalNullableFilter<$PrismaModel> _sum?: NestedDecimalNullableFilter<$PrismaModel> _min?: NestedDecimalNullableFilter<$PrismaModel> _max?: NestedDecimalNullableFilter<$PrismaModel> } export type UnitCreateWithoutChildrenInput = { id?: string name: string description?: string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string parent?: UnitCreateNestedOneWithoutChildrenInput } export type UnitUncheckedCreateWithoutChildrenInput = { id?: string name: string description?: string | null parentId?: string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type UnitCreateOrConnectWithoutChildrenInput = { where: UnitWhereUniqueInput create: XOR } export type UnitCreateWithoutParentInput = { id?: string name: string description?: string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string children?: UnitCreateNestedManyWithoutParentInput } export type UnitUncheckedCreateWithoutParentInput = { id?: string name: string description?: string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string children?: UnitUncheckedCreateNestedManyWithoutParentInput } export type UnitCreateOrConnectWithoutParentInput = { where: UnitWhereUniqueInput create: XOR } export type UnitCreateManyParentInputEnvelope = { data: UnitCreateManyParentInput | UnitCreateManyParentInput[] skipDuplicates?: boolean } export type UnitUpsertWithoutChildrenInput = { update: XOR create: XOR where?: UnitWhereInput } export type UnitUpdateToOneWithWhereWithoutChildrenInput = { where?: UnitWhereInput data: XOR } export type UnitUpdateWithoutChildrenInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string parent?: UnitUpdateOneWithoutChildrenNestedInput } export type UnitUncheckedUpdateWithoutChildrenInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null parentId?: NullableStringFieldUpdateOperationsInput | string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UnitUpsertWithWhereUniqueWithoutParentInput = { where: UnitWhereUniqueInput update: XOR create: XOR } export type UnitUpdateWithWhereUniqueWithoutParentInput = { where: UnitWhereUniqueInput data: XOR } export type UnitUpdateManyWithWhereWithoutParentInput = { where: UnitScalarWhereInput data: XOR } export type UnitScalarWhereInput = { AND?: UnitScalarWhereInput | UnitScalarWhereInput[] OR?: UnitScalarWhereInput[] NOT?: UnitScalarWhereInput | UnitScalarWhereInput[] id?: StringFilter<"Unit"> | string name?: StringFilter<"Unit"> | string description?: StringNullableFilter<"Unit"> | string | null parentId?: StringNullableFilter<"Unit"> | string | null traits?: JsonFilter<"Unit"> createdAt?: DateTimeFilter<"Unit"> | Date | string updatedAt?: DateTimeFilter<"Unit"> | Date | string } export type GroupMembershipCreateWithoutPersonInput = { id?: string role: string group: GroupCreateNestedOneWithoutMembersInput } export type GroupMembershipUncheckedCreateWithoutPersonInput = { id?: string groupId: string role: string } export type GroupMembershipCreateOrConnectWithoutPersonInput = { where: GroupMembershipWhereUniqueInput create: XOR } export type GroupMembershipCreateManyPersonInputEnvelope = { data: GroupMembershipCreateManyPersonInput | GroupMembershipCreateManyPersonInput[] skipDuplicates?: boolean } export type GroupMembershipUpsertWithWhereUniqueWithoutPersonInput = { where: GroupMembershipWhereUniqueInput update: XOR create: XOR } export type GroupMembershipUpdateWithWhereUniqueWithoutPersonInput = { where: GroupMembershipWhereUniqueInput data: XOR } export type GroupMembershipUpdateManyWithWhereWithoutPersonInput = { where: GroupMembershipScalarWhereInput data: XOR } export type GroupMembershipScalarWhereInput = { AND?: GroupMembershipScalarWhereInput | GroupMembershipScalarWhereInput[] OR?: GroupMembershipScalarWhereInput[] NOT?: GroupMembershipScalarWhereInput | GroupMembershipScalarWhereInput[] id?: StringFilter<"GroupMembership"> | string personId?: StringFilter<"GroupMembership"> | string groupId?: StringFilter<"GroupMembership"> | string role?: StringFilter<"GroupMembership"> | string } export type GroupMembershipCreateWithoutGroupInput = { id?: string role: string person: PersonCreateNestedOneWithoutGroupMembershipsInput } export type GroupMembershipUncheckedCreateWithoutGroupInput = { id?: string personId: string role: string } export type GroupMembershipCreateOrConnectWithoutGroupInput = { where: GroupMembershipWhereUniqueInput create: XOR } export type GroupMembershipCreateManyGroupInputEnvelope = { data: GroupMembershipCreateManyGroupInput | GroupMembershipCreateManyGroupInput[] skipDuplicates?: boolean } export type GroupMembershipUpsertWithWhereUniqueWithoutGroupInput = { where: GroupMembershipWhereUniqueInput update: XOR create: XOR } export type GroupMembershipUpdateWithWhereUniqueWithoutGroupInput = { where: GroupMembershipWhereUniqueInput data: XOR } export type GroupMembershipUpdateManyWithWhereWithoutGroupInput = { where: GroupMembershipScalarWhereInput data: XOR } export type GroupCreateWithoutMembersInput = { id?: string name: string traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type GroupUncheckedCreateWithoutMembersInput = { id?: string name: string traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type GroupCreateOrConnectWithoutMembersInput = { where: GroupWhereUniqueInput create: XOR } export type PersonCreateWithoutGroupMembershipsInput = { id?: string firstName: string lastName: string email?: string | null phone?: string | null ssoId?: string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type PersonUncheckedCreateWithoutGroupMembershipsInput = { id?: string firstName: string lastName: string email?: string | null phone?: string | null ssoId?: string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type PersonCreateOrConnectWithoutGroupMembershipsInput = { where: PersonWhereUniqueInput create: XOR } export type GroupUpsertWithoutMembersInput = { update: XOR create: XOR where?: GroupWhereInput } export type GroupUpdateToOneWithWhereWithoutMembersInput = { where?: GroupWhereInput data: XOR } export type GroupUpdateWithoutMembersInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GroupUncheckedUpdateWithoutMembersInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PersonUpsertWithoutGroupMembershipsInput = { update: XOR create: XOR where?: PersonWhereInput } export type PersonUpdateToOneWithWhereWithoutGroupMembershipsInput = { where?: PersonWhereInput data: XOR } export type PersonUpdateWithoutGroupMembershipsInput = { id?: StringFieldUpdateOperationsInput | string firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null ssoId?: NullableStringFieldUpdateOperationsInput | string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PersonUncheckedUpdateWithoutGroupMembershipsInput = { id?: StringFieldUpdateOperationsInput | string firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null ssoId?: NullableStringFieldUpdateOperationsInput | string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type countriesCreateWithoutCitiesInput = { id?: bigint | number name: string iso3?: string | null numeric_code?: string | null iso2?: string | null phonecode?: string | null capital?: string | null currency?: string | null currency_name?: string | null currency_symbol?: string | null tld?: string | null native?: string | null population?: bigint | number | null gdp?: bigint | number | null region?: string | null region_id?: bigint | number | null subregion?: string | null subregion_id?: bigint | number | null nationality?: string | null area_sq_km?: number | null postal_code_format?: string | null postal_code_regex?: string | null timezones?: string | null translations?: string | null latitude?: Decimal | DecimalJsLike | number | string | null longitude?: Decimal | DecimalJsLike | number | string | null emoji?: string | null emojiU?: string | null created_at?: Date | string | null updated_at?: Date | string flag?: number wikiDataId?: string | null states?: statesCreateNestedManyWithoutCountriesInput } export type countriesUncheckedCreateWithoutCitiesInput = { id?: bigint | number name: string iso3?: string | null numeric_code?: string | null iso2?: string | null phonecode?: string | null capital?: string | null currency?: string | null currency_name?: string | null currency_symbol?: string | null tld?: string | null native?: string | null population?: bigint | number | null gdp?: bigint | number | null region?: string | null region_id?: bigint | number | null subregion?: string | null subregion_id?: bigint | number | null nationality?: string | null area_sq_km?: number | null postal_code_format?: string | null postal_code_regex?: string | null timezones?: string | null translations?: string | null latitude?: Decimal | DecimalJsLike | number | string | null longitude?: Decimal | DecimalJsLike | number | string | null emoji?: string | null emojiU?: string | null created_at?: Date | string | null updated_at?: Date | string flag?: number wikiDataId?: string | null states?: statesUncheckedCreateNestedManyWithoutCountriesInput } export type countriesCreateOrConnectWithoutCitiesInput = { where: countriesWhereUniqueInput create: XOR } export type statesCreateWithoutCitiesInput = { id?: bigint | number name: string country_code: string fips_code?: string | null iso2?: string | null iso3166_2?: string | null type?: string | null level?: number | null parent_id?: bigint | number | null native?: string | null latitude?: Decimal | DecimalJsLike | number | string | null longitude?: Decimal | DecimalJsLike | number | string | null timezone?: string | null translations?: string | null created_at?: Date | string | null updated_at?: Date | string flag?: number wikiDataId?: string | null population?: string | null countries: countriesCreateNestedOneWithoutStatesInput } export type statesUncheckedCreateWithoutCitiesInput = { id?: bigint | number name: string country_id: bigint | number country_code: string fips_code?: string | null iso2?: string | null iso3166_2?: string | null type?: string | null level?: number | null parent_id?: bigint | number | null native?: string | null latitude?: Decimal | DecimalJsLike | number | string | null longitude?: Decimal | DecimalJsLike | number | string | null timezone?: string | null translations?: string | null created_at?: Date | string | null updated_at?: Date | string flag?: number wikiDataId?: string | null population?: string | null } export type statesCreateOrConnectWithoutCitiesInput = { where: statesWhereUniqueInput create: XOR } export type countriesUpsertWithoutCitiesInput = { update: XOR create: XOR where?: countriesWhereInput } export type countriesUpdateToOneWithWhereWithoutCitiesInput = { where?: countriesWhereInput data: XOR } export type countriesUpdateWithoutCitiesInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string iso3?: NullableStringFieldUpdateOperationsInput | string | null numeric_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null phonecode?: NullableStringFieldUpdateOperationsInput | string | null capital?: NullableStringFieldUpdateOperationsInput | string | null currency?: NullableStringFieldUpdateOperationsInput | string | null currency_name?: NullableStringFieldUpdateOperationsInput | string | null currency_symbol?: NullableStringFieldUpdateOperationsInput | string | null tld?: NullableStringFieldUpdateOperationsInput | string | null native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null gdp?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null region?: NullableStringFieldUpdateOperationsInput | string | null region_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null subregion?: NullableStringFieldUpdateOperationsInput | string | null subregion_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null nationality?: NullableStringFieldUpdateOperationsInput | string | null area_sq_km?: NullableFloatFieldUpdateOperationsInput | number | null postal_code_format?: NullableStringFieldUpdateOperationsInput | string | null postal_code_regex?: NullableStringFieldUpdateOperationsInput | string | null timezones?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null emoji?: NullableStringFieldUpdateOperationsInput | string | null emojiU?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null states?: statesUpdateManyWithoutCountriesNestedInput } export type countriesUncheckedUpdateWithoutCitiesInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string iso3?: NullableStringFieldUpdateOperationsInput | string | null numeric_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null phonecode?: NullableStringFieldUpdateOperationsInput | string | null capital?: NullableStringFieldUpdateOperationsInput | string | null currency?: NullableStringFieldUpdateOperationsInput | string | null currency_name?: NullableStringFieldUpdateOperationsInput | string | null currency_symbol?: NullableStringFieldUpdateOperationsInput | string | null tld?: NullableStringFieldUpdateOperationsInput | string | null native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null gdp?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null region?: NullableStringFieldUpdateOperationsInput | string | null region_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null subregion?: NullableStringFieldUpdateOperationsInput | string | null subregion_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null nationality?: NullableStringFieldUpdateOperationsInput | string | null area_sq_km?: NullableFloatFieldUpdateOperationsInput | number | null postal_code_format?: NullableStringFieldUpdateOperationsInput | string | null postal_code_regex?: NullableStringFieldUpdateOperationsInput | string | null timezones?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null emoji?: NullableStringFieldUpdateOperationsInput | string | null emojiU?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null states?: statesUncheckedUpdateManyWithoutCountriesNestedInput } export type statesUpsertWithoutCitiesInput = { update: XOR create: XOR where?: statesWhereInput } export type statesUpdateToOneWithWhereWithoutCitiesInput = { where?: statesWhereInput data: XOR } export type statesUpdateWithoutCitiesInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string country_code?: StringFieldUpdateOperationsInput | string fips_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null iso3166_2?: NullableStringFieldUpdateOperationsInput | string | null type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null native?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableStringFieldUpdateOperationsInput | string | null countries?: countriesUpdateOneRequiredWithoutStatesNestedInput } export type statesUncheckedUpdateWithoutCitiesInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string country_id?: BigIntFieldUpdateOperationsInput | bigint | number country_code?: StringFieldUpdateOperationsInput | string fips_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null iso3166_2?: NullableStringFieldUpdateOperationsInput | string | null type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null native?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableStringFieldUpdateOperationsInput | string | null } export type citiesCreateWithoutCountriesInput = { id?: bigint | number name: string state_code: string country_code: string type?: string | null level?: number | null parent_id?: bigint | number | null latitude: Decimal | DecimalJsLike | number | string longitude: Decimal | DecimalJsLike | number | string native?: string | null population?: bigint | number | null timezone?: string | null translations?: string | null created_at?: Date | string updated_at?: Date | string flag?: number wikiDataId?: string | null states: statesCreateNestedOneWithoutCitiesInput } export type citiesUncheckedCreateWithoutCountriesInput = { id?: bigint | number name: string state_id: bigint | number state_code: string country_code: string type?: string | null level?: number | null parent_id?: bigint | number | null latitude: Decimal | DecimalJsLike | number | string longitude: Decimal | DecimalJsLike | number | string native?: string | null population?: bigint | number | null timezone?: string | null translations?: string | null created_at?: Date | string updated_at?: Date | string flag?: number wikiDataId?: string | null } export type citiesCreateOrConnectWithoutCountriesInput = { where: citiesWhereUniqueInput create: XOR } export type citiesCreateManyCountriesInputEnvelope = { data: citiesCreateManyCountriesInput | citiesCreateManyCountriesInput[] skipDuplicates?: boolean } export type statesCreateWithoutCountriesInput = { id?: bigint | number name: string country_code: string fips_code?: string | null iso2?: string | null iso3166_2?: string | null type?: string | null level?: number | null parent_id?: bigint | number | null native?: string | null latitude?: Decimal | DecimalJsLike | number | string | null longitude?: Decimal | DecimalJsLike | number | string | null timezone?: string | null translations?: string | null created_at?: Date | string | null updated_at?: Date | string flag?: number wikiDataId?: string | null population?: string | null cities?: citiesCreateNestedManyWithoutStatesInput } export type statesUncheckedCreateWithoutCountriesInput = { id?: bigint | number name: string country_code: string fips_code?: string | null iso2?: string | null iso3166_2?: string | null type?: string | null level?: number | null parent_id?: bigint | number | null native?: string | null latitude?: Decimal | DecimalJsLike | number | string | null longitude?: Decimal | DecimalJsLike | number | string | null timezone?: string | null translations?: string | null created_at?: Date | string | null updated_at?: Date | string flag?: number wikiDataId?: string | null population?: string | null cities?: citiesUncheckedCreateNestedManyWithoutStatesInput } export type statesCreateOrConnectWithoutCountriesInput = { where: statesWhereUniqueInput create: XOR } export type statesCreateManyCountriesInputEnvelope = { data: statesCreateManyCountriesInput | statesCreateManyCountriesInput[] skipDuplicates?: boolean } export type citiesUpsertWithWhereUniqueWithoutCountriesInput = { where: citiesWhereUniqueInput update: XOR create: XOR } export type citiesUpdateWithWhereUniqueWithoutCountriesInput = { where: citiesWhereUniqueInput data: XOR } export type citiesUpdateManyWithWhereWithoutCountriesInput = { where: citiesScalarWhereInput data: XOR } export type citiesScalarWhereInput = { AND?: citiesScalarWhereInput | citiesScalarWhereInput[] OR?: citiesScalarWhereInput[] NOT?: citiesScalarWhereInput | citiesScalarWhereInput[] id?: BigIntFilter<"cities"> | bigint | number name?: StringFilter<"cities"> | string state_id?: BigIntFilter<"cities"> | bigint | number state_code?: StringFilter<"cities"> | string country_id?: BigIntFilter<"cities"> | bigint | number country_code?: StringFilter<"cities"> | string type?: StringNullableFilter<"cities"> | string | null level?: IntNullableFilter<"cities"> | number | null parent_id?: BigIntNullableFilter<"cities"> | bigint | number | null latitude?: DecimalFilter<"cities"> | Decimal | DecimalJsLike | number | string longitude?: DecimalFilter<"cities"> | Decimal | DecimalJsLike | number | string native?: StringNullableFilter<"cities"> | string | null population?: BigIntNullableFilter<"cities"> | bigint | number | null timezone?: StringNullableFilter<"cities"> | string | null translations?: StringNullableFilter<"cities"> | string | null created_at?: DateTimeFilter<"cities"> | Date | string updated_at?: DateTimeFilter<"cities"> | Date | string flag?: IntFilter<"cities"> | number wikiDataId?: StringNullableFilter<"cities"> | string | null } export type statesUpsertWithWhereUniqueWithoutCountriesInput = { where: statesWhereUniqueInput update: XOR create: XOR } export type statesUpdateWithWhereUniqueWithoutCountriesInput = { where: statesWhereUniqueInput data: XOR } export type statesUpdateManyWithWhereWithoutCountriesInput = { where: statesScalarWhereInput data: XOR } export type statesScalarWhereInput = { AND?: statesScalarWhereInput | statesScalarWhereInput[] OR?: statesScalarWhereInput[] NOT?: statesScalarWhereInput | statesScalarWhereInput[] id?: BigIntFilter<"states"> | bigint | number name?: StringFilter<"states"> | string country_id?: BigIntFilter<"states"> | bigint | number country_code?: StringFilter<"states"> | string fips_code?: StringNullableFilter<"states"> | string | null iso2?: StringNullableFilter<"states"> | string | null iso3166_2?: StringNullableFilter<"states"> | string | null type?: StringNullableFilter<"states"> | string | null level?: IntNullableFilter<"states"> | number | null parent_id?: BigIntNullableFilter<"states"> | bigint | number | null native?: StringNullableFilter<"states"> | string | null latitude?: DecimalNullableFilter<"states"> | Decimal | DecimalJsLike | number | string | null longitude?: DecimalNullableFilter<"states"> | Decimal | DecimalJsLike | number | string | null timezone?: StringNullableFilter<"states"> | string | null translations?: StringNullableFilter<"states"> | string | null created_at?: DateTimeNullableFilter<"states"> | Date | string | null updated_at?: DateTimeFilter<"states"> | Date | string flag?: IntFilter<"states"> | number wikiDataId?: StringNullableFilter<"states"> | string | null population?: StringNullableFilter<"states"> | string | null } export type citiesCreateWithoutStatesInput = { id?: bigint | number name: string state_code: string country_code: string type?: string | null level?: number | null parent_id?: bigint | number | null latitude: Decimal | DecimalJsLike | number | string longitude: Decimal | DecimalJsLike | number | string native?: string | null population?: bigint | number | null timezone?: string | null translations?: string | null created_at?: Date | string updated_at?: Date | string flag?: number wikiDataId?: string | null countries: countriesCreateNestedOneWithoutCitiesInput } export type citiesUncheckedCreateWithoutStatesInput = { id?: bigint | number name: string state_code: string country_id: bigint | number country_code: string type?: string | null level?: number | null parent_id?: bigint | number | null latitude: Decimal | DecimalJsLike | number | string longitude: Decimal | DecimalJsLike | number | string native?: string | null population?: bigint | number | null timezone?: string | null translations?: string | null created_at?: Date | string updated_at?: Date | string flag?: number wikiDataId?: string | null } export type citiesCreateOrConnectWithoutStatesInput = { where: citiesWhereUniqueInput create: XOR } export type citiesCreateManyStatesInputEnvelope = { data: citiesCreateManyStatesInput | citiesCreateManyStatesInput[] skipDuplicates?: boolean } export type countriesCreateWithoutStatesInput = { id?: bigint | number name: string iso3?: string | null numeric_code?: string | null iso2?: string | null phonecode?: string | null capital?: string | null currency?: string | null currency_name?: string | null currency_symbol?: string | null tld?: string | null native?: string | null population?: bigint | number | null gdp?: bigint | number | null region?: string | null region_id?: bigint | number | null subregion?: string | null subregion_id?: bigint | number | null nationality?: string | null area_sq_km?: number | null postal_code_format?: string | null postal_code_regex?: string | null timezones?: string | null translations?: string | null latitude?: Decimal | DecimalJsLike | number | string | null longitude?: Decimal | DecimalJsLike | number | string | null emoji?: string | null emojiU?: string | null created_at?: Date | string | null updated_at?: Date | string flag?: number wikiDataId?: string | null cities?: citiesCreateNestedManyWithoutCountriesInput } export type countriesUncheckedCreateWithoutStatesInput = { id?: bigint | number name: string iso3?: string | null numeric_code?: string | null iso2?: string | null phonecode?: string | null capital?: string | null currency?: string | null currency_name?: string | null currency_symbol?: string | null tld?: string | null native?: string | null population?: bigint | number | null gdp?: bigint | number | null region?: string | null region_id?: bigint | number | null subregion?: string | null subregion_id?: bigint | number | null nationality?: string | null area_sq_km?: number | null postal_code_format?: string | null postal_code_regex?: string | null timezones?: string | null translations?: string | null latitude?: Decimal | DecimalJsLike | number | string | null longitude?: Decimal | DecimalJsLike | number | string | null emoji?: string | null emojiU?: string | null created_at?: Date | string | null updated_at?: Date | string flag?: number wikiDataId?: string | null cities?: citiesUncheckedCreateNestedManyWithoutCountriesInput } export type countriesCreateOrConnectWithoutStatesInput = { where: countriesWhereUniqueInput create: XOR } export type citiesUpsertWithWhereUniqueWithoutStatesInput = { where: citiesWhereUniqueInput update: XOR create: XOR } export type citiesUpdateWithWhereUniqueWithoutStatesInput = { where: citiesWhereUniqueInput data: XOR } export type citiesUpdateManyWithWhereWithoutStatesInput = { where: citiesScalarWhereInput data: XOR } export type countriesUpsertWithoutStatesInput = { update: XOR create: XOR where?: countriesWhereInput } export type countriesUpdateToOneWithWhereWithoutStatesInput = { where?: countriesWhereInput data: XOR } export type countriesUpdateWithoutStatesInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string iso3?: NullableStringFieldUpdateOperationsInput | string | null numeric_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null phonecode?: NullableStringFieldUpdateOperationsInput | string | null capital?: NullableStringFieldUpdateOperationsInput | string | null currency?: NullableStringFieldUpdateOperationsInput | string | null currency_name?: NullableStringFieldUpdateOperationsInput | string | null currency_symbol?: NullableStringFieldUpdateOperationsInput | string | null tld?: NullableStringFieldUpdateOperationsInput | string | null native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null gdp?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null region?: NullableStringFieldUpdateOperationsInput | string | null region_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null subregion?: NullableStringFieldUpdateOperationsInput | string | null subregion_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null nationality?: NullableStringFieldUpdateOperationsInput | string | null area_sq_km?: NullableFloatFieldUpdateOperationsInput | number | null postal_code_format?: NullableStringFieldUpdateOperationsInput | string | null postal_code_regex?: NullableStringFieldUpdateOperationsInput | string | null timezones?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null emoji?: NullableStringFieldUpdateOperationsInput | string | null emojiU?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null cities?: citiesUpdateManyWithoutCountriesNestedInput } export type countriesUncheckedUpdateWithoutStatesInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string iso3?: NullableStringFieldUpdateOperationsInput | string | null numeric_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null phonecode?: NullableStringFieldUpdateOperationsInput | string | null capital?: NullableStringFieldUpdateOperationsInput | string | null currency?: NullableStringFieldUpdateOperationsInput | string | null currency_name?: NullableStringFieldUpdateOperationsInput | string | null currency_symbol?: NullableStringFieldUpdateOperationsInput | string | null tld?: NullableStringFieldUpdateOperationsInput | string | null native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null gdp?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null region?: NullableStringFieldUpdateOperationsInput | string | null region_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null subregion?: NullableStringFieldUpdateOperationsInput | string | null subregion_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null nationality?: NullableStringFieldUpdateOperationsInput | string | null area_sq_km?: NullableFloatFieldUpdateOperationsInput | number | null postal_code_format?: NullableStringFieldUpdateOperationsInput | string | null postal_code_regex?: NullableStringFieldUpdateOperationsInput | string | null timezones?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null emoji?: NullableStringFieldUpdateOperationsInput | string | null emojiU?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null cities?: citiesUncheckedUpdateManyWithoutCountriesNestedInput } export type UnitCreateManyParentInput = { id?: string name: string description?: string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type UnitUpdateWithoutParentInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string children?: UnitUpdateManyWithoutParentNestedInput } export type UnitUncheckedUpdateWithoutParentInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string children?: UnitUncheckedUpdateManyWithoutParentNestedInput } export type UnitUncheckedUpdateManyWithoutParentInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null traits?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GroupMembershipCreateManyPersonInput = { id?: string groupId: string role: string } export type GroupMembershipUpdateWithoutPersonInput = { id?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string group?: GroupUpdateOneRequiredWithoutMembersNestedInput } export type GroupMembershipUncheckedUpdateWithoutPersonInput = { id?: StringFieldUpdateOperationsInput | string groupId?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string } export type GroupMembershipUncheckedUpdateManyWithoutPersonInput = { id?: StringFieldUpdateOperationsInput | string groupId?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string } export type GroupMembershipCreateManyGroupInput = { id?: string personId: string role: string } export type GroupMembershipUpdateWithoutGroupInput = { id?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string person?: PersonUpdateOneRequiredWithoutGroupMembershipsNestedInput } export type GroupMembershipUncheckedUpdateWithoutGroupInput = { id?: StringFieldUpdateOperationsInput | string personId?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string } export type GroupMembershipUncheckedUpdateManyWithoutGroupInput = { id?: StringFieldUpdateOperationsInput | string personId?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string } export type citiesCreateManyCountriesInput = { id?: bigint | number name: string state_id: bigint | number state_code: string country_code: string type?: string | null level?: number | null parent_id?: bigint | number | null latitude: Decimal | DecimalJsLike | number | string longitude: Decimal | DecimalJsLike | number | string native?: string | null population?: bigint | number | null timezone?: string | null translations?: string | null created_at?: Date | string updated_at?: Date | string flag?: number wikiDataId?: string | null } export type statesCreateManyCountriesInput = { id?: bigint | number name: string country_code: string fips_code?: string | null iso2?: string | null iso3166_2?: string | null type?: string | null level?: number | null parent_id?: bigint | number | null native?: string | null latitude?: Decimal | DecimalJsLike | number | string | null longitude?: Decimal | DecimalJsLike | number | string | null timezone?: string | null translations?: string | null created_at?: Date | string | null updated_at?: Date | string flag?: number wikiDataId?: string | null population?: string | null } export type citiesUpdateWithoutCountriesInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string state_code?: StringFieldUpdateOperationsInput | string country_code?: StringFieldUpdateOperationsInput | string type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null latitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string longitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null states?: statesUpdateOneRequiredWithoutCitiesNestedInput } export type citiesUncheckedUpdateWithoutCountriesInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string state_id?: BigIntFieldUpdateOperationsInput | bigint | number state_code?: StringFieldUpdateOperationsInput | string country_code?: StringFieldUpdateOperationsInput | string type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null latitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string longitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null } export type citiesUncheckedUpdateManyWithoutCountriesInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string state_id?: BigIntFieldUpdateOperationsInput | bigint | number state_code?: StringFieldUpdateOperationsInput | string country_code?: StringFieldUpdateOperationsInput | string type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null latitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string longitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null } export type statesUpdateWithoutCountriesInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string country_code?: StringFieldUpdateOperationsInput | string fips_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null iso3166_2?: NullableStringFieldUpdateOperationsInput | string | null type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null native?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableStringFieldUpdateOperationsInput | string | null cities?: citiesUpdateManyWithoutStatesNestedInput } export type statesUncheckedUpdateWithoutCountriesInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string country_code?: StringFieldUpdateOperationsInput | string fips_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null iso3166_2?: NullableStringFieldUpdateOperationsInput | string | null type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null native?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableStringFieldUpdateOperationsInput | string | null cities?: citiesUncheckedUpdateManyWithoutStatesNestedInput } export type statesUncheckedUpdateManyWithoutCountriesInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string country_code?: StringFieldUpdateOperationsInput | string fips_code?: NullableStringFieldUpdateOperationsInput | string | null iso2?: NullableStringFieldUpdateOperationsInput | string | null iso3166_2?: NullableStringFieldUpdateOperationsInput | string | null type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null native?: NullableStringFieldUpdateOperationsInput | string | null latitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null longitude?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableStringFieldUpdateOperationsInput | string | null } export type citiesCreateManyStatesInput = { id?: bigint | number name: string state_code: string country_id: bigint | number country_code: string type?: string | null level?: number | null parent_id?: bigint | number | null latitude: Decimal | DecimalJsLike | number | string longitude: Decimal | DecimalJsLike | number | string native?: string | null population?: bigint | number | null timezone?: string | null translations?: string | null created_at?: Date | string updated_at?: Date | string flag?: number wikiDataId?: string | null } export type citiesUpdateWithoutStatesInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string state_code?: StringFieldUpdateOperationsInput | string country_code?: StringFieldUpdateOperationsInput | string type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null latitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string longitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null countries?: countriesUpdateOneRequiredWithoutCitiesNestedInput } export type citiesUncheckedUpdateWithoutStatesInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string state_code?: StringFieldUpdateOperationsInput | string country_id?: BigIntFieldUpdateOperationsInput | bigint | number country_code?: StringFieldUpdateOperationsInput | string type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null latitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string longitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null } export type citiesUncheckedUpdateManyWithoutStatesInput = { id?: BigIntFieldUpdateOperationsInput | bigint | number name?: StringFieldUpdateOperationsInput | string state_code?: StringFieldUpdateOperationsInput | string country_id?: BigIntFieldUpdateOperationsInput | bigint | number country_code?: StringFieldUpdateOperationsInput | string type?: NullableStringFieldUpdateOperationsInput | string | null level?: NullableIntFieldUpdateOperationsInput | number | null parent_id?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null latitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string longitude?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string native?: NullableStringFieldUpdateOperationsInput | string | null population?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null timezone?: NullableStringFieldUpdateOperationsInput | string | null translations?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string flag?: IntFieldUpdateOperationsInput | number wikiDataId?: NullableStringFieldUpdateOperationsInput | string | null } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }