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

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise> $transaction(fn: (prisma: Omit) => $Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, $Utils.Call, { extArgs: ExtArgs }>> /** * `prisma.user`: Exposes CRUD operations for the **User** model. * Example usage: * ```ts * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` */ get user(): Prisma.UserDelegate; /** * `prisma.detail`: Exposes CRUD operations for the **Detail** model. * Example usage: * ```ts * // Fetch zero or more Details * const details = await prisma.detail.findMany() * ``` */ get detail(): Prisma.DetailDelegate; /** * `prisma.kecamatan`: Exposes CRUD operations for the **Kecamatan** model. * Example usage: * ```ts * // Fetch zero or more Kecamatans * const kecamatans = await prisma.kecamatan.findMany() * ``` */ get kecamatan(): Prisma.KecamatanDelegate; /** * `prisma.penduduk`: Exposes CRUD operations for the **Penduduk** model. * Example usage: * ```ts * // Fetch zero or more Penduduks * const penduduks = await prisma.penduduk.findMany() * ``` */ get penduduk(): Prisma.PendudukDelegate; /** * `prisma.komoditas`: Exposes CRUD operations for the **Komoditas** model. * Example usage: * ```ts * // Fetch zero or more Komoditas * const komoditas = await prisma.komoditas.findMany() * ``` */ get komoditas(): Prisma.KomoditasDelegate; /** * `prisma.hasilPanen`: Exposes CRUD operations for the **HasilPanen** model. * Example usage: * ```ts * // Fetch zero or more HasilPanens * const hasilPanens = await prisma.hasilPanen.findMany() * ``` */ get hasilPanen(): Prisma.HasilPanenDelegate; /** * `prisma.prediksiPanen`: Exposes CRUD operations for the **PrediksiPanen** model. * Example usage: * ```ts * // Fetch zero or more PrediksiPanens * const prediksiPanens = await prisma.prediksiPanen.findMany() * ``` */ get prediksiPanen(): Prisma.PrediksiPanenDelegate; } 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.6.0 * Query Engine version: f676762280b54cd07c770017ed3711ddde35f37a */ export type PrismaVersion = { client: string } export const prismaVersion: PrismaVersion /** * Utility Types */ export import JsonObject = runtime.JsonObject export import JsonArray = runtime.JsonArray export import JsonValue = runtime.JsonValue export import InputJsonObject = runtime.InputJsonObject export import InputJsonArray = runtime.InputJsonArray export import InputJsonValue = runtime.InputJsonValue /** * Types of the values used to represent different kinds of `null` values when working with JSON fields. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ namespace NullTypes { /** * Type of `Prisma.DbNull`. * * You cannot use other instances of this class. Please use the `Prisma.DbNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class DbNull { private DbNull: never private constructor() } /** * Type of `Prisma.JsonNull`. * * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class JsonNull { private JsonNull: never private constructor() } /** * Type of `Prisma.AnyNull`. * * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class AnyNull { private AnyNull: never private constructor() } } /** * Helper for filtering JSON entries that have `null` on the database (empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const DbNull: NullTypes.DbNull /** * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const JsonNull: NullTypes.JsonNull /** * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const AnyNull: NullTypes.AnyNull type SelectAndInclude = { select: any include: any } type SelectAndOmit = { select: any omit: any } /** * Get the type of the value, that the Promise holds. */ export type PromiseType> = T extends PromiseLike ? U : T; /** * Get the return type of a function which returns a Promise. */ export type PromiseReturnType $Utils.JsPromise> = PromiseType> /** * From T, pick a set of properties whose keys are in the union K */ type Prisma__Pick = { [P in K]: T[P]; }; export type Enumerable = T | Array; export type RequiredKeys = { [K in keyof T]-?: {} extends Prisma__Pick ? never : K }[keyof T] export type TruthyKeys = keyof { [K in keyof T as T[K] extends false | undefined | null ? never : K]: K } export type TrueKeys = TruthyKeys>> /** * Subset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection */ export type Subset = { [key in keyof T]: key extends keyof U ? T[key] : never; }; /** * SelectSubset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. * Additionally, it validates, if both select and include are present. If the case, it errors. */ export type SelectSubset = { [key in keyof T]: key extends keyof U ? T[key] : never } & (T extends SelectAndInclude ? 'Please either choose `select` or `include`.' : T extends SelectAndOmit ? 'Please either choose `select` or `omit`.' : {}) /** * Subset + Intersection * @desc From `T` pick properties that exist in `U` and intersect `K` */ export type SubsetIntersection = { [key in keyof T]: key extends keyof U ? T[key] : never } & K type Without = { [P in Exclude]?: never }; /** * XOR is needed to have a real mutually exclusive union type * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types */ type XOR = T extends object ? U extends object ? (Without & U) | (Without & T) : U : T /** * Is T a Record? */ type IsObject = T extends Array ? False : T extends Date ? False : T extends Uint8Array ? False : T extends BigInt ? False : T extends object ? True : False /** * If it's T[], return T */ export type UnEnumerate = T extends Array ? U : T /** * From ts-toolbelt */ type __Either = Omit & { // Merge all but K [P in K]: Prisma__Pick // With K possibilities }[K] type EitherStrict = Strict<__Either> type EitherLoose = ComputeRaw<__Either> type _Either< O extends object, K extends Key, strict extends Boolean > = { 1: EitherStrict 0: EitherLoose }[strict] type Either< O extends object, K extends Key, strict extends Boolean = 1 > = O extends unknown ? _Either : never export type Union = any type PatchUndefined = { [K in keyof O]: O[K] extends undefined ? At : O[K] } & {} /** Helper Types for "Merge" **/ export type IntersectOf = ( U extends unknown ? (k: U) => void : never ) extends (k: infer I) => void ? I : never export type Overwrite = { [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; } & {}; type _Merge = IntersectOf; }>>; type Key = string | number | symbol; type AtBasic = K extends keyof O ? O[K] : never; type AtStrict = O[K & keyof O]; type AtLoose = O extends unknown ? AtStrict : never; export type At = { 1: AtStrict; 0: AtLoose; }[strict]; export type ComputeRaw = A extends Function ? A : { [K in keyof A]: A[K]; } & {}; export type OptionalFlat = { [K in keyof O]?: O[K]; } & {}; type _Record = { [P in K]: T; }; // cause typescript not to expand types and preserve names type NoExpand = T extends unknown ? T : never; // this type assumes the passed object is entirely optional type AtLeast = NoExpand< O extends unknown ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) | {[P in keyof O as P extends K ? 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: { User: 'User', Detail: 'Detail', Kecamatan: 'Kecamatan', Penduduk: 'Penduduk', Komoditas: 'Komoditas', HasilPanen: 'HasilPanen', PrediksiPanen: 'PrediksiPanen' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type Datasources = { database?: Datasource } interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record> { returns: Prisma.TypeMap } export type TypeMap = { globalOmitOptions: { omit: GlobalOmitOptions } meta: { modelProps: "user" | "detail" | "kecamatan" | "penduduk" | "komoditas" | "hasilPanen" | "prediksiPanen" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { User: { payload: Prisma.$UserPayload fields: Prisma.UserFieldRefs operations: { findUnique: { args: Prisma.UserFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UserFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UserFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UserFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UserFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UserCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UserCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.UserCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.UserDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UserUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UserDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UserUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.UserUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.UserUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UserAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UserGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UserCountArgs result: $Utils.Optional | number } } } Detail: { payload: Prisma.$DetailPayload fields: Prisma.DetailFieldRefs operations: { findUnique: { args: Prisma.DetailFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.DetailFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.DetailFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.DetailFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.DetailFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.DetailCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.DetailCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.DetailCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.DetailDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.DetailUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.DetailDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.DetailUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.DetailUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.DetailUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.DetailAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.DetailGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.DetailCountArgs result: $Utils.Optional | number } } } Kecamatan: { payload: Prisma.$KecamatanPayload fields: Prisma.KecamatanFieldRefs operations: { findUnique: { args: Prisma.KecamatanFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.KecamatanFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.KecamatanFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.KecamatanFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.KecamatanFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.KecamatanCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.KecamatanCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.KecamatanCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.KecamatanDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.KecamatanUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.KecamatanDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.KecamatanUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.KecamatanUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.KecamatanUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.KecamatanAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.KecamatanGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.KecamatanCountArgs result: $Utils.Optional | number } } } Penduduk: { payload: Prisma.$PendudukPayload fields: Prisma.PendudukFieldRefs operations: { findUnique: { args: Prisma.PendudukFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PendudukFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PendudukFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PendudukFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PendudukFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PendudukCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PendudukCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PendudukCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PendudukDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PendudukUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PendudukDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PendudukUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.PendudukUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.PendudukUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PendudukAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PendudukGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PendudukCountArgs result: $Utils.Optional | number } } } Komoditas: { payload: Prisma.$KomoditasPayload fields: Prisma.KomoditasFieldRefs operations: { findUnique: { args: Prisma.KomoditasFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.KomoditasFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.KomoditasFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.KomoditasFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.KomoditasFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.KomoditasCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.KomoditasCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.KomoditasCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.KomoditasDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.KomoditasUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.KomoditasDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.KomoditasUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.KomoditasUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.KomoditasUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.KomoditasAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.KomoditasGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.KomoditasCountArgs result: $Utils.Optional | number } } } HasilPanen: { payload: Prisma.$HasilPanenPayload fields: Prisma.HasilPanenFieldRefs operations: { findUnique: { args: Prisma.HasilPanenFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.HasilPanenFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.HasilPanenFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.HasilPanenFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.HasilPanenFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.HasilPanenCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.HasilPanenCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.HasilPanenCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.HasilPanenDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.HasilPanenUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.HasilPanenDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.HasilPanenUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.HasilPanenUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.HasilPanenUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.HasilPanenAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.HasilPanenGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.HasilPanenCountArgs result: $Utils.Optional | number } } } PrediksiPanen: { payload: Prisma.$PrediksiPanenPayload fields: Prisma.PrediksiPanenFieldRefs operations: { findUnique: { args: Prisma.PrediksiPanenFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PrediksiPanenFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PrediksiPanenFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PrediksiPanenFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PrediksiPanenFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PrediksiPanenCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PrediksiPanenCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PrediksiPanenCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PrediksiPanenDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PrediksiPanenUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PrediksiPanenDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PrediksiPanenUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.PrediksiPanenUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.PrediksiPanenUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PrediksiPanenAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PrediksiPanenGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PrediksiPanenCountArgs result: $Utils.Optional | number } } } } } & { other: { payload: any operations: { $executeRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $executeRawUnsafe: { args: [query: string, ...values: any[]], result: any } $queryRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $queryRawUnsafe: { args: [query: string, ...values: any[]], result: any } } } } export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs> export type DefaultPrismaClient = PrismaClient export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' export interface PrismaClientOptions { /** * Overwrites the datasource url from your schema.prisma file */ datasources?: Datasources /** * Overwrites the datasource url from your schema.prisma file */ datasourceUrl?: string /** * @default "colorless" */ errorFormat?: ErrorFormat /** * @example * ``` * // Defaults to stdout * log: ['query', 'info', 'warn', 'error'] * * // Emit as events * log: [ * { emit: 'stdout', level: 'query' }, * { emit: 'stdout', level: 'info' }, * { emit: 'stdout', level: 'warn' } * { emit: 'stdout', level: 'error' } * ] * ``` * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). */ log?: (LogLevel | LogDefinition)[] /** * The default values for transactionOptions * maxWait ?= 2000 * timeout ?= 5000 */ transactionOptions?: { maxWait?: number timeout?: number isolationLevel?: Prisma.TransactionIsolationLevel } /** * Global configuration for omitting model fields by default. * * @example * ``` * const prisma = new PrismaClient({ * omit: { * user: { * password: true * } * } * }) * ``` */ omit?: Prisma.GlobalOmitConfig } export type GlobalOmitConfig = { user?: UserOmit detail?: DetailOmit kecamatan?: KecamatanOmit penduduk?: PendudukOmit komoditas?: KomoditasOmit hasilPanen?: HasilPanenOmit prediksiPanen?: PrediksiPanenOmit } /* Types for Logging */ export type LogLevel = 'info' | 'query' | 'warn' | 'error' export type LogDefinition = { level: LogLevel emit: 'stdout' | 'event' } export type GetLogType = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never export type GetEvents = T extends Array ? GetLogType | GetLogType | GetLogType | GetLogType : never export type QueryEvent = { timestamp: Date query: string params: string duration: number target: string } export type LogEvent = { timestamp: Date message: string target: string } /* End Types for Logging */ export type PrismaAction = | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy' /** * These options are being passed into the middleware as "params" */ export type MiddlewareParams = { model?: ModelName action: PrismaAction args: any dataPath: string[] runInTransaction: boolean } /** * The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation */ export type Middleware = ( params: MiddlewareParams, next: (params: MiddlewareParams) => $Utils.JsPromise, ) => $Utils.JsPromise // tested in getLogLevel.test.ts export function getLogLevel(log: Array): LogLevel | undefined; /** * `PrismaClient` proxy available in interactive transactions. */ export type TransactionClient = Omit export type Datasource = { url?: string } /** * Count Types */ /** * Count Type KecamatanCountOutputType */ export type KecamatanCountOutputType = { penduduk: number hasil_panen: number prediksi_panen: number } export type KecamatanCountOutputTypeSelect = { penduduk?: boolean | KecamatanCountOutputTypeCountPendudukArgs hasil_panen?: boolean | KecamatanCountOutputTypeCountHasil_panenArgs prediksi_panen?: boolean | KecamatanCountOutputTypeCountPrediksi_panenArgs } // Custom InputTypes /** * KecamatanCountOutputType without action */ export type KecamatanCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the KecamatanCountOutputType */ select?: KecamatanCountOutputTypeSelect | null } /** * KecamatanCountOutputType without action */ export type KecamatanCountOutputTypeCountPendudukArgs = { where?: PendudukWhereInput } /** * KecamatanCountOutputType without action */ export type KecamatanCountOutputTypeCountHasil_panenArgs = { where?: HasilPanenWhereInput } /** * KecamatanCountOutputType without action */ export type KecamatanCountOutputTypeCountPrediksi_panenArgs = { where?: PrediksiPanenWhereInput } /** * Count Type KomoditasCountOutputType */ export type KomoditasCountOutputType = { kecamatan: number hasil_panen: number prediksi_panen: number } export type KomoditasCountOutputTypeSelect = { kecamatan?: boolean | KomoditasCountOutputTypeCountKecamatanArgs hasil_panen?: boolean | KomoditasCountOutputTypeCountHasil_panenArgs prediksi_panen?: boolean | KomoditasCountOutputTypeCountPrediksi_panenArgs } // Custom InputTypes /** * KomoditasCountOutputType without action */ export type KomoditasCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the KomoditasCountOutputType */ select?: KomoditasCountOutputTypeSelect | null } /** * KomoditasCountOutputType without action */ export type KomoditasCountOutputTypeCountKecamatanArgs = { where?: KecamatanWhereInput } /** * KomoditasCountOutputType without action */ export type KomoditasCountOutputTypeCountHasil_panenArgs = { where?: HasilPanenWhereInput } /** * KomoditasCountOutputType without action */ export type KomoditasCountOutputTypeCountPrediksi_panenArgs = { where?: PrediksiPanenWhereInput } /** * Models */ /** * Model User */ export type AggregateUser = { _count: UserCountAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } export type UserMinAggregateOutputType = { id: string | null name: string | null email: string | null password: string | null createdAt: Date | null updatedAt: Date | null } export type UserMaxAggregateOutputType = { id: string | null name: string | null email: string | null password: string | null createdAt: Date | null updatedAt: Date | null } export type UserCountAggregateOutputType = { id: number name: number email: number password: number createdAt: number updatedAt: number _all: number } export type UserMinAggregateInputType = { id?: true name?: true email?: true password?: true createdAt?: true updatedAt?: true } export type UserMaxAggregateInputType = { id?: true name?: true email?: true password?: true createdAt?: true updatedAt?: true } export type UserCountAggregateInputType = { id?: true name?: true email?: true password?: true createdAt?: true updatedAt?: true _all?: true } export type UserAggregateArgs = { /** * Filter which User to aggregate. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users 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` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Users **/ _count?: true | UserCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserMaxAggregateInputType } export type GetUserAggregateType = { [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type UserGroupByArgs = { where?: UserWhereInput orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[] by: UserScalarFieldEnum[] | UserScalarFieldEnum having?: UserScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserCountAggregateInputType | true _min?: UserMinAggregateInputType _max?: UserMaxAggregateInputType } export type UserGroupByOutputType = { id: string name: string | null email: string | null password: string createdAt: Date updatedAt: Date _count: UserCountAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } type GetUserGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UserSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean email?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean detail?: boolean | User$detailArgs }, ExtArgs["result"]["user"]> export type UserSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean email?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["user"]> export type UserSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean email?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["user"]> export type UserSelectScalar = { id?: boolean name?: boolean email?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean } export type UserOmit = $Extensions.GetOmit<"id" | "name" | "email" | "password" | "createdAt" | "updatedAt", ExtArgs["result"]["user"]> export type UserInclude = { detail?: boolean | User$detailArgs } export type UserIncludeCreateManyAndReturn = {} export type UserIncludeUpdateManyAndReturn = {} export type $UserPayload = { name: "User" objects: { detail: Prisma.$DetailPayload | null } scalars: $Extensions.GetPayloadResult<{ id: string name: string | null email: string | null password: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["user"]> composites: {} } type UserGetPayload = $Result.GetResult type UserCountArgs = Omit & { select?: UserCountAggregateInputType | true } export interface UserDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } /** * Find zero or one User that matches the filter. * @param {UserFindUniqueArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one User that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first User 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 {UserFindFirstArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first User 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 {UserFindFirstOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Users 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 {UserFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Users * const users = await prisma.user.findMany() * * // Get first 10 Users * const users = await prisma.user.findMany({ take: 10 }) * * // Only select the `id` * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a User. * @param {UserCreateArgs} args - Arguments to create a User. * @example * // Create one User * const User = await prisma.user.create({ * data: { * // ... data to create a User * } * }) * */ create(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Users. * @param {UserCreateManyArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Users and returns the data saved in the database. * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Users and only return the `id` * const userWithIdOnly = await prisma.user.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 User. * @param {UserDeleteArgs} args - Arguments to delete one User. * @example * // Delete one User * const User = await prisma.user.delete({ * where: { * // ... filter to delete one User * } * }) * */ delete(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one User. * @param {UserUpdateArgs} args - Arguments to update one User. * @example * // Update one User * const user = await prisma.user.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Users. * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. * @example * // Delete a few Users * const { count } = await prisma.user.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Users * const user = await prisma.user.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Users and returns the data updated in the database. * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users. * @example * // Update many Users * const user = await prisma.user.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Users and only return the `id` * const userWithIdOnly = await prisma.user.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 User. * @param {UserUpsertArgs} args - Arguments to update or create a User. * @example * // Update or create a User * const user = await prisma.user.upsert({ * create: { * // ... data to create a User * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the User we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserCountArgs} args - Arguments to filter Users to count. * @example * // Count the number of Users * const count = await prisma.user.count({ * where: { * // ... the filter for the Users 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 User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserAggregateArgs} 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 User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserGroupByArgs} 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 UserGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UserGroupByArgs['orderBy'] } : { orderBy?: UserGroupByArgs['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 ? GetUserGroupByPayload : Prisma.PrismaPromise /** * Fields of the User model */ readonly fields: UserFieldRefs; } /** * The delegate class that acts as a "Promise-like" for User. * 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__UserClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" detail = {}>(args?: Subset>): Prisma__DetailClient<$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 User model */ interface UserFieldRefs { readonly id: FieldRef<"User", 'String'> readonly name: FieldRef<"User", 'String'> readonly email: FieldRef<"User", 'String'> readonly password: FieldRef<"User", 'String'> readonly createdAt: FieldRef<"User", 'DateTime'> readonly updatedAt: FieldRef<"User", 'DateTime'> } // Custom InputTypes /** * User findUnique */ export type UserFindUniqueArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findUniqueOrThrow */ export type UserFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findFirst */ export type UserFindFirstArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users 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` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findFirstOrThrow */ export type UserFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users 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` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findMany */ export type UserFindManyArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which Users to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users 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` Users. */ skip?: number distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User create */ export type UserCreateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to create a User. */ data: XOR } /** * User createMany */ export type UserCreateManyArgs = { /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User createManyAndReturn */ export type UserCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectCreateManyAndReturn | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User update */ export type UserUpdateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to update a User. */ data: XOR /** * Choose, which User to update. */ where: UserWhereUniqueInput } /** * User updateMany */ export type UserUpdateManyArgs = { /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User updateManyAndReturn */ export type UserUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectUpdateManyAndReturn | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User upsert */ export type UserUpsertArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The filter to search for the User to update in case it exists. */ where: UserWhereUniqueInput /** * In case the User found by the `where` argument doesn't exist, create a new User with this data. */ create: XOR /** * In case the User was found with the provided `where` argument, update it with this data. */ update: XOR } /** * User delete */ export type UserDeleteArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter which User to delete. */ where: UserWhereUniqueInput } /** * User deleteMany */ export type UserDeleteManyArgs = { /** * Filter which Users to delete */ where?: UserWhereInput /** * Limit how many Users to delete. */ limit?: number } /** * User.detail */ export type User$detailArgs = { /** * Select specific fields to fetch from the Detail */ select?: DetailSelect | null /** * Omit specific fields from the Detail */ omit?: DetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: DetailInclude | null where?: DetailWhereInput } /** * User without action */ export type UserDefaultArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null } /** * Model Detail */ export type AggregateDetail = { _count: DetailCountAggregateOutputType | null _min: DetailMinAggregateOutputType | null _max: DetailMaxAggregateOutputType | null } export type DetailMinAggregateOutputType = { tax_id: string | null phone: string | null bio: string | null city: string | null county: string | null post_kode: string | null photo_profile: string | null } export type DetailMaxAggregateOutputType = { tax_id: string | null phone: string | null bio: string | null city: string | null county: string | null post_kode: string | null photo_profile: string | null } export type DetailCountAggregateOutputType = { tax_id: number phone: number bio: number city: number county: number post_kode: number photo_profile: number _all: number } export type DetailMinAggregateInputType = { tax_id?: true phone?: true bio?: true city?: true county?: true post_kode?: true photo_profile?: true } export type DetailMaxAggregateInputType = { tax_id?: true phone?: true bio?: true city?: true county?: true post_kode?: true photo_profile?: true } export type DetailCountAggregateInputType = { tax_id?: true phone?: true bio?: true city?: true county?: true post_kode?: true photo_profile?: true _all?: true } export type DetailAggregateArgs = { /** * Filter which Detail to aggregate. */ where?: DetailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Details to fetch. */ orderBy?: DetailOrderByWithRelationInput | DetailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: DetailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Details 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` Details. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Details **/ _count?: true | DetailCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DetailMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DetailMaxAggregateInputType } export type GetDetailAggregateType = { [P in keyof T & keyof AggregateDetail]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type DetailGroupByArgs = { where?: DetailWhereInput orderBy?: DetailOrderByWithAggregationInput | DetailOrderByWithAggregationInput[] by: DetailScalarFieldEnum[] | DetailScalarFieldEnum having?: DetailScalarWhereWithAggregatesInput take?: number skip?: number _count?: DetailCountAggregateInputType | true _min?: DetailMinAggregateInputType _max?: DetailMaxAggregateInputType } export type DetailGroupByOutputType = { tax_id: string phone: string bio: string city: string county: string post_kode: string photo_profile: string _count: DetailCountAggregateOutputType | null _min: DetailMinAggregateOutputType | null _max: DetailMaxAggregateOutputType | null } type GetDetailGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof DetailGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type DetailSelect = $Extensions.GetSelect<{ tax_id?: boolean phone?: boolean bio?: boolean city?: boolean county?: boolean post_kode?: boolean photo_profile?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["detail"]> export type DetailSelectCreateManyAndReturn = $Extensions.GetSelect<{ tax_id?: boolean phone?: boolean bio?: boolean city?: boolean county?: boolean post_kode?: boolean photo_profile?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["detail"]> export type DetailSelectUpdateManyAndReturn = $Extensions.GetSelect<{ tax_id?: boolean phone?: boolean bio?: boolean city?: boolean county?: boolean post_kode?: boolean photo_profile?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["detail"]> export type DetailSelectScalar = { tax_id?: boolean phone?: boolean bio?: boolean city?: boolean county?: boolean post_kode?: boolean photo_profile?: boolean } export type DetailOmit = $Extensions.GetOmit<"tax_id" | "phone" | "bio" | "city" | "county" | "post_kode" | "photo_profile", ExtArgs["result"]["detail"]> export type DetailInclude = { user?: boolean | UserDefaultArgs } export type DetailIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type DetailIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $DetailPayload = { name: "Detail" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ tax_id: string phone: string bio: string city: string county: string post_kode: string photo_profile: string }, ExtArgs["result"]["detail"]> composites: {} } type DetailGetPayload = $Result.GetResult type DetailCountArgs = Omit & { select?: DetailCountAggregateInputType | true } export interface DetailDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Detail'], meta: { name: 'Detail' } } /** * Find zero or one Detail that matches the filter. * @param {DetailFindUniqueArgs} args - Arguments to find a Detail * @example * // Get one Detail * const detail = await prisma.detail.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__DetailClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Detail that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {DetailFindUniqueOrThrowArgs} args - Arguments to find a Detail * @example * // Get one Detail * const detail = await prisma.detail.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__DetailClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Detail 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 {DetailFindFirstArgs} args - Arguments to find a Detail * @example * // Get one Detail * const detail = await prisma.detail.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__DetailClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Detail 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 {DetailFindFirstOrThrowArgs} args - Arguments to find a Detail * @example * // Get one Detail * const detail = await prisma.detail.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__DetailClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Details 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 {DetailFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Details * const details = await prisma.detail.findMany() * * // Get first 10 Details * const details = await prisma.detail.findMany({ take: 10 }) * * // Only select the `tax_id` * const detailWithTax_idOnly = await prisma.detail.findMany({ select: { tax_id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Detail. * @param {DetailCreateArgs} args - Arguments to create a Detail. * @example * // Create one Detail * const Detail = await prisma.detail.create({ * data: { * // ... data to create a Detail * } * }) * */ create(args: SelectSubset>): Prisma__DetailClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Details. * @param {DetailCreateManyArgs} args - Arguments to create many Details. * @example * // Create many Details * const detail = await prisma.detail.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Details and returns the data saved in the database. * @param {DetailCreateManyAndReturnArgs} args - Arguments to create many Details. * @example * // Create many Details * const detail = await prisma.detail.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Details and only return the `tax_id` * const detailWithTax_idOnly = await prisma.detail.createManyAndReturn({ * select: { tax_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 Detail. * @param {DetailDeleteArgs} args - Arguments to delete one Detail. * @example * // Delete one Detail * const Detail = await prisma.detail.delete({ * where: { * // ... filter to delete one Detail * } * }) * */ delete(args: SelectSubset>): Prisma__DetailClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Detail. * @param {DetailUpdateArgs} args - Arguments to update one Detail. * @example * // Update one Detail * const detail = await prisma.detail.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__DetailClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Details. * @param {DetailDeleteManyArgs} args - Arguments to filter Details to delete. * @example * // Delete a few Details * const { count } = await prisma.detail.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Details. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DetailUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Details * const detail = await prisma.detail.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Details and returns the data updated in the database. * @param {DetailUpdateManyAndReturnArgs} args - Arguments to update many Details. * @example * // Update many Details * const detail = await prisma.detail.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Details and only return the `tax_id` * const detailWithTax_idOnly = await prisma.detail.updateManyAndReturn({ * select: { tax_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 Detail. * @param {DetailUpsertArgs} args - Arguments to update or create a Detail. * @example * // Update or create a Detail * const detail = await prisma.detail.upsert({ * create: { * // ... data to create a Detail * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Detail we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__DetailClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Details. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DetailCountArgs} args - Arguments to filter Details to count. * @example * // Count the number of Details * const count = await prisma.detail.count({ * where: { * // ... the filter for the Details 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 Detail. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DetailAggregateArgs} 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 Detail. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DetailGroupByArgs} 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 DetailGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: DetailGroupByArgs['orderBy'] } : { orderBy?: DetailGroupByArgs['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 ? GetDetailGroupByPayload : Prisma.PrismaPromise /** * Fields of the Detail model */ readonly fields: DetailFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Detail. * 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__DetailClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$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 Detail model */ interface DetailFieldRefs { readonly tax_id: FieldRef<"Detail", 'String'> readonly phone: FieldRef<"Detail", 'String'> readonly bio: FieldRef<"Detail", 'String'> readonly city: FieldRef<"Detail", 'String'> readonly county: FieldRef<"Detail", 'String'> readonly post_kode: FieldRef<"Detail", 'String'> readonly photo_profile: FieldRef<"Detail", 'String'> } // Custom InputTypes /** * Detail findUnique */ export type DetailFindUniqueArgs = { /** * Select specific fields to fetch from the Detail */ select?: DetailSelect | null /** * Omit specific fields from the Detail */ omit?: DetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: DetailInclude | null /** * Filter, which Detail to fetch. */ where: DetailWhereUniqueInput } /** * Detail findUniqueOrThrow */ export type DetailFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Detail */ select?: DetailSelect | null /** * Omit specific fields from the Detail */ omit?: DetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: DetailInclude | null /** * Filter, which Detail to fetch. */ where: DetailWhereUniqueInput } /** * Detail findFirst */ export type DetailFindFirstArgs = { /** * Select specific fields to fetch from the Detail */ select?: DetailSelect | null /** * Omit specific fields from the Detail */ omit?: DetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: DetailInclude | null /** * Filter, which Detail to fetch. */ where?: DetailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Details to fetch. */ orderBy?: DetailOrderByWithRelationInput | DetailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Details. */ cursor?: DetailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Details 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` Details. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Details. */ distinct?: DetailScalarFieldEnum | DetailScalarFieldEnum[] } /** * Detail findFirstOrThrow */ export type DetailFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Detail */ select?: DetailSelect | null /** * Omit specific fields from the Detail */ omit?: DetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: DetailInclude | null /** * Filter, which Detail to fetch. */ where?: DetailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Details to fetch. */ orderBy?: DetailOrderByWithRelationInput | DetailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Details. */ cursor?: DetailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Details 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` Details. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Details. */ distinct?: DetailScalarFieldEnum | DetailScalarFieldEnum[] } /** * Detail findMany */ export type DetailFindManyArgs = { /** * Select specific fields to fetch from the Detail */ select?: DetailSelect | null /** * Omit specific fields from the Detail */ omit?: DetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: DetailInclude | null /** * Filter, which Details to fetch. */ where?: DetailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Details to fetch. */ orderBy?: DetailOrderByWithRelationInput | DetailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Details. */ cursor?: DetailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Details 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` Details. */ skip?: number distinct?: DetailScalarFieldEnum | DetailScalarFieldEnum[] } /** * Detail create */ export type DetailCreateArgs = { /** * Select specific fields to fetch from the Detail */ select?: DetailSelect | null /** * Omit specific fields from the Detail */ omit?: DetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: DetailInclude | null /** * The data needed to create a Detail. */ data: XOR } /** * Detail createMany */ export type DetailCreateManyArgs = { /** * The data used to create many Details. */ data: DetailCreateManyInput | DetailCreateManyInput[] skipDuplicates?: boolean } /** * Detail createManyAndReturn */ export type DetailCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Detail */ select?: DetailSelectCreateManyAndReturn | null /** * Omit specific fields from the Detail */ omit?: DetailOmit | null /** * The data used to create many Details. */ data: DetailCreateManyInput | DetailCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: DetailIncludeCreateManyAndReturn | null } /** * Detail update */ export type DetailUpdateArgs = { /** * Select specific fields to fetch from the Detail */ select?: DetailSelect | null /** * Omit specific fields from the Detail */ omit?: DetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: DetailInclude | null /** * The data needed to update a Detail. */ data: XOR /** * Choose, which Detail to update. */ where: DetailWhereUniqueInput } /** * Detail updateMany */ export type DetailUpdateManyArgs = { /** * The data used to update Details. */ data: XOR /** * Filter which Details to update */ where?: DetailWhereInput /** * Limit how many Details to update. */ limit?: number } /** * Detail updateManyAndReturn */ export type DetailUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Detail */ select?: DetailSelectUpdateManyAndReturn | null /** * Omit specific fields from the Detail */ omit?: DetailOmit | null /** * The data used to update Details. */ data: XOR /** * Filter which Details to update */ where?: DetailWhereInput /** * Limit how many Details to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: DetailIncludeUpdateManyAndReturn | null } /** * Detail upsert */ export type DetailUpsertArgs = { /** * Select specific fields to fetch from the Detail */ select?: DetailSelect | null /** * Omit specific fields from the Detail */ omit?: DetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: DetailInclude | null /** * The filter to search for the Detail to update in case it exists. */ where: DetailWhereUniqueInput /** * In case the Detail found by the `where` argument doesn't exist, create a new Detail with this data. */ create: XOR /** * In case the Detail was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Detail delete */ export type DetailDeleteArgs = { /** * Select specific fields to fetch from the Detail */ select?: DetailSelect | null /** * Omit specific fields from the Detail */ omit?: DetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: DetailInclude | null /** * Filter which Detail to delete. */ where: DetailWhereUniqueInput } /** * Detail deleteMany */ export type DetailDeleteManyArgs = { /** * Filter which Details to delete */ where?: DetailWhereInput /** * Limit how many Details to delete. */ limit?: number } /** * Detail without action */ export type DetailDefaultArgs = { /** * Select specific fields to fetch from the Detail */ select?: DetailSelect | null /** * Omit specific fields from the Detail */ omit?: DetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: DetailInclude | null } /** * Model Kecamatan */ export type AggregateKecamatan = { _count: KecamatanCountAggregateOutputType | null _avg: KecamatanAvgAggregateOutputType | null _sum: KecamatanSumAggregateOutputType | null _min: KecamatanMinAggregateOutputType | null _max: KecamatanMaxAggregateOutputType | null } export type KecamatanAvgAggregateOutputType = { id_kecamatan: number | null id_komoditas: number | null area: number | null posisi_x: number | null posisi_y: number | null } export type KecamatanSumAggregateOutputType = { id_kecamatan: number | null id_komoditas: number | null area: number | null posisi_x: number | null posisi_y: number | null } export type KecamatanMinAggregateOutputType = { id_kecamatan: number | null id_komoditas: number | null nama_kecamatan: string | null deskripsi: string | null gambar: string | null area: number | null posisi_x: number | null posisi_y: number | null } export type KecamatanMaxAggregateOutputType = { id_kecamatan: number | null id_komoditas: number | null nama_kecamatan: string | null deskripsi: string | null gambar: string | null area: number | null posisi_x: number | null posisi_y: number | null } export type KecamatanCountAggregateOutputType = { id_kecamatan: number id_komoditas: number nama_kecamatan: number deskripsi: number gambar: number area: number posisi_x: number posisi_y: number _all: number } export type KecamatanAvgAggregateInputType = { id_kecamatan?: true id_komoditas?: true area?: true posisi_x?: true posisi_y?: true } export type KecamatanSumAggregateInputType = { id_kecamatan?: true id_komoditas?: true area?: true posisi_x?: true posisi_y?: true } export type KecamatanMinAggregateInputType = { id_kecamatan?: true id_komoditas?: true nama_kecamatan?: true deskripsi?: true gambar?: true area?: true posisi_x?: true posisi_y?: true } export type KecamatanMaxAggregateInputType = { id_kecamatan?: true id_komoditas?: true nama_kecamatan?: true deskripsi?: true gambar?: true area?: true posisi_x?: true posisi_y?: true } export type KecamatanCountAggregateInputType = { id_kecamatan?: true id_komoditas?: true nama_kecamatan?: true deskripsi?: true gambar?: true area?: true posisi_x?: true posisi_y?: true _all?: true } export type KecamatanAggregateArgs = { /** * Filter which Kecamatan to aggregate. */ where?: KecamatanWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Kecamatans to fetch. */ orderBy?: KecamatanOrderByWithRelationInput | KecamatanOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: KecamatanWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Kecamatans 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` Kecamatans. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Kecamatans **/ _count?: true | KecamatanCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: KecamatanAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: KecamatanSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: KecamatanMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: KecamatanMaxAggregateInputType } export type GetKecamatanAggregateType = { [P in keyof T & keyof AggregateKecamatan]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type KecamatanGroupByArgs = { where?: KecamatanWhereInput orderBy?: KecamatanOrderByWithAggregationInput | KecamatanOrderByWithAggregationInput[] by: KecamatanScalarFieldEnum[] | KecamatanScalarFieldEnum having?: KecamatanScalarWhereWithAggregatesInput take?: number skip?: number _count?: KecamatanCountAggregateInputType | true _avg?: KecamatanAvgAggregateInputType _sum?: KecamatanSumAggregateInputType _min?: KecamatanMinAggregateInputType _max?: KecamatanMaxAggregateInputType } export type KecamatanGroupByOutputType = { id_kecamatan: number id_komoditas: number nama_kecamatan: string deskripsi: string gambar: string area: number posisi_x: number posisi_y: number _count: KecamatanCountAggregateOutputType | null _avg: KecamatanAvgAggregateOutputType | null _sum: KecamatanSumAggregateOutputType | null _min: KecamatanMinAggregateOutputType | null _max: KecamatanMaxAggregateOutputType | null } type GetKecamatanGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof KecamatanGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type KecamatanSelect = $Extensions.GetSelect<{ id_kecamatan?: boolean id_komoditas?: boolean nama_kecamatan?: boolean deskripsi?: boolean gambar?: boolean area?: boolean posisi_x?: boolean posisi_y?: boolean komoditas?: boolean | KomoditasDefaultArgs penduduk?: boolean | Kecamatan$pendudukArgs hasil_panen?: boolean | Kecamatan$hasil_panenArgs prediksi_panen?: boolean | Kecamatan$prediksi_panenArgs _count?: boolean | KecamatanCountOutputTypeDefaultArgs }, ExtArgs["result"]["kecamatan"]> export type KecamatanSelectCreateManyAndReturn = $Extensions.GetSelect<{ id_kecamatan?: boolean id_komoditas?: boolean nama_kecamatan?: boolean deskripsi?: boolean gambar?: boolean area?: boolean posisi_x?: boolean posisi_y?: boolean komoditas?: boolean | KomoditasDefaultArgs }, ExtArgs["result"]["kecamatan"]> export type KecamatanSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id_kecamatan?: boolean id_komoditas?: boolean nama_kecamatan?: boolean deskripsi?: boolean gambar?: boolean area?: boolean posisi_x?: boolean posisi_y?: boolean komoditas?: boolean | KomoditasDefaultArgs }, ExtArgs["result"]["kecamatan"]> export type KecamatanSelectScalar = { id_kecamatan?: boolean id_komoditas?: boolean nama_kecamatan?: boolean deskripsi?: boolean gambar?: boolean area?: boolean posisi_x?: boolean posisi_y?: boolean } export type KecamatanOmit = $Extensions.GetOmit<"id_kecamatan" | "id_komoditas" | "nama_kecamatan" | "deskripsi" | "gambar" | "area" | "posisi_x" | "posisi_y", ExtArgs["result"]["kecamatan"]> export type KecamatanInclude = { komoditas?: boolean | KomoditasDefaultArgs penduduk?: boolean | Kecamatan$pendudukArgs hasil_panen?: boolean | Kecamatan$hasil_panenArgs prediksi_panen?: boolean | Kecamatan$prediksi_panenArgs _count?: boolean | KecamatanCountOutputTypeDefaultArgs } export type KecamatanIncludeCreateManyAndReturn = { komoditas?: boolean | KomoditasDefaultArgs } export type KecamatanIncludeUpdateManyAndReturn = { komoditas?: boolean | KomoditasDefaultArgs } export type $KecamatanPayload = { name: "Kecamatan" objects: { komoditas: Prisma.$KomoditasPayload penduduk: Prisma.$PendudukPayload[] hasil_panen: Prisma.$HasilPanenPayload[] prediksi_panen: Prisma.$PrediksiPanenPayload[] } scalars: $Extensions.GetPayloadResult<{ id_kecamatan: number id_komoditas: number nama_kecamatan: string deskripsi: string gambar: string area: number posisi_x: number posisi_y: number }, ExtArgs["result"]["kecamatan"]> composites: {} } type KecamatanGetPayload = $Result.GetResult type KecamatanCountArgs = Omit & { select?: KecamatanCountAggregateInputType | true } export interface KecamatanDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Kecamatan'], meta: { name: 'Kecamatan' } } /** * Find zero or one Kecamatan that matches the filter. * @param {KecamatanFindUniqueArgs} args - Arguments to find a Kecamatan * @example * // Get one Kecamatan * const kecamatan = await prisma.kecamatan.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__KecamatanClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Kecamatan that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {KecamatanFindUniqueOrThrowArgs} args - Arguments to find a Kecamatan * @example * // Get one Kecamatan * const kecamatan = await prisma.kecamatan.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__KecamatanClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Kecamatan 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 {KecamatanFindFirstArgs} args - Arguments to find a Kecamatan * @example * // Get one Kecamatan * const kecamatan = await prisma.kecamatan.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__KecamatanClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Kecamatan 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 {KecamatanFindFirstOrThrowArgs} args - Arguments to find a Kecamatan * @example * // Get one Kecamatan * const kecamatan = await prisma.kecamatan.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__KecamatanClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Kecamatans 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 {KecamatanFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Kecamatans * const kecamatans = await prisma.kecamatan.findMany() * * // Get first 10 Kecamatans * const kecamatans = await prisma.kecamatan.findMany({ take: 10 }) * * // Only select the `id_kecamatan` * const kecamatanWithId_kecamatanOnly = await prisma.kecamatan.findMany({ select: { id_kecamatan: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Kecamatan. * @param {KecamatanCreateArgs} args - Arguments to create a Kecamatan. * @example * // Create one Kecamatan * const Kecamatan = await prisma.kecamatan.create({ * data: { * // ... data to create a Kecamatan * } * }) * */ create(args: SelectSubset>): Prisma__KecamatanClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Kecamatans. * @param {KecamatanCreateManyArgs} args - Arguments to create many Kecamatans. * @example * // Create many Kecamatans * const kecamatan = await prisma.kecamatan.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Kecamatans and returns the data saved in the database. * @param {KecamatanCreateManyAndReturnArgs} args - Arguments to create many Kecamatans. * @example * // Create many Kecamatans * const kecamatan = await prisma.kecamatan.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Kecamatans and only return the `id_kecamatan` * const kecamatanWithId_kecamatanOnly = await prisma.kecamatan.createManyAndReturn({ * select: { id_kecamatan: 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 Kecamatan. * @param {KecamatanDeleteArgs} args - Arguments to delete one Kecamatan. * @example * // Delete one Kecamatan * const Kecamatan = await prisma.kecamatan.delete({ * where: { * // ... filter to delete one Kecamatan * } * }) * */ delete(args: SelectSubset>): Prisma__KecamatanClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Kecamatan. * @param {KecamatanUpdateArgs} args - Arguments to update one Kecamatan. * @example * // Update one Kecamatan * const kecamatan = await prisma.kecamatan.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__KecamatanClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Kecamatans. * @param {KecamatanDeleteManyArgs} args - Arguments to filter Kecamatans to delete. * @example * // Delete a few Kecamatans * const { count } = await prisma.kecamatan.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Kecamatans. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KecamatanUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Kecamatans * const kecamatan = await prisma.kecamatan.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Kecamatans and returns the data updated in the database. * @param {KecamatanUpdateManyAndReturnArgs} args - Arguments to update many Kecamatans. * @example * // Update many Kecamatans * const kecamatan = await prisma.kecamatan.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Kecamatans and only return the `id_kecamatan` * const kecamatanWithId_kecamatanOnly = await prisma.kecamatan.updateManyAndReturn({ * select: { id_kecamatan: 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 Kecamatan. * @param {KecamatanUpsertArgs} args - Arguments to update or create a Kecamatan. * @example * // Update or create a Kecamatan * const kecamatan = await prisma.kecamatan.upsert({ * create: { * // ... data to create a Kecamatan * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Kecamatan we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__KecamatanClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Kecamatans. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KecamatanCountArgs} args - Arguments to filter Kecamatans to count. * @example * // Count the number of Kecamatans * const count = await prisma.kecamatan.count({ * where: { * // ... the filter for the Kecamatans 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 Kecamatan. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KecamatanAggregateArgs} 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 Kecamatan. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KecamatanGroupByArgs} 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 KecamatanGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: KecamatanGroupByArgs['orderBy'] } : { orderBy?: KecamatanGroupByArgs['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 ? GetKecamatanGroupByPayload : Prisma.PrismaPromise /** * Fields of the Kecamatan model */ readonly fields: KecamatanFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Kecamatan. * 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__KecamatanClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" komoditas = {}>(args?: Subset>): Prisma__KomoditasClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> penduduk = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> hasil_panen = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> prediksi_panen = {}>(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 Kecamatan model */ interface KecamatanFieldRefs { readonly id_kecamatan: FieldRef<"Kecamatan", 'Int'> readonly id_komoditas: FieldRef<"Kecamatan", 'Int'> readonly nama_kecamatan: FieldRef<"Kecamatan", 'String'> readonly deskripsi: FieldRef<"Kecamatan", 'String'> readonly gambar: FieldRef<"Kecamatan", 'String'> readonly area: FieldRef<"Kecamatan", 'Float'> readonly posisi_x: FieldRef<"Kecamatan", 'Float'> readonly posisi_y: FieldRef<"Kecamatan", 'Float'> } // Custom InputTypes /** * Kecamatan findUnique */ export type KecamatanFindUniqueArgs = { /** * Select specific fields to fetch from the Kecamatan */ select?: KecamatanSelect | null /** * Omit specific fields from the Kecamatan */ omit?: KecamatanOmit | null /** * Choose, which related nodes to fetch as well */ include?: KecamatanInclude | null /** * Filter, which Kecamatan to fetch. */ where: KecamatanWhereUniqueInput } /** * Kecamatan findUniqueOrThrow */ export type KecamatanFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Kecamatan */ select?: KecamatanSelect | null /** * Omit specific fields from the Kecamatan */ omit?: KecamatanOmit | null /** * Choose, which related nodes to fetch as well */ include?: KecamatanInclude | null /** * Filter, which Kecamatan to fetch. */ where: KecamatanWhereUniqueInput } /** * Kecamatan findFirst */ export type KecamatanFindFirstArgs = { /** * Select specific fields to fetch from the Kecamatan */ select?: KecamatanSelect | null /** * Omit specific fields from the Kecamatan */ omit?: KecamatanOmit | null /** * Choose, which related nodes to fetch as well */ include?: KecamatanInclude | null /** * Filter, which Kecamatan to fetch. */ where?: KecamatanWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Kecamatans to fetch. */ orderBy?: KecamatanOrderByWithRelationInput | KecamatanOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Kecamatans. */ cursor?: KecamatanWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Kecamatans 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` Kecamatans. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Kecamatans. */ distinct?: KecamatanScalarFieldEnum | KecamatanScalarFieldEnum[] } /** * Kecamatan findFirstOrThrow */ export type KecamatanFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Kecamatan */ select?: KecamatanSelect | null /** * Omit specific fields from the Kecamatan */ omit?: KecamatanOmit | null /** * Choose, which related nodes to fetch as well */ include?: KecamatanInclude | null /** * Filter, which Kecamatan to fetch. */ where?: KecamatanWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Kecamatans to fetch. */ orderBy?: KecamatanOrderByWithRelationInput | KecamatanOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Kecamatans. */ cursor?: KecamatanWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Kecamatans 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` Kecamatans. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Kecamatans. */ distinct?: KecamatanScalarFieldEnum | KecamatanScalarFieldEnum[] } /** * Kecamatan findMany */ export type KecamatanFindManyArgs = { /** * Select specific fields to fetch from the Kecamatan */ select?: KecamatanSelect | null /** * Omit specific fields from the Kecamatan */ omit?: KecamatanOmit | null /** * Choose, which related nodes to fetch as well */ include?: KecamatanInclude | null /** * Filter, which Kecamatans to fetch. */ where?: KecamatanWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Kecamatans to fetch. */ orderBy?: KecamatanOrderByWithRelationInput | KecamatanOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Kecamatans. */ cursor?: KecamatanWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Kecamatans 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` Kecamatans. */ skip?: number distinct?: KecamatanScalarFieldEnum | KecamatanScalarFieldEnum[] } /** * Kecamatan create */ export type KecamatanCreateArgs = { /** * Select specific fields to fetch from the Kecamatan */ select?: KecamatanSelect | null /** * Omit specific fields from the Kecamatan */ omit?: KecamatanOmit | null /** * Choose, which related nodes to fetch as well */ include?: KecamatanInclude | null /** * The data needed to create a Kecamatan. */ data: XOR } /** * Kecamatan createMany */ export type KecamatanCreateManyArgs = { /** * The data used to create many Kecamatans. */ data: KecamatanCreateManyInput | KecamatanCreateManyInput[] skipDuplicates?: boolean } /** * Kecamatan createManyAndReturn */ export type KecamatanCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Kecamatan */ select?: KecamatanSelectCreateManyAndReturn | null /** * Omit specific fields from the Kecamatan */ omit?: KecamatanOmit | null /** * The data used to create many Kecamatans. */ data: KecamatanCreateManyInput | KecamatanCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: KecamatanIncludeCreateManyAndReturn | null } /** * Kecamatan update */ export type KecamatanUpdateArgs = { /** * Select specific fields to fetch from the Kecamatan */ select?: KecamatanSelect | null /** * Omit specific fields from the Kecamatan */ omit?: KecamatanOmit | null /** * Choose, which related nodes to fetch as well */ include?: KecamatanInclude | null /** * The data needed to update a Kecamatan. */ data: XOR /** * Choose, which Kecamatan to update. */ where: KecamatanWhereUniqueInput } /** * Kecamatan updateMany */ export type KecamatanUpdateManyArgs = { /** * The data used to update Kecamatans. */ data: XOR /** * Filter which Kecamatans to update */ where?: KecamatanWhereInput /** * Limit how many Kecamatans to update. */ limit?: number } /** * Kecamatan updateManyAndReturn */ export type KecamatanUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Kecamatan */ select?: KecamatanSelectUpdateManyAndReturn | null /** * Omit specific fields from the Kecamatan */ omit?: KecamatanOmit | null /** * The data used to update Kecamatans. */ data: XOR /** * Filter which Kecamatans to update */ where?: KecamatanWhereInput /** * Limit how many Kecamatans to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: KecamatanIncludeUpdateManyAndReturn | null } /** * Kecamatan upsert */ export type KecamatanUpsertArgs = { /** * Select specific fields to fetch from the Kecamatan */ select?: KecamatanSelect | null /** * Omit specific fields from the Kecamatan */ omit?: KecamatanOmit | null /** * Choose, which related nodes to fetch as well */ include?: KecamatanInclude | null /** * The filter to search for the Kecamatan to update in case it exists. */ where: KecamatanWhereUniqueInput /** * In case the Kecamatan found by the `where` argument doesn't exist, create a new Kecamatan with this data. */ create: XOR /** * In case the Kecamatan was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Kecamatan delete */ export type KecamatanDeleteArgs = { /** * Select specific fields to fetch from the Kecamatan */ select?: KecamatanSelect | null /** * Omit specific fields from the Kecamatan */ omit?: KecamatanOmit | null /** * Choose, which related nodes to fetch as well */ include?: KecamatanInclude | null /** * Filter which Kecamatan to delete. */ where: KecamatanWhereUniqueInput } /** * Kecamatan deleteMany */ export type KecamatanDeleteManyArgs = { /** * Filter which Kecamatans to delete */ where?: KecamatanWhereInput /** * Limit how many Kecamatans to delete. */ limit?: number } /** * Kecamatan.penduduk */ export type Kecamatan$pendudukArgs = { /** * Select specific fields to fetch from the Penduduk */ select?: PendudukSelect | null /** * Omit specific fields from the Penduduk */ omit?: PendudukOmit | null /** * Choose, which related nodes to fetch as well */ include?: PendudukInclude | null where?: PendudukWhereInput orderBy?: PendudukOrderByWithRelationInput | PendudukOrderByWithRelationInput[] cursor?: PendudukWhereUniqueInput take?: number skip?: number distinct?: PendudukScalarFieldEnum | PendudukScalarFieldEnum[] } /** * Kecamatan.hasil_panen */ export type Kecamatan$hasil_panenArgs = { /** * Select specific fields to fetch from the HasilPanen */ select?: HasilPanenSelect | null /** * Omit specific fields from the HasilPanen */ omit?: HasilPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: HasilPanenInclude | null where?: HasilPanenWhereInput orderBy?: HasilPanenOrderByWithRelationInput | HasilPanenOrderByWithRelationInput[] cursor?: HasilPanenWhereUniqueInput take?: number skip?: number distinct?: HasilPanenScalarFieldEnum | HasilPanenScalarFieldEnum[] } /** * Kecamatan.prediksi_panen */ export type Kecamatan$prediksi_panenArgs = { /** * Select specific fields to fetch from the PrediksiPanen */ select?: PrediksiPanenSelect | null /** * Omit specific fields from the PrediksiPanen */ omit?: PrediksiPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: PrediksiPanenInclude | null where?: PrediksiPanenWhereInput orderBy?: PrediksiPanenOrderByWithRelationInput | PrediksiPanenOrderByWithRelationInput[] cursor?: PrediksiPanenWhereUniqueInput take?: number skip?: number distinct?: PrediksiPanenScalarFieldEnum | PrediksiPanenScalarFieldEnum[] } /** * Kecamatan without action */ export type KecamatanDefaultArgs = { /** * Select specific fields to fetch from the Kecamatan */ select?: KecamatanSelect | null /** * Omit specific fields from the Kecamatan */ omit?: KecamatanOmit | null /** * Choose, which related nodes to fetch as well */ include?: KecamatanInclude | null } /** * Model Penduduk */ export type AggregatePenduduk = { _count: PendudukCountAggregateOutputType | null _avg: PendudukAvgAggregateOutputType | null _sum: PendudukSumAggregateOutputType | null _min: PendudukMinAggregateOutputType | null _max: PendudukMaxAggregateOutputType | null } export type PendudukAvgAggregateOutputType = { id_penduduk: number | null id_kecamatan: number | null data_tahun: number | null jumlah_penduduk: number | null } export type PendudukSumAggregateOutputType = { id_penduduk: number | null id_kecamatan: number | null data_tahun: number | null jumlah_penduduk: number | null } export type PendudukMinAggregateOutputType = { id_penduduk: number | null id_kecamatan: number | null data_tahun: number | null jumlah_penduduk: number | null laju_pertumbuhan: string | null } export type PendudukMaxAggregateOutputType = { id_penduduk: number | null id_kecamatan: number | null data_tahun: number | null jumlah_penduduk: number | null laju_pertumbuhan: string | null } export type PendudukCountAggregateOutputType = { id_penduduk: number id_kecamatan: number data_tahun: number jumlah_penduduk: number laju_pertumbuhan: number _all: number } export type PendudukAvgAggregateInputType = { id_penduduk?: true id_kecamatan?: true data_tahun?: true jumlah_penduduk?: true } export type PendudukSumAggregateInputType = { id_penduduk?: true id_kecamatan?: true data_tahun?: true jumlah_penduduk?: true } export type PendudukMinAggregateInputType = { id_penduduk?: true id_kecamatan?: true data_tahun?: true jumlah_penduduk?: true laju_pertumbuhan?: true } export type PendudukMaxAggregateInputType = { id_penduduk?: true id_kecamatan?: true data_tahun?: true jumlah_penduduk?: true laju_pertumbuhan?: true } export type PendudukCountAggregateInputType = { id_penduduk?: true id_kecamatan?: true data_tahun?: true jumlah_penduduk?: true laju_pertumbuhan?: true _all?: true } export type PendudukAggregateArgs = { /** * Filter which Penduduk to aggregate. */ where?: PendudukWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Penduduks to fetch. */ orderBy?: PendudukOrderByWithRelationInput | PendudukOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PendudukWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Penduduks 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` Penduduks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Penduduks **/ _count?: true | PendudukCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PendudukAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PendudukSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PendudukMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PendudukMaxAggregateInputType } export type GetPendudukAggregateType = { [P in keyof T & keyof AggregatePenduduk]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PendudukGroupByArgs = { where?: PendudukWhereInput orderBy?: PendudukOrderByWithAggregationInput | PendudukOrderByWithAggregationInput[] by: PendudukScalarFieldEnum[] | PendudukScalarFieldEnum having?: PendudukScalarWhereWithAggregatesInput take?: number skip?: number _count?: PendudukCountAggregateInputType | true _avg?: PendudukAvgAggregateInputType _sum?: PendudukSumAggregateInputType _min?: PendudukMinAggregateInputType _max?: PendudukMaxAggregateInputType } export type PendudukGroupByOutputType = { id_penduduk: number id_kecamatan: number data_tahun: number jumlah_penduduk: number laju_pertumbuhan: string _count: PendudukCountAggregateOutputType | null _avg: PendudukAvgAggregateOutputType | null _sum: PendudukSumAggregateOutputType | null _min: PendudukMinAggregateOutputType | null _max: PendudukMaxAggregateOutputType | null } type GetPendudukGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PendudukGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PendudukSelect = $Extensions.GetSelect<{ id_penduduk?: boolean id_kecamatan?: boolean data_tahun?: boolean jumlah_penduduk?: boolean laju_pertumbuhan?: boolean kecamatan?: boolean | KecamatanDefaultArgs }, ExtArgs["result"]["penduduk"]> export type PendudukSelectCreateManyAndReturn = $Extensions.GetSelect<{ id_penduduk?: boolean id_kecamatan?: boolean data_tahun?: boolean jumlah_penduduk?: boolean laju_pertumbuhan?: boolean kecamatan?: boolean | KecamatanDefaultArgs }, ExtArgs["result"]["penduduk"]> export type PendudukSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id_penduduk?: boolean id_kecamatan?: boolean data_tahun?: boolean jumlah_penduduk?: boolean laju_pertumbuhan?: boolean kecamatan?: boolean | KecamatanDefaultArgs }, ExtArgs["result"]["penduduk"]> export type PendudukSelectScalar = { id_penduduk?: boolean id_kecamatan?: boolean data_tahun?: boolean jumlah_penduduk?: boolean laju_pertumbuhan?: boolean } export type PendudukOmit = $Extensions.GetOmit<"id_penduduk" | "id_kecamatan" | "data_tahun" | "jumlah_penduduk" | "laju_pertumbuhan", ExtArgs["result"]["penduduk"]> export type PendudukInclude = { kecamatan?: boolean | KecamatanDefaultArgs } export type PendudukIncludeCreateManyAndReturn = { kecamatan?: boolean | KecamatanDefaultArgs } export type PendudukIncludeUpdateManyAndReturn = { kecamatan?: boolean | KecamatanDefaultArgs } export type $PendudukPayload = { name: "Penduduk" objects: { kecamatan: Prisma.$KecamatanPayload } scalars: $Extensions.GetPayloadResult<{ id_penduduk: number id_kecamatan: number data_tahun: number jumlah_penduduk: number laju_pertumbuhan: string }, ExtArgs["result"]["penduduk"]> composites: {} } type PendudukGetPayload = $Result.GetResult type PendudukCountArgs = Omit & { select?: PendudukCountAggregateInputType | true } export interface PendudukDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Penduduk'], meta: { name: 'Penduduk' } } /** * Find zero or one Penduduk that matches the filter. * @param {PendudukFindUniqueArgs} args - Arguments to find a Penduduk * @example * // Get one Penduduk * const penduduk = await prisma.penduduk.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PendudukClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Penduduk that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PendudukFindUniqueOrThrowArgs} args - Arguments to find a Penduduk * @example * // Get one Penduduk * const penduduk = await prisma.penduduk.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PendudukClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Penduduk 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 {PendudukFindFirstArgs} args - Arguments to find a Penduduk * @example * // Get one Penduduk * const penduduk = await prisma.penduduk.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PendudukClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Penduduk 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 {PendudukFindFirstOrThrowArgs} args - Arguments to find a Penduduk * @example * // Get one Penduduk * const penduduk = await prisma.penduduk.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PendudukClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Penduduks 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 {PendudukFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Penduduks * const penduduks = await prisma.penduduk.findMany() * * // Get first 10 Penduduks * const penduduks = await prisma.penduduk.findMany({ take: 10 }) * * // Only select the `id_penduduk` * const pendudukWithId_pendudukOnly = await prisma.penduduk.findMany({ select: { id_penduduk: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Penduduk. * @param {PendudukCreateArgs} args - Arguments to create a Penduduk. * @example * // Create one Penduduk * const Penduduk = await prisma.penduduk.create({ * data: { * // ... data to create a Penduduk * } * }) * */ create(args: SelectSubset>): Prisma__PendudukClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Penduduks. * @param {PendudukCreateManyArgs} args - Arguments to create many Penduduks. * @example * // Create many Penduduks * const penduduk = await prisma.penduduk.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Penduduks and returns the data saved in the database. * @param {PendudukCreateManyAndReturnArgs} args - Arguments to create many Penduduks. * @example * // Create many Penduduks * const penduduk = await prisma.penduduk.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Penduduks and only return the `id_penduduk` * const pendudukWithId_pendudukOnly = await prisma.penduduk.createManyAndReturn({ * select: { id_penduduk: 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 Penduduk. * @param {PendudukDeleteArgs} args - Arguments to delete one Penduduk. * @example * // Delete one Penduduk * const Penduduk = await prisma.penduduk.delete({ * where: { * // ... filter to delete one Penduduk * } * }) * */ delete(args: SelectSubset>): Prisma__PendudukClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Penduduk. * @param {PendudukUpdateArgs} args - Arguments to update one Penduduk. * @example * // Update one Penduduk * const penduduk = await prisma.penduduk.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PendudukClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Penduduks. * @param {PendudukDeleteManyArgs} args - Arguments to filter Penduduks to delete. * @example * // Delete a few Penduduks * const { count } = await prisma.penduduk.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Penduduks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PendudukUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Penduduks * const penduduk = await prisma.penduduk.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Penduduks and returns the data updated in the database. * @param {PendudukUpdateManyAndReturnArgs} args - Arguments to update many Penduduks. * @example * // Update many Penduduks * const penduduk = await prisma.penduduk.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Penduduks and only return the `id_penduduk` * const pendudukWithId_pendudukOnly = await prisma.penduduk.updateManyAndReturn({ * select: { id_penduduk: 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 Penduduk. * @param {PendudukUpsertArgs} args - Arguments to update or create a Penduduk. * @example * // Update or create a Penduduk * const penduduk = await prisma.penduduk.upsert({ * create: { * // ... data to create a Penduduk * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Penduduk we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PendudukClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Penduduks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PendudukCountArgs} args - Arguments to filter Penduduks to count. * @example * // Count the number of Penduduks * const count = await prisma.penduduk.count({ * where: { * // ... the filter for the Penduduks 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 Penduduk. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PendudukAggregateArgs} 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 Penduduk. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PendudukGroupByArgs} 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 PendudukGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PendudukGroupByArgs['orderBy'] } : { orderBy?: PendudukGroupByArgs['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 ? GetPendudukGroupByPayload : Prisma.PrismaPromise /** * Fields of the Penduduk model */ readonly fields: PendudukFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Penduduk. * 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__PendudukClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" kecamatan = {}>(args?: Subset>): Prisma__KecamatanClient<$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 Penduduk model */ interface PendudukFieldRefs { readonly id_penduduk: FieldRef<"Penduduk", 'Int'> readonly id_kecamatan: FieldRef<"Penduduk", 'Int'> readonly data_tahun: FieldRef<"Penduduk", 'Int'> readonly jumlah_penduduk: FieldRef<"Penduduk", 'Float'> readonly laju_pertumbuhan: FieldRef<"Penduduk", 'String'> } // Custom InputTypes /** * Penduduk findUnique */ export type PendudukFindUniqueArgs = { /** * Select specific fields to fetch from the Penduduk */ select?: PendudukSelect | null /** * Omit specific fields from the Penduduk */ omit?: PendudukOmit | null /** * Choose, which related nodes to fetch as well */ include?: PendudukInclude | null /** * Filter, which Penduduk to fetch. */ where: PendudukWhereUniqueInput } /** * Penduduk findUniqueOrThrow */ export type PendudukFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Penduduk */ select?: PendudukSelect | null /** * Omit specific fields from the Penduduk */ omit?: PendudukOmit | null /** * Choose, which related nodes to fetch as well */ include?: PendudukInclude | null /** * Filter, which Penduduk to fetch. */ where: PendudukWhereUniqueInput } /** * Penduduk findFirst */ export type PendudukFindFirstArgs = { /** * Select specific fields to fetch from the Penduduk */ select?: PendudukSelect | null /** * Omit specific fields from the Penduduk */ omit?: PendudukOmit | null /** * Choose, which related nodes to fetch as well */ include?: PendudukInclude | null /** * Filter, which Penduduk to fetch. */ where?: PendudukWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Penduduks to fetch. */ orderBy?: PendudukOrderByWithRelationInput | PendudukOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Penduduks. */ cursor?: PendudukWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Penduduks 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` Penduduks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Penduduks. */ distinct?: PendudukScalarFieldEnum | PendudukScalarFieldEnum[] } /** * Penduduk findFirstOrThrow */ export type PendudukFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Penduduk */ select?: PendudukSelect | null /** * Omit specific fields from the Penduduk */ omit?: PendudukOmit | null /** * Choose, which related nodes to fetch as well */ include?: PendudukInclude | null /** * Filter, which Penduduk to fetch. */ where?: PendudukWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Penduduks to fetch. */ orderBy?: PendudukOrderByWithRelationInput | PendudukOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Penduduks. */ cursor?: PendudukWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Penduduks 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` Penduduks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Penduduks. */ distinct?: PendudukScalarFieldEnum | PendudukScalarFieldEnum[] } /** * Penduduk findMany */ export type PendudukFindManyArgs = { /** * Select specific fields to fetch from the Penduduk */ select?: PendudukSelect | null /** * Omit specific fields from the Penduduk */ omit?: PendudukOmit | null /** * Choose, which related nodes to fetch as well */ include?: PendudukInclude | null /** * Filter, which Penduduks to fetch. */ where?: PendudukWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Penduduks to fetch. */ orderBy?: PendudukOrderByWithRelationInput | PendudukOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Penduduks. */ cursor?: PendudukWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Penduduks 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` Penduduks. */ skip?: number distinct?: PendudukScalarFieldEnum | PendudukScalarFieldEnum[] } /** * Penduduk create */ export type PendudukCreateArgs = { /** * Select specific fields to fetch from the Penduduk */ select?: PendudukSelect | null /** * Omit specific fields from the Penduduk */ omit?: PendudukOmit | null /** * Choose, which related nodes to fetch as well */ include?: PendudukInclude | null /** * The data needed to create a Penduduk. */ data: XOR } /** * Penduduk createMany */ export type PendudukCreateManyArgs = { /** * The data used to create many Penduduks. */ data: PendudukCreateManyInput | PendudukCreateManyInput[] skipDuplicates?: boolean } /** * Penduduk createManyAndReturn */ export type PendudukCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Penduduk */ select?: PendudukSelectCreateManyAndReturn | null /** * Omit specific fields from the Penduduk */ omit?: PendudukOmit | null /** * The data used to create many Penduduks. */ data: PendudukCreateManyInput | PendudukCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PendudukIncludeCreateManyAndReturn | null } /** * Penduduk update */ export type PendudukUpdateArgs = { /** * Select specific fields to fetch from the Penduduk */ select?: PendudukSelect | null /** * Omit specific fields from the Penduduk */ omit?: PendudukOmit | null /** * Choose, which related nodes to fetch as well */ include?: PendudukInclude | null /** * The data needed to update a Penduduk. */ data: XOR /** * Choose, which Penduduk to update. */ where: PendudukWhereUniqueInput } /** * Penduduk updateMany */ export type PendudukUpdateManyArgs = { /** * The data used to update Penduduks. */ data: XOR /** * Filter which Penduduks to update */ where?: PendudukWhereInput /** * Limit how many Penduduks to update. */ limit?: number } /** * Penduduk updateManyAndReturn */ export type PendudukUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Penduduk */ select?: PendudukSelectUpdateManyAndReturn | null /** * Omit specific fields from the Penduduk */ omit?: PendudukOmit | null /** * The data used to update Penduduks. */ data: XOR /** * Filter which Penduduks to update */ where?: PendudukWhereInput /** * Limit how many Penduduks to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: PendudukIncludeUpdateManyAndReturn | null } /** * Penduduk upsert */ export type PendudukUpsertArgs = { /** * Select specific fields to fetch from the Penduduk */ select?: PendudukSelect | null /** * Omit specific fields from the Penduduk */ omit?: PendudukOmit | null /** * Choose, which related nodes to fetch as well */ include?: PendudukInclude | null /** * The filter to search for the Penduduk to update in case it exists. */ where: PendudukWhereUniqueInput /** * In case the Penduduk found by the `where` argument doesn't exist, create a new Penduduk with this data. */ create: XOR /** * In case the Penduduk was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Penduduk delete */ export type PendudukDeleteArgs = { /** * Select specific fields to fetch from the Penduduk */ select?: PendudukSelect | null /** * Omit specific fields from the Penduduk */ omit?: PendudukOmit | null /** * Choose, which related nodes to fetch as well */ include?: PendudukInclude | null /** * Filter which Penduduk to delete. */ where: PendudukWhereUniqueInput } /** * Penduduk deleteMany */ export type PendudukDeleteManyArgs = { /** * Filter which Penduduks to delete */ where?: PendudukWhereInput /** * Limit how many Penduduks to delete. */ limit?: number } /** * Penduduk without action */ export type PendudukDefaultArgs = { /** * Select specific fields to fetch from the Penduduk */ select?: PendudukSelect | null /** * Omit specific fields from the Penduduk */ omit?: PendudukOmit | null /** * Choose, which related nodes to fetch as well */ include?: PendudukInclude | null } /** * Model Komoditas */ export type AggregateKomoditas = { _count: KomoditasCountAggregateOutputType | null _avg: KomoditasAvgAggregateOutputType | null _sum: KomoditasSumAggregateOutputType | null _min: KomoditasMinAggregateOutputType | null _max: KomoditasMaxAggregateOutputType | null } export type KomoditasAvgAggregateOutputType = { id_komoditas: number | null posisi_x: number | null posisi_y: number | null } export type KomoditasSumAggregateOutputType = { id_komoditas: number | null posisi_x: number | null posisi_y: number | null } export type KomoditasMinAggregateOutputType = { id_komoditas: number | null nama_komoditas: string | null posisi_x: number | null posisi_y: number | null } export type KomoditasMaxAggregateOutputType = { id_komoditas: number | null nama_komoditas: string | null posisi_x: number | null posisi_y: number | null } export type KomoditasCountAggregateOutputType = { id_komoditas: number nama_komoditas: number posisi_x: number posisi_y: number _all: number } export type KomoditasAvgAggregateInputType = { id_komoditas?: true posisi_x?: true posisi_y?: true } export type KomoditasSumAggregateInputType = { id_komoditas?: true posisi_x?: true posisi_y?: true } export type KomoditasMinAggregateInputType = { id_komoditas?: true nama_komoditas?: true posisi_x?: true posisi_y?: true } export type KomoditasMaxAggregateInputType = { id_komoditas?: true nama_komoditas?: true posisi_x?: true posisi_y?: true } export type KomoditasCountAggregateInputType = { id_komoditas?: true nama_komoditas?: true posisi_x?: true posisi_y?: true _all?: true } export type KomoditasAggregateArgs = { /** * Filter which Komoditas to aggregate. */ where?: KomoditasWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Komoditas to fetch. */ orderBy?: KomoditasOrderByWithRelationInput | KomoditasOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: KomoditasWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Komoditas 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` Komoditas. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Komoditas **/ _count?: true | KomoditasCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: KomoditasAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: KomoditasSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: KomoditasMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: KomoditasMaxAggregateInputType } export type GetKomoditasAggregateType = { [P in keyof T & keyof AggregateKomoditas]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type KomoditasGroupByArgs = { where?: KomoditasWhereInput orderBy?: KomoditasOrderByWithAggregationInput | KomoditasOrderByWithAggregationInput[] by: KomoditasScalarFieldEnum[] | KomoditasScalarFieldEnum having?: KomoditasScalarWhereWithAggregatesInput take?: number skip?: number _count?: KomoditasCountAggregateInputType | true _avg?: KomoditasAvgAggregateInputType _sum?: KomoditasSumAggregateInputType _min?: KomoditasMinAggregateInputType _max?: KomoditasMaxAggregateInputType } export type KomoditasGroupByOutputType = { id_komoditas: number nama_komoditas: string posisi_x: number posisi_y: number _count: KomoditasCountAggregateOutputType | null _avg: KomoditasAvgAggregateOutputType | null _sum: KomoditasSumAggregateOutputType | null _min: KomoditasMinAggregateOutputType | null _max: KomoditasMaxAggregateOutputType | null } type GetKomoditasGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof KomoditasGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type KomoditasSelect = $Extensions.GetSelect<{ id_komoditas?: boolean nama_komoditas?: boolean posisi_x?: boolean posisi_y?: boolean kecamatan?: boolean | Komoditas$kecamatanArgs hasil_panen?: boolean | Komoditas$hasil_panenArgs prediksi_panen?: boolean | Komoditas$prediksi_panenArgs _count?: boolean | KomoditasCountOutputTypeDefaultArgs }, ExtArgs["result"]["komoditas"]> export type KomoditasSelectCreateManyAndReturn = $Extensions.GetSelect<{ id_komoditas?: boolean nama_komoditas?: boolean posisi_x?: boolean posisi_y?: boolean }, ExtArgs["result"]["komoditas"]> export type KomoditasSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id_komoditas?: boolean nama_komoditas?: boolean posisi_x?: boolean posisi_y?: boolean }, ExtArgs["result"]["komoditas"]> export type KomoditasSelectScalar = { id_komoditas?: boolean nama_komoditas?: boolean posisi_x?: boolean posisi_y?: boolean } export type KomoditasOmit = $Extensions.GetOmit<"id_komoditas" | "nama_komoditas" | "posisi_x" | "posisi_y", ExtArgs["result"]["komoditas"]> export type KomoditasInclude = { kecamatan?: boolean | Komoditas$kecamatanArgs hasil_panen?: boolean | Komoditas$hasil_panenArgs prediksi_panen?: boolean | Komoditas$prediksi_panenArgs _count?: boolean | KomoditasCountOutputTypeDefaultArgs } export type KomoditasIncludeCreateManyAndReturn = {} export type KomoditasIncludeUpdateManyAndReturn = {} export type $KomoditasPayload = { name: "Komoditas" objects: { kecamatan: Prisma.$KecamatanPayload[] hasil_panen: Prisma.$HasilPanenPayload[] prediksi_panen: Prisma.$PrediksiPanenPayload[] } scalars: $Extensions.GetPayloadResult<{ id_komoditas: number nama_komoditas: string posisi_x: number posisi_y: number }, ExtArgs["result"]["komoditas"]> composites: {} } type KomoditasGetPayload = $Result.GetResult type KomoditasCountArgs = Omit & { select?: KomoditasCountAggregateInputType | true } export interface KomoditasDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Komoditas'], meta: { name: 'Komoditas' } } /** * Find zero or one Komoditas that matches the filter. * @param {KomoditasFindUniqueArgs} args - Arguments to find a Komoditas * @example * // Get one Komoditas * const komoditas = await prisma.komoditas.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__KomoditasClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Komoditas that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {KomoditasFindUniqueOrThrowArgs} args - Arguments to find a Komoditas * @example * // Get one Komoditas * const komoditas = await prisma.komoditas.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__KomoditasClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Komoditas 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 {KomoditasFindFirstArgs} args - Arguments to find a Komoditas * @example * // Get one Komoditas * const komoditas = await prisma.komoditas.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__KomoditasClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Komoditas 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 {KomoditasFindFirstOrThrowArgs} args - Arguments to find a Komoditas * @example * // Get one Komoditas * const komoditas = await prisma.komoditas.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__KomoditasClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Komoditas 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 {KomoditasFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Komoditas * const komoditas = await prisma.komoditas.findMany() * * // Get first 10 Komoditas * const komoditas = await prisma.komoditas.findMany({ take: 10 }) * * // Only select the `id_komoditas` * const komoditasWithId_komoditasOnly = await prisma.komoditas.findMany({ select: { id_komoditas: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Komoditas. * @param {KomoditasCreateArgs} args - Arguments to create a Komoditas. * @example * // Create one Komoditas * const Komoditas = await prisma.komoditas.create({ * data: { * // ... data to create a Komoditas * } * }) * */ create(args: SelectSubset>): Prisma__KomoditasClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Komoditas. * @param {KomoditasCreateManyArgs} args - Arguments to create many Komoditas. * @example * // Create many Komoditas * const komoditas = await prisma.komoditas.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Komoditas and returns the data saved in the database. * @param {KomoditasCreateManyAndReturnArgs} args - Arguments to create many Komoditas. * @example * // Create many Komoditas * const komoditas = await prisma.komoditas.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Komoditas and only return the `id_komoditas` * const komoditasWithId_komoditasOnly = await prisma.komoditas.createManyAndReturn({ * select: { id_komoditas: 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 Komoditas. * @param {KomoditasDeleteArgs} args - Arguments to delete one Komoditas. * @example * // Delete one Komoditas * const Komoditas = await prisma.komoditas.delete({ * where: { * // ... filter to delete one Komoditas * } * }) * */ delete(args: SelectSubset>): Prisma__KomoditasClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Komoditas. * @param {KomoditasUpdateArgs} args - Arguments to update one Komoditas. * @example * // Update one Komoditas * const komoditas = await prisma.komoditas.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__KomoditasClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Komoditas. * @param {KomoditasDeleteManyArgs} args - Arguments to filter Komoditas to delete. * @example * // Delete a few Komoditas * const { count } = await prisma.komoditas.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Komoditas. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KomoditasUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Komoditas * const komoditas = await prisma.komoditas.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Komoditas and returns the data updated in the database. * @param {KomoditasUpdateManyAndReturnArgs} args - Arguments to update many Komoditas. * @example * // Update many Komoditas * const komoditas = await prisma.komoditas.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Komoditas and only return the `id_komoditas` * const komoditasWithId_komoditasOnly = await prisma.komoditas.updateManyAndReturn({ * select: { id_komoditas: 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 Komoditas. * @param {KomoditasUpsertArgs} args - Arguments to update or create a Komoditas. * @example * // Update or create a Komoditas * const komoditas = await prisma.komoditas.upsert({ * create: { * // ... data to create a Komoditas * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Komoditas we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__KomoditasClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Komoditas. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KomoditasCountArgs} args - Arguments to filter Komoditas to count. * @example * // Count the number of Komoditas * const count = await prisma.komoditas.count({ * where: { * // ... the filter for the Komoditas 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 Komoditas. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KomoditasAggregateArgs} 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 Komoditas. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KomoditasGroupByArgs} 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 KomoditasGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: KomoditasGroupByArgs['orderBy'] } : { orderBy?: KomoditasGroupByArgs['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 ? GetKomoditasGroupByPayload : Prisma.PrismaPromise /** * Fields of the Komoditas model */ readonly fields: KomoditasFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Komoditas. * 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__KomoditasClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" kecamatan = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> hasil_panen = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> prediksi_panen = {}>(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 Komoditas model */ interface KomoditasFieldRefs { readonly id_komoditas: FieldRef<"Komoditas", 'Int'> readonly nama_komoditas: FieldRef<"Komoditas", 'String'> readonly posisi_x: FieldRef<"Komoditas", 'Float'> readonly posisi_y: FieldRef<"Komoditas", 'Float'> } // Custom InputTypes /** * Komoditas findUnique */ export type KomoditasFindUniqueArgs = { /** * Select specific fields to fetch from the Komoditas */ select?: KomoditasSelect | null /** * Omit specific fields from the Komoditas */ omit?: KomoditasOmit | null /** * Choose, which related nodes to fetch as well */ include?: KomoditasInclude | null /** * Filter, which Komoditas to fetch. */ where: KomoditasWhereUniqueInput } /** * Komoditas findUniqueOrThrow */ export type KomoditasFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Komoditas */ select?: KomoditasSelect | null /** * Omit specific fields from the Komoditas */ omit?: KomoditasOmit | null /** * Choose, which related nodes to fetch as well */ include?: KomoditasInclude | null /** * Filter, which Komoditas to fetch. */ where: KomoditasWhereUniqueInput } /** * Komoditas findFirst */ export type KomoditasFindFirstArgs = { /** * Select specific fields to fetch from the Komoditas */ select?: KomoditasSelect | null /** * Omit specific fields from the Komoditas */ omit?: KomoditasOmit | null /** * Choose, which related nodes to fetch as well */ include?: KomoditasInclude | null /** * Filter, which Komoditas to fetch. */ where?: KomoditasWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Komoditas to fetch. */ orderBy?: KomoditasOrderByWithRelationInput | KomoditasOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Komoditas. */ cursor?: KomoditasWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Komoditas 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` Komoditas. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Komoditas. */ distinct?: KomoditasScalarFieldEnum | KomoditasScalarFieldEnum[] } /** * Komoditas findFirstOrThrow */ export type KomoditasFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Komoditas */ select?: KomoditasSelect | null /** * Omit specific fields from the Komoditas */ omit?: KomoditasOmit | null /** * Choose, which related nodes to fetch as well */ include?: KomoditasInclude | null /** * Filter, which Komoditas to fetch. */ where?: KomoditasWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Komoditas to fetch. */ orderBy?: KomoditasOrderByWithRelationInput | KomoditasOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Komoditas. */ cursor?: KomoditasWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Komoditas 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` Komoditas. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Komoditas. */ distinct?: KomoditasScalarFieldEnum | KomoditasScalarFieldEnum[] } /** * Komoditas findMany */ export type KomoditasFindManyArgs = { /** * Select specific fields to fetch from the Komoditas */ select?: KomoditasSelect | null /** * Omit specific fields from the Komoditas */ omit?: KomoditasOmit | null /** * Choose, which related nodes to fetch as well */ include?: KomoditasInclude | null /** * Filter, which Komoditas to fetch. */ where?: KomoditasWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Komoditas to fetch. */ orderBy?: KomoditasOrderByWithRelationInput | KomoditasOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Komoditas. */ cursor?: KomoditasWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Komoditas 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` Komoditas. */ skip?: number distinct?: KomoditasScalarFieldEnum | KomoditasScalarFieldEnum[] } /** * Komoditas create */ export type KomoditasCreateArgs = { /** * Select specific fields to fetch from the Komoditas */ select?: KomoditasSelect | null /** * Omit specific fields from the Komoditas */ omit?: KomoditasOmit | null /** * Choose, which related nodes to fetch as well */ include?: KomoditasInclude | null /** * The data needed to create a Komoditas. */ data: XOR } /** * Komoditas createMany */ export type KomoditasCreateManyArgs = { /** * The data used to create many Komoditas. */ data: KomoditasCreateManyInput | KomoditasCreateManyInput[] skipDuplicates?: boolean } /** * Komoditas createManyAndReturn */ export type KomoditasCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Komoditas */ select?: KomoditasSelectCreateManyAndReturn | null /** * Omit specific fields from the Komoditas */ omit?: KomoditasOmit | null /** * The data used to create many Komoditas. */ data: KomoditasCreateManyInput | KomoditasCreateManyInput[] skipDuplicates?: boolean } /** * Komoditas update */ export type KomoditasUpdateArgs = { /** * Select specific fields to fetch from the Komoditas */ select?: KomoditasSelect | null /** * Omit specific fields from the Komoditas */ omit?: KomoditasOmit | null /** * Choose, which related nodes to fetch as well */ include?: KomoditasInclude | null /** * The data needed to update a Komoditas. */ data: XOR /** * Choose, which Komoditas to update. */ where: KomoditasWhereUniqueInput } /** * Komoditas updateMany */ export type KomoditasUpdateManyArgs = { /** * The data used to update Komoditas. */ data: XOR /** * Filter which Komoditas to update */ where?: KomoditasWhereInput /** * Limit how many Komoditas to update. */ limit?: number } /** * Komoditas updateManyAndReturn */ export type KomoditasUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Komoditas */ select?: KomoditasSelectUpdateManyAndReturn | null /** * Omit specific fields from the Komoditas */ omit?: KomoditasOmit | null /** * The data used to update Komoditas. */ data: XOR /** * Filter which Komoditas to update */ where?: KomoditasWhereInput /** * Limit how many Komoditas to update. */ limit?: number } /** * Komoditas upsert */ export type KomoditasUpsertArgs = { /** * Select specific fields to fetch from the Komoditas */ select?: KomoditasSelect | null /** * Omit specific fields from the Komoditas */ omit?: KomoditasOmit | null /** * Choose, which related nodes to fetch as well */ include?: KomoditasInclude | null /** * The filter to search for the Komoditas to update in case it exists. */ where: KomoditasWhereUniqueInput /** * In case the Komoditas found by the `where` argument doesn't exist, create a new Komoditas with this data. */ create: XOR /** * In case the Komoditas was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Komoditas delete */ export type KomoditasDeleteArgs = { /** * Select specific fields to fetch from the Komoditas */ select?: KomoditasSelect | null /** * Omit specific fields from the Komoditas */ omit?: KomoditasOmit | null /** * Choose, which related nodes to fetch as well */ include?: KomoditasInclude | null /** * Filter which Komoditas to delete. */ where: KomoditasWhereUniqueInput } /** * Komoditas deleteMany */ export type KomoditasDeleteManyArgs = { /** * Filter which Komoditas to delete */ where?: KomoditasWhereInput /** * Limit how many Komoditas to delete. */ limit?: number } /** * Komoditas.kecamatan */ export type Komoditas$kecamatanArgs = { /** * Select specific fields to fetch from the Kecamatan */ select?: KecamatanSelect | null /** * Omit specific fields from the Kecamatan */ omit?: KecamatanOmit | null /** * Choose, which related nodes to fetch as well */ include?: KecamatanInclude | null where?: KecamatanWhereInput orderBy?: KecamatanOrderByWithRelationInput | KecamatanOrderByWithRelationInput[] cursor?: KecamatanWhereUniqueInput take?: number skip?: number distinct?: KecamatanScalarFieldEnum | KecamatanScalarFieldEnum[] } /** * Komoditas.hasil_panen */ export type Komoditas$hasil_panenArgs = { /** * Select specific fields to fetch from the HasilPanen */ select?: HasilPanenSelect | null /** * Omit specific fields from the HasilPanen */ omit?: HasilPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: HasilPanenInclude | null where?: HasilPanenWhereInput orderBy?: HasilPanenOrderByWithRelationInput | HasilPanenOrderByWithRelationInput[] cursor?: HasilPanenWhereUniqueInput take?: number skip?: number distinct?: HasilPanenScalarFieldEnum | HasilPanenScalarFieldEnum[] } /** * Komoditas.prediksi_panen */ export type Komoditas$prediksi_panenArgs = { /** * Select specific fields to fetch from the PrediksiPanen */ select?: PrediksiPanenSelect | null /** * Omit specific fields from the PrediksiPanen */ omit?: PrediksiPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: PrediksiPanenInclude | null where?: PrediksiPanenWhereInput orderBy?: PrediksiPanenOrderByWithRelationInput | PrediksiPanenOrderByWithRelationInput[] cursor?: PrediksiPanenWhereUniqueInput take?: number skip?: number distinct?: PrediksiPanenScalarFieldEnum | PrediksiPanenScalarFieldEnum[] } /** * Komoditas without action */ export type KomoditasDefaultArgs = { /** * Select specific fields to fetch from the Komoditas */ select?: KomoditasSelect | null /** * Omit specific fields from the Komoditas */ omit?: KomoditasOmit | null /** * Choose, which related nodes to fetch as well */ include?: KomoditasInclude | null } /** * Model HasilPanen */ export type AggregateHasilPanen = { _count: HasilPanenCountAggregateOutputType | null _avg: HasilPanenAvgAggregateOutputType | null _sum: HasilPanenSumAggregateOutputType | null _min: HasilPanenMinAggregateOutputType | null _max: HasilPanenMaxAggregateOutputType | null } export type HasilPanenAvgAggregateOutputType = { id_panen: number | null id_kecamatan: number | null id_komoditas: number | null tahun_panen: number | null produksi: number | null luas_panen: number | null produktivitas: number | null } export type HasilPanenSumAggregateOutputType = { id_panen: number | null id_kecamatan: number | null id_komoditas: number | null tahun_panen: number | null produksi: number | null luas_panen: number | null produktivitas: number | null } export type HasilPanenMinAggregateOutputType = { id_panen: number | null id_kecamatan: number | null id_komoditas: number | null tahun_panen: number | null produksi: number | null luas_panen: number | null produktivitas: number | null } export type HasilPanenMaxAggregateOutputType = { id_panen: number | null id_kecamatan: number | null id_komoditas: number | null tahun_panen: number | null produksi: number | null luas_panen: number | null produktivitas: number | null } export type HasilPanenCountAggregateOutputType = { id_panen: number id_kecamatan: number id_komoditas: number tahun_panen: number produksi: number luas_panen: number produktivitas: number _all: number } export type HasilPanenAvgAggregateInputType = { id_panen?: true id_kecamatan?: true id_komoditas?: true tahun_panen?: true produksi?: true luas_panen?: true produktivitas?: true } export type HasilPanenSumAggregateInputType = { id_panen?: true id_kecamatan?: true id_komoditas?: true tahun_panen?: true produksi?: true luas_panen?: true produktivitas?: true } export type HasilPanenMinAggregateInputType = { id_panen?: true id_kecamatan?: true id_komoditas?: true tahun_panen?: true produksi?: true luas_panen?: true produktivitas?: true } export type HasilPanenMaxAggregateInputType = { id_panen?: true id_kecamatan?: true id_komoditas?: true tahun_panen?: true produksi?: true luas_panen?: true produktivitas?: true } export type HasilPanenCountAggregateInputType = { id_panen?: true id_kecamatan?: true id_komoditas?: true tahun_panen?: true produksi?: true luas_panen?: true produktivitas?: true _all?: true } export type HasilPanenAggregateArgs = { /** * Filter which HasilPanen to aggregate. */ where?: HasilPanenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of HasilPanens to fetch. */ orderBy?: HasilPanenOrderByWithRelationInput | HasilPanenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: HasilPanenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` HasilPanens 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` HasilPanens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned HasilPanens **/ _count?: true | HasilPanenCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: HasilPanenAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: HasilPanenSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: HasilPanenMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: HasilPanenMaxAggregateInputType } export type GetHasilPanenAggregateType = { [P in keyof T & keyof AggregateHasilPanen]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type HasilPanenGroupByArgs = { where?: HasilPanenWhereInput orderBy?: HasilPanenOrderByWithAggregationInput | HasilPanenOrderByWithAggregationInput[] by: HasilPanenScalarFieldEnum[] | HasilPanenScalarFieldEnum having?: HasilPanenScalarWhereWithAggregatesInput take?: number skip?: number _count?: HasilPanenCountAggregateInputType | true _avg?: HasilPanenAvgAggregateInputType _sum?: HasilPanenSumAggregateInputType _min?: HasilPanenMinAggregateInputType _max?: HasilPanenMaxAggregateInputType } export type HasilPanenGroupByOutputType = { id_panen: number id_kecamatan: number id_komoditas: number tahun_panen: number produksi: number luas_panen: number produktivitas: number _count: HasilPanenCountAggregateOutputType | null _avg: HasilPanenAvgAggregateOutputType | null _sum: HasilPanenSumAggregateOutputType | null _min: HasilPanenMinAggregateOutputType | null _max: HasilPanenMaxAggregateOutputType | null } type GetHasilPanenGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof HasilPanenGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type HasilPanenSelect = $Extensions.GetSelect<{ id_panen?: boolean id_kecamatan?: boolean id_komoditas?: boolean tahun_panen?: boolean produksi?: boolean luas_panen?: boolean produktivitas?: boolean kecamatan?: boolean | KecamatanDefaultArgs komoditas?: boolean | KomoditasDefaultArgs }, ExtArgs["result"]["hasilPanen"]> export type HasilPanenSelectCreateManyAndReturn = $Extensions.GetSelect<{ id_panen?: boolean id_kecamatan?: boolean id_komoditas?: boolean tahun_panen?: boolean produksi?: boolean luas_panen?: boolean produktivitas?: boolean kecamatan?: boolean | KecamatanDefaultArgs komoditas?: boolean | KomoditasDefaultArgs }, ExtArgs["result"]["hasilPanen"]> export type HasilPanenSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id_panen?: boolean id_kecamatan?: boolean id_komoditas?: boolean tahun_panen?: boolean produksi?: boolean luas_panen?: boolean produktivitas?: boolean kecamatan?: boolean | KecamatanDefaultArgs komoditas?: boolean | KomoditasDefaultArgs }, ExtArgs["result"]["hasilPanen"]> export type HasilPanenSelectScalar = { id_panen?: boolean id_kecamatan?: boolean id_komoditas?: boolean tahun_panen?: boolean produksi?: boolean luas_panen?: boolean produktivitas?: boolean } export type HasilPanenOmit = $Extensions.GetOmit<"id_panen" | "id_kecamatan" | "id_komoditas" | "tahun_panen" | "produksi" | "luas_panen" | "produktivitas", ExtArgs["result"]["hasilPanen"]> export type HasilPanenInclude = { kecamatan?: boolean | KecamatanDefaultArgs komoditas?: boolean | KomoditasDefaultArgs } export type HasilPanenIncludeCreateManyAndReturn = { kecamatan?: boolean | KecamatanDefaultArgs komoditas?: boolean | KomoditasDefaultArgs } export type HasilPanenIncludeUpdateManyAndReturn = { kecamatan?: boolean | KecamatanDefaultArgs komoditas?: boolean | KomoditasDefaultArgs } export type $HasilPanenPayload = { name: "HasilPanen" objects: { kecamatan: Prisma.$KecamatanPayload komoditas: Prisma.$KomoditasPayload } scalars: $Extensions.GetPayloadResult<{ id_panen: number id_kecamatan: number id_komoditas: number tahun_panen: number produksi: number luas_panen: number produktivitas: number }, ExtArgs["result"]["hasilPanen"]> composites: {} } type HasilPanenGetPayload = $Result.GetResult type HasilPanenCountArgs = Omit & { select?: HasilPanenCountAggregateInputType | true } export interface HasilPanenDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['HasilPanen'], meta: { name: 'HasilPanen' } } /** * Find zero or one HasilPanen that matches the filter. * @param {HasilPanenFindUniqueArgs} args - Arguments to find a HasilPanen * @example * // Get one HasilPanen * const hasilPanen = await prisma.hasilPanen.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__HasilPanenClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one HasilPanen that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {HasilPanenFindUniqueOrThrowArgs} args - Arguments to find a HasilPanen * @example * // Get one HasilPanen * const hasilPanen = await prisma.hasilPanen.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__HasilPanenClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first HasilPanen 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 {HasilPanenFindFirstArgs} args - Arguments to find a HasilPanen * @example * // Get one HasilPanen * const hasilPanen = await prisma.hasilPanen.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__HasilPanenClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first HasilPanen 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 {HasilPanenFindFirstOrThrowArgs} args - Arguments to find a HasilPanen * @example * // Get one HasilPanen * const hasilPanen = await prisma.hasilPanen.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__HasilPanenClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more HasilPanens 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 {HasilPanenFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all HasilPanens * const hasilPanens = await prisma.hasilPanen.findMany() * * // Get first 10 HasilPanens * const hasilPanens = await prisma.hasilPanen.findMany({ take: 10 }) * * // Only select the `id_panen` * const hasilPanenWithId_panenOnly = await prisma.hasilPanen.findMany({ select: { id_panen: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a HasilPanen. * @param {HasilPanenCreateArgs} args - Arguments to create a HasilPanen. * @example * // Create one HasilPanen * const HasilPanen = await prisma.hasilPanen.create({ * data: { * // ... data to create a HasilPanen * } * }) * */ create(args: SelectSubset>): Prisma__HasilPanenClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many HasilPanens. * @param {HasilPanenCreateManyArgs} args - Arguments to create many HasilPanens. * @example * // Create many HasilPanens * const hasilPanen = await prisma.hasilPanen.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many HasilPanens and returns the data saved in the database. * @param {HasilPanenCreateManyAndReturnArgs} args - Arguments to create many HasilPanens. * @example * // Create many HasilPanens * const hasilPanen = await prisma.hasilPanen.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many HasilPanens and only return the `id_panen` * const hasilPanenWithId_panenOnly = await prisma.hasilPanen.createManyAndReturn({ * select: { id_panen: 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 HasilPanen. * @param {HasilPanenDeleteArgs} args - Arguments to delete one HasilPanen. * @example * // Delete one HasilPanen * const HasilPanen = await prisma.hasilPanen.delete({ * where: { * // ... filter to delete one HasilPanen * } * }) * */ delete(args: SelectSubset>): Prisma__HasilPanenClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one HasilPanen. * @param {HasilPanenUpdateArgs} args - Arguments to update one HasilPanen. * @example * // Update one HasilPanen * const hasilPanen = await prisma.hasilPanen.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__HasilPanenClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more HasilPanens. * @param {HasilPanenDeleteManyArgs} args - Arguments to filter HasilPanens to delete. * @example * // Delete a few HasilPanens * const { count } = await prisma.hasilPanen.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more HasilPanens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {HasilPanenUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many HasilPanens * const hasilPanen = await prisma.hasilPanen.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more HasilPanens and returns the data updated in the database. * @param {HasilPanenUpdateManyAndReturnArgs} args - Arguments to update many HasilPanens. * @example * // Update many HasilPanens * const hasilPanen = await prisma.hasilPanen.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more HasilPanens and only return the `id_panen` * const hasilPanenWithId_panenOnly = await prisma.hasilPanen.updateManyAndReturn({ * select: { id_panen: 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 HasilPanen. * @param {HasilPanenUpsertArgs} args - Arguments to update or create a HasilPanen. * @example * // Update or create a HasilPanen * const hasilPanen = await prisma.hasilPanen.upsert({ * create: { * // ... data to create a HasilPanen * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the HasilPanen we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__HasilPanenClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of HasilPanens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {HasilPanenCountArgs} args - Arguments to filter HasilPanens to count. * @example * // Count the number of HasilPanens * const count = await prisma.hasilPanen.count({ * where: { * // ... the filter for the HasilPanens 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 HasilPanen. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {HasilPanenAggregateArgs} 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 HasilPanen. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {HasilPanenGroupByArgs} 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 HasilPanenGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: HasilPanenGroupByArgs['orderBy'] } : { orderBy?: HasilPanenGroupByArgs['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 ? GetHasilPanenGroupByPayload : Prisma.PrismaPromise /** * Fields of the HasilPanen model */ readonly fields: HasilPanenFieldRefs; } /** * The delegate class that acts as a "Promise-like" for HasilPanen. * 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__HasilPanenClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" kecamatan = {}>(args?: Subset>): Prisma__KecamatanClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> komoditas = {}>(args?: Subset>): Prisma__KomoditasClient<$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 HasilPanen model */ interface HasilPanenFieldRefs { readonly id_panen: FieldRef<"HasilPanen", 'Int'> readonly id_kecamatan: FieldRef<"HasilPanen", 'Int'> readonly id_komoditas: FieldRef<"HasilPanen", 'Int'> readonly tahun_panen: FieldRef<"HasilPanen", 'Int'> readonly produksi: FieldRef<"HasilPanen", 'Float'> readonly luas_panen: FieldRef<"HasilPanen", 'Float'> readonly produktivitas: FieldRef<"HasilPanen", 'Float'> } // Custom InputTypes /** * HasilPanen findUnique */ export type HasilPanenFindUniqueArgs = { /** * Select specific fields to fetch from the HasilPanen */ select?: HasilPanenSelect | null /** * Omit specific fields from the HasilPanen */ omit?: HasilPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: HasilPanenInclude | null /** * Filter, which HasilPanen to fetch. */ where: HasilPanenWhereUniqueInput } /** * HasilPanen findUniqueOrThrow */ export type HasilPanenFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the HasilPanen */ select?: HasilPanenSelect | null /** * Omit specific fields from the HasilPanen */ omit?: HasilPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: HasilPanenInclude | null /** * Filter, which HasilPanen to fetch. */ where: HasilPanenWhereUniqueInput } /** * HasilPanen findFirst */ export type HasilPanenFindFirstArgs = { /** * Select specific fields to fetch from the HasilPanen */ select?: HasilPanenSelect | null /** * Omit specific fields from the HasilPanen */ omit?: HasilPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: HasilPanenInclude | null /** * Filter, which HasilPanen to fetch. */ where?: HasilPanenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of HasilPanens to fetch. */ orderBy?: HasilPanenOrderByWithRelationInput | HasilPanenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for HasilPanens. */ cursor?: HasilPanenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` HasilPanens 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` HasilPanens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of HasilPanens. */ distinct?: HasilPanenScalarFieldEnum | HasilPanenScalarFieldEnum[] } /** * HasilPanen findFirstOrThrow */ export type HasilPanenFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the HasilPanen */ select?: HasilPanenSelect | null /** * Omit specific fields from the HasilPanen */ omit?: HasilPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: HasilPanenInclude | null /** * Filter, which HasilPanen to fetch. */ where?: HasilPanenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of HasilPanens to fetch. */ orderBy?: HasilPanenOrderByWithRelationInput | HasilPanenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for HasilPanens. */ cursor?: HasilPanenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` HasilPanens 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` HasilPanens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of HasilPanens. */ distinct?: HasilPanenScalarFieldEnum | HasilPanenScalarFieldEnum[] } /** * HasilPanen findMany */ export type HasilPanenFindManyArgs = { /** * Select specific fields to fetch from the HasilPanen */ select?: HasilPanenSelect | null /** * Omit specific fields from the HasilPanen */ omit?: HasilPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: HasilPanenInclude | null /** * Filter, which HasilPanens to fetch. */ where?: HasilPanenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of HasilPanens to fetch. */ orderBy?: HasilPanenOrderByWithRelationInput | HasilPanenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing HasilPanens. */ cursor?: HasilPanenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` HasilPanens 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` HasilPanens. */ skip?: number distinct?: HasilPanenScalarFieldEnum | HasilPanenScalarFieldEnum[] } /** * HasilPanen create */ export type HasilPanenCreateArgs = { /** * Select specific fields to fetch from the HasilPanen */ select?: HasilPanenSelect | null /** * Omit specific fields from the HasilPanen */ omit?: HasilPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: HasilPanenInclude | null /** * The data needed to create a HasilPanen. */ data: XOR } /** * HasilPanen createMany */ export type HasilPanenCreateManyArgs = { /** * The data used to create many HasilPanens. */ data: HasilPanenCreateManyInput | HasilPanenCreateManyInput[] skipDuplicates?: boolean } /** * HasilPanen createManyAndReturn */ export type HasilPanenCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the HasilPanen */ select?: HasilPanenSelectCreateManyAndReturn | null /** * Omit specific fields from the HasilPanen */ omit?: HasilPanenOmit | null /** * The data used to create many HasilPanens. */ data: HasilPanenCreateManyInput | HasilPanenCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: HasilPanenIncludeCreateManyAndReturn | null } /** * HasilPanen update */ export type HasilPanenUpdateArgs = { /** * Select specific fields to fetch from the HasilPanen */ select?: HasilPanenSelect | null /** * Omit specific fields from the HasilPanen */ omit?: HasilPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: HasilPanenInclude | null /** * The data needed to update a HasilPanen. */ data: XOR /** * Choose, which HasilPanen to update. */ where: HasilPanenWhereUniqueInput } /** * HasilPanen updateMany */ export type HasilPanenUpdateManyArgs = { /** * The data used to update HasilPanens. */ data: XOR /** * Filter which HasilPanens to update */ where?: HasilPanenWhereInput /** * Limit how many HasilPanens to update. */ limit?: number } /** * HasilPanen updateManyAndReturn */ export type HasilPanenUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the HasilPanen */ select?: HasilPanenSelectUpdateManyAndReturn | null /** * Omit specific fields from the HasilPanen */ omit?: HasilPanenOmit | null /** * The data used to update HasilPanens. */ data: XOR /** * Filter which HasilPanens to update */ where?: HasilPanenWhereInput /** * Limit how many HasilPanens to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: HasilPanenIncludeUpdateManyAndReturn | null } /** * HasilPanen upsert */ export type HasilPanenUpsertArgs = { /** * Select specific fields to fetch from the HasilPanen */ select?: HasilPanenSelect | null /** * Omit specific fields from the HasilPanen */ omit?: HasilPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: HasilPanenInclude | null /** * The filter to search for the HasilPanen to update in case it exists. */ where: HasilPanenWhereUniqueInput /** * In case the HasilPanen found by the `where` argument doesn't exist, create a new HasilPanen with this data. */ create: XOR /** * In case the HasilPanen was found with the provided `where` argument, update it with this data. */ update: XOR } /** * HasilPanen delete */ export type HasilPanenDeleteArgs = { /** * Select specific fields to fetch from the HasilPanen */ select?: HasilPanenSelect | null /** * Omit specific fields from the HasilPanen */ omit?: HasilPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: HasilPanenInclude | null /** * Filter which HasilPanen to delete. */ where: HasilPanenWhereUniqueInput } /** * HasilPanen deleteMany */ export type HasilPanenDeleteManyArgs = { /** * Filter which HasilPanens to delete */ where?: HasilPanenWhereInput /** * Limit how many HasilPanens to delete. */ limit?: number } /** * HasilPanen without action */ export type HasilPanenDefaultArgs = { /** * Select specific fields to fetch from the HasilPanen */ select?: HasilPanenSelect | null /** * Omit specific fields from the HasilPanen */ omit?: HasilPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: HasilPanenInclude | null } /** * Model PrediksiPanen */ export type AggregatePrediksiPanen = { _count: PrediksiPanenCountAggregateOutputType | null _avg: PrediksiPanenAvgAggregateOutputType | null _sum: PrediksiPanenSumAggregateOutputType | null _min: PrediksiPanenMinAggregateOutputType | null _max: PrediksiPanenMaxAggregateOutputType | null } export type PrediksiPanenAvgAggregateOutputType = { id_prediksi: number | null id_kecamatan: number | null id_komoditas: number | null tahun_prediksi: number | null hasil_prediksi: number | null } export type PrediksiPanenSumAggregateOutputType = { id_prediksi: number | null id_kecamatan: number | null id_komoditas: number | null tahun_prediksi: number | null hasil_prediksi: number | null } export type PrediksiPanenMinAggregateOutputType = { id_prediksi: number | null id_kecamatan: number | null id_komoditas: number | null tahun_prediksi: number | null hasil_prediksi: number | null } export type PrediksiPanenMaxAggregateOutputType = { id_prediksi: number | null id_kecamatan: number | null id_komoditas: number | null tahun_prediksi: number | null hasil_prediksi: number | null } export type PrediksiPanenCountAggregateOutputType = { id_prediksi: number id_kecamatan: number id_komoditas: number tahun_prediksi: number hasil_prediksi: number _all: number } export type PrediksiPanenAvgAggregateInputType = { id_prediksi?: true id_kecamatan?: true id_komoditas?: true tahun_prediksi?: true hasil_prediksi?: true } export type PrediksiPanenSumAggregateInputType = { id_prediksi?: true id_kecamatan?: true id_komoditas?: true tahun_prediksi?: true hasil_prediksi?: true } export type PrediksiPanenMinAggregateInputType = { id_prediksi?: true id_kecamatan?: true id_komoditas?: true tahun_prediksi?: true hasil_prediksi?: true } export type PrediksiPanenMaxAggregateInputType = { id_prediksi?: true id_kecamatan?: true id_komoditas?: true tahun_prediksi?: true hasil_prediksi?: true } export type PrediksiPanenCountAggregateInputType = { id_prediksi?: true id_kecamatan?: true id_komoditas?: true tahun_prediksi?: true hasil_prediksi?: true _all?: true } export type PrediksiPanenAggregateArgs = { /** * Filter which PrediksiPanen to aggregate. */ where?: PrediksiPanenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PrediksiPanens to fetch. */ orderBy?: PrediksiPanenOrderByWithRelationInput | PrediksiPanenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PrediksiPanenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PrediksiPanens 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` PrediksiPanens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PrediksiPanens **/ _count?: true | PrediksiPanenCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PrediksiPanenAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PrediksiPanenSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PrediksiPanenMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PrediksiPanenMaxAggregateInputType } export type GetPrediksiPanenAggregateType = { [P in keyof T & keyof AggregatePrediksiPanen]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PrediksiPanenGroupByArgs = { where?: PrediksiPanenWhereInput orderBy?: PrediksiPanenOrderByWithAggregationInput | PrediksiPanenOrderByWithAggregationInput[] by: PrediksiPanenScalarFieldEnum[] | PrediksiPanenScalarFieldEnum having?: PrediksiPanenScalarWhereWithAggregatesInput take?: number skip?: number _count?: PrediksiPanenCountAggregateInputType | true _avg?: PrediksiPanenAvgAggregateInputType _sum?: PrediksiPanenSumAggregateInputType _min?: PrediksiPanenMinAggregateInputType _max?: PrediksiPanenMaxAggregateInputType } export type PrediksiPanenGroupByOutputType = { id_prediksi: number id_kecamatan: number id_komoditas: number tahun_prediksi: number hasil_prediksi: number _count: PrediksiPanenCountAggregateOutputType | null _avg: PrediksiPanenAvgAggregateOutputType | null _sum: PrediksiPanenSumAggregateOutputType | null _min: PrediksiPanenMinAggregateOutputType | null _max: PrediksiPanenMaxAggregateOutputType | null } type GetPrediksiPanenGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PrediksiPanenGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PrediksiPanenSelect = $Extensions.GetSelect<{ id_prediksi?: boolean id_kecamatan?: boolean id_komoditas?: boolean tahun_prediksi?: boolean hasil_prediksi?: boolean kecamatan?: boolean | KecamatanDefaultArgs komoditas?: boolean | KomoditasDefaultArgs }, ExtArgs["result"]["prediksiPanen"]> export type PrediksiPanenSelectCreateManyAndReturn = $Extensions.GetSelect<{ id_prediksi?: boolean id_kecamatan?: boolean id_komoditas?: boolean tahun_prediksi?: boolean hasil_prediksi?: boolean kecamatan?: boolean | KecamatanDefaultArgs komoditas?: boolean | KomoditasDefaultArgs }, ExtArgs["result"]["prediksiPanen"]> export type PrediksiPanenSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id_prediksi?: boolean id_kecamatan?: boolean id_komoditas?: boolean tahun_prediksi?: boolean hasil_prediksi?: boolean kecamatan?: boolean | KecamatanDefaultArgs komoditas?: boolean | KomoditasDefaultArgs }, ExtArgs["result"]["prediksiPanen"]> export type PrediksiPanenSelectScalar = { id_prediksi?: boolean id_kecamatan?: boolean id_komoditas?: boolean tahun_prediksi?: boolean hasil_prediksi?: boolean } export type PrediksiPanenOmit = $Extensions.GetOmit<"id_prediksi" | "id_kecamatan" | "id_komoditas" | "tahun_prediksi" | "hasil_prediksi", ExtArgs["result"]["prediksiPanen"]> export type PrediksiPanenInclude = { kecamatan?: boolean | KecamatanDefaultArgs komoditas?: boolean | KomoditasDefaultArgs } export type PrediksiPanenIncludeCreateManyAndReturn = { kecamatan?: boolean | KecamatanDefaultArgs komoditas?: boolean | KomoditasDefaultArgs } export type PrediksiPanenIncludeUpdateManyAndReturn = { kecamatan?: boolean | KecamatanDefaultArgs komoditas?: boolean | KomoditasDefaultArgs } export type $PrediksiPanenPayload = { name: "PrediksiPanen" objects: { kecamatan: Prisma.$KecamatanPayload komoditas: Prisma.$KomoditasPayload } scalars: $Extensions.GetPayloadResult<{ id_prediksi: number id_kecamatan: number id_komoditas: number tahun_prediksi: number hasil_prediksi: number }, ExtArgs["result"]["prediksiPanen"]> composites: {} } type PrediksiPanenGetPayload = $Result.GetResult type PrediksiPanenCountArgs = Omit & { select?: PrediksiPanenCountAggregateInputType | true } export interface PrediksiPanenDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PrediksiPanen'], meta: { name: 'PrediksiPanen' } } /** * Find zero or one PrediksiPanen that matches the filter. * @param {PrediksiPanenFindUniqueArgs} args - Arguments to find a PrediksiPanen * @example * // Get one PrediksiPanen * const prediksiPanen = await prisma.prediksiPanen.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PrediksiPanenClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one PrediksiPanen that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PrediksiPanenFindUniqueOrThrowArgs} args - Arguments to find a PrediksiPanen * @example * // Get one PrediksiPanen * const prediksiPanen = await prisma.prediksiPanen.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PrediksiPanenClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first PrediksiPanen 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 {PrediksiPanenFindFirstArgs} args - Arguments to find a PrediksiPanen * @example * // Get one PrediksiPanen * const prediksiPanen = await prisma.prediksiPanen.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PrediksiPanenClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first PrediksiPanen 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 {PrediksiPanenFindFirstOrThrowArgs} args - Arguments to find a PrediksiPanen * @example * // Get one PrediksiPanen * const prediksiPanen = await prisma.prediksiPanen.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PrediksiPanenClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more PrediksiPanens 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 {PrediksiPanenFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PrediksiPanens * const prediksiPanens = await prisma.prediksiPanen.findMany() * * // Get first 10 PrediksiPanens * const prediksiPanens = await prisma.prediksiPanen.findMany({ take: 10 }) * * // Only select the `id_prediksi` * const prediksiPanenWithId_prediksiOnly = await prisma.prediksiPanen.findMany({ select: { id_prediksi: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a PrediksiPanen. * @param {PrediksiPanenCreateArgs} args - Arguments to create a PrediksiPanen. * @example * // Create one PrediksiPanen * const PrediksiPanen = await prisma.prediksiPanen.create({ * data: { * // ... data to create a PrediksiPanen * } * }) * */ create(args: SelectSubset>): Prisma__PrediksiPanenClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many PrediksiPanens. * @param {PrediksiPanenCreateManyArgs} args - Arguments to create many PrediksiPanens. * @example * // Create many PrediksiPanens * const prediksiPanen = await prisma.prediksiPanen.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many PrediksiPanens and returns the data saved in the database. * @param {PrediksiPanenCreateManyAndReturnArgs} args - Arguments to create many PrediksiPanens. * @example * // Create many PrediksiPanens * const prediksiPanen = await prisma.prediksiPanen.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PrediksiPanens and only return the `id_prediksi` * const prediksiPanenWithId_prediksiOnly = await prisma.prediksiPanen.createManyAndReturn({ * select: { id_prediksi: 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 PrediksiPanen. * @param {PrediksiPanenDeleteArgs} args - Arguments to delete one PrediksiPanen. * @example * // Delete one PrediksiPanen * const PrediksiPanen = await prisma.prediksiPanen.delete({ * where: { * // ... filter to delete one PrediksiPanen * } * }) * */ delete(args: SelectSubset>): Prisma__PrediksiPanenClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one PrediksiPanen. * @param {PrediksiPanenUpdateArgs} args - Arguments to update one PrediksiPanen. * @example * // Update one PrediksiPanen * const prediksiPanen = await prisma.prediksiPanen.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PrediksiPanenClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more PrediksiPanens. * @param {PrediksiPanenDeleteManyArgs} args - Arguments to filter PrediksiPanens to delete. * @example * // Delete a few PrediksiPanens * const { count } = await prisma.prediksiPanen.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PrediksiPanens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PrediksiPanenUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PrediksiPanens * const prediksiPanen = await prisma.prediksiPanen.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PrediksiPanens and returns the data updated in the database. * @param {PrediksiPanenUpdateManyAndReturnArgs} args - Arguments to update many PrediksiPanens. * @example * // Update many PrediksiPanens * const prediksiPanen = await prisma.prediksiPanen.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more PrediksiPanens and only return the `id_prediksi` * const prediksiPanenWithId_prediksiOnly = await prisma.prediksiPanen.updateManyAndReturn({ * select: { id_prediksi: 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 PrediksiPanen. * @param {PrediksiPanenUpsertArgs} args - Arguments to update or create a PrediksiPanen. * @example * // Update or create a PrediksiPanen * const prediksiPanen = await prisma.prediksiPanen.upsert({ * create: { * // ... data to create a PrediksiPanen * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PrediksiPanen we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PrediksiPanenClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of PrediksiPanens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PrediksiPanenCountArgs} args - Arguments to filter PrediksiPanens to count. * @example * // Count the number of PrediksiPanens * const count = await prisma.prediksiPanen.count({ * where: { * // ... the filter for the PrediksiPanens 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 PrediksiPanen. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PrediksiPanenAggregateArgs} 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 PrediksiPanen. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PrediksiPanenGroupByArgs} 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 PrediksiPanenGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PrediksiPanenGroupByArgs['orderBy'] } : { orderBy?: PrediksiPanenGroupByArgs['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 ? GetPrediksiPanenGroupByPayload : Prisma.PrismaPromise /** * Fields of the PrediksiPanen model */ readonly fields: PrediksiPanenFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PrediksiPanen. * 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__PrediksiPanenClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" kecamatan = {}>(args?: Subset>): Prisma__KecamatanClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> komoditas = {}>(args?: Subset>): Prisma__KomoditasClient<$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 PrediksiPanen model */ interface PrediksiPanenFieldRefs { readonly id_prediksi: FieldRef<"PrediksiPanen", 'Int'> readonly id_kecamatan: FieldRef<"PrediksiPanen", 'Int'> readonly id_komoditas: FieldRef<"PrediksiPanen", 'Int'> readonly tahun_prediksi: FieldRef<"PrediksiPanen", 'Int'> readonly hasil_prediksi: FieldRef<"PrediksiPanen", 'Int'> } // Custom InputTypes /** * PrediksiPanen findUnique */ export type PrediksiPanenFindUniqueArgs = { /** * Select specific fields to fetch from the PrediksiPanen */ select?: PrediksiPanenSelect | null /** * Omit specific fields from the PrediksiPanen */ omit?: PrediksiPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: PrediksiPanenInclude | null /** * Filter, which PrediksiPanen to fetch. */ where: PrediksiPanenWhereUniqueInput } /** * PrediksiPanen findUniqueOrThrow */ export type PrediksiPanenFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PrediksiPanen */ select?: PrediksiPanenSelect | null /** * Omit specific fields from the PrediksiPanen */ omit?: PrediksiPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: PrediksiPanenInclude | null /** * Filter, which PrediksiPanen to fetch. */ where: PrediksiPanenWhereUniqueInput } /** * PrediksiPanen findFirst */ export type PrediksiPanenFindFirstArgs = { /** * Select specific fields to fetch from the PrediksiPanen */ select?: PrediksiPanenSelect | null /** * Omit specific fields from the PrediksiPanen */ omit?: PrediksiPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: PrediksiPanenInclude | null /** * Filter, which PrediksiPanen to fetch. */ where?: PrediksiPanenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PrediksiPanens to fetch. */ orderBy?: PrediksiPanenOrderByWithRelationInput | PrediksiPanenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PrediksiPanens. */ cursor?: PrediksiPanenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PrediksiPanens 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` PrediksiPanens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PrediksiPanens. */ distinct?: PrediksiPanenScalarFieldEnum | PrediksiPanenScalarFieldEnum[] } /** * PrediksiPanen findFirstOrThrow */ export type PrediksiPanenFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PrediksiPanen */ select?: PrediksiPanenSelect | null /** * Omit specific fields from the PrediksiPanen */ omit?: PrediksiPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: PrediksiPanenInclude | null /** * Filter, which PrediksiPanen to fetch. */ where?: PrediksiPanenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PrediksiPanens to fetch. */ orderBy?: PrediksiPanenOrderByWithRelationInput | PrediksiPanenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PrediksiPanens. */ cursor?: PrediksiPanenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PrediksiPanens 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` PrediksiPanens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PrediksiPanens. */ distinct?: PrediksiPanenScalarFieldEnum | PrediksiPanenScalarFieldEnum[] } /** * PrediksiPanen findMany */ export type PrediksiPanenFindManyArgs = { /** * Select specific fields to fetch from the PrediksiPanen */ select?: PrediksiPanenSelect | null /** * Omit specific fields from the PrediksiPanen */ omit?: PrediksiPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: PrediksiPanenInclude | null /** * Filter, which PrediksiPanens to fetch. */ where?: PrediksiPanenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PrediksiPanens to fetch. */ orderBy?: PrediksiPanenOrderByWithRelationInput | PrediksiPanenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PrediksiPanens. */ cursor?: PrediksiPanenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PrediksiPanens 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` PrediksiPanens. */ skip?: number distinct?: PrediksiPanenScalarFieldEnum | PrediksiPanenScalarFieldEnum[] } /** * PrediksiPanen create */ export type PrediksiPanenCreateArgs = { /** * Select specific fields to fetch from the PrediksiPanen */ select?: PrediksiPanenSelect | null /** * Omit specific fields from the PrediksiPanen */ omit?: PrediksiPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: PrediksiPanenInclude | null /** * The data needed to create a PrediksiPanen. */ data: XOR } /** * PrediksiPanen createMany */ export type PrediksiPanenCreateManyArgs = { /** * The data used to create many PrediksiPanens. */ data: PrediksiPanenCreateManyInput | PrediksiPanenCreateManyInput[] skipDuplicates?: boolean } /** * PrediksiPanen createManyAndReturn */ export type PrediksiPanenCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PrediksiPanen */ select?: PrediksiPanenSelectCreateManyAndReturn | null /** * Omit specific fields from the PrediksiPanen */ omit?: PrediksiPanenOmit | null /** * The data used to create many PrediksiPanens. */ data: PrediksiPanenCreateManyInput | PrediksiPanenCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PrediksiPanenIncludeCreateManyAndReturn | null } /** * PrediksiPanen update */ export type PrediksiPanenUpdateArgs = { /** * Select specific fields to fetch from the PrediksiPanen */ select?: PrediksiPanenSelect | null /** * Omit specific fields from the PrediksiPanen */ omit?: PrediksiPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: PrediksiPanenInclude | null /** * The data needed to update a PrediksiPanen. */ data: XOR /** * Choose, which PrediksiPanen to update. */ where: PrediksiPanenWhereUniqueInput } /** * PrediksiPanen updateMany */ export type PrediksiPanenUpdateManyArgs = { /** * The data used to update PrediksiPanens. */ data: XOR /** * Filter which PrediksiPanens to update */ where?: PrediksiPanenWhereInput /** * Limit how many PrediksiPanens to update. */ limit?: number } /** * PrediksiPanen updateManyAndReturn */ export type PrediksiPanenUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the PrediksiPanen */ select?: PrediksiPanenSelectUpdateManyAndReturn | null /** * Omit specific fields from the PrediksiPanen */ omit?: PrediksiPanenOmit | null /** * The data used to update PrediksiPanens. */ data: XOR /** * Filter which PrediksiPanens to update */ where?: PrediksiPanenWhereInput /** * Limit how many PrediksiPanens to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: PrediksiPanenIncludeUpdateManyAndReturn | null } /** * PrediksiPanen upsert */ export type PrediksiPanenUpsertArgs = { /** * Select specific fields to fetch from the PrediksiPanen */ select?: PrediksiPanenSelect | null /** * Omit specific fields from the PrediksiPanen */ omit?: PrediksiPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: PrediksiPanenInclude | null /** * The filter to search for the PrediksiPanen to update in case it exists. */ where: PrediksiPanenWhereUniqueInput /** * In case the PrediksiPanen found by the `where` argument doesn't exist, create a new PrediksiPanen with this data. */ create: XOR /** * In case the PrediksiPanen was found with the provided `where` argument, update it with this data. */ update: XOR } /** * PrediksiPanen delete */ export type PrediksiPanenDeleteArgs = { /** * Select specific fields to fetch from the PrediksiPanen */ select?: PrediksiPanenSelect | null /** * Omit specific fields from the PrediksiPanen */ omit?: PrediksiPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: PrediksiPanenInclude | null /** * Filter which PrediksiPanen to delete. */ where: PrediksiPanenWhereUniqueInput } /** * PrediksiPanen deleteMany */ export type PrediksiPanenDeleteManyArgs = { /** * Filter which PrediksiPanens to delete */ where?: PrediksiPanenWhereInput /** * Limit how many PrediksiPanens to delete. */ limit?: number } /** * PrediksiPanen without action */ export type PrediksiPanenDefaultArgs = { /** * Select specific fields to fetch from the PrediksiPanen */ select?: PrediksiPanenSelect | null /** * Omit specific fields from the PrediksiPanen */ omit?: PrediksiPanenOmit | null /** * Choose, which related nodes to fetch as well */ include?: PrediksiPanenInclude | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const UserScalarFieldEnum: { id: 'id', name: 'name', email: 'email', password: 'password', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] export const DetailScalarFieldEnum: { tax_id: 'tax_id', phone: 'phone', bio: 'bio', city: 'city', county: 'county', post_kode: 'post_kode', photo_profile: 'photo_profile' }; export type DetailScalarFieldEnum = (typeof DetailScalarFieldEnum)[keyof typeof DetailScalarFieldEnum] export const KecamatanScalarFieldEnum: { id_kecamatan: 'id_kecamatan', id_komoditas: 'id_komoditas', nama_kecamatan: 'nama_kecamatan', deskripsi: 'deskripsi', gambar: 'gambar', area: 'area', posisi_x: 'posisi_x', posisi_y: 'posisi_y' }; export type KecamatanScalarFieldEnum = (typeof KecamatanScalarFieldEnum)[keyof typeof KecamatanScalarFieldEnum] export const PendudukScalarFieldEnum: { id_penduduk: 'id_penduduk', id_kecamatan: 'id_kecamatan', data_tahun: 'data_tahun', jumlah_penduduk: 'jumlah_penduduk', laju_pertumbuhan: 'laju_pertumbuhan' }; export type PendudukScalarFieldEnum = (typeof PendudukScalarFieldEnum)[keyof typeof PendudukScalarFieldEnum] export const KomoditasScalarFieldEnum: { id_komoditas: 'id_komoditas', nama_komoditas: 'nama_komoditas', posisi_x: 'posisi_x', posisi_y: 'posisi_y' }; export type KomoditasScalarFieldEnum = (typeof KomoditasScalarFieldEnum)[keyof typeof KomoditasScalarFieldEnum] export const HasilPanenScalarFieldEnum: { id_panen: 'id_panen', id_kecamatan: 'id_kecamatan', id_komoditas: 'id_komoditas', tahun_panen: 'tahun_panen', produksi: 'produksi', luas_panen: 'luas_panen', produktivitas: 'produktivitas' }; export type HasilPanenScalarFieldEnum = (typeof HasilPanenScalarFieldEnum)[keyof typeof HasilPanenScalarFieldEnum] export const PrediksiPanenScalarFieldEnum: { id_prediksi: 'id_prediksi', id_kecamatan: 'id_kecamatan', id_komoditas: 'id_komoditas', tahun_prediksi: 'tahun_prediksi', hasil_prediksi: 'hasil_prediksi' }; export type PrediksiPanenScalarFieldEnum = (typeof PrediksiPanenScalarFieldEnum)[keyof typeof PrediksiPanenScalarFieldEnum] export const SortOrder: { asc: 'asc', desc: 'desc' }; export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export const QueryMode: { default: 'default', insensitive: 'insensitive' }; export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] 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 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> /** * Reference to a field of type 'DateTime[]' */ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> /** * Reference to a field of type 'Int' */ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> /** * Reference to a field of type 'Int[]' */ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> /** * Reference to a field of type 'Float' */ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> /** * Reference to a field of type 'Float[]' */ export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> /** * Deep Input Types */ export type UserWhereInput = { AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] id?: StringFilter<"User"> | string name?: StringNullableFilter<"User"> | string | null email?: StringNullableFilter<"User"> | string | null password?: StringFilter<"User"> | string createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string detail?: XOR | null } export type UserOrderByWithRelationInput = { id?: SortOrder name?: SortOrderInput | SortOrder email?: SortOrderInput | SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder detail?: DetailOrderByWithRelationInput } export type UserWhereUniqueInput = Prisma.AtLeast<{ id?: string email?: string AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] name?: StringNullableFilter<"User"> | string | null password?: StringFilter<"User"> | string createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string detail?: XOR | null }, "id" | "email"> export type UserOrderByWithAggregationInput = { id?: SortOrder name?: SortOrderInput | SortOrder email?: SortOrderInput | SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: UserCountOrderByAggregateInput _max?: UserMaxOrderByAggregateInput _min?: UserMinOrderByAggregateInput } export type UserScalarWhereWithAggregatesInput = { AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] OR?: UserScalarWhereWithAggregatesInput[] NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"User"> | string name?: StringNullableWithAggregatesFilter<"User"> | string | null email?: StringNullableWithAggregatesFilter<"User"> | string | null password?: StringWithAggregatesFilter<"User"> | string createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string } export type DetailWhereInput = { AND?: DetailWhereInput | DetailWhereInput[] OR?: DetailWhereInput[] NOT?: DetailWhereInput | DetailWhereInput[] tax_id?: StringFilter<"Detail"> | string phone?: StringFilter<"Detail"> | string bio?: StringFilter<"Detail"> | string city?: StringFilter<"Detail"> | string county?: StringFilter<"Detail"> | string post_kode?: StringFilter<"Detail"> | string photo_profile?: StringFilter<"Detail"> | string user?: XOR } export type DetailOrderByWithRelationInput = { tax_id?: SortOrder phone?: SortOrder bio?: SortOrder city?: SortOrder county?: SortOrder post_kode?: SortOrder photo_profile?: SortOrder user?: UserOrderByWithRelationInput } export type DetailWhereUniqueInput = Prisma.AtLeast<{ tax_id?: string AND?: DetailWhereInput | DetailWhereInput[] OR?: DetailWhereInput[] NOT?: DetailWhereInput | DetailWhereInput[] phone?: StringFilter<"Detail"> | string bio?: StringFilter<"Detail"> | string city?: StringFilter<"Detail"> | string county?: StringFilter<"Detail"> | string post_kode?: StringFilter<"Detail"> | string photo_profile?: StringFilter<"Detail"> | string user?: XOR }, "tax_id"> export type DetailOrderByWithAggregationInput = { tax_id?: SortOrder phone?: SortOrder bio?: SortOrder city?: SortOrder county?: SortOrder post_kode?: SortOrder photo_profile?: SortOrder _count?: DetailCountOrderByAggregateInput _max?: DetailMaxOrderByAggregateInput _min?: DetailMinOrderByAggregateInput } export type DetailScalarWhereWithAggregatesInput = { AND?: DetailScalarWhereWithAggregatesInput | DetailScalarWhereWithAggregatesInput[] OR?: DetailScalarWhereWithAggregatesInput[] NOT?: DetailScalarWhereWithAggregatesInput | DetailScalarWhereWithAggregatesInput[] tax_id?: StringWithAggregatesFilter<"Detail"> | string phone?: StringWithAggregatesFilter<"Detail"> | string bio?: StringWithAggregatesFilter<"Detail"> | string city?: StringWithAggregatesFilter<"Detail"> | string county?: StringWithAggregatesFilter<"Detail"> | string post_kode?: StringWithAggregatesFilter<"Detail"> | string photo_profile?: StringWithAggregatesFilter<"Detail"> | string } export type KecamatanWhereInput = { AND?: KecamatanWhereInput | KecamatanWhereInput[] OR?: KecamatanWhereInput[] NOT?: KecamatanWhereInput | KecamatanWhereInput[] id_kecamatan?: IntFilter<"Kecamatan"> | number id_komoditas?: IntFilter<"Kecamatan"> | number nama_kecamatan?: StringFilter<"Kecamatan"> | string deskripsi?: StringFilter<"Kecamatan"> | string gambar?: StringFilter<"Kecamatan"> | string area?: FloatFilter<"Kecamatan"> | number posisi_x?: FloatFilter<"Kecamatan"> | number posisi_y?: FloatFilter<"Kecamatan"> | number komoditas?: XOR penduduk?: PendudukListRelationFilter hasil_panen?: HasilPanenListRelationFilter prediksi_panen?: PrediksiPanenListRelationFilter } export type KecamatanOrderByWithRelationInput = { id_kecamatan?: SortOrder id_komoditas?: SortOrder nama_kecamatan?: SortOrder deskripsi?: SortOrder gambar?: SortOrder area?: SortOrder posisi_x?: SortOrder posisi_y?: SortOrder komoditas?: KomoditasOrderByWithRelationInput penduduk?: PendudukOrderByRelationAggregateInput hasil_panen?: HasilPanenOrderByRelationAggregateInput prediksi_panen?: PrediksiPanenOrderByRelationAggregateInput } export type KecamatanWhereUniqueInput = Prisma.AtLeast<{ id_kecamatan?: number AND?: KecamatanWhereInput | KecamatanWhereInput[] OR?: KecamatanWhereInput[] NOT?: KecamatanWhereInput | KecamatanWhereInput[] id_komoditas?: IntFilter<"Kecamatan"> | number nama_kecamatan?: StringFilter<"Kecamatan"> | string deskripsi?: StringFilter<"Kecamatan"> | string gambar?: StringFilter<"Kecamatan"> | string area?: FloatFilter<"Kecamatan"> | number posisi_x?: FloatFilter<"Kecamatan"> | number posisi_y?: FloatFilter<"Kecamatan"> | number komoditas?: XOR penduduk?: PendudukListRelationFilter hasil_panen?: HasilPanenListRelationFilter prediksi_panen?: PrediksiPanenListRelationFilter }, "id_kecamatan"> export type KecamatanOrderByWithAggregationInput = { id_kecamatan?: SortOrder id_komoditas?: SortOrder nama_kecamatan?: SortOrder deskripsi?: SortOrder gambar?: SortOrder area?: SortOrder posisi_x?: SortOrder posisi_y?: SortOrder _count?: KecamatanCountOrderByAggregateInput _avg?: KecamatanAvgOrderByAggregateInput _max?: KecamatanMaxOrderByAggregateInput _min?: KecamatanMinOrderByAggregateInput _sum?: KecamatanSumOrderByAggregateInput } export type KecamatanScalarWhereWithAggregatesInput = { AND?: KecamatanScalarWhereWithAggregatesInput | KecamatanScalarWhereWithAggregatesInput[] OR?: KecamatanScalarWhereWithAggregatesInput[] NOT?: KecamatanScalarWhereWithAggregatesInput | KecamatanScalarWhereWithAggregatesInput[] id_kecamatan?: IntWithAggregatesFilter<"Kecamatan"> | number id_komoditas?: IntWithAggregatesFilter<"Kecamatan"> | number nama_kecamatan?: StringWithAggregatesFilter<"Kecamatan"> | string deskripsi?: StringWithAggregatesFilter<"Kecamatan"> | string gambar?: StringWithAggregatesFilter<"Kecamatan"> | string area?: FloatWithAggregatesFilter<"Kecamatan"> | number posisi_x?: FloatWithAggregatesFilter<"Kecamatan"> | number posisi_y?: FloatWithAggregatesFilter<"Kecamatan"> | number } export type PendudukWhereInput = { AND?: PendudukWhereInput | PendudukWhereInput[] OR?: PendudukWhereInput[] NOT?: PendudukWhereInput | PendudukWhereInput[] id_penduduk?: IntFilter<"Penduduk"> | number id_kecamatan?: IntFilter<"Penduduk"> | number data_tahun?: IntFilter<"Penduduk"> | number jumlah_penduduk?: FloatFilter<"Penduduk"> | number laju_pertumbuhan?: StringFilter<"Penduduk"> | string kecamatan?: XOR } export type PendudukOrderByWithRelationInput = { id_penduduk?: SortOrder id_kecamatan?: SortOrder data_tahun?: SortOrder jumlah_penduduk?: SortOrder laju_pertumbuhan?: SortOrder kecamatan?: KecamatanOrderByWithRelationInput } export type PendudukWhereUniqueInput = Prisma.AtLeast<{ id_penduduk?: number AND?: PendudukWhereInput | PendudukWhereInput[] OR?: PendudukWhereInput[] NOT?: PendudukWhereInput | PendudukWhereInput[] id_kecamatan?: IntFilter<"Penduduk"> | number data_tahun?: IntFilter<"Penduduk"> | number jumlah_penduduk?: FloatFilter<"Penduduk"> | number laju_pertumbuhan?: StringFilter<"Penduduk"> | string kecamatan?: XOR }, "id_penduduk"> export type PendudukOrderByWithAggregationInput = { id_penduduk?: SortOrder id_kecamatan?: SortOrder data_tahun?: SortOrder jumlah_penduduk?: SortOrder laju_pertumbuhan?: SortOrder _count?: PendudukCountOrderByAggregateInput _avg?: PendudukAvgOrderByAggregateInput _max?: PendudukMaxOrderByAggregateInput _min?: PendudukMinOrderByAggregateInput _sum?: PendudukSumOrderByAggregateInput } export type PendudukScalarWhereWithAggregatesInput = { AND?: PendudukScalarWhereWithAggregatesInput | PendudukScalarWhereWithAggregatesInput[] OR?: PendudukScalarWhereWithAggregatesInput[] NOT?: PendudukScalarWhereWithAggregatesInput | PendudukScalarWhereWithAggregatesInput[] id_penduduk?: IntWithAggregatesFilter<"Penduduk"> | number id_kecamatan?: IntWithAggregatesFilter<"Penduduk"> | number data_tahun?: IntWithAggregatesFilter<"Penduduk"> | number jumlah_penduduk?: FloatWithAggregatesFilter<"Penduduk"> | number laju_pertumbuhan?: StringWithAggregatesFilter<"Penduduk"> | string } export type KomoditasWhereInput = { AND?: KomoditasWhereInput | KomoditasWhereInput[] OR?: KomoditasWhereInput[] NOT?: KomoditasWhereInput | KomoditasWhereInput[] id_komoditas?: IntFilter<"Komoditas"> | number nama_komoditas?: StringFilter<"Komoditas"> | string posisi_x?: FloatFilter<"Komoditas"> | number posisi_y?: FloatFilter<"Komoditas"> | number kecamatan?: KecamatanListRelationFilter hasil_panen?: HasilPanenListRelationFilter prediksi_panen?: PrediksiPanenListRelationFilter } export type KomoditasOrderByWithRelationInput = { id_komoditas?: SortOrder nama_komoditas?: SortOrder posisi_x?: SortOrder posisi_y?: SortOrder kecamatan?: KecamatanOrderByRelationAggregateInput hasil_panen?: HasilPanenOrderByRelationAggregateInput prediksi_panen?: PrediksiPanenOrderByRelationAggregateInput } export type KomoditasWhereUniqueInput = Prisma.AtLeast<{ id_komoditas?: number AND?: KomoditasWhereInput | KomoditasWhereInput[] OR?: KomoditasWhereInput[] NOT?: KomoditasWhereInput | KomoditasWhereInput[] nama_komoditas?: StringFilter<"Komoditas"> | string posisi_x?: FloatFilter<"Komoditas"> | number posisi_y?: FloatFilter<"Komoditas"> | number kecamatan?: KecamatanListRelationFilter hasil_panen?: HasilPanenListRelationFilter prediksi_panen?: PrediksiPanenListRelationFilter }, "id_komoditas"> export type KomoditasOrderByWithAggregationInput = { id_komoditas?: SortOrder nama_komoditas?: SortOrder posisi_x?: SortOrder posisi_y?: SortOrder _count?: KomoditasCountOrderByAggregateInput _avg?: KomoditasAvgOrderByAggregateInput _max?: KomoditasMaxOrderByAggregateInput _min?: KomoditasMinOrderByAggregateInput _sum?: KomoditasSumOrderByAggregateInput } export type KomoditasScalarWhereWithAggregatesInput = { AND?: KomoditasScalarWhereWithAggregatesInput | KomoditasScalarWhereWithAggregatesInput[] OR?: KomoditasScalarWhereWithAggregatesInput[] NOT?: KomoditasScalarWhereWithAggregatesInput | KomoditasScalarWhereWithAggregatesInput[] id_komoditas?: IntWithAggregatesFilter<"Komoditas"> | number nama_komoditas?: StringWithAggregatesFilter<"Komoditas"> | string posisi_x?: FloatWithAggregatesFilter<"Komoditas"> | number posisi_y?: FloatWithAggregatesFilter<"Komoditas"> | number } export type HasilPanenWhereInput = { AND?: HasilPanenWhereInput | HasilPanenWhereInput[] OR?: HasilPanenWhereInput[] NOT?: HasilPanenWhereInput | HasilPanenWhereInput[] id_panen?: IntFilter<"HasilPanen"> | number id_kecamatan?: IntFilter<"HasilPanen"> | number id_komoditas?: IntFilter<"HasilPanen"> | number tahun_panen?: IntFilter<"HasilPanen"> | number produksi?: FloatFilter<"HasilPanen"> | number luas_panen?: FloatFilter<"HasilPanen"> | number produktivitas?: FloatFilter<"HasilPanen"> | number kecamatan?: XOR komoditas?: XOR } export type HasilPanenOrderByWithRelationInput = { id_panen?: SortOrder id_kecamatan?: SortOrder id_komoditas?: SortOrder tahun_panen?: SortOrder produksi?: SortOrder luas_panen?: SortOrder produktivitas?: SortOrder kecamatan?: KecamatanOrderByWithRelationInput komoditas?: KomoditasOrderByWithRelationInput } export type HasilPanenWhereUniqueInput = Prisma.AtLeast<{ id_panen?: number AND?: HasilPanenWhereInput | HasilPanenWhereInput[] OR?: HasilPanenWhereInput[] NOT?: HasilPanenWhereInput | HasilPanenWhereInput[] id_kecamatan?: IntFilter<"HasilPanen"> | number id_komoditas?: IntFilter<"HasilPanen"> | number tahun_panen?: IntFilter<"HasilPanen"> | number produksi?: FloatFilter<"HasilPanen"> | number luas_panen?: FloatFilter<"HasilPanen"> | number produktivitas?: FloatFilter<"HasilPanen"> | number kecamatan?: XOR komoditas?: XOR }, "id_panen"> export type HasilPanenOrderByWithAggregationInput = { id_panen?: SortOrder id_kecamatan?: SortOrder id_komoditas?: SortOrder tahun_panen?: SortOrder produksi?: SortOrder luas_panen?: SortOrder produktivitas?: SortOrder _count?: HasilPanenCountOrderByAggregateInput _avg?: HasilPanenAvgOrderByAggregateInput _max?: HasilPanenMaxOrderByAggregateInput _min?: HasilPanenMinOrderByAggregateInput _sum?: HasilPanenSumOrderByAggregateInput } export type HasilPanenScalarWhereWithAggregatesInput = { AND?: HasilPanenScalarWhereWithAggregatesInput | HasilPanenScalarWhereWithAggregatesInput[] OR?: HasilPanenScalarWhereWithAggregatesInput[] NOT?: HasilPanenScalarWhereWithAggregatesInput | HasilPanenScalarWhereWithAggregatesInput[] id_panen?: IntWithAggregatesFilter<"HasilPanen"> | number id_kecamatan?: IntWithAggregatesFilter<"HasilPanen"> | number id_komoditas?: IntWithAggregatesFilter<"HasilPanen"> | number tahun_panen?: IntWithAggregatesFilter<"HasilPanen"> | number produksi?: FloatWithAggregatesFilter<"HasilPanen"> | number luas_panen?: FloatWithAggregatesFilter<"HasilPanen"> | number produktivitas?: FloatWithAggregatesFilter<"HasilPanen"> | number } export type PrediksiPanenWhereInput = { AND?: PrediksiPanenWhereInput | PrediksiPanenWhereInput[] OR?: PrediksiPanenWhereInput[] NOT?: PrediksiPanenWhereInput | PrediksiPanenWhereInput[] id_prediksi?: IntFilter<"PrediksiPanen"> | number id_kecamatan?: IntFilter<"PrediksiPanen"> | number id_komoditas?: IntFilter<"PrediksiPanen"> | number tahun_prediksi?: IntFilter<"PrediksiPanen"> | number hasil_prediksi?: IntFilter<"PrediksiPanen"> | number kecamatan?: XOR komoditas?: XOR } export type PrediksiPanenOrderByWithRelationInput = { id_prediksi?: SortOrder id_kecamatan?: SortOrder id_komoditas?: SortOrder tahun_prediksi?: SortOrder hasil_prediksi?: SortOrder kecamatan?: KecamatanOrderByWithRelationInput komoditas?: KomoditasOrderByWithRelationInput } export type PrediksiPanenWhereUniqueInput = Prisma.AtLeast<{ id_prediksi?: number AND?: PrediksiPanenWhereInput | PrediksiPanenWhereInput[] OR?: PrediksiPanenWhereInput[] NOT?: PrediksiPanenWhereInput | PrediksiPanenWhereInput[] id_kecamatan?: IntFilter<"PrediksiPanen"> | number id_komoditas?: IntFilter<"PrediksiPanen"> | number tahun_prediksi?: IntFilter<"PrediksiPanen"> | number hasil_prediksi?: IntFilter<"PrediksiPanen"> | number kecamatan?: XOR komoditas?: XOR }, "id_prediksi"> export type PrediksiPanenOrderByWithAggregationInput = { id_prediksi?: SortOrder id_kecamatan?: SortOrder id_komoditas?: SortOrder tahun_prediksi?: SortOrder hasil_prediksi?: SortOrder _count?: PrediksiPanenCountOrderByAggregateInput _avg?: PrediksiPanenAvgOrderByAggregateInput _max?: PrediksiPanenMaxOrderByAggregateInput _min?: PrediksiPanenMinOrderByAggregateInput _sum?: PrediksiPanenSumOrderByAggregateInput } export type PrediksiPanenScalarWhereWithAggregatesInput = { AND?: PrediksiPanenScalarWhereWithAggregatesInput | PrediksiPanenScalarWhereWithAggregatesInput[] OR?: PrediksiPanenScalarWhereWithAggregatesInput[] NOT?: PrediksiPanenScalarWhereWithAggregatesInput | PrediksiPanenScalarWhereWithAggregatesInput[] id_prediksi?: IntWithAggregatesFilter<"PrediksiPanen"> | number id_kecamatan?: IntWithAggregatesFilter<"PrediksiPanen"> | number id_komoditas?: IntWithAggregatesFilter<"PrediksiPanen"> | number tahun_prediksi?: IntWithAggregatesFilter<"PrediksiPanen"> | number hasil_prediksi?: IntWithAggregatesFilter<"PrediksiPanen"> | number } export type UserCreateInput = { id?: string name?: string | null email?: string | null password: string createdAt?: Date | string updatedAt?: Date | string detail?: DetailCreateNestedOneWithoutUserInput } export type UserUncheckedCreateInput = { id?: string name?: string | null email?: string | null password: string createdAt?: Date | string updatedAt?: Date | string detail?: DetailUncheckedCreateNestedOneWithoutUserInput } export type UserUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string detail?: DetailUpdateOneWithoutUserNestedInput } export type UserUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string detail?: DetailUncheckedUpdateOneWithoutUserNestedInput } export type UserCreateManyInput = { id?: string name?: string | null email?: string | null password: string createdAt?: Date | string updatedAt?: Date | string } export type UserUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type DetailCreateInput = { phone: string bio: string city: string county: string post_kode: string photo_profile: string user: UserCreateNestedOneWithoutDetailInput } export type DetailUncheckedCreateInput = { tax_id: string phone: string bio: string city: string county: string post_kode: string photo_profile: string } export type DetailUpdateInput = { phone?: StringFieldUpdateOperationsInput | string bio?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string county?: StringFieldUpdateOperationsInput | string post_kode?: StringFieldUpdateOperationsInput | string photo_profile?: StringFieldUpdateOperationsInput | string user?: UserUpdateOneRequiredWithoutDetailNestedInput } export type DetailUncheckedUpdateInput = { tax_id?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string bio?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string county?: StringFieldUpdateOperationsInput | string post_kode?: StringFieldUpdateOperationsInput | string photo_profile?: StringFieldUpdateOperationsInput | string } export type DetailCreateManyInput = { tax_id: string phone: string bio: string city: string county: string post_kode: string photo_profile: string } export type DetailUpdateManyMutationInput = { phone?: StringFieldUpdateOperationsInput | string bio?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string county?: StringFieldUpdateOperationsInput | string post_kode?: StringFieldUpdateOperationsInput | string photo_profile?: StringFieldUpdateOperationsInput | string } export type DetailUncheckedUpdateManyInput = { tax_id?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string bio?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string county?: StringFieldUpdateOperationsInput | string post_kode?: StringFieldUpdateOperationsInput | string photo_profile?: StringFieldUpdateOperationsInput | string } export type KecamatanCreateInput = { nama_kecamatan: string deskripsi: string gambar: string area: number posisi_x: number posisi_y: number komoditas: KomoditasCreateNestedOneWithoutKecamatanInput penduduk?: PendudukCreateNestedManyWithoutKecamatanInput hasil_panen?: HasilPanenCreateNestedManyWithoutKecamatanInput prediksi_panen?: PrediksiPanenCreateNestedManyWithoutKecamatanInput } export type KecamatanUncheckedCreateInput = { id_kecamatan?: number id_komoditas: number nama_kecamatan: string deskripsi: string gambar: string area: number posisi_x: number posisi_y: number penduduk?: PendudukUncheckedCreateNestedManyWithoutKecamatanInput hasil_panen?: HasilPanenUncheckedCreateNestedManyWithoutKecamatanInput prediksi_panen?: PrediksiPanenUncheckedCreateNestedManyWithoutKecamatanInput } export type KecamatanUpdateInput = { nama_kecamatan?: StringFieldUpdateOperationsInput | string deskripsi?: StringFieldUpdateOperationsInput | string gambar?: StringFieldUpdateOperationsInput | string area?: FloatFieldUpdateOperationsInput | number posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number komoditas?: KomoditasUpdateOneRequiredWithoutKecamatanNestedInput penduduk?: PendudukUpdateManyWithoutKecamatanNestedInput hasil_panen?: HasilPanenUpdateManyWithoutKecamatanNestedInput prediksi_panen?: PrediksiPanenUpdateManyWithoutKecamatanNestedInput } export type KecamatanUncheckedUpdateInput = { id_kecamatan?: IntFieldUpdateOperationsInput | number id_komoditas?: IntFieldUpdateOperationsInput | number nama_kecamatan?: StringFieldUpdateOperationsInput | string deskripsi?: StringFieldUpdateOperationsInput | string gambar?: StringFieldUpdateOperationsInput | string area?: FloatFieldUpdateOperationsInput | number posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number penduduk?: PendudukUncheckedUpdateManyWithoutKecamatanNestedInput hasil_panen?: HasilPanenUncheckedUpdateManyWithoutKecamatanNestedInput prediksi_panen?: PrediksiPanenUncheckedUpdateManyWithoutKecamatanNestedInput } export type KecamatanCreateManyInput = { id_kecamatan?: number id_komoditas: number nama_kecamatan: string deskripsi: string gambar: string area: number posisi_x: number posisi_y: number } export type KecamatanUpdateManyMutationInput = { nama_kecamatan?: StringFieldUpdateOperationsInput | string deskripsi?: StringFieldUpdateOperationsInput | string gambar?: StringFieldUpdateOperationsInput | string area?: FloatFieldUpdateOperationsInput | number posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number } export type KecamatanUncheckedUpdateManyInput = { id_kecamatan?: IntFieldUpdateOperationsInput | number id_komoditas?: IntFieldUpdateOperationsInput | number nama_kecamatan?: StringFieldUpdateOperationsInput | string deskripsi?: StringFieldUpdateOperationsInput | string gambar?: StringFieldUpdateOperationsInput | string area?: FloatFieldUpdateOperationsInput | number posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number } export type PendudukCreateInput = { data_tahun: number jumlah_penduduk: number laju_pertumbuhan: string kecamatan: KecamatanCreateNestedOneWithoutPendudukInput } export type PendudukUncheckedCreateInput = { id_penduduk?: number id_kecamatan: number data_tahun: number jumlah_penduduk: number laju_pertumbuhan: string } export type PendudukUpdateInput = { data_tahun?: IntFieldUpdateOperationsInput | number jumlah_penduduk?: FloatFieldUpdateOperationsInput | number laju_pertumbuhan?: StringFieldUpdateOperationsInput | string kecamatan?: KecamatanUpdateOneRequiredWithoutPendudukNestedInput } export type PendudukUncheckedUpdateInput = { id_penduduk?: IntFieldUpdateOperationsInput | number id_kecamatan?: IntFieldUpdateOperationsInput | number data_tahun?: IntFieldUpdateOperationsInput | number jumlah_penduduk?: FloatFieldUpdateOperationsInput | number laju_pertumbuhan?: StringFieldUpdateOperationsInput | string } export type PendudukCreateManyInput = { id_penduduk?: number id_kecamatan: number data_tahun: number jumlah_penduduk: number laju_pertumbuhan: string } export type PendudukUpdateManyMutationInput = { data_tahun?: IntFieldUpdateOperationsInput | number jumlah_penduduk?: FloatFieldUpdateOperationsInput | number laju_pertumbuhan?: StringFieldUpdateOperationsInput | string } export type PendudukUncheckedUpdateManyInput = { id_penduduk?: IntFieldUpdateOperationsInput | number id_kecamatan?: IntFieldUpdateOperationsInput | number data_tahun?: IntFieldUpdateOperationsInput | number jumlah_penduduk?: FloatFieldUpdateOperationsInput | number laju_pertumbuhan?: StringFieldUpdateOperationsInput | string } export type KomoditasCreateInput = { nama_komoditas: string posisi_x: number posisi_y: number kecamatan?: KecamatanCreateNestedManyWithoutKomoditasInput hasil_panen?: HasilPanenCreateNestedManyWithoutKomoditasInput prediksi_panen?: PrediksiPanenCreateNestedManyWithoutKomoditasInput } export type KomoditasUncheckedCreateInput = { id_komoditas?: number nama_komoditas: string posisi_x: number posisi_y: number kecamatan?: KecamatanUncheckedCreateNestedManyWithoutKomoditasInput hasil_panen?: HasilPanenUncheckedCreateNestedManyWithoutKomoditasInput prediksi_panen?: PrediksiPanenUncheckedCreateNestedManyWithoutKomoditasInput } export type KomoditasUpdateInput = { nama_komoditas?: StringFieldUpdateOperationsInput | string posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number kecamatan?: KecamatanUpdateManyWithoutKomoditasNestedInput hasil_panen?: HasilPanenUpdateManyWithoutKomoditasNestedInput prediksi_panen?: PrediksiPanenUpdateManyWithoutKomoditasNestedInput } export type KomoditasUncheckedUpdateInput = { id_komoditas?: IntFieldUpdateOperationsInput | number nama_komoditas?: StringFieldUpdateOperationsInput | string posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number kecamatan?: KecamatanUncheckedUpdateManyWithoutKomoditasNestedInput hasil_panen?: HasilPanenUncheckedUpdateManyWithoutKomoditasNestedInput prediksi_panen?: PrediksiPanenUncheckedUpdateManyWithoutKomoditasNestedInput } export type KomoditasCreateManyInput = { id_komoditas?: number nama_komoditas: string posisi_x: number posisi_y: number } export type KomoditasUpdateManyMutationInput = { nama_komoditas?: StringFieldUpdateOperationsInput | string posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number } export type KomoditasUncheckedUpdateManyInput = { id_komoditas?: IntFieldUpdateOperationsInput | number nama_komoditas?: StringFieldUpdateOperationsInput | string posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number } export type HasilPanenCreateInput = { tahun_panen: number produksi: number luas_panen: number produktivitas: number kecamatan: KecamatanCreateNestedOneWithoutHasil_panenInput komoditas: KomoditasCreateNestedOneWithoutHasil_panenInput } export type HasilPanenUncheckedCreateInput = { id_panen?: number id_kecamatan: number id_komoditas: number tahun_panen: number produksi: number luas_panen: number produktivitas: number } export type HasilPanenUpdateInput = { tahun_panen?: IntFieldUpdateOperationsInput | number produksi?: FloatFieldUpdateOperationsInput | number luas_panen?: FloatFieldUpdateOperationsInput | number produktivitas?: FloatFieldUpdateOperationsInput | number kecamatan?: KecamatanUpdateOneRequiredWithoutHasil_panenNestedInput komoditas?: KomoditasUpdateOneRequiredWithoutHasil_panenNestedInput } export type HasilPanenUncheckedUpdateInput = { id_panen?: IntFieldUpdateOperationsInput | number id_kecamatan?: IntFieldUpdateOperationsInput | number id_komoditas?: IntFieldUpdateOperationsInput | number tahun_panen?: IntFieldUpdateOperationsInput | number produksi?: FloatFieldUpdateOperationsInput | number luas_panen?: FloatFieldUpdateOperationsInput | number produktivitas?: FloatFieldUpdateOperationsInput | number } export type HasilPanenCreateManyInput = { id_panen?: number id_kecamatan: number id_komoditas: number tahun_panen: number produksi: number luas_panen: number produktivitas: number } export type HasilPanenUpdateManyMutationInput = { tahun_panen?: IntFieldUpdateOperationsInput | number produksi?: FloatFieldUpdateOperationsInput | number luas_panen?: FloatFieldUpdateOperationsInput | number produktivitas?: FloatFieldUpdateOperationsInput | number } export type HasilPanenUncheckedUpdateManyInput = { id_panen?: IntFieldUpdateOperationsInput | number id_kecamatan?: IntFieldUpdateOperationsInput | number id_komoditas?: IntFieldUpdateOperationsInput | number tahun_panen?: IntFieldUpdateOperationsInput | number produksi?: FloatFieldUpdateOperationsInput | number luas_panen?: FloatFieldUpdateOperationsInput | number produktivitas?: FloatFieldUpdateOperationsInput | number } export type PrediksiPanenCreateInput = { tahun_prediksi: number hasil_prediksi: number kecamatan: KecamatanCreateNestedOneWithoutPrediksi_panenInput komoditas: KomoditasCreateNestedOneWithoutPrediksi_panenInput } export type PrediksiPanenUncheckedCreateInput = { id_prediksi?: number id_kecamatan: number id_komoditas: number tahun_prediksi: number hasil_prediksi: number } export type PrediksiPanenUpdateInput = { tahun_prediksi?: IntFieldUpdateOperationsInput | number hasil_prediksi?: IntFieldUpdateOperationsInput | number kecamatan?: KecamatanUpdateOneRequiredWithoutPrediksi_panenNestedInput komoditas?: KomoditasUpdateOneRequiredWithoutPrediksi_panenNestedInput } export type PrediksiPanenUncheckedUpdateInput = { id_prediksi?: IntFieldUpdateOperationsInput | number id_kecamatan?: IntFieldUpdateOperationsInput | number id_komoditas?: IntFieldUpdateOperationsInput | number tahun_prediksi?: IntFieldUpdateOperationsInput | number hasil_prediksi?: IntFieldUpdateOperationsInput | number } export type PrediksiPanenCreateManyInput = { id_prediksi?: number id_kecamatan: number id_komoditas: number tahun_prediksi: number hasil_prediksi: number } export type PrediksiPanenUpdateManyMutationInput = { tahun_prediksi?: IntFieldUpdateOperationsInput | number hasil_prediksi?: IntFieldUpdateOperationsInput | number } export type PrediksiPanenUncheckedUpdateManyInput = { id_prediksi?: IntFieldUpdateOperationsInput | number id_kecamatan?: IntFieldUpdateOperationsInput | number id_komoditas?: IntFieldUpdateOperationsInput | number tahun_prediksi?: IntFieldUpdateOperationsInput | number hasil_prediksi?: IntFieldUpdateOperationsInput | number } 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 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 DetailNullableScalarRelationFilter = { is?: DetailWhereInput | null isNot?: DetailWhereInput | null } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type UserCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder email?: SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UserMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder email?: SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UserMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder email?: SortOrder password?: 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 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 UserScalarRelationFilter = { is?: UserWhereInput isNot?: UserWhereInput } export type DetailCountOrderByAggregateInput = { tax_id?: SortOrder phone?: SortOrder bio?: SortOrder city?: SortOrder county?: SortOrder post_kode?: SortOrder photo_profile?: SortOrder } export type DetailMaxOrderByAggregateInput = { tax_id?: SortOrder phone?: SortOrder bio?: SortOrder city?: SortOrder county?: SortOrder post_kode?: SortOrder photo_profile?: SortOrder } export type DetailMinOrderByAggregateInput = { tax_id?: SortOrder phone?: SortOrder bio?: SortOrder city?: SortOrder county?: SortOrder post_kode?: SortOrder photo_profile?: SortOrder } 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 FloatFilter<$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 KomoditasScalarRelationFilter = { is?: KomoditasWhereInput isNot?: KomoditasWhereInput } export type PendudukListRelationFilter = { every?: PendudukWhereInput some?: PendudukWhereInput none?: PendudukWhereInput } export type HasilPanenListRelationFilter = { every?: HasilPanenWhereInput some?: HasilPanenWhereInput none?: HasilPanenWhereInput } export type PrediksiPanenListRelationFilter = { every?: PrediksiPanenWhereInput some?: PrediksiPanenWhereInput none?: PrediksiPanenWhereInput } export type PendudukOrderByRelationAggregateInput = { _count?: SortOrder } export type HasilPanenOrderByRelationAggregateInput = { _count?: SortOrder } export type PrediksiPanenOrderByRelationAggregateInput = { _count?: SortOrder } export type KecamatanCountOrderByAggregateInput = { id_kecamatan?: SortOrder id_komoditas?: SortOrder nama_kecamatan?: SortOrder deskripsi?: SortOrder gambar?: SortOrder area?: SortOrder posisi_x?: SortOrder posisi_y?: SortOrder } export type KecamatanAvgOrderByAggregateInput = { id_kecamatan?: SortOrder id_komoditas?: SortOrder area?: SortOrder posisi_x?: SortOrder posisi_y?: SortOrder } export type KecamatanMaxOrderByAggregateInput = { id_kecamatan?: SortOrder id_komoditas?: SortOrder nama_kecamatan?: SortOrder deskripsi?: SortOrder gambar?: SortOrder area?: SortOrder posisi_x?: SortOrder posisi_y?: SortOrder } export type KecamatanMinOrderByAggregateInput = { id_kecamatan?: SortOrder id_komoditas?: SortOrder nama_kecamatan?: SortOrder deskripsi?: SortOrder gambar?: SortOrder area?: SortOrder posisi_x?: SortOrder posisi_y?: SortOrder } export type KecamatanSumOrderByAggregateInput = { id_kecamatan?: SortOrder id_komoditas?: SortOrder area?: SortOrder posisi_x?: SortOrder posisi_y?: SortOrder } export type IntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type FloatWithAggregatesFilter<$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?: NestedFloatWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedFloatFilter<$PrismaModel> _min?: NestedFloatFilter<$PrismaModel> _max?: NestedFloatFilter<$PrismaModel> } export type KecamatanScalarRelationFilter = { is?: KecamatanWhereInput isNot?: KecamatanWhereInput } export type PendudukCountOrderByAggregateInput = { id_penduduk?: SortOrder id_kecamatan?: SortOrder data_tahun?: SortOrder jumlah_penduduk?: SortOrder laju_pertumbuhan?: SortOrder } export type PendudukAvgOrderByAggregateInput = { id_penduduk?: SortOrder id_kecamatan?: SortOrder data_tahun?: SortOrder jumlah_penduduk?: SortOrder } export type PendudukMaxOrderByAggregateInput = { id_penduduk?: SortOrder id_kecamatan?: SortOrder data_tahun?: SortOrder jumlah_penduduk?: SortOrder laju_pertumbuhan?: SortOrder } export type PendudukMinOrderByAggregateInput = { id_penduduk?: SortOrder id_kecamatan?: SortOrder data_tahun?: SortOrder jumlah_penduduk?: SortOrder laju_pertumbuhan?: SortOrder } export type PendudukSumOrderByAggregateInput = { id_penduduk?: SortOrder id_kecamatan?: SortOrder data_tahun?: SortOrder jumlah_penduduk?: SortOrder } export type KecamatanListRelationFilter = { every?: KecamatanWhereInput some?: KecamatanWhereInput none?: KecamatanWhereInput } export type KecamatanOrderByRelationAggregateInput = { _count?: SortOrder } export type KomoditasCountOrderByAggregateInput = { id_komoditas?: SortOrder nama_komoditas?: SortOrder posisi_x?: SortOrder posisi_y?: SortOrder } export type KomoditasAvgOrderByAggregateInput = { id_komoditas?: SortOrder posisi_x?: SortOrder posisi_y?: SortOrder } export type KomoditasMaxOrderByAggregateInput = { id_komoditas?: SortOrder nama_komoditas?: SortOrder posisi_x?: SortOrder posisi_y?: SortOrder } export type KomoditasMinOrderByAggregateInput = { id_komoditas?: SortOrder nama_komoditas?: SortOrder posisi_x?: SortOrder posisi_y?: SortOrder } export type KomoditasSumOrderByAggregateInput = { id_komoditas?: SortOrder posisi_x?: SortOrder posisi_y?: SortOrder } export type HasilPanenCountOrderByAggregateInput = { id_panen?: SortOrder id_kecamatan?: SortOrder id_komoditas?: SortOrder tahun_panen?: SortOrder produksi?: SortOrder luas_panen?: SortOrder produktivitas?: SortOrder } export type HasilPanenAvgOrderByAggregateInput = { id_panen?: SortOrder id_kecamatan?: SortOrder id_komoditas?: SortOrder tahun_panen?: SortOrder produksi?: SortOrder luas_panen?: SortOrder produktivitas?: SortOrder } export type HasilPanenMaxOrderByAggregateInput = { id_panen?: SortOrder id_kecamatan?: SortOrder id_komoditas?: SortOrder tahun_panen?: SortOrder produksi?: SortOrder luas_panen?: SortOrder produktivitas?: SortOrder } export type HasilPanenMinOrderByAggregateInput = { id_panen?: SortOrder id_kecamatan?: SortOrder id_komoditas?: SortOrder tahun_panen?: SortOrder produksi?: SortOrder luas_panen?: SortOrder produktivitas?: SortOrder } export type HasilPanenSumOrderByAggregateInput = { id_panen?: SortOrder id_kecamatan?: SortOrder id_komoditas?: SortOrder tahun_panen?: SortOrder produksi?: SortOrder luas_panen?: SortOrder produktivitas?: SortOrder } export type PrediksiPanenCountOrderByAggregateInput = { id_prediksi?: SortOrder id_kecamatan?: SortOrder id_komoditas?: SortOrder tahun_prediksi?: SortOrder hasil_prediksi?: SortOrder } export type PrediksiPanenAvgOrderByAggregateInput = { id_prediksi?: SortOrder id_kecamatan?: SortOrder id_komoditas?: SortOrder tahun_prediksi?: SortOrder hasil_prediksi?: SortOrder } export type PrediksiPanenMaxOrderByAggregateInput = { id_prediksi?: SortOrder id_kecamatan?: SortOrder id_komoditas?: SortOrder tahun_prediksi?: SortOrder hasil_prediksi?: SortOrder } export type PrediksiPanenMinOrderByAggregateInput = { id_prediksi?: SortOrder id_kecamatan?: SortOrder id_komoditas?: SortOrder tahun_prediksi?: SortOrder hasil_prediksi?: SortOrder } export type PrediksiPanenSumOrderByAggregateInput = { id_prediksi?: SortOrder id_kecamatan?: SortOrder id_komoditas?: SortOrder tahun_prediksi?: SortOrder hasil_prediksi?: SortOrder } export type DetailCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: DetailCreateOrConnectWithoutUserInput connect?: DetailWhereUniqueInput } export type DetailUncheckedCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: DetailCreateOrConnectWithoutUserInput connect?: DetailWhereUniqueInput } export type StringFieldUpdateOperationsInput = { set?: string } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type DetailUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: DetailCreateOrConnectWithoutUserInput upsert?: DetailUpsertWithoutUserInput disconnect?: DetailWhereInput | boolean delete?: DetailWhereInput | boolean connect?: DetailWhereUniqueInput update?: XOR, DetailUncheckedUpdateWithoutUserInput> } export type DetailUncheckedUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: DetailCreateOrConnectWithoutUserInput upsert?: DetailUpsertWithoutUserInput disconnect?: DetailWhereInput | boolean delete?: DetailWhereInput | boolean connect?: DetailWhereUniqueInput update?: XOR, DetailUncheckedUpdateWithoutUserInput> } export type UserCreateNestedOneWithoutDetailInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutDetailInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutDetailNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutDetailInput upsert?: UserUpsertWithoutDetailInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutDetailInput> } export type KomoditasCreateNestedOneWithoutKecamatanInput = { create?: XOR connectOrCreate?: KomoditasCreateOrConnectWithoutKecamatanInput connect?: KomoditasWhereUniqueInput } export type PendudukCreateNestedManyWithoutKecamatanInput = { create?: XOR | PendudukCreateWithoutKecamatanInput[] | PendudukUncheckedCreateWithoutKecamatanInput[] connectOrCreate?: PendudukCreateOrConnectWithoutKecamatanInput | PendudukCreateOrConnectWithoutKecamatanInput[] createMany?: PendudukCreateManyKecamatanInputEnvelope connect?: PendudukWhereUniqueInput | PendudukWhereUniqueInput[] } export type HasilPanenCreateNestedManyWithoutKecamatanInput = { create?: XOR | HasilPanenCreateWithoutKecamatanInput[] | HasilPanenUncheckedCreateWithoutKecamatanInput[] connectOrCreate?: HasilPanenCreateOrConnectWithoutKecamatanInput | HasilPanenCreateOrConnectWithoutKecamatanInput[] createMany?: HasilPanenCreateManyKecamatanInputEnvelope connect?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] } export type PrediksiPanenCreateNestedManyWithoutKecamatanInput = { create?: XOR | PrediksiPanenCreateWithoutKecamatanInput[] | PrediksiPanenUncheckedCreateWithoutKecamatanInput[] connectOrCreate?: PrediksiPanenCreateOrConnectWithoutKecamatanInput | PrediksiPanenCreateOrConnectWithoutKecamatanInput[] createMany?: PrediksiPanenCreateManyKecamatanInputEnvelope connect?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] } export type PendudukUncheckedCreateNestedManyWithoutKecamatanInput = { create?: XOR | PendudukCreateWithoutKecamatanInput[] | PendudukUncheckedCreateWithoutKecamatanInput[] connectOrCreate?: PendudukCreateOrConnectWithoutKecamatanInput | PendudukCreateOrConnectWithoutKecamatanInput[] createMany?: PendudukCreateManyKecamatanInputEnvelope connect?: PendudukWhereUniqueInput | PendudukWhereUniqueInput[] } export type HasilPanenUncheckedCreateNestedManyWithoutKecamatanInput = { create?: XOR | HasilPanenCreateWithoutKecamatanInput[] | HasilPanenUncheckedCreateWithoutKecamatanInput[] connectOrCreate?: HasilPanenCreateOrConnectWithoutKecamatanInput | HasilPanenCreateOrConnectWithoutKecamatanInput[] createMany?: HasilPanenCreateManyKecamatanInputEnvelope connect?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] } export type PrediksiPanenUncheckedCreateNestedManyWithoutKecamatanInput = { create?: XOR | PrediksiPanenCreateWithoutKecamatanInput[] | PrediksiPanenUncheckedCreateWithoutKecamatanInput[] connectOrCreate?: PrediksiPanenCreateOrConnectWithoutKecamatanInput | PrediksiPanenCreateOrConnectWithoutKecamatanInput[] createMany?: PrediksiPanenCreateManyKecamatanInputEnvelope connect?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] } export type FloatFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type KomoditasUpdateOneRequiredWithoutKecamatanNestedInput = { create?: XOR connectOrCreate?: KomoditasCreateOrConnectWithoutKecamatanInput upsert?: KomoditasUpsertWithoutKecamatanInput connect?: KomoditasWhereUniqueInput update?: XOR, KomoditasUncheckedUpdateWithoutKecamatanInput> } export type PendudukUpdateManyWithoutKecamatanNestedInput = { create?: XOR | PendudukCreateWithoutKecamatanInput[] | PendudukUncheckedCreateWithoutKecamatanInput[] connectOrCreate?: PendudukCreateOrConnectWithoutKecamatanInput | PendudukCreateOrConnectWithoutKecamatanInput[] upsert?: PendudukUpsertWithWhereUniqueWithoutKecamatanInput | PendudukUpsertWithWhereUniqueWithoutKecamatanInput[] createMany?: PendudukCreateManyKecamatanInputEnvelope set?: PendudukWhereUniqueInput | PendudukWhereUniqueInput[] disconnect?: PendudukWhereUniqueInput | PendudukWhereUniqueInput[] delete?: PendudukWhereUniqueInput | PendudukWhereUniqueInput[] connect?: PendudukWhereUniqueInput | PendudukWhereUniqueInput[] update?: PendudukUpdateWithWhereUniqueWithoutKecamatanInput | PendudukUpdateWithWhereUniqueWithoutKecamatanInput[] updateMany?: PendudukUpdateManyWithWhereWithoutKecamatanInput | PendudukUpdateManyWithWhereWithoutKecamatanInput[] deleteMany?: PendudukScalarWhereInput | PendudukScalarWhereInput[] } export type HasilPanenUpdateManyWithoutKecamatanNestedInput = { create?: XOR | HasilPanenCreateWithoutKecamatanInput[] | HasilPanenUncheckedCreateWithoutKecamatanInput[] connectOrCreate?: HasilPanenCreateOrConnectWithoutKecamatanInput | HasilPanenCreateOrConnectWithoutKecamatanInput[] upsert?: HasilPanenUpsertWithWhereUniqueWithoutKecamatanInput | HasilPanenUpsertWithWhereUniqueWithoutKecamatanInput[] createMany?: HasilPanenCreateManyKecamatanInputEnvelope set?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] disconnect?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] delete?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] connect?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] update?: HasilPanenUpdateWithWhereUniqueWithoutKecamatanInput | HasilPanenUpdateWithWhereUniqueWithoutKecamatanInput[] updateMany?: HasilPanenUpdateManyWithWhereWithoutKecamatanInput | HasilPanenUpdateManyWithWhereWithoutKecamatanInput[] deleteMany?: HasilPanenScalarWhereInput | HasilPanenScalarWhereInput[] } export type PrediksiPanenUpdateManyWithoutKecamatanNestedInput = { create?: XOR | PrediksiPanenCreateWithoutKecamatanInput[] | PrediksiPanenUncheckedCreateWithoutKecamatanInput[] connectOrCreate?: PrediksiPanenCreateOrConnectWithoutKecamatanInput | PrediksiPanenCreateOrConnectWithoutKecamatanInput[] upsert?: PrediksiPanenUpsertWithWhereUniqueWithoutKecamatanInput | PrediksiPanenUpsertWithWhereUniqueWithoutKecamatanInput[] createMany?: PrediksiPanenCreateManyKecamatanInputEnvelope set?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] disconnect?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] delete?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] connect?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] update?: PrediksiPanenUpdateWithWhereUniqueWithoutKecamatanInput | PrediksiPanenUpdateWithWhereUniqueWithoutKecamatanInput[] updateMany?: PrediksiPanenUpdateManyWithWhereWithoutKecamatanInput | PrediksiPanenUpdateManyWithWhereWithoutKecamatanInput[] deleteMany?: PrediksiPanenScalarWhereInput | PrediksiPanenScalarWhereInput[] } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type PendudukUncheckedUpdateManyWithoutKecamatanNestedInput = { create?: XOR | PendudukCreateWithoutKecamatanInput[] | PendudukUncheckedCreateWithoutKecamatanInput[] connectOrCreate?: PendudukCreateOrConnectWithoutKecamatanInput | PendudukCreateOrConnectWithoutKecamatanInput[] upsert?: PendudukUpsertWithWhereUniqueWithoutKecamatanInput | PendudukUpsertWithWhereUniqueWithoutKecamatanInput[] createMany?: PendudukCreateManyKecamatanInputEnvelope set?: PendudukWhereUniqueInput | PendudukWhereUniqueInput[] disconnect?: PendudukWhereUniqueInput | PendudukWhereUniqueInput[] delete?: PendudukWhereUniqueInput | PendudukWhereUniqueInput[] connect?: PendudukWhereUniqueInput | PendudukWhereUniqueInput[] update?: PendudukUpdateWithWhereUniqueWithoutKecamatanInput | PendudukUpdateWithWhereUniqueWithoutKecamatanInput[] updateMany?: PendudukUpdateManyWithWhereWithoutKecamatanInput | PendudukUpdateManyWithWhereWithoutKecamatanInput[] deleteMany?: PendudukScalarWhereInput | PendudukScalarWhereInput[] } export type HasilPanenUncheckedUpdateManyWithoutKecamatanNestedInput = { create?: XOR | HasilPanenCreateWithoutKecamatanInput[] | HasilPanenUncheckedCreateWithoutKecamatanInput[] connectOrCreate?: HasilPanenCreateOrConnectWithoutKecamatanInput | HasilPanenCreateOrConnectWithoutKecamatanInput[] upsert?: HasilPanenUpsertWithWhereUniqueWithoutKecamatanInput | HasilPanenUpsertWithWhereUniqueWithoutKecamatanInput[] createMany?: HasilPanenCreateManyKecamatanInputEnvelope set?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] disconnect?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] delete?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] connect?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] update?: HasilPanenUpdateWithWhereUniqueWithoutKecamatanInput | HasilPanenUpdateWithWhereUniqueWithoutKecamatanInput[] updateMany?: HasilPanenUpdateManyWithWhereWithoutKecamatanInput | HasilPanenUpdateManyWithWhereWithoutKecamatanInput[] deleteMany?: HasilPanenScalarWhereInput | HasilPanenScalarWhereInput[] } export type PrediksiPanenUncheckedUpdateManyWithoutKecamatanNestedInput = { create?: XOR | PrediksiPanenCreateWithoutKecamatanInput[] | PrediksiPanenUncheckedCreateWithoutKecamatanInput[] connectOrCreate?: PrediksiPanenCreateOrConnectWithoutKecamatanInput | PrediksiPanenCreateOrConnectWithoutKecamatanInput[] upsert?: PrediksiPanenUpsertWithWhereUniqueWithoutKecamatanInput | PrediksiPanenUpsertWithWhereUniqueWithoutKecamatanInput[] createMany?: PrediksiPanenCreateManyKecamatanInputEnvelope set?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] disconnect?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] delete?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] connect?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] update?: PrediksiPanenUpdateWithWhereUniqueWithoutKecamatanInput | PrediksiPanenUpdateWithWhereUniqueWithoutKecamatanInput[] updateMany?: PrediksiPanenUpdateManyWithWhereWithoutKecamatanInput | PrediksiPanenUpdateManyWithWhereWithoutKecamatanInput[] deleteMany?: PrediksiPanenScalarWhereInput | PrediksiPanenScalarWhereInput[] } export type KecamatanCreateNestedOneWithoutPendudukInput = { create?: XOR connectOrCreate?: KecamatanCreateOrConnectWithoutPendudukInput connect?: KecamatanWhereUniqueInput } export type KecamatanUpdateOneRequiredWithoutPendudukNestedInput = { create?: XOR connectOrCreate?: KecamatanCreateOrConnectWithoutPendudukInput upsert?: KecamatanUpsertWithoutPendudukInput connect?: KecamatanWhereUniqueInput update?: XOR, KecamatanUncheckedUpdateWithoutPendudukInput> } export type KecamatanCreateNestedManyWithoutKomoditasInput = { create?: XOR | KecamatanCreateWithoutKomoditasInput[] | KecamatanUncheckedCreateWithoutKomoditasInput[] connectOrCreate?: KecamatanCreateOrConnectWithoutKomoditasInput | KecamatanCreateOrConnectWithoutKomoditasInput[] createMany?: KecamatanCreateManyKomoditasInputEnvelope connect?: KecamatanWhereUniqueInput | KecamatanWhereUniqueInput[] } export type HasilPanenCreateNestedManyWithoutKomoditasInput = { create?: XOR | HasilPanenCreateWithoutKomoditasInput[] | HasilPanenUncheckedCreateWithoutKomoditasInput[] connectOrCreate?: HasilPanenCreateOrConnectWithoutKomoditasInput | HasilPanenCreateOrConnectWithoutKomoditasInput[] createMany?: HasilPanenCreateManyKomoditasInputEnvelope connect?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] } export type PrediksiPanenCreateNestedManyWithoutKomoditasInput = { create?: XOR | PrediksiPanenCreateWithoutKomoditasInput[] | PrediksiPanenUncheckedCreateWithoutKomoditasInput[] connectOrCreate?: PrediksiPanenCreateOrConnectWithoutKomoditasInput | PrediksiPanenCreateOrConnectWithoutKomoditasInput[] createMany?: PrediksiPanenCreateManyKomoditasInputEnvelope connect?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] } export type KecamatanUncheckedCreateNestedManyWithoutKomoditasInput = { create?: XOR | KecamatanCreateWithoutKomoditasInput[] | KecamatanUncheckedCreateWithoutKomoditasInput[] connectOrCreate?: KecamatanCreateOrConnectWithoutKomoditasInput | KecamatanCreateOrConnectWithoutKomoditasInput[] createMany?: KecamatanCreateManyKomoditasInputEnvelope connect?: KecamatanWhereUniqueInput | KecamatanWhereUniqueInput[] } export type HasilPanenUncheckedCreateNestedManyWithoutKomoditasInput = { create?: XOR | HasilPanenCreateWithoutKomoditasInput[] | HasilPanenUncheckedCreateWithoutKomoditasInput[] connectOrCreate?: HasilPanenCreateOrConnectWithoutKomoditasInput | HasilPanenCreateOrConnectWithoutKomoditasInput[] createMany?: HasilPanenCreateManyKomoditasInputEnvelope connect?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] } export type PrediksiPanenUncheckedCreateNestedManyWithoutKomoditasInput = { create?: XOR | PrediksiPanenCreateWithoutKomoditasInput[] | PrediksiPanenUncheckedCreateWithoutKomoditasInput[] connectOrCreate?: PrediksiPanenCreateOrConnectWithoutKomoditasInput | PrediksiPanenCreateOrConnectWithoutKomoditasInput[] createMany?: PrediksiPanenCreateManyKomoditasInputEnvelope connect?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] } export type KecamatanUpdateManyWithoutKomoditasNestedInput = { create?: XOR | KecamatanCreateWithoutKomoditasInput[] | KecamatanUncheckedCreateWithoutKomoditasInput[] connectOrCreate?: KecamatanCreateOrConnectWithoutKomoditasInput | KecamatanCreateOrConnectWithoutKomoditasInput[] upsert?: KecamatanUpsertWithWhereUniqueWithoutKomoditasInput | KecamatanUpsertWithWhereUniqueWithoutKomoditasInput[] createMany?: KecamatanCreateManyKomoditasInputEnvelope set?: KecamatanWhereUniqueInput | KecamatanWhereUniqueInput[] disconnect?: KecamatanWhereUniqueInput | KecamatanWhereUniqueInput[] delete?: KecamatanWhereUniqueInput | KecamatanWhereUniqueInput[] connect?: KecamatanWhereUniqueInput | KecamatanWhereUniqueInput[] update?: KecamatanUpdateWithWhereUniqueWithoutKomoditasInput | KecamatanUpdateWithWhereUniqueWithoutKomoditasInput[] updateMany?: KecamatanUpdateManyWithWhereWithoutKomoditasInput | KecamatanUpdateManyWithWhereWithoutKomoditasInput[] deleteMany?: KecamatanScalarWhereInput | KecamatanScalarWhereInput[] } export type HasilPanenUpdateManyWithoutKomoditasNestedInput = { create?: XOR | HasilPanenCreateWithoutKomoditasInput[] | HasilPanenUncheckedCreateWithoutKomoditasInput[] connectOrCreate?: HasilPanenCreateOrConnectWithoutKomoditasInput | HasilPanenCreateOrConnectWithoutKomoditasInput[] upsert?: HasilPanenUpsertWithWhereUniqueWithoutKomoditasInput | HasilPanenUpsertWithWhereUniqueWithoutKomoditasInput[] createMany?: HasilPanenCreateManyKomoditasInputEnvelope set?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] disconnect?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] delete?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] connect?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] update?: HasilPanenUpdateWithWhereUniqueWithoutKomoditasInput | HasilPanenUpdateWithWhereUniqueWithoutKomoditasInput[] updateMany?: HasilPanenUpdateManyWithWhereWithoutKomoditasInput | HasilPanenUpdateManyWithWhereWithoutKomoditasInput[] deleteMany?: HasilPanenScalarWhereInput | HasilPanenScalarWhereInput[] } export type PrediksiPanenUpdateManyWithoutKomoditasNestedInput = { create?: XOR | PrediksiPanenCreateWithoutKomoditasInput[] | PrediksiPanenUncheckedCreateWithoutKomoditasInput[] connectOrCreate?: PrediksiPanenCreateOrConnectWithoutKomoditasInput | PrediksiPanenCreateOrConnectWithoutKomoditasInput[] upsert?: PrediksiPanenUpsertWithWhereUniqueWithoutKomoditasInput | PrediksiPanenUpsertWithWhereUniqueWithoutKomoditasInput[] createMany?: PrediksiPanenCreateManyKomoditasInputEnvelope set?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] disconnect?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] delete?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] connect?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] update?: PrediksiPanenUpdateWithWhereUniqueWithoutKomoditasInput | PrediksiPanenUpdateWithWhereUniqueWithoutKomoditasInput[] updateMany?: PrediksiPanenUpdateManyWithWhereWithoutKomoditasInput | PrediksiPanenUpdateManyWithWhereWithoutKomoditasInput[] deleteMany?: PrediksiPanenScalarWhereInput | PrediksiPanenScalarWhereInput[] } export type KecamatanUncheckedUpdateManyWithoutKomoditasNestedInput = { create?: XOR | KecamatanCreateWithoutKomoditasInput[] | KecamatanUncheckedCreateWithoutKomoditasInput[] connectOrCreate?: KecamatanCreateOrConnectWithoutKomoditasInput | KecamatanCreateOrConnectWithoutKomoditasInput[] upsert?: KecamatanUpsertWithWhereUniqueWithoutKomoditasInput | KecamatanUpsertWithWhereUniqueWithoutKomoditasInput[] createMany?: KecamatanCreateManyKomoditasInputEnvelope set?: KecamatanWhereUniqueInput | KecamatanWhereUniqueInput[] disconnect?: KecamatanWhereUniqueInput | KecamatanWhereUniqueInput[] delete?: KecamatanWhereUniqueInput | KecamatanWhereUniqueInput[] connect?: KecamatanWhereUniqueInput | KecamatanWhereUniqueInput[] update?: KecamatanUpdateWithWhereUniqueWithoutKomoditasInput | KecamatanUpdateWithWhereUniqueWithoutKomoditasInput[] updateMany?: KecamatanUpdateManyWithWhereWithoutKomoditasInput | KecamatanUpdateManyWithWhereWithoutKomoditasInput[] deleteMany?: KecamatanScalarWhereInput | KecamatanScalarWhereInput[] } export type HasilPanenUncheckedUpdateManyWithoutKomoditasNestedInput = { create?: XOR | HasilPanenCreateWithoutKomoditasInput[] | HasilPanenUncheckedCreateWithoutKomoditasInput[] connectOrCreate?: HasilPanenCreateOrConnectWithoutKomoditasInput | HasilPanenCreateOrConnectWithoutKomoditasInput[] upsert?: HasilPanenUpsertWithWhereUniqueWithoutKomoditasInput | HasilPanenUpsertWithWhereUniqueWithoutKomoditasInput[] createMany?: HasilPanenCreateManyKomoditasInputEnvelope set?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] disconnect?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] delete?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] connect?: HasilPanenWhereUniqueInput | HasilPanenWhereUniqueInput[] update?: HasilPanenUpdateWithWhereUniqueWithoutKomoditasInput | HasilPanenUpdateWithWhereUniqueWithoutKomoditasInput[] updateMany?: HasilPanenUpdateManyWithWhereWithoutKomoditasInput | HasilPanenUpdateManyWithWhereWithoutKomoditasInput[] deleteMany?: HasilPanenScalarWhereInput | HasilPanenScalarWhereInput[] } export type PrediksiPanenUncheckedUpdateManyWithoutKomoditasNestedInput = { create?: XOR | PrediksiPanenCreateWithoutKomoditasInput[] | PrediksiPanenUncheckedCreateWithoutKomoditasInput[] connectOrCreate?: PrediksiPanenCreateOrConnectWithoutKomoditasInput | PrediksiPanenCreateOrConnectWithoutKomoditasInput[] upsert?: PrediksiPanenUpsertWithWhereUniqueWithoutKomoditasInput | PrediksiPanenUpsertWithWhereUniqueWithoutKomoditasInput[] createMany?: PrediksiPanenCreateManyKomoditasInputEnvelope set?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] disconnect?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] delete?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] connect?: PrediksiPanenWhereUniqueInput | PrediksiPanenWhereUniqueInput[] update?: PrediksiPanenUpdateWithWhereUniqueWithoutKomoditasInput | PrediksiPanenUpdateWithWhereUniqueWithoutKomoditasInput[] updateMany?: PrediksiPanenUpdateManyWithWhereWithoutKomoditasInput | PrediksiPanenUpdateManyWithWhereWithoutKomoditasInput[] deleteMany?: PrediksiPanenScalarWhereInput | PrediksiPanenScalarWhereInput[] } export type KecamatanCreateNestedOneWithoutHasil_panenInput = { create?: XOR connectOrCreate?: KecamatanCreateOrConnectWithoutHasil_panenInput connect?: KecamatanWhereUniqueInput } export type KomoditasCreateNestedOneWithoutHasil_panenInput = { create?: XOR connectOrCreate?: KomoditasCreateOrConnectWithoutHasil_panenInput connect?: KomoditasWhereUniqueInput } export type KecamatanUpdateOneRequiredWithoutHasil_panenNestedInput = { create?: XOR connectOrCreate?: KecamatanCreateOrConnectWithoutHasil_panenInput upsert?: KecamatanUpsertWithoutHasil_panenInput connect?: KecamatanWhereUniqueInput update?: XOR, KecamatanUncheckedUpdateWithoutHasil_panenInput> } export type KomoditasUpdateOneRequiredWithoutHasil_panenNestedInput = { create?: XOR connectOrCreate?: KomoditasCreateOrConnectWithoutHasil_panenInput upsert?: KomoditasUpsertWithoutHasil_panenInput connect?: KomoditasWhereUniqueInput update?: XOR, KomoditasUncheckedUpdateWithoutHasil_panenInput> } export type KecamatanCreateNestedOneWithoutPrediksi_panenInput = { create?: XOR connectOrCreate?: KecamatanCreateOrConnectWithoutPrediksi_panenInput connect?: KecamatanWhereUniqueInput } export type KomoditasCreateNestedOneWithoutPrediksi_panenInput = { create?: XOR connectOrCreate?: KomoditasCreateOrConnectWithoutPrediksi_panenInput connect?: KomoditasWhereUniqueInput } export type KecamatanUpdateOneRequiredWithoutPrediksi_panenNestedInput = { create?: XOR connectOrCreate?: KecamatanCreateOrConnectWithoutPrediksi_panenInput upsert?: KecamatanUpsertWithoutPrediksi_panenInput connect?: KecamatanWhereUniqueInput update?: XOR, KecamatanUncheckedUpdateWithoutPrediksi_panenInput> } export type KomoditasUpdateOneRequiredWithoutPrediksi_panenNestedInput = { create?: XOR connectOrCreate?: KomoditasCreateOrConnectWithoutPrediksi_panenInput upsert?: KomoditasUpsertWithoutPrediksi_panenInput connect?: KomoditasWhereUniqueInput update?: XOR, KomoditasUncheckedUpdateWithoutPrediksi_panenInput> } 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 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 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 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 NestedFloatWithAggregatesFilter<$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?: NestedFloatWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedFloatFilter<$PrismaModel> _min?: NestedFloatFilter<$PrismaModel> _max?: NestedFloatFilter<$PrismaModel> } export type DetailCreateWithoutUserInput = { phone: string bio: string city: string county: string post_kode: string photo_profile: string } export type DetailUncheckedCreateWithoutUserInput = { phone: string bio: string city: string county: string post_kode: string photo_profile: string } export type DetailCreateOrConnectWithoutUserInput = { where: DetailWhereUniqueInput create: XOR } export type DetailUpsertWithoutUserInput = { update: XOR create: XOR where?: DetailWhereInput } export type DetailUpdateToOneWithWhereWithoutUserInput = { where?: DetailWhereInput data: XOR } export type DetailUpdateWithoutUserInput = { phone?: StringFieldUpdateOperationsInput | string bio?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string county?: StringFieldUpdateOperationsInput | string post_kode?: StringFieldUpdateOperationsInput | string photo_profile?: StringFieldUpdateOperationsInput | string } export type DetailUncheckedUpdateWithoutUserInput = { phone?: StringFieldUpdateOperationsInput | string bio?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string county?: StringFieldUpdateOperationsInput | string post_kode?: StringFieldUpdateOperationsInput | string photo_profile?: StringFieldUpdateOperationsInput | string } export type UserCreateWithoutDetailInput = { id?: string name?: string | null email?: string | null password: string createdAt?: Date | string updatedAt?: Date | string } export type UserUncheckedCreateWithoutDetailInput = { id?: string name?: string | null email?: string | null password: string createdAt?: Date | string updatedAt?: Date | string } export type UserCreateOrConnectWithoutDetailInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutDetailInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutDetailInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutDetailInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserUncheckedUpdateWithoutDetailInput = { id?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type KomoditasCreateWithoutKecamatanInput = { nama_komoditas: string posisi_x: number posisi_y: number hasil_panen?: HasilPanenCreateNestedManyWithoutKomoditasInput prediksi_panen?: PrediksiPanenCreateNestedManyWithoutKomoditasInput } export type KomoditasUncheckedCreateWithoutKecamatanInput = { id_komoditas?: number nama_komoditas: string posisi_x: number posisi_y: number hasil_panen?: HasilPanenUncheckedCreateNestedManyWithoutKomoditasInput prediksi_panen?: PrediksiPanenUncheckedCreateNestedManyWithoutKomoditasInput } export type KomoditasCreateOrConnectWithoutKecamatanInput = { where: KomoditasWhereUniqueInput create: XOR } export type PendudukCreateWithoutKecamatanInput = { data_tahun: number jumlah_penduduk: number laju_pertumbuhan: string } export type PendudukUncheckedCreateWithoutKecamatanInput = { id_penduduk?: number data_tahun: number jumlah_penduduk: number laju_pertumbuhan: string } export type PendudukCreateOrConnectWithoutKecamatanInput = { where: PendudukWhereUniqueInput create: XOR } export type PendudukCreateManyKecamatanInputEnvelope = { data: PendudukCreateManyKecamatanInput | PendudukCreateManyKecamatanInput[] skipDuplicates?: boolean } export type HasilPanenCreateWithoutKecamatanInput = { tahun_panen: number produksi: number luas_panen: number produktivitas: number komoditas: KomoditasCreateNestedOneWithoutHasil_panenInput } export type HasilPanenUncheckedCreateWithoutKecamatanInput = { id_panen?: number id_komoditas: number tahun_panen: number produksi: number luas_panen: number produktivitas: number } export type HasilPanenCreateOrConnectWithoutKecamatanInput = { where: HasilPanenWhereUniqueInput create: XOR } export type HasilPanenCreateManyKecamatanInputEnvelope = { data: HasilPanenCreateManyKecamatanInput | HasilPanenCreateManyKecamatanInput[] skipDuplicates?: boolean } export type PrediksiPanenCreateWithoutKecamatanInput = { tahun_prediksi: number hasil_prediksi: number komoditas: KomoditasCreateNestedOneWithoutPrediksi_panenInput } export type PrediksiPanenUncheckedCreateWithoutKecamatanInput = { id_prediksi?: number id_komoditas: number tahun_prediksi: number hasil_prediksi: number } export type PrediksiPanenCreateOrConnectWithoutKecamatanInput = { where: PrediksiPanenWhereUniqueInput create: XOR } export type PrediksiPanenCreateManyKecamatanInputEnvelope = { data: PrediksiPanenCreateManyKecamatanInput | PrediksiPanenCreateManyKecamatanInput[] skipDuplicates?: boolean } export type KomoditasUpsertWithoutKecamatanInput = { update: XOR create: XOR where?: KomoditasWhereInput } export type KomoditasUpdateToOneWithWhereWithoutKecamatanInput = { where?: KomoditasWhereInput data: XOR } export type KomoditasUpdateWithoutKecamatanInput = { nama_komoditas?: StringFieldUpdateOperationsInput | string posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number hasil_panen?: HasilPanenUpdateManyWithoutKomoditasNestedInput prediksi_panen?: PrediksiPanenUpdateManyWithoutKomoditasNestedInput } export type KomoditasUncheckedUpdateWithoutKecamatanInput = { id_komoditas?: IntFieldUpdateOperationsInput | number nama_komoditas?: StringFieldUpdateOperationsInput | string posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number hasil_panen?: HasilPanenUncheckedUpdateManyWithoutKomoditasNestedInput prediksi_panen?: PrediksiPanenUncheckedUpdateManyWithoutKomoditasNestedInput } export type PendudukUpsertWithWhereUniqueWithoutKecamatanInput = { where: PendudukWhereUniqueInput update: XOR create: XOR } export type PendudukUpdateWithWhereUniqueWithoutKecamatanInput = { where: PendudukWhereUniqueInput data: XOR } export type PendudukUpdateManyWithWhereWithoutKecamatanInput = { where: PendudukScalarWhereInput data: XOR } export type PendudukScalarWhereInput = { AND?: PendudukScalarWhereInput | PendudukScalarWhereInput[] OR?: PendudukScalarWhereInput[] NOT?: PendudukScalarWhereInput | PendudukScalarWhereInput[] id_penduduk?: IntFilter<"Penduduk"> | number id_kecamatan?: IntFilter<"Penduduk"> | number data_tahun?: IntFilter<"Penduduk"> | number jumlah_penduduk?: FloatFilter<"Penduduk"> | number laju_pertumbuhan?: StringFilter<"Penduduk"> | string } export type HasilPanenUpsertWithWhereUniqueWithoutKecamatanInput = { where: HasilPanenWhereUniqueInput update: XOR create: XOR } export type HasilPanenUpdateWithWhereUniqueWithoutKecamatanInput = { where: HasilPanenWhereUniqueInput data: XOR } export type HasilPanenUpdateManyWithWhereWithoutKecamatanInput = { where: HasilPanenScalarWhereInput data: XOR } export type HasilPanenScalarWhereInput = { AND?: HasilPanenScalarWhereInput | HasilPanenScalarWhereInput[] OR?: HasilPanenScalarWhereInput[] NOT?: HasilPanenScalarWhereInput | HasilPanenScalarWhereInput[] id_panen?: IntFilter<"HasilPanen"> | number id_kecamatan?: IntFilter<"HasilPanen"> | number id_komoditas?: IntFilter<"HasilPanen"> | number tahun_panen?: IntFilter<"HasilPanen"> | number produksi?: FloatFilter<"HasilPanen"> | number luas_panen?: FloatFilter<"HasilPanen"> | number produktivitas?: FloatFilter<"HasilPanen"> | number } export type PrediksiPanenUpsertWithWhereUniqueWithoutKecamatanInput = { where: PrediksiPanenWhereUniqueInput update: XOR create: XOR } export type PrediksiPanenUpdateWithWhereUniqueWithoutKecamatanInput = { where: PrediksiPanenWhereUniqueInput data: XOR } export type PrediksiPanenUpdateManyWithWhereWithoutKecamatanInput = { where: PrediksiPanenScalarWhereInput data: XOR } export type PrediksiPanenScalarWhereInput = { AND?: PrediksiPanenScalarWhereInput | PrediksiPanenScalarWhereInput[] OR?: PrediksiPanenScalarWhereInput[] NOT?: PrediksiPanenScalarWhereInput | PrediksiPanenScalarWhereInput[] id_prediksi?: IntFilter<"PrediksiPanen"> | number id_kecamatan?: IntFilter<"PrediksiPanen"> | number id_komoditas?: IntFilter<"PrediksiPanen"> | number tahun_prediksi?: IntFilter<"PrediksiPanen"> | number hasil_prediksi?: IntFilter<"PrediksiPanen"> | number } export type KecamatanCreateWithoutPendudukInput = { nama_kecamatan: string deskripsi: string gambar: string area: number posisi_x: number posisi_y: number komoditas: KomoditasCreateNestedOneWithoutKecamatanInput hasil_panen?: HasilPanenCreateNestedManyWithoutKecamatanInput prediksi_panen?: PrediksiPanenCreateNestedManyWithoutKecamatanInput } export type KecamatanUncheckedCreateWithoutPendudukInput = { id_kecamatan?: number id_komoditas: number nama_kecamatan: string deskripsi: string gambar: string area: number posisi_x: number posisi_y: number hasil_panen?: HasilPanenUncheckedCreateNestedManyWithoutKecamatanInput prediksi_panen?: PrediksiPanenUncheckedCreateNestedManyWithoutKecamatanInput } export type KecamatanCreateOrConnectWithoutPendudukInput = { where: KecamatanWhereUniqueInput create: XOR } export type KecamatanUpsertWithoutPendudukInput = { update: XOR create: XOR where?: KecamatanWhereInput } export type KecamatanUpdateToOneWithWhereWithoutPendudukInput = { where?: KecamatanWhereInput data: XOR } export type KecamatanUpdateWithoutPendudukInput = { nama_kecamatan?: StringFieldUpdateOperationsInput | string deskripsi?: StringFieldUpdateOperationsInput | string gambar?: StringFieldUpdateOperationsInput | string area?: FloatFieldUpdateOperationsInput | number posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number komoditas?: KomoditasUpdateOneRequiredWithoutKecamatanNestedInput hasil_panen?: HasilPanenUpdateManyWithoutKecamatanNestedInput prediksi_panen?: PrediksiPanenUpdateManyWithoutKecamatanNestedInput } export type KecamatanUncheckedUpdateWithoutPendudukInput = { id_kecamatan?: IntFieldUpdateOperationsInput | number id_komoditas?: IntFieldUpdateOperationsInput | number nama_kecamatan?: StringFieldUpdateOperationsInput | string deskripsi?: StringFieldUpdateOperationsInput | string gambar?: StringFieldUpdateOperationsInput | string area?: FloatFieldUpdateOperationsInput | number posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number hasil_panen?: HasilPanenUncheckedUpdateManyWithoutKecamatanNestedInput prediksi_panen?: PrediksiPanenUncheckedUpdateManyWithoutKecamatanNestedInput } export type KecamatanCreateWithoutKomoditasInput = { nama_kecamatan: string deskripsi: string gambar: string area: number posisi_x: number posisi_y: number penduduk?: PendudukCreateNestedManyWithoutKecamatanInput hasil_panen?: HasilPanenCreateNestedManyWithoutKecamatanInput prediksi_panen?: PrediksiPanenCreateNestedManyWithoutKecamatanInput } export type KecamatanUncheckedCreateWithoutKomoditasInput = { id_kecamatan?: number nama_kecamatan: string deskripsi: string gambar: string area: number posisi_x: number posisi_y: number penduduk?: PendudukUncheckedCreateNestedManyWithoutKecamatanInput hasil_panen?: HasilPanenUncheckedCreateNestedManyWithoutKecamatanInput prediksi_panen?: PrediksiPanenUncheckedCreateNestedManyWithoutKecamatanInput } export type KecamatanCreateOrConnectWithoutKomoditasInput = { where: KecamatanWhereUniqueInput create: XOR } export type KecamatanCreateManyKomoditasInputEnvelope = { data: KecamatanCreateManyKomoditasInput | KecamatanCreateManyKomoditasInput[] skipDuplicates?: boolean } export type HasilPanenCreateWithoutKomoditasInput = { tahun_panen: number produksi: number luas_panen: number produktivitas: number kecamatan: KecamatanCreateNestedOneWithoutHasil_panenInput } export type HasilPanenUncheckedCreateWithoutKomoditasInput = { id_panen?: number id_kecamatan: number tahun_panen: number produksi: number luas_panen: number produktivitas: number } export type HasilPanenCreateOrConnectWithoutKomoditasInput = { where: HasilPanenWhereUniqueInput create: XOR } export type HasilPanenCreateManyKomoditasInputEnvelope = { data: HasilPanenCreateManyKomoditasInput | HasilPanenCreateManyKomoditasInput[] skipDuplicates?: boolean } export type PrediksiPanenCreateWithoutKomoditasInput = { tahun_prediksi: number hasil_prediksi: number kecamatan: KecamatanCreateNestedOneWithoutPrediksi_panenInput } export type PrediksiPanenUncheckedCreateWithoutKomoditasInput = { id_prediksi?: number id_kecamatan: number tahun_prediksi: number hasil_prediksi: number } export type PrediksiPanenCreateOrConnectWithoutKomoditasInput = { where: PrediksiPanenWhereUniqueInput create: XOR } export type PrediksiPanenCreateManyKomoditasInputEnvelope = { data: PrediksiPanenCreateManyKomoditasInput | PrediksiPanenCreateManyKomoditasInput[] skipDuplicates?: boolean } export type KecamatanUpsertWithWhereUniqueWithoutKomoditasInput = { where: KecamatanWhereUniqueInput update: XOR create: XOR } export type KecamatanUpdateWithWhereUniqueWithoutKomoditasInput = { where: KecamatanWhereUniqueInput data: XOR } export type KecamatanUpdateManyWithWhereWithoutKomoditasInput = { where: KecamatanScalarWhereInput data: XOR } export type KecamatanScalarWhereInput = { AND?: KecamatanScalarWhereInput | KecamatanScalarWhereInput[] OR?: KecamatanScalarWhereInput[] NOT?: KecamatanScalarWhereInput | KecamatanScalarWhereInput[] id_kecamatan?: IntFilter<"Kecamatan"> | number id_komoditas?: IntFilter<"Kecamatan"> | number nama_kecamatan?: StringFilter<"Kecamatan"> | string deskripsi?: StringFilter<"Kecamatan"> | string gambar?: StringFilter<"Kecamatan"> | string area?: FloatFilter<"Kecamatan"> | number posisi_x?: FloatFilter<"Kecamatan"> | number posisi_y?: FloatFilter<"Kecamatan"> | number } export type HasilPanenUpsertWithWhereUniqueWithoutKomoditasInput = { where: HasilPanenWhereUniqueInput update: XOR create: XOR } export type HasilPanenUpdateWithWhereUniqueWithoutKomoditasInput = { where: HasilPanenWhereUniqueInput data: XOR } export type HasilPanenUpdateManyWithWhereWithoutKomoditasInput = { where: HasilPanenScalarWhereInput data: XOR } export type PrediksiPanenUpsertWithWhereUniqueWithoutKomoditasInput = { where: PrediksiPanenWhereUniqueInput update: XOR create: XOR } export type PrediksiPanenUpdateWithWhereUniqueWithoutKomoditasInput = { where: PrediksiPanenWhereUniqueInput data: XOR } export type PrediksiPanenUpdateManyWithWhereWithoutKomoditasInput = { where: PrediksiPanenScalarWhereInput data: XOR } export type KecamatanCreateWithoutHasil_panenInput = { nama_kecamatan: string deskripsi: string gambar: string area: number posisi_x: number posisi_y: number komoditas: KomoditasCreateNestedOneWithoutKecamatanInput penduduk?: PendudukCreateNestedManyWithoutKecamatanInput prediksi_panen?: PrediksiPanenCreateNestedManyWithoutKecamatanInput } export type KecamatanUncheckedCreateWithoutHasil_panenInput = { id_kecamatan?: number id_komoditas: number nama_kecamatan: string deskripsi: string gambar: string area: number posisi_x: number posisi_y: number penduduk?: PendudukUncheckedCreateNestedManyWithoutKecamatanInput prediksi_panen?: PrediksiPanenUncheckedCreateNestedManyWithoutKecamatanInput } export type KecamatanCreateOrConnectWithoutHasil_panenInput = { where: KecamatanWhereUniqueInput create: XOR } export type KomoditasCreateWithoutHasil_panenInput = { nama_komoditas: string posisi_x: number posisi_y: number kecamatan?: KecamatanCreateNestedManyWithoutKomoditasInput prediksi_panen?: PrediksiPanenCreateNestedManyWithoutKomoditasInput } export type KomoditasUncheckedCreateWithoutHasil_panenInput = { id_komoditas?: number nama_komoditas: string posisi_x: number posisi_y: number kecamatan?: KecamatanUncheckedCreateNestedManyWithoutKomoditasInput prediksi_panen?: PrediksiPanenUncheckedCreateNestedManyWithoutKomoditasInput } export type KomoditasCreateOrConnectWithoutHasil_panenInput = { where: KomoditasWhereUniqueInput create: XOR } export type KecamatanUpsertWithoutHasil_panenInput = { update: XOR create: XOR where?: KecamatanWhereInput } export type KecamatanUpdateToOneWithWhereWithoutHasil_panenInput = { where?: KecamatanWhereInput data: XOR } export type KecamatanUpdateWithoutHasil_panenInput = { nama_kecamatan?: StringFieldUpdateOperationsInput | string deskripsi?: StringFieldUpdateOperationsInput | string gambar?: StringFieldUpdateOperationsInput | string area?: FloatFieldUpdateOperationsInput | number posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number komoditas?: KomoditasUpdateOneRequiredWithoutKecamatanNestedInput penduduk?: PendudukUpdateManyWithoutKecamatanNestedInput prediksi_panen?: PrediksiPanenUpdateManyWithoutKecamatanNestedInput } export type KecamatanUncheckedUpdateWithoutHasil_panenInput = { id_kecamatan?: IntFieldUpdateOperationsInput | number id_komoditas?: IntFieldUpdateOperationsInput | number nama_kecamatan?: StringFieldUpdateOperationsInput | string deskripsi?: StringFieldUpdateOperationsInput | string gambar?: StringFieldUpdateOperationsInput | string area?: FloatFieldUpdateOperationsInput | number posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number penduduk?: PendudukUncheckedUpdateManyWithoutKecamatanNestedInput prediksi_panen?: PrediksiPanenUncheckedUpdateManyWithoutKecamatanNestedInput } export type KomoditasUpsertWithoutHasil_panenInput = { update: XOR create: XOR where?: KomoditasWhereInput } export type KomoditasUpdateToOneWithWhereWithoutHasil_panenInput = { where?: KomoditasWhereInput data: XOR } export type KomoditasUpdateWithoutHasil_panenInput = { nama_komoditas?: StringFieldUpdateOperationsInput | string posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number kecamatan?: KecamatanUpdateManyWithoutKomoditasNestedInput prediksi_panen?: PrediksiPanenUpdateManyWithoutKomoditasNestedInput } export type KomoditasUncheckedUpdateWithoutHasil_panenInput = { id_komoditas?: IntFieldUpdateOperationsInput | number nama_komoditas?: StringFieldUpdateOperationsInput | string posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number kecamatan?: KecamatanUncheckedUpdateManyWithoutKomoditasNestedInput prediksi_panen?: PrediksiPanenUncheckedUpdateManyWithoutKomoditasNestedInput } export type KecamatanCreateWithoutPrediksi_panenInput = { nama_kecamatan: string deskripsi: string gambar: string area: number posisi_x: number posisi_y: number komoditas: KomoditasCreateNestedOneWithoutKecamatanInput penduduk?: PendudukCreateNestedManyWithoutKecamatanInput hasil_panen?: HasilPanenCreateNestedManyWithoutKecamatanInput } export type KecamatanUncheckedCreateWithoutPrediksi_panenInput = { id_kecamatan?: number id_komoditas: number nama_kecamatan: string deskripsi: string gambar: string area: number posisi_x: number posisi_y: number penduduk?: PendudukUncheckedCreateNestedManyWithoutKecamatanInput hasil_panen?: HasilPanenUncheckedCreateNestedManyWithoutKecamatanInput } export type KecamatanCreateOrConnectWithoutPrediksi_panenInput = { where: KecamatanWhereUniqueInput create: XOR } export type KomoditasCreateWithoutPrediksi_panenInput = { nama_komoditas: string posisi_x: number posisi_y: number kecamatan?: KecamatanCreateNestedManyWithoutKomoditasInput hasil_panen?: HasilPanenCreateNestedManyWithoutKomoditasInput } export type KomoditasUncheckedCreateWithoutPrediksi_panenInput = { id_komoditas?: number nama_komoditas: string posisi_x: number posisi_y: number kecamatan?: KecamatanUncheckedCreateNestedManyWithoutKomoditasInput hasil_panen?: HasilPanenUncheckedCreateNestedManyWithoutKomoditasInput } export type KomoditasCreateOrConnectWithoutPrediksi_panenInput = { where: KomoditasWhereUniqueInput create: XOR } export type KecamatanUpsertWithoutPrediksi_panenInput = { update: XOR create: XOR where?: KecamatanWhereInput } export type KecamatanUpdateToOneWithWhereWithoutPrediksi_panenInput = { where?: KecamatanWhereInput data: XOR } export type KecamatanUpdateWithoutPrediksi_panenInput = { nama_kecamatan?: StringFieldUpdateOperationsInput | string deskripsi?: StringFieldUpdateOperationsInput | string gambar?: StringFieldUpdateOperationsInput | string area?: FloatFieldUpdateOperationsInput | number posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number komoditas?: KomoditasUpdateOneRequiredWithoutKecamatanNestedInput penduduk?: PendudukUpdateManyWithoutKecamatanNestedInput hasil_panen?: HasilPanenUpdateManyWithoutKecamatanNestedInput } export type KecamatanUncheckedUpdateWithoutPrediksi_panenInput = { id_kecamatan?: IntFieldUpdateOperationsInput | number id_komoditas?: IntFieldUpdateOperationsInput | number nama_kecamatan?: StringFieldUpdateOperationsInput | string deskripsi?: StringFieldUpdateOperationsInput | string gambar?: StringFieldUpdateOperationsInput | string area?: FloatFieldUpdateOperationsInput | number posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number penduduk?: PendudukUncheckedUpdateManyWithoutKecamatanNestedInput hasil_panen?: HasilPanenUncheckedUpdateManyWithoutKecamatanNestedInput } export type KomoditasUpsertWithoutPrediksi_panenInput = { update: XOR create: XOR where?: KomoditasWhereInput } export type KomoditasUpdateToOneWithWhereWithoutPrediksi_panenInput = { where?: KomoditasWhereInput data: XOR } export type KomoditasUpdateWithoutPrediksi_panenInput = { nama_komoditas?: StringFieldUpdateOperationsInput | string posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number kecamatan?: KecamatanUpdateManyWithoutKomoditasNestedInput hasil_panen?: HasilPanenUpdateManyWithoutKomoditasNestedInput } export type KomoditasUncheckedUpdateWithoutPrediksi_panenInput = { id_komoditas?: IntFieldUpdateOperationsInput | number nama_komoditas?: StringFieldUpdateOperationsInput | string posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number kecamatan?: KecamatanUncheckedUpdateManyWithoutKomoditasNestedInput hasil_panen?: HasilPanenUncheckedUpdateManyWithoutKomoditasNestedInput } export type PendudukCreateManyKecamatanInput = { id_penduduk?: number data_tahun: number jumlah_penduduk: number laju_pertumbuhan: string } export type HasilPanenCreateManyKecamatanInput = { id_panen?: number id_komoditas: number tahun_panen: number produksi: number luas_panen: number produktivitas: number } export type PrediksiPanenCreateManyKecamatanInput = { id_prediksi?: number id_komoditas: number tahun_prediksi: number hasil_prediksi: number } export type PendudukUpdateWithoutKecamatanInput = { data_tahun?: IntFieldUpdateOperationsInput | number jumlah_penduduk?: FloatFieldUpdateOperationsInput | number laju_pertumbuhan?: StringFieldUpdateOperationsInput | string } export type PendudukUncheckedUpdateWithoutKecamatanInput = { id_penduduk?: IntFieldUpdateOperationsInput | number data_tahun?: IntFieldUpdateOperationsInput | number jumlah_penduduk?: FloatFieldUpdateOperationsInput | number laju_pertumbuhan?: StringFieldUpdateOperationsInput | string } export type PendudukUncheckedUpdateManyWithoutKecamatanInput = { id_penduduk?: IntFieldUpdateOperationsInput | number data_tahun?: IntFieldUpdateOperationsInput | number jumlah_penduduk?: FloatFieldUpdateOperationsInput | number laju_pertumbuhan?: StringFieldUpdateOperationsInput | string } export type HasilPanenUpdateWithoutKecamatanInput = { tahun_panen?: IntFieldUpdateOperationsInput | number produksi?: FloatFieldUpdateOperationsInput | number luas_panen?: FloatFieldUpdateOperationsInput | number produktivitas?: FloatFieldUpdateOperationsInput | number komoditas?: KomoditasUpdateOneRequiredWithoutHasil_panenNestedInput } export type HasilPanenUncheckedUpdateWithoutKecamatanInput = { id_panen?: IntFieldUpdateOperationsInput | number id_komoditas?: IntFieldUpdateOperationsInput | number tahun_panen?: IntFieldUpdateOperationsInput | number produksi?: FloatFieldUpdateOperationsInput | number luas_panen?: FloatFieldUpdateOperationsInput | number produktivitas?: FloatFieldUpdateOperationsInput | number } export type HasilPanenUncheckedUpdateManyWithoutKecamatanInput = { id_panen?: IntFieldUpdateOperationsInput | number id_komoditas?: IntFieldUpdateOperationsInput | number tahun_panen?: IntFieldUpdateOperationsInput | number produksi?: FloatFieldUpdateOperationsInput | number luas_panen?: FloatFieldUpdateOperationsInput | number produktivitas?: FloatFieldUpdateOperationsInput | number } export type PrediksiPanenUpdateWithoutKecamatanInput = { tahun_prediksi?: IntFieldUpdateOperationsInput | number hasil_prediksi?: IntFieldUpdateOperationsInput | number komoditas?: KomoditasUpdateOneRequiredWithoutPrediksi_panenNestedInput } export type PrediksiPanenUncheckedUpdateWithoutKecamatanInput = { id_prediksi?: IntFieldUpdateOperationsInput | number id_komoditas?: IntFieldUpdateOperationsInput | number tahun_prediksi?: IntFieldUpdateOperationsInput | number hasil_prediksi?: IntFieldUpdateOperationsInput | number } export type PrediksiPanenUncheckedUpdateManyWithoutKecamatanInput = { id_prediksi?: IntFieldUpdateOperationsInput | number id_komoditas?: IntFieldUpdateOperationsInput | number tahun_prediksi?: IntFieldUpdateOperationsInput | number hasil_prediksi?: IntFieldUpdateOperationsInput | number } export type KecamatanCreateManyKomoditasInput = { id_kecamatan?: number nama_kecamatan: string deskripsi: string gambar: string area: number posisi_x: number posisi_y: number } export type HasilPanenCreateManyKomoditasInput = { id_panen?: number id_kecamatan: number tahun_panen: number produksi: number luas_panen: number produktivitas: number } export type PrediksiPanenCreateManyKomoditasInput = { id_prediksi?: number id_kecamatan: number tahun_prediksi: number hasil_prediksi: number } export type KecamatanUpdateWithoutKomoditasInput = { nama_kecamatan?: StringFieldUpdateOperationsInput | string deskripsi?: StringFieldUpdateOperationsInput | string gambar?: StringFieldUpdateOperationsInput | string area?: FloatFieldUpdateOperationsInput | number posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number penduduk?: PendudukUpdateManyWithoutKecamatanNestedInput hasil_panen?: HasilPanenUpdateManyWithoutKecamatanNestedInput prediksi_panen?: PrediksiPanenUpdateManyWithoutKecamatanNestedInput } export type KecamatanUncheckedUpdateWithoutKomoditasInput = { id_kecamatan?: IntFieldUpdateOperationsInput | number nama_kecamatan?: StringFieldUpdateOperationsInput | string deskripsi?: StringFieldUpdateOperationsInput | string gambar?: StringFieldUpdateOperationsInput | string area?: FloatFieldUpdateOperationsInput | number posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number penduduk?: PendudukUncheckedUpdateManyWithoutKecamatanNestedInput hasil_panen?: HasilPanenUncheckedUpdateManyWithoutKecamatanNestedInput prediksi_panen?: PrediksiPanenUncheckedUpdateManyWithoutKecamatanNestedInput } export type KecamatanUncheckedUpdateManyWithoutKomoditasInput = { id_kecamatan?: IntFieldUpdateOperationsInput | number nama_kecamatan?: StringFieldUpdateOperationsInput | string deskripsi?: StringFieldUpdateOperationsInput | string gambar?: StringFieldUpdateOperationsInput | string area?: FloatFieldUpdateOperationsInput | number posisi_x?: FloatFieldUpdateOperationsInput | number posisi_y?: FloatFieldUpdateOperationsInput | number } export type HasilPanenUpdateWithoutKomoditasInput = { tahun_panen?: IntFieldUpdateOperationsInput | number produksi?: FloatFieldUpdateOperationsInput | number luas_panen?: FloatFieldUpdateOperationsInput | number produktivitas?: FloatFieldUpdateOperationsInput | number kecamatan?: KecamatanUpdateOneRequiredWithoutHasil_panenNestedInput } export type HasilPanenUncheckedUpdateWithoutKomoditasInput = { id_panen?: IntFieldUpdateOperationsInput | number id_kecamatan?: IntFieldUpdateOperationsInput | number tahun_panen?: IntFieldUpdateOperationsInput | number produksi?: FloatFieldUpdateOperationsInput | number luas_panen?: FloatFieldUpdateOperationsInput | number produktivitas?: FloatFieldUpdateOperationsInput | number } export type HasilPanenUncheckedUpdateManyWithoutKomoditasInput = { id_panen?: IntFieldUpdateOperationsInput | number id_kecamatan?: IntFieldUpdateOperationsInput | number tahun_panen?: IntFieldUpdateOperationsInput | number produksi?: FloatFieldUpdateOperationsInput | number luas_panen?: FloatFieldUpdateOperationsInput | number produktivitas?: FloatFieldUpdateOperationsInput | number } export type PrediksiPanenUpdateWithoutKomoditasInput = { tahun_prediksi?: IntFieldUpdateOperationsInput | number hasil_prediksi?: IntFieldUpdateOperationsInput | number kecamatan?: KecamatanUpdateOneRequiredWithoutPrediksi_panenNestedInput } export type PrediksiPanenUncheckedUpdateWithoutKomoditasInput = { id_prediksi?: IntFieldUpdateOperationsInput | number id_kecamatan?: IntFieldUpdateOperationsInput | number tahun_prediksi?: IntFieldUpdateOperationsInput | number hasil_prediksi?: IntFieldUpdateOperationsInput | number } export type PrediksiPanenUncheckedUpdateManyWithoutKomoditasInput = { id_prediksi?: IntFieldUpdateOperationsInput | number id_kecamatan?: IntFieldUpdateOperationsInput | number tahun_prediksi?: IntFieldUpdateOperationsInput | number hasil_prediksi?: IntFieldUpdateOperationsInput | number } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }