/** * 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 alert_recipients * */ export type alert_recipients = $Result.DefaultSelection /** * Model alerts * This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info. */ export type alerts = $Result.DefaultSelection /** * Model basemap_configs * This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info. */ export type basemap_configs = $Result.DefaultSelection /** * Model camera_health_log * */ export type camera_health_log = $Result.DefaultSelection /** * Model cameras * */ export type cameras = $Result.DefaultSelection /** * Model feature_flags * This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info. */ export type feature_flags = $Result.DefaultSelection /** * Model geofence_breaches * This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info. */ export type geofence_breaches = $Result.DefaultSelection /** * Model geofences * This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info. */ export type geofences = $Result.DefaultSelection /** * Model houses * */ export type houses = $Result.DefaultSelection /** * Model incident_updates * This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info. */ export type incident_updates = $Result.DefaultSelection /** * Model incidents * This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info. */ export type incidents = $Result.DefaultSelection /** * Model ktp_validation_audit * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments */ export type ktp_validation_audit = $Result.DefaultSelection /** * Model map_pins * This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info. */ export type map_pins = $Result.DefaultSelection /** * Model perumahan_facilities * */ export type perumahan_facilities = $Result.DefaultSelection /** * Model perumahan_info * */ export type perumahan_info = $Result.DefaultSelection /** * Model qr_codes * */ export type qr_codes = $Result.DefaultSelection /** * Model security_activities * */ export type security_activities = $Result.DefaultSelection /** * Model sequelizemeta * */ export type sequelizemeta = $Result.DefaultSelection /** * Model team_location_history * */ export type team_location_history = $Result.DefaultSelection /** * Model team_members * */ export type team_members = $Result.DefaultSelection /** * Model visitor_ktp_data * */ export type visitor_ktp_data = $Result.DefaultSelection /** * Model visitor_registrations * */ export type visitor_registrations = $Result.DefaultSelection /** * Enums */ export namespace $Enums { export const ktp_validation_audit_action: { created: 'created', updated: 'updated', verified: 'verified', rejected: 'rejected', manual_override: 'manual_override', duplicate_detected: 'duplicate_detected', validation_error: 'validation_error', manual_validation: 'manual_validation', manual_validation_error: 'manual_validation_error' }; export type ktp_validation_audit_action = (typeof ktp_validation_audit_action)[keyof typeof ktp_validation_audit_action] export const team_members_status: { ON_DUTY: 'ON_DUTY', OFF_DUTY: 'OFF_DUTY', PATROLLING: 'PATROLLING', BREAK: 'BREAK' }; export type team_members_status = (typeof team_members_status)[keyof typeof team_members_status] export const security_activities_severity: { INFO: 'INFO', WARNING: 'WARNING', ERROR: 'ERROR', CRITICAL: 'CRITICAL' }; export type security_activities_severity = (typeof security_activities_severity)[keyof typeof security_activities_severity] export const cameras_status: { online: 'online', offline: 'offline', degraded: 'degraded', error: 'error' }; export type cameras_status = (typeof cameras_status)[keyof typeof cameras_status] export const houses_status: { active: 'active', inactive: 'inactive' }; export type houses_status = (typeof houses_status)[keyof typeof houses_status] export const visitor_ktp_data_gender: { L: 'L', P: 'P' }; export type visitor_ktp_data_gender = (typeof visitor_ktp_data_gender)[keyof typeof visitor_ktp_data_gender] export const perumahan_facilities_status: { active: 'active', inactive: 'inactive', maintenance: 'maintenance' }; export type perumahan_facilities_status = (typeof perumahan_facilities_status)[keyof typeof perumahan_facilities_status] export const visitor_registrations_status: { pending: 'pending', approved: 'approved', rejected: 'rejected', expired: 'expired', checked_in: 'checked_in', checked_out: 'checked_out' }; export type visitor_registrations_status = (typeof visitor_registrations_status)[keyof typeof visitor_registrations_status] export const qr_codes_security_level: { low: 'low', medium: 'medium', high: 'high', restricted: 'restricted' }; export type qr_codes_security_level = (typeof qr_codes_security_level)[keyof typeof qr_codes_security_level] export const visitor_ktp_data_validation_status: { pending: 'pending', processing: 'processing', verified: 'verified', rejected: 'rejected', manual_review: 'manual_review' }; export type visitor_ktp_data_validation_status = (typeof visitor_ktp_data_validation_status)[keyof typeof visitor_ktp_data_validation_status] } export type ktp_validation_audit_action = $Enums.ktp_validation_audit_action export const ktp_validation_audit_action: typeof $Enums.ktp_validation_audit_action export type team_members_status = $Enums.team_members_status export const team_members_status: typeof $Enums.team_members_status export type security_activities_severity = $Enums.security_activities_severity export const security_activities_severity: typeof $Enums.security_activities_severity export type cameras_status = $Enums.cameras_status export const cameras_status: typeof $Enums.cameras_status export type houses_status = $Enums.houses_status export const houses_status: typeof $Enums.houses_status export type visitor_ktp_data_gender = $Enums.visitor_ktp_data_gender export const visitor_ktp_data_gender: typeof $Enums.visitor_ktp_data_gender export type perumahan_facilities_status = $Enums.perumahan_facilities_status export const perumahan_facilities_status: typeof $Enums.perumahan_facilities_status export type visitor_registrations_status = $Enums.visitor_registrations_status export const visitor_registrations_status: typeof $Enums.visitor_registrations_status export type qr_codes_security_level = $Enums.qr_codes_security_level export const qr_codes_security_level: typeof $Enums.qr_codes_security_level export type visitor_ktp_data_validation_status = $Enums.visitor_ktp_data_validation_status export const visitor_ktp_data_validation_status: typeof $Enums.visitor_ktp_data_validation_status /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more Alert_recipients * const alert_recipients = await prisma.alert_recipients.findMany() * ``` * * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ export class PrismaClient< ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, const U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs > { [K: symbol]: { types: Prisma.TypeMap['other'] } /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more Alert_recipients * const alert_recipients = await prisma.alert_recipients.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.alert_recipients`: Exposes CRUD operations for the **alert_recipients** model. * Example usage: * ```ts * // Fetch zero or more Alert_recipients * const alert_recipients = await prisma.alert_recipients.findMany() * ``` */ get alert_recipients(): Prisma.alert_recipientsDelegate; /** * `prisma.alerts`: Exposes CRUD operations for the **alerts** model. * Example usage: * ```ts * // Fetch zero or more Alerts * const alerts = await prisma.alerts.findMany() * ``` */ get alerts(): Prisma.alertsDelegate; /** * `prisma.basemap_configs`: Exposes CRUD operations for the **basemap_configs** model. * Example usage: * ```ts * // Fetch zero or more Basemap_configs * const basemap_configs = await prisma.basemap_configs.findMany() * ``` */ get basemap_configs(): Prisma.basemap_configsDelegate; /** * `prisma.camera_health_log`: Exposes CRUD operations for the **camera_health_log** model. * Example usage: * ```ts * // Fetch zero or more Camera_health_logs * const camera_health_logs = await prisma.camera_health_log.findMany() * ``` */ get camera_health_log(): Prisma.camera_health_logDelegate; /** * `prisma.cameras`: Exposes CRUD operations for the **cameras** model. * Example usage: * ```ts * // Fetch zero or more Cameras * const cameras = await prisma.cameras.findMany() * ``` */ get cameras(): Prisma.camerasDelegate; /** * `prisma.feature_flags`: Exposes CRUD operations for the **feature_flags** model. * Example usage: * ```ts * // Fetch zero or more Feature_flags * const feature_flags = await prisma.feature_flags.findMany() * ``` */ get feature_flags(): Prisma.feature_flagsDelegate; /** * `prisma.geofence_breaches`: Exposes CRUD operations for the **geofence_breaches** model. * Example usage: * ```ts * // Fetch zero or more Geofence_breaches * const geofence_breaches = await prisma.geofence_breaches.findMany() * ``` */ get geofence_breaches(): Prisma.geofence_breachesDelegate; /** * `prisma.geofences`: Exposes CRUD operations for the **geofences** model. * Example usage: * ```ts * // Fetch zero or more Geofences * const geofences = await prisma.geofences.findMany() * ``` */ get geofences(): Prisma.geofencesDelegate; /** * `prisma.houses`: Exposes CRUD operations for the **houses** model. * Example usage: * ```ts * // Fetch zero or more Houses * const houses = await prisma.houses.findMany() * ``` */ get houses(): Prisma.housesDelegate; /** * `prisma.incident_updates`: Exposes CRUD operations for the **incident_updates** model. * Example usage: * ```ts * // Fetch zero or more Incident_updates * const incident_updates = await prisma.incident_updates.findMany() * ``` */ get incident_updates(): Prisma.incident_updatesDelegate; /** * `prisma.incidents`: Exposes CRUD operations for the **incidents** model. * Example usage: * ```ts * // Fetch zero or more Incidents * const incidents = await prisma.incidents.findMany() * ``` */ get incidents(): Prisma.incidentsDelegate; /** * `prisma.ktp_validation_audit`: Exposes CRUD operations for the **ktp_validation_audit** model. * Example usage: * ```ts * // Fetch zero or more Ktp_validation_audits * const ktp_validation_audits = await prisma.ktp_validation_audit.findMany() * ``` */ get ktp_validation_audit(): Prisma.ktp_validation_auditDelegate; /** * `prisma.map_pins`: Exposes CRUD operations for the **map_pins** model. * Example usage: * ```ts * // Fetch zero or more Map_pins * const map_pins = await prisma.map_pins.findMany() * ``` */ get map_pins(): Prisma.map_pinsDelegate; /** * `prisma.perumahan_facilities`: Exposes CRUD operations for the **perumahan_facilities** model. * Example usage: * ```ts * // Fetch zero or more Perumahan_facilities * const perumahan_facilities = await prisma.perumahan_facilities.findMany() * ``` */ get perumahan_facilities(): Prisma.perumahan_facilitiesDelegate; /** * `prisma.perumahan_info`: Exposes CRUD operations for the **perumahan_info** model. * Example usage: * ```ts * // Fetch zero or more Perumahan_infos * const perumahan_infos = await prisma.perumahan_info.findMany() * ``` */ get perumahan_info(): Prisma.perumahan_infoDelegate; /** * `prisma.qr_codes`: Exposes CRUD operations for the **qr_codes** model. * Example usage: * ```ts * // Fetch zero or more Qr_codes * const qr_codes = await prisma.qr_codes.findMany() * ``` */ get qr_codes(): Prisma.qr_codesDelegate; /** * `prisma.security_activities`: Exposes CRUD operations for the **security_activities** model. * Example usage: * ```ts * // Fetch zero or more Security_activities * const security_activities = await prisma.security_activities.findMany() * ``` */ get security_activities(): Prisma.security_activitiesDelegate; /** * `prisma.sequelizemeta`: Exposes CRUD operations for the **sequelizemeta** model. * Example usage: * ```ts * // Fetch zero or more Sequelizemetas * const sequelizemetas = await prisma.sequelizemeta.findMany() * ``` */ get sequelizemeta(): Prisma.sequelizemetaDelegate; /** * `prisma.team_location_history`: Exposes CRUD operations for the **team_location_history** model. * Example usage: * ```ts * // Fetch zero or more Team_location_histories * const team_location_histories = await prisma.team_location_history.findMany() * ``` */ get team_location_history(): Prisma.team_location_historyDelegate; /** * `prisma.team_members`: Exposes CRUD operations for the **team_members** model. * Example usage: * ```ts * // Fetch zero or more Team_members * const team_members = await prisma.team_members.findMany() * ``` */ get team_members(): Prisma.team_membersDelegate; /** * `prisma.visitor_ktp_data`: Exposes CRUD operations for the **visitor_ktp_data** model. * Example usage: * ```ts * // Fetch zero or more Visitor_ktp_data * const visitor_ktp_data = await prisma.visitor_ktp_data.findMany() * ``` */ get visitor_ktp_data(): Prisma.visitor_ktp_dataDelegate; /** * `prisma.visitor_registrations`: Exposes CRUD operations for the **visitor_registrations** model. * Example usage: * ```ts * // Fetch zero or more Visitor_registrations * const visitor_registrations = await prisma.visitor_registrations.findMany() * ``` */ get visitor_registrations(): Prisma.visitor_registrationsDelegate; } 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.13.0 * Query Engine version: 361e86d0ea4987e9f53a565309b3eed797a6bcbd */ 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: { alert_recipients: 'alert_recipients', alerts: 'alerts', basemap_configs: 'basemap_configs', camera_health_log: 'camera_health_log', cameras: 'cameras', feature_flags: 'feature_flags', geofence_breaches: 'geofence_breaches', geofences: 'geofences', houses: 'houses', incident_updates: 'incident_updates', incidents: 'incidents', ktp_validation_audit: 'ktp_validation_audit', map_pins: 'map_pins', perumahan_facilities: 'perumahan_facilities', perumahan_info: 'perumahan_info', qr_codes: 'qr_codes', security_activities: 'security_activities', sequelizemeta: 'sequelizemeta', team_location_history: 'team_location_history', team_members: 'team_members', visitor_ktp_data: 'visitor_ktp_data', visitor_registrations: 'visitor_registrations' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type Datasources = { db_utility?: Datasource } interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record> { returns: Prisma.TypeMap } export type TypeMap = { globalOmitOptions: { omit: GlobalOmitOptions } meta: { modelProps: "alert_recipients" | "alerts" | "basemap_configs" | "camera_health_log" | "cameras" | "feature_flags" | "geofence_breaches" | "geofences" | "houses" | "incident_updates" | "incidents" | "ktp_validation_audit" | "map_pins" | "perumahan_facilities" | "perumahan_info" | "qr_codes" | "security_activities" | "sequelizemeta" | "team_location_history" | "team_members" | "visitor_ktp_data" | "visitor_registrations" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { alert_recipients: { payload: Prisma.$alert_recipientsPayload fields: Prisma.alert_recipientsFieldRefs operations: { findUnique: { args: Prisma.alert_recipientsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.alert_recipientsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.alert_recipientsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.alert_recipientsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.alert_recipientsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.alert_recipientsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.alert_recipientsCreateManyArgs result: BatchPayload } delete: { args: Prisma.alert_recipientsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.alert_recipientsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.alert_recipientsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.alert_recipientsUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.alert_recipientsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Alert_recipientsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.alert_recipientsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.alert_recipientsCountArgs result: $Utils.Optional | number } } } alerts: { payload: Prisma.$alertsPayload fields: Prisma.alertsFieldRefs operations: { findUnique: { args: Prisma.alertsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.alertsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.alertsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.alertsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.alertsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.alertsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.alertsCreateManyArgs result: BatchPayload } delete: { args: Prisma.alertsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.alertsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.alertsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.alertsUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.alertsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AlertsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.alertsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.alertsCountArgs result: $Utils.Optional | number } } } basemap_configs: { payload: Prisma.$basemap_configsPayload fields: Prisma.basemap_configsFieldRefs operations: { findUnique: { args: Prisma.basemap_configsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.basemap_configsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.basemap_configsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.basemap_configsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.basemap_configsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.basemap_configsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.basemap_configsCreateManyArgs result: BatchPayload } delete: { args: Prisma.basemap_configsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.basemap_configsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.basemap_configsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.basemap_configsUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.basemap_configsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Basemap_configsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.basemap_configsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.basemap_configsCountArgs result: $Utils.Optional | number } } } camera_health_log: { payload: Prisma.$camera_health_logPayload fields: Prisma.camera_health_logFieldRefs operations: { findUnique: { args: Prisma.camera_health_logFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.camera_health_logFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.camera_health_logFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.camera_health_logFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.camera_health_logFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.camera_health_logCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.camera_health_logCreateManyArgs result: BatchPayload } delete: { args: Prisma.camera_health_logDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.camera_health_logUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.camera_health_logDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.camera_health_logUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.camera_health_logUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Camera_health_logAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.camera_health_logGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.camera_health_logCountArgs result: $Utils.Optional | number } } } cameras: { payload: Prisma.$camerasPayload fields: Prisma.camerasFieldRefs operations: { findUnique: { args: Prisma.camerasFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.camerasFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.camerasFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.camerasFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.camerasFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.camerasCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.camerasCreateManyArgs result: BatchPayload } delete: { args: Prisma.camerasDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.camerasUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.camerasDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.camerasUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.camerasUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CamerasAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.camerasGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.camerasCountArgs result: $Utils.Optional | number } } } feature_flags: { payload: Prisma.$feature_flagsPayload fields: Prisma.feature_flagsFieldRefs operations: { findUnique: { args: Prisma.feature_flagsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.feature_flagsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.feature_flagsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.feature_flagsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.feature_flagsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.feature_flagsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.feature_flagsCreateManyArgs result: BatchPayload } delete: { args: Prisma.feature_flagsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.feature_flagsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.feature_flagsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.feature_flagsUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.feature_flagsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Feature_flagsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.feature_flagsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.feature_flagsCountArgs result: $Utils.Optional | number } } } geofence_breaches: { payload: Prisma.$geofence_breachesPayload fields: Prisma.geofence_breachesFieldRefs operations: { findUnique: { args: Prisma.geofence_breachesFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.geofence_breachesFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.geofence_breachesFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.geofence_breachesFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.geofence_breachesFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.geofence_breachesCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.geofence_breachesCreateManyArgs result: BatchPayload } delete: { args: Prisma.geofence_breachesDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.geofence_breachesUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.geofence_breachesDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.geofence_breachesUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.geofence_breachesUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Geofence_breachesAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.geofence_breachesGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.geofence_breachesCountArgs result: $Utils.Optional | number } } } geofences: { payload: Prisma.$geofencesPayload fields: Prisma.geofencesFieldRefs operations: { findUnique: { args: Prisma.geofencesFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.geofencesFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.geofencesFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.geofencesFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.geofencesFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.geofencesCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.geofencesCreateManyArgs result: BatchPayload } delete: { args: Prisma.geofencesDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.geofencesUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.geofencesDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.geofencesUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.geofencesUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.GeofencesAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.geofencesGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.geofencesCountArgs result: $Utils.Optional | number } } } houses: { payload: Prisma.$housesPayload fields: Prisma.housesFieldRefs operations: { findUnique: { args: Prisma.housesFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.housesFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.housesFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.housesFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.housesFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.housesCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.housesCreateManyArgs result: BatchPayload } delete: { args: Prisma.housesDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.housesUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.housesDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.housesUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.housesUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.HousesAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.housesGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.housesCountArgs result: $Utils.Optional | number } } } incident_updates: { payload: Prisma.$incident_updatesPayload fields: Prisma.incident_updatesFieldRefs operations: { findUnique: { args: Prisma.incident_updatesFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.incident_updatesFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.incident_updatesFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.incident_updatesFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.incident_updatesFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.incident_updatesCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.incident_updatesCreateManyArgs result: BatchPayload } delete: { args: Prisma.incident_updatesDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.incident_updatesUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.incident_updatesDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.incident_updatesUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.incident_updatesUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Incident_updatesAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.incident_updatesGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.incident_updatesCountArgs result: $Utils.Optional | number } } } incidents: { payload: Prisma.$incidentsPayload fields: Prisma.incidentsFieldRefs operations: { findUnique: { args: Prisma.incidentsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.incidentsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.incidentsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.incidentsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.incidentsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.incidentsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.incidentsCreateManyArgs result: BatchPayload } delete: { args: Prisma.incidentsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.incidentsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.incidentsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.incidentsUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.incidentsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.IncidentsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.incidentsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.incidentsCountArgs result: $Utils.Optional | number } } } ktp_validation_audit: { payload: Prisma.$ktp_validation_auditPayload fields: Prisma.ktp_validation_auditFieldRefs operations: { findUnique: { args: Prisma.ktp_validation_auditFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ktp_validation_auditFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ktp_validation_auditFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ktp_validation_auditFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ktp_validation_auditFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ktp_validation_auditCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ktp_validation_auditCreateManyArgs result: BatchPayload } delete: { args: Prisma.ktp_validation_auditDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ktp_validation_auditUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ktp_validation_auditDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ktp_validation_auditUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ktp_validation_auditUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Ktp_validation_auditAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ktp_validation_auditGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ktp_validation_auditCountArgs result: $Utils.Optional | number } } } map_pins: { payload: Prisma.$map_pinsPayload fields: Prisma.map_pinsFieldRefs operations: { findUnique: { args: Prisma.map_pinsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.map_pinsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.map_pinsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.map_pinsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.map_pinsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.map_pinsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.map_pinsCreateManyArgs result: BatchPayload } delete: { args: Prisma.map_pinsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.map_pinsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.map_pinsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.map_pinsUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.map_pinsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Map_pinsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.map_pinsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.map_pinsCountArgs result: $Utils.Optional | number } } } perumahan_facilities: { payload: Prisma.$perumahan_facilitiesPayload fields: Prisma.perumahan_facilitiesFieldRefs operations: { findUnique: { args: Prisma.perumahan_facilitiesFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.perumahan_facilitiesFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.perumahan_facilitiesFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.perumahan_facilitiesFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.perumahan_facilitiesFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.perumahan_facilitiesCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.perumahan_facilitiesCreateManyArgs result: BatchPayload } delete: { args: Prisma.perumahan_facilitiesDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.perumahan_facilitiesUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.perumahan_facilitiesDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.perumahan_facilitiesUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.perumahan_facilitiesUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Perumahan_facilitiesAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.perumahan_facilitiesGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.perumahan_facilitiesCountArgs result: $Utils.Optional | number } } } perumahan_info: { payload: Prisma.$perumahan_infoPayload fields: Prisma.perumahan_infoFieldRefs operations: { findUnique: { args: Prisma.perumahan_infoFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.perumahan_infoFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.perumahan_infoFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.perumahan_infoFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.perumahan_infoFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.perumahan_infoCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.perumahan_infoCreateManyArgs result: BatchPayload } delete: { args: Prisma.perumahan_infoDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.perumahan_infoUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.perumahan_infoDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.perumahan_infoUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.perumahan_infoUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Perumahan_infoAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.perumahan_infoGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.perumahan_infoCountArgs result: $Utils.Optional | number } } } qr_codes: { payload: Prisma.$qr_codesPayload fields: Prisma.qr_codesFieldRefs operations: { findUnique: { args: Prisma.qr_codesFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.qr_codesFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.qr_codesFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.qr_codesFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.qr_codesFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.qr_codesCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.qr_codesCreateManyArgs result: BatchPayload } delete: { args: Prisma.qr_codesDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.qr_codesUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.qr_codesDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.qr_codesUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.qr_codesUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Qr_codesAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.qr_codesGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.qr_codesCountArgs result: $Utils.Optional | number } } } security_activities: { payload: Prisma.$security_activitiesPayload fields: Prisma.security_activitiesFieldRefs operations: { findUnique: { args: Prisma.security_activitiesFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.security_activitiesFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.security_activitiesFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.security_activitiesFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.security_activitiesFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.security_activitiesCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.security_activitiesCreateManyArgs result: BatchPayload } delete: { args: Prisma.security_activitiesDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.security_activitiesUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.security_activitiesDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.security_activitiesUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.security_activitiesUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Security_activitiesAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.security_activitiesGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.security_activitiesCountArgs result: $Utils.Optional | number } } } sequelizemeta: { payload: Prisma.$sequelizemetaPayload fields: Prisma.sequelizemetaFieldRefs operations: { findUnique: { args: Prisma.sequelizemetaFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.sequelizemetaFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.sequelizemetaFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.sequelizemetaFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.sequelizemetaFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.sequelizemetaCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.sequelizemetaCreateManyArgs result: BatchPayload } delete: { args: Prisma.sequelizemetaDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.sequelizemetaUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.sequelizemetaDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.sequelizemetaUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.sequelizemetaUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SequelizemetaAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.sequelizemetaGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.sequelizemetaCountArgs result: $Utils.Optional | number } } } team_location_history: { payload: Prisma.$team_location_historyPayload fields: Prisma.team_location_historyFieldRefs operations: { findUnique: { args: Prisma.team_location_historyFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.team_location_historyFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.team_location_historyFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.team_location_historyFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.team_location_historyFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.team_location_historyCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.team_location_historyCreateManyArgs result: BatchPayload } delete: { args: Prisma.team_location_historyDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.team_location_historyUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.team_location_historyDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.team_location_historyUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.team_location_historyUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Team_location_historyAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.team_location_historyGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.team_location_historyCountArgs result: $Utils.Optional | number } } } team_members: { payload: Prisma.$team_membersPayload fields: Prisma.team_membersFieldRefs operations: { findUnique: { args: Prisma.team_membersFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.team_membersFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.team_membersFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.team_membersFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.team_membersFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.team_membersCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.team_membersCreateManyArgs result: BatchPayload } delete: { args: Prisma.team_membersDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.team_membersUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.team_membersDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.team_membersUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.team_membersUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Team_membersAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.team_membersGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.team_membersCountArgs result: $Utils.Optional | number } } } visitor_ktp_data: { payload: Prisma.$visitor_ktp_dataPayload fields: Prisma.visitor_ktp_dataFieldRefs operations: { findUnique: { args: Prisma.visitor_ktp_dataFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.visitor_ktp_dataFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.visitor_ktp_dataFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.visitor_ktp_dataFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.visitor_ktp_dataFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.visitor_ktp_dataCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.visitor_ktp_dataCreateManyArgs result: BatchPayload } delete: { args: Prisma.visitor_ktp_dataDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.visitor_ktp_dataUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.visitor_ktp_dataDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.visitor_ktp_dataUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.visitor_ktp_dataUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Visitor_ktp_dataAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.visitor_ktp_dataGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.visitor_ktp_dataCountArgs result: $Utils.Optional | number } } } visitor_registrations: { payload: Prisma.$visitor_registrationsPayload fields: Prisma.visitor_registrationsFieldRefs operations: { findUnique: { args: Prisma.visitor_registrationsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.visitor_registrationsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.visitor_registrationsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.visitor_registrationsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.visitor_registrationsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.visitor_registrationsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.visitor_registrationsCreateManyArgs result: BatchPayload } delete: { args: Prisma.visitor_registrationsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.visitor_registrationsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.visitor_registrationsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.visitor_registrationsUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.visitor_registrationsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.Visitor_registrationsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.visitor_registrationsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.visitor_registrationsCountArgs result: $Utils.Optional | number } } } } } & { other: { payload: any operations: { $executeRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $executeRawUnsafe: { args: [query: string, ...values: any[]], result: any } $queryRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $queryRawUnsafe: { args: [query: string, ...values: any[]], result: any } } } } export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs> export type DefaultPrismaClient = PrismaClient export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' export interface PrismaClientOptions { /** * Overwrites the datasource url from your schema.prisma file */ datasources?: Datasources /** * Overwrites the datasource url from your schema.prisma file */ datasourceUrl?: string /** * @default "colorless" */ errorFormat?: ErrorFormat /** * @example * ``` * // Shorthand for `emit: 'stdout'` * log: ['query', 'info', 'warn', 'error'] * * // Emit as events only * log: [ * { emit: 'event', level: 'query' }, * { emit: 'event', level: 'info' }, * { emit: 'event', level: 'warn' } * { emit: 'event', level: 'error' } * ] * * / Emit as events and log to stdout * og: [ * { emit: 'stdout', level: 'query' }, * { emit: 'stdout', level: 'info' }, * { emit: 'stdout', level: 'warn' } * { emit: 'stdout', level: 'error' } * * ``` * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). */ log?: (LogLevel | LogDefinition)[] /** * The default values for transactionOptions * maxWait ?= 2000 * timeout ?= 5000 */ transactionOptions?: { maxWait?: number timeout?: number isolationLevel?: Prisma.TransactionIsolationLevel } /** * Global configuration for omitting model fields by default. * * @example * ``` * const prisma = new PrismaClient({ * omit: { * user: { * password: true * } * } * }) * ``` */ omit?: Prisma.GlobalOmitConfig } export type GlobalOmitConfig = { alert_recipients?: alert_recipientsOmit alerts?: alertsOmit basemap_configs?: basemap_configsOmit camera_health_log?: camera_health_logOmit cameras?: camerasOmit feature_flags?: feature_flagsOmit geofence_breaches?: geofence_breachesOmit geofences?: geofencesOmit houses?: housesOmit incident_updates?: incident_updatesOmit incidents?: incidentsOmit ktp_validation_audit?: ktp_validation_auditOmit map_pins?: map_pinsOmit perumahan_facilities?: perumahan_facilitiesOmit perumahan_info?: perumahan_infoOmit qr_codes?: qr_codesOmit security_activities?: security_activitiesOmit sequelizemeta?: sequelizemetaOmit team_location_history?: team_location_historyOmit team_members?: team_membersOmit visitor_ktp_data?: visitor_ktp_dataOmit visitor_registrations?: visitor_registrationsOmit } /* Types for Logging */ export type LogLevel = 'info' | 'query' | 'warn' | 'error' export type LogDefinition = { level: LogLevel emit: 'stdout' | 'event' } export type CheckIsLogLevel = T extends LogLevel ? T : never; export type GetLogType = CheckIsLogLevel< T extends LogDefinition ? T['level'] : T >; export type GetEvents = T extends Array ? GetLogType : never; export type QueryEvent = { timestamp: Date query: string params: string duration: number target: string } export type LogEvent = { timestamp: Date message: string target: string } /* End Types for Logging */ export type PrismaAction = | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy' /** * 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 AlertsCountOutputType */ export type AlertsCountOutputType = { alert_recipients: number } export type AlertsCountOutputTypeSelect = { alert_recipients?: boolean | AlertsCountOutputTypeCountAlert_recipientsArgs } // Custom InputTypes /** * AlertsCountOutputType without action */ export type AlertsCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the AlertsCountOutputType */ select?: AlertsCountOutputTypeSelect | null } /** * AlertsCountOutputType without action */ export type AlertsCountOutputTypeCountAlert_recipientsArgs = { where?: alert_recipientsWhereInput } /** * Count Type CamerasCountOutputType */ export type CamerasCountOutputType = { camera_health_log: number } export type CamerasCountOutputTypeSelect = { camera_health_log?: boolean | CamerasCountOutputTypeCountCamera_health_logArgs } // Custom InputTypes /** * CamerasCountOutputType without action */ export type CamerasCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CamerasCountOutputType */ select?: CamerasCountOutputTypeSelect | null } /** * CamerasCountOutputType without action */ export type CamerasCountOutputTypeCountCamera_health_logArgs = { where?: camera_health_logWhereInput } /** * Count Type GeofencesCountOutputType */ export type GeofencesCountOutputType = { geofence_breaches: number incidents: number map_pins: number } export type GeofencesCountOutputTypeSelect = { geofence_breaches?: boolean | GeofencesCountOutputTypeCountGeofence_breachesArgs incidents?: boolean | GeofencesCountOutputTypeCountIncidentsArgs map_pins?: boolean | GeofencesCountOutputTypeCountMap_pinsArgs } // Custom InputTypes /** * GeofencesCountOutputType without action */ export type GeofencesCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the GeofencesCountOutputType */ select?: GeofencesCountOutputTypeSelect | null } /** * GeofencesCountOutputType without action */ export type GeofencesCountOutputTypeCountGeofence_breachesArgs = { where?: geofence_breachesWhereInput } /** * GeofencesCountOutputType without action */ export type GeofencesCountOutputTypeCountIncidentsArgs = { where?: incidentsWhereInput } /** * GeofencesCountOutputType without action */ export type GeofencesCountOutputTypeCountMap_pinsArgs = { where?: map_pinsWhereInput } /** * Count Type IncidentsCountOutputType */ export type IncidentsCountOutputType = { alerts: number incident_updates: number } export type IncidentsCountOutputTypeSelect = { alerts?: boolean | IncidentsCountOutputTypeCountAlertsArgs incident_updates?: boolean | IncidentsCountOutputTypeCountIncident_updatesArgs } // Custom InputTypes /** * IncidentsCountOutputType without action */ export type IncidentsCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the IncidentsCountOutputType */ select?: IncidentsCountOutputTypeSelect | null } /** * IncidentsCountOutputType without action */ export type IncidentsCountOutputTypeCountAlertsArgs = { where?: alertsWhereInput } /** * IncidentsCountOutputType without action */ export type IncidentsCountOutputTypeCountIncident_updatesArgs = { where?: incident_updatesWhereInput } /** * Count Type Qr_codesCountOutputType */ export type Qr_codesCountOutputType = { visitor_registrations: number } export type Qr_codesCountOutputTypeSelect = { visitor_registrations?: boolean | Qr_codesCountOutputTypeCountVisitor_registrationsArgs } // Custom InputTypes /** * Qr_codesCountOutputType without action */ export type Qr_codesCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the Qr_codesCountOutputType */ select?: Qr_codesCountOutputTypeSelect | null } /** * Qr_codesCountOutputType without action */ export type Qr_codesCountOutputTypeCountVisitor_registrationsArgs = { where?: visitor_registrationsWhereInput } /** * Count Type Team_membersCountOutputType */ export type Team_membersCountOutputType = { incidents_incidents_reported_byToteam_members: number incidents_incidents_assigned_toToteam_members: number team_location_history: number } export type Team_membersCountOutputTypeSelect = { incidents_incidents_reported_byToteam_members?: boolean | Team_membersCountOutputTypeCountIncidents_incidents_reported_byToteam_membersArgs incidents_incidents_assigned_toToteam_members?: boolean | Team_membersCountOutputTypeCountIncidents_incidents_assigned_toToteam_membersArgs team_location_history?: boolean | Team_membersCountOutputTypeCountTeam_location_historyArgs } // Custom InputTypes /** * Team_membersCountOutputType without action */ export type Team_membersCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the Team_membersCountOutputType */ select?: Team_membersCountOutputTypeSelect | null } /** * Team_membersCountOutputType without action */ export type Team_membersCountOutputTypeCountIncidents_incidents_reported_byToteam_membersArgs = { where?: incidentsWhereInput } /** * Team_membersCountOutputType without action */ export type Team_membersCountOutputTypeCountIncidents_incidents_assigned_toToteam_membersArgs = { where?: incidentsWhereInput } /** * Team_membersCountOutputType without action */ export type Team_membersCountOutputTypeCountTeam_location_historyArgs = { where?: team_location_historyWhereInput } /** * Count Type Visitor_ktp_dataCountOutputType */ export type Visitor_ktp_dataCountOutputType = { ktp_validation_audit: number } export type Visitor_ktp_dataCountOutputTypeSelect = { ktp_validation_audit?: boolean | Visitor_ktp_dataCountOutputTypeCountKtp_validation_auditArgs } // Custom InputTypes /** * Visitor_ktp_dataCountOutputType without action */ export type Visitor_ktp_dataCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the Visitor_ktp_dataCountOutputType */ select?: Visitor_ktp_dataCountOutputTypeSelect | null } /** * Visitor_ktp_dataCountOutputType without action */ export type Visitor_ktp_dataCountOutputTypeCountKtp_validation_auditArgs = { where?: ktp_validation_auditWhereInput } /** * Models */ /** * Model alert_recipients */ export type AggregateAlert_recipients = { _count: Alert_recipientsCountAggregateOutputType | null _avg: Alert_recipientsAvgAggregateOutputType | null _sum: Alert_recipientsSumAggregateOutputType | null _min: Alert_recipientsMinAggregateOutputType | null _max: Alert_recipientsMaxAggregateOutputType | null } export type Alert_recipientsAvgAggregateOutputType = { delivery_attempts: number | null response_time: number | null } export type Alert_recipientsSumAggregateOutputType = { delivery_attempts: number | null response_time: number | null } export type Alert_recipientsMinAggregateOutputType = { id: string | null alert_id: string | null recipient_type: string | null recipient_id: string | null recipient_name: string | null channel: string | null delivery_status: string | null sent_at: Date | null delivered_at: Date | null acknowledged_at: Date | null failed_at: Date | null delivery_attempts: number | null last_attempt_at: Date | null failure_reason: string | null response_time: number | null created_at: Date | null updated_at: Date | null } export type Alert_recipientsMaxAggregateOutputType = { id: string | null alert_id: string | null recipient_type: string | null recipient_id: string | null recipient_name: string | null channel: string | null delivery_status: string | null sent_at: Date | null delivered_at: Date | null acknowledged_at: Date | null failed_at: Date | null delivery_attempts: number | null last_attempt_at: Date | null failure_reason: string | null response_time: number | null created_at: Date | null updated_at: Date | null } export type Alert_recipientsCountAggregateOutputType = { id: number alert_id: number recipient_type: number recipient_id: number recipient_name: number recipient_contact: number channel: number delivery_status: number sent_at: number delivered_at: number acknowledged_at: number failed_at: number delivery_attempts: number last_attempt_at: number failure_reason: number delivery_metadata: number response_data: number response_time: number created_at: number updated_at: number _all: number } export type Alert_recipientsAvgAggregateInputType = { delivery_attempts?: true response_time?: true } export type Alert_recipientsSumAggregateInputType = { delivery_attempts?: true response_time?: true } export type Alert_recipientsMinAggregateInputType = { id?: true alert_id?: true recipient_type?: true recipient_id?: true recipient_name?: true channel?: true delivery_status?: true sent_at?: true delivered_at?: true acknowledged_at?: true failed_at?: true delivery_attempts?: true last_attempt_at?: true failure_reason?: true response_time?: true created_at?: true updated_at?: true } export type Alert_recipientsMaxAggregateInputType = { id?: true alert_id?: true recipient_type?: true recipient_id?: true recipient_name?: true channel?: true delivery_status?: true sent_at?: true delivered_at?: true acknowledged_at?: true failed_at?: true delivery_attempts?: true last_attempt_at?: true failure_reason?: true response_time?: true created_at?: true updated_at?: true } export type Alert_recipientsCountAggregateInputType = { id?: true alert_id?: true recipient_type?: true recipient_id?: true recipient_name?: true recipient_contact?: true channel?: true delivery_status?: true sent_at?: true delivered_at?: true acknowledged_at?: true failed_at?: true delivery_attempts?: true last_attempt_at?: true failure_reason?: true delivery_metadata?: true response_data?: true response_time?: true created_at?: true updated_at?: true _all?: true } export type Alert_recipientsAggregateArgs = { /** * Filter which alert_recipients to aggregate. */ where?: alert_recipientsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of alert_recipients to fetch. */ orderBy?: alert_recipientsOrderByWithRelationInput | alert_recipientsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: alert_recipientsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` alert_recipients 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` alert_recipients. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned alert_recipients **/ _count?: true | Alert_recipientsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Alert_recipientsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Alert_recipientsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Alert_recipientsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Alert_recipientsMaxAggregateInputType } export type GetAlert_recipientsAggregateType = { [P in keyof T & keyof AggregateAlert_recipients]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type alert_recipientsGroupByArgs = { where?: alert_recipientsWhereInput orderBy?: alert_recipientsOrderByWithAggregationInput | alert_recipientsOrderByWithAggregationInput[] by: Alert_recipientsScalarFieldEnum[] | Alert_recipientsScalarFieldEnum having?: alert_recipientsScalarWhereWithAggregatesInput take?: number skip?: number _count?: Alert_recipientsCountAggregateInputType | true _avg?: Alert_recipientsAvgAggregateInputType _sum?: Alert_recipientsSumAggregateInputType _min?: Alert_recipientsMinAggregateInputType _max?: Alert_recipientsMaxAggregateInputType } export type Alert_recipientsGroupByOutputType = { id: string alert_id: string recipient_type: string recipient_id: string | null recipient_name: string | null recipient_contact: JsonValue | null channel: string delivery_status: string | null sent_at: Date | null delivered_at: Date | null acknowledged_at: Date | null failed_at: Date | null delivery_attempts: number | null last_attempt_at: Date | null failure_reason: string | null delivery_metadata: JsonValue | null response_data: JsonValue | null response_time: number | null created_at: Date | null updated_at: Date | null _count: Alert_recipientsCountAggregateOutputType | null _avg: Alert_recipientsAvgAggregateOutputType | null _sum: Alert_recipientsSumAggregateOutputType | null _min: Alert_recipientsMinAggregateOutputType | null _max: Alert_recipientsMaxAggregateOutputType | null } type GetAlert_recipientsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Alert_recipientsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type alert_recipientsSelect = $Extensions.GetSelect<{ id?: boolean alert_id?: boolean recipient_type?: boolean recipient_id?: boolean recipient_name?: boolean recipient_contact?: boolean channel?: boolean delivery_status?: boolean sent_at?: boolean delivered_at?: boolean acknowledged_at?: boolean failed_at?: boolean delivery_attempts?: boolean last_attempt_at?: boolean failure_reason?: boolean delivery_metadata?: boolean response_data?: boolean response_time?: boolean created_at?: boolean updated_at?: boolean alerts?: boolean | alertsDefaultArgs }, ExtArgs["result"]["alert_recipients"]> export type alert_recipientsSelectScalar = { id?: boolean alert_id?: boolean recipient_type?: boolean recipient_id?: boolean recipient_name?: boolean recipient_contact?: boolean channel?: boolean delivery_status?: boolean sent_at?: boolean delivered_at?: boolean acknowledged_at?: boolean failed_at?: boolean delivery_attempts?: boolean last_attempt_at?: boolean failure_reason?: boolean delivery_metadata?: boolean response_data?: boolean response_time?: boolean created_at?: boolean updated_at?: boolean } export type alert_recipientsOmit = $Extensions.GetOmit<"id" | "alert_id" | "recipient_type" | "recipient_id" | "recipient_name" | "recipient_contact" | "channel" | "delivery_status" | "sent_at" | "delivered_at" | "acknowledged_at" | "failed_at" | "delivery_attempts" | "last_attempt_at" | "failure_reason" | "delivery_metadata" | "response_data" | "response_time" | "created_at" | "updated_at", ExtArgs["result"]["alert_recipients"]> export type alert_recipientsInclude = { alerts?: boolean | alertsDefaultArgs } export type $alert_recipientsPayload = { name: "alert_recipients" objects: { alerts: Prisma.$alertsPayload } scalars: $Extensions.GetPayloadResult<{ id: string alert_id: string recipient_type: string recipient_id: string | null recipient_name: string | null recipient_contact: Prisma.JsonValue | null channel: string delivery_status: string | null sent_at: Date | null delivered_at: Date | null acknowledged_at: Date | null failed_at: Date | null delivery_attempts: number | null last_attempt_at: Date | null failure_reason: string | null delivery_metadata: Prisma.JsonValue | null response_data: Prisma.JsonValue | null response_time: number | null created_at: Date | null updated_at: Date | null }, ExtArgs["result"]["alert_recipients"]> composites: {} } type alert_recipientsGetPayload = $Result.GetResult type alert_recipientsCountArgs = Omit & { select?: Alert_recipientsCountAggregateInputType | true } export interface alert_recipientsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['alert_recipients'], meta: { name: 'alert_recipients' } } /** * Find zero or one Alert_recipients that matches the filter. * @param {alert_recipientsFindUniqueArgs} args - Arguments to find a Alert_recipients * @example * // Get one Alert_recipients * const alert_recipients = await prisma.alert_recipients.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__alert_recipientsClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Alert_recipients that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {alert_recipientsFindUniqueOrThrowArgs} args - Arguments to find a Alert_recipients * @example * // Get one Alert_recipients * const alert_recipients = await prisma.alert_recipients.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__alert_recipientsClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Alert_recipients 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 {alert_recipientsFindFirstArgs} args - Arguments to find a Alert_recipients * @example * // Get one Alert_recipients * const alert_recipients = await prisma.alert_recipients.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__alert_recipientsClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Alert_recipients 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 {alert_recipientsFindFirstOrThrowArgs} args - Arguments to find a Alert_recipients * @example * // Get one Alert_recipients * const alert_recipients = await prisma.alert_recipients.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__alert_recipientsClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Alert_recipients 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 {alert_recipientsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Alert_recipients * const alert_recipients = await prisma.alert_recipients.findMany() * * // Get first 10 Alert_recipients * const alert_recipients = await prisma.alert_recipients.findMany({ take: 10 }) * * // Only select the `id` * const alert_recipientsWithIdOnly = await prisma.alert_recipients.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Alert_recipients. * @param {alert_recipientsCreateArgs} args - Arguments to create a Alert_recipients. * @example * // Create one Alert_recipients * const Alert_recipients = await prisma.alert_recipients.create({ * data: { * // ... data to create a Alert_recipients * } * }) * */ create(args: SelectSubset>): Prisma__alert_recipientsClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Alert_recipients. * @param {alert_recipientsCreateManyArgs} args - Arguments to create many Alert_recipients. * @example * // Create many Alert_recipients * const alert_recipients = await prisma.alert_recipients.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Alert_recipients. * @param {alert_recipientsDeleteArgs} args - Arguments to delete one Alert_recipients. * @example * // Delete one Alert_recipients * const Alert_recipients = await prisma.alert_recipients.delete({ * where: { * // ... filter to delete one Alert_recipients * } * }) * */ delete(args: SelectSubset>): Prisma__alert_recipientsClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Alert_recipients. * @param {alert_recipientsUpdateArgs} args - Arguments to update one Alert_recipients. * @example * // Update one Alert_recipients * const alert_recipients = await prisma.alert_recipients.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__alert_recipientsClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Alert_recipients. * @param {alert_recipientsDeleteManyArgs} args - Arguments to filter Alert_recipients to delete. * @example * // Delete a few Alert_recipients * const { count } = await prisma.alert_recipients.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Alert_recipients. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {alert_recipientsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Alert_recipients * const alert_recipients = await prisma.alert_recipients.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Alert_recipients. * @param {alert_recipientsUpsertArgs} args - Arguments to update or create a Alert_recipients. * @example * // Update or create a Alert_recipients * const alert_recipients = await prisma.alert_recipients.upsert({ * create: { * // ... data to create a Alert_recipients * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Alert_recipients we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__alert_recipientsClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Alert_recipients. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {alert_recipientsCountArgs} args - Arguments to filter Alert_recipients to count. * @example * // Count the number of Alert_recipients * const count = await prisma.alert_recipients.count({ * where: { * // ... the filter for the Alert_recipients 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 Alert_recipients. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Alert_recipientsAggregateArgs} 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 Alert_recipients. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {alert_recipientsGroupByArgs} 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 alert_recipientsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: alert_recipientsGroupByArgs['orderBy'] } : { orderBy?: alert_recipientsGroupByArgs['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 ? GetAlert_recipientsGroupByPayload : Prisma.PrismaPromise /** * Fields of the alert_recipients model */ readonly fields: alert_recipientsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for alert_recipients. * 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__alert_recipientsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" alerts = {}>(args?: Subset>): Prisma__alertsClient<$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 alert_recipients model */ interface alert_recipientsFieldRefs { readonly id: FieldRef<"alert_recipients", 'String'> readonly alert_id: FieldRef<"alert_recipients", 'String'> readonly recipient_type: FieldRef<"alert_recipients", 'String'> readonly recipient_id: FieldRef<"alert_recipients", 'String'> readonly recipient_name: FieldRef<"alert_recipients", 'String'> readonly recipient_contact: FieldRef<"alert_recipients", 'Json'> readonly channel: FieldRef<"alert_recipients", 'String'> readonly delivery_status: FieldRef<"alert_recipients", 'String'> readonly sent_at: FieldRef<"alert_recipients", 'DateTime'> readonly delivered_at: FieldRef<"alert_recipients", 'DateTime'> readonly acknowledged_at: FieldRef<"alert_recipients", 'DateTime'> readonly failed_at: FieldRef<"alert_recipients", 'DateTime'> readonly delivery_attempts: FieldRef<"alert_recipients", 'Int'> readonly last_attempt_at: FieldRef<"alert_recipients", 'DateTime'> readonly failure_reason: FieldRef<"alert_recipients", 'String'> readonly delivery_metadata: FieldRef<"alert_recipients", 'Json'> readonly response_data: FieldRef<"alert_recipients", 'Json'> readonly response_time: FieldRef<"alert_recipients", 'Int'> readonly created_at: FieldRef<"alert_recipients", 'DateTime'> readonly updated_at: FieldRef<"alert_recipients", 'DateTime'> } // Custom InputTypes /** * alert_recipients findUnique */ export type alert_recipientsFindUniqueArgs = { /** * Select specific fields to fetch from the alert_recipients */ select?: alert_recipientsSelect | null /** * Omit specific fields from the alert_recipients */ omit?: alert_recipientsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alert_recipientsInclude | null /** * Filter, which alert_recipients to fetch. */ where: alert_recipientsWhereUniqueInput } /** * alert_recipients findUniqueOrThrow */ export type alert_recipientsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the alert_recipients */ select?: alert_recipientsSelect | null /** * Omit specific fields from the alert_recipients */ omit?: alert_recipientsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alert_recipientsInclude | null /** * Filter, which alert_recipients to fetch. */ where: alert_recipientsWhereUniqueInput } /** * alert_recipients findFirst */ export type alert_recipientsFindFirstArgs = { /** * Select specific fields to fetch from the alert_recipients */ select?: alert_recipientsSelect | null /** * Omit specific fields from the alert_recipients */ omit?: alert_recipientsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alert_recipientsInclude | null /** * Filter, which alert_recipients to fetch. */ where?: alert_recipientsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of alert_recipients to fetch. */ orderBy?: alert_recipientsOrderByWithRelationInput | alert_recipientsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for alert_recipients. */ cursor?: alert_recipientsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` alert_recipients 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` alert_recipients. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of alert_recipients. */ distinct?: Alert_recipientsScalarFieldEnum | Alert_recipientsScalarFieldEnum[] } /** * alert_recipients findFirstOrThrow */ export type alert_recipientsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the alert_recipients */ select?: alert_recipientsSelect | null /** * Omit specific fields from the alert_recipients */ omit?: alert_recipientsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alert_recipientsInclude | null /** * Filter, which alert_recipients to fetch. */ where?: alert_recipientsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of alert_recipients to fetch. */ orderBy?: alert_recipientsOrderByWithRelationInput | alert_recipientsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for alert_recipients. */ cursor?: alert_recipientsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` alert_recipients 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` alert_recipients. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of alert_recipients. */ distinct?: Alert_recipientsScalarFieldEnum | Alert_recipientsScalarFieldEnum[] } /** * alert_recipients findMany */ export type alert_recipientsFindManyArgs = { /** * Select specific fields to fetch from the alert_recipients */ select?: alert_recipientsSelect | null /** * Omit specific fields from the alert_recipients */ omit?: alert_recipientsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alert_recipientsInclude | null /** * Filter, which alert_recipients to fetch. */ where?: alert_recipientsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of alert_recipients to fetch. */ orderBy?: alert_recipientsOrderByWithRelationInput | alert_recipientsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing alert_recipients. */ cursor?: alert_recipientsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` alert_recipients 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` alert_recipients. */ skip?: number distinct?: Alert_recipientsScalarFieldEnum | Alert_recipientsScalarFieldEnum[] } /** * alert_recipients create */ export type alert_recipientsCreateArgs = { /** * Select specific fields to fetch from the alert_recipients */ select?: alert_recipientsSelect | null /** * Omit specific fields from the alert_recipients */ omit?: alert_recipientsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alert_recipientsInclude | null /** * The data needed to create a alert_recipients. */ data: XOR } /** * alert_recipients createMany */ export type alert_recipientsCreateManyArgs = { /** * The data used to create many alert_recipients. */ data: alert_recipientsCreateManyInput | alert_recipientsCreateManyInput[] skipDuplicates?: boolean } /** * alert_recipients update */ export type alert_recipientsUpdateArgs = { /** * Select specific fields to fetch from the alert_recipients */ select?: alert_recipientsSelect | null /** * Omit specific fields from the alert_recipients */ omit?: alert_recipientsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alert_recipientsInclude | null /** * The data needed to update a alert_recipients. */ data: XOR /** * Choose, which alert_recipients to update. */ where: alert_recipientsWhereUniqueInput } /** * alert_recipients updateMany */ export type alert_recipientsUpdateManyArgs = { /** * The data used to update alert_recipients. */ data: XOR /** * Filter which alert_recipients to update */ where?: alert_recipientsWhereInput /** * Limit how many alert_recipients to update. */ limit?: number } /** * alert_recipients upsert */ export type alert_recipientsUpsertArgs = { /** * Select specific fields to fetch from the alert_recipients */ select?: alert_recipientsSelect | null /** * Omit specific fields from the alert_recipients */ omit?: alert_recipientsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alert_recipientsInclude | null /** * The filter to search for the alert_recipients to update in case it exists. */ where: alert_recipientsWhereUniqueInput /** * In case the alert_recipients found by the `where` argument doesn't exist, create a new alert_recipients with this data. */ create: XOR /** * In case the alert_recipients was found with the provided `where` argument, update it with this data. */ update: XOR } /** * alert_recipients delete */ export type alert_recipientsDeleteArgs = { /** * Select specific fields to fetch from the alert_recipients */ select?: alert_recipientsSelect | null /** * Omit specific fields from the alert_recipients */ omit?: alert_recipientsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alert_recipientsInclude | null /** * Filter which alert_recipients to delete. */ where: alert_recipientsWhereUniqueInput } /** * alert_recipients deleteMany */ export type alert_recipientsDeleteManyArgs = { /** * Filter which alert_recipients to delete */ where?: alert_recipientsWhereInput /** * Limit how many alert_recipients to delete. */ limit?: number } /** * alert_recipients without action */ export type alert_recipientsDefaultArgs = { /** * Select specific fields to fetch from the alert_recipients */ select?: alert_recipientsSelect | null /** * Omit specific fields from the alert_recipients */ omit?: alert_recipientsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alert_recipientsInclude | null } /** * Model alerts */ export type AggregateAlerts = { _count: AlertsCountAggregateOutputType | null _avg: AlertsAvgAggregateOutputType | null _sum: AlertsSumAggregateOutputType | null _min: AlertsMinAggregateOutputType | null _max: AlertsMaxAggregateOutputType | null } export type AlertsAvgAggregateOutputType = { coordinates_lat: Decimal | null coordinates_lng: Decimal | null total_recipients: number | null delivered_count: number | null acknowledged_count: number | null failed_count: number | null } export type AlertsSumAggregateOutputType = { coordinates_lat: Decimal | null coordinates_lng: Decimal | null total_recipients: number | null delivered_count: number | null acknowledged_count: number | null failed_count: number | null } export type AlertsMinAggregateOutputType = { id: string | null alert_id: string | null title: string | null message: string | null type: string | null category: string | null severity: string | null priority: string | null status: string | null is_emergency: boolean | null is_broadcast: boolean | null is_recurring: boolean | null coordinates_lat: Decimal | null coordinates_lng: Decimal | null scheduled_at: Date | null starts_at: Date | null ends_at: Date | null expires_at: Date | null acknowledged_at: Date | null resolved_at: Date | null next_occurrence: Date | null source: string | null source_id: string | null incident_id: string | null total_recipients: number | null delivered_count: number | null acknowledged_count: number | null failed_count: number | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null deleted_at: Date | null deleted_by: string | null } export type AlertsMaxAggregateOutputType = { id: string | null alert_id: string | null title: string | null message: string | null type: string | null category: string | null severity: string | null priority: string | null status: string | null is_emergency: boolean | null is_broadcast: boolean | null is_recurring: boolean | null coordinates_lat: Decimal | null coordinates_lng: Decimal | null scheduled_at: Date | null starts_at: Date | null ends_at: Date | null expires_at: Date | null acknowledged_at: Date | null resolved_at: Date | null next_occurrence: Date | null source: string | null source_id: string | null incident_id: string | null total_recipients: number | null delivered_count: number | null acknowledged_count: number | null failed_count: number | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null deleted_at: Date | null deleted_by: string | null } export type AlertsCountAggregateOutputType = { id: number alert_id: number title: number message: number type: number category: number severity: number priority: number status: number is_emergency: number is_broadcast: number is_recurring: number location: number coordinates_lat: number coordinates_lng: number target_zones: number target_buildings: number target_roles: number target_teams: number target_users: number geofence_ids: number scheduled_at: number starts_at: number ends_at: number expires_at: number acknowledged_at: number resolved_at: number recurrence_pattern: number next_occurrence: number content: number attachments: number media_urls: number action_buttons: number channels: number delivery_config: number source: number source_id: number context: number incident_id: number camera_ids: number related_alerts: number total_recipients: number delivered_count: number acknowledged_count: number failed_count: number tags: number metadata: number custom_fields: number created_at: number updated_at: number created_by: number updated_by: number deleted_at: number deleted_by: number _all: number } export type AlertsAvgAggregateInputType = { coordinates_lat?: true coordinates_lng?: true total_recipients?: true delivered_count?: true acknowledged_count?: true failed_count?: true } export type AlertsSumAggregateInputType = { coordinates_lat?: true coordinates_lng?: true total_recipients?: true delivered_count?: true acknowledged_count?: true failed_count?: true } export type AlertsMinAggregateInputType = { id?: true alert_id?: true title?: true message?: true type?: true category?: true severity?: true priority?: true status?: true is_emergency?: true is_broadcast?: true is_recurring?: true coordinates_lat?: true coordinates_lng?: true scheduled_at?: true starts_at?: true ends_at?: true expires_at?: true acknowledged_at?: true resolved_at?: true next_occurrence?: true source?: true source_id?: true incident_id?: true total_recipients?: true delivered_count?: true acknowledged_count?: true failed_count?: true created_at?: true updated_at?: true created_by?: true updated_by?: true deleted_at?: true deleted_by?: true } export type AlertsMaxAggregateInputType = { id?: true alert_id?: true title?: true message?: true type?: true category?: true severity?: true priority?: true status?: true is_emergency?: true is_broadcast?: true is_recurring?: true coordinates_lat?: true coordinates_lng?: true scheduled_at?: true starts_at?: true ends_at?: true expires_at?: true acknowledged_at?: true resolved_at?: true next_occurrence?: true source?: true source_id?: true incident_id?: true total_recipients?: true delivered_count?: true acknowledged_count?: true failed_count?: true created_at?: true updated_at?: true created_by?: true updated_by?: true deleted_at?: true deleted_by?: true } export type AlertsCountAggregateInputType = { id?: true alert_id?: true title?: true message?: true type?: true category?: true severity?: true priority?: true status?: true is_emergency?: true is_broadcast?: true is_recurring?: true location?: true coordinates_lat?: true coordinates_lng?: true target_zones?: true target_buildings?: true target_roles?: true target_teams?: true target_users?: true geofence_ids?: true scheduled_at?: true starts_at?: true ends_at?: true expires_at?: true acknowledged_at?: true resolved_at?: true recurrence_pattern?: true next_occurrence?: true content?: true attachments?: true media_urls?: true action_buttons?: true channels?: true delivery_config?: true source?: true source_id?: true context?: true incident_id?: true camera_ids?: true related_alerts?: true total_recipients?: true delivered_count?: true acknowledged_count?: true failed_count?: true tags?: true metadata?: true custom_fields?: true created_at?: true updated_at?: true created_by?: true updated_by?: true deleted_at?: true deleted_by?: true _all?: true } export type AlertsAggregateArgs = { /** * Filter which alerts to aggregate. */ where?: alertsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of alerts to fetch. */ orderBy?: alertsOrderByWithRelationInput | alertsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: alertsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` alerts 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` alerts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned alerts **/ _count?: true | AlertsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AlertsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AlertsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AlertsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AlertsMaxAggregateInputType } export type GetAlertsAggregateType = { [P in keyof T & keyof AggregateAlerts]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type alertsGroupByArgs = { where?: alertsWhereInput orderBy?: alertsOrderByWithAggregationInput | alertsOrderByWithAggregationInput[] by: AlertsScalarFieldEnum[] | AlertsScalarFieldEnum having?: alertsScalarWhereWithAggregatesInput take?: number skip?: number _count?: AlertsCountAggregateInputType | true _avg?: AlertsAvgAggregateInputType _sum?: AlertsSumAggregateInputType _min?: AlertsMinAggregateInputType _max?: AlertsMaxAggregateInputType } export type AlertsGroupByOutputType = { id: string alert_id: string title: string message: string type: string category: string | null severity: string priority: string status: string is_emergency: boolean | null is_broadcast: boolean | null is_recurring: boolean | null location: JsonValue | null coordinates_lat: Decimal | null coordinates_lng: Decimal | null target_zones: JsonValue | null target_buildings: JsonValue | null target_roles: JsonValue | null target_teams: JsonValue | null target_users: JsonValue | null geofence_ids: JsonValue | null scheduled_at: Date | null starts_at: Date | null ends_at: Date | null expires_at: Date | null acknowledged_at: Date | null resolved_at: Date | null recurrence_pattern: JsonValue | null next_occurrence: Date | null content: JsonValue | null attachments: JsonValue | null media_urls: JsonValue | null action_buttons: JsonValue | null channels: JsonValue | null delivery_config: JsonValue | null source: string | null source_id: string | null context: JsonValue | null incident_id: string | null camera_ids: JsonValue | null related_alerts: JsonValue | null total_recipients: number | null delivered_count: number | null acknowledged_count: number | null failed_count: number | null tags: JsonValue | null metadata: JsonValue | null custom_fields: JsonValue | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null deleted_at: Date | null deleted_by: string | null _count: AlertsCountAggregateOutputType | null _avg: AlertsAvgAggregateOutputType | null _sum: AlertsSumAggregateOutputType | null _min: AlertsMinAggregateOutputType | null _max: AlertsMaxAggregateOutputType | null } type GetAlertsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AlertsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type alertsSelect = $Extensions.GetSelect<{ id?: boolean alert_id?: boolean title?: boolean message?: boolean type?: boolean category?: boolean severity?: boolean priority?: boolean status?: boolean is_emergency?: boolean is_broadcast?: boolean is_recurring?: boolean location?: boolean coordinates_lat?: boolean coordinates_lng?: boolean target_zones?: boolean target_buildings?: boolean target_roles?: boolean target_teams?: boolean target_users?: boolean geofence_ids?: boolean scheduled_at?: boolean starts_at?: boolean ends_at?: boolean expires_at?: boolean acknowledged_at?: boolean resolved_at?: boolean recurrence_pattern?: boolean next_occurrence?: boolean content?: boolean attachments?: boolean media_urls?: boolean action_buttons?: boolean channels?: boolean delivery_config?: boolean source?: boolean source_id?: boolean context?: boolean incident_id?: boolean camera_ids?: boolean related_alerts?: boolean total_recipients?: boolean delivered_count?: boolean acknowledged_count?: boolean failed_count?: boolean tags?: boolean metadata?: boolean custom_fields?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean updated_by?: boolean deleted_at?: boolean deleted_by?: boolean alert_recipients?: boolean | alerts$alert_recipientsArgs incidents?: boolean | alerts$incidentsArgs _count?: boolean | AlertsCountOutputTypeDefaultArgs }, ExtArgs["result"]["alerts"]> export type alertsSelectScalar = { id?: boolean alert_id?: boolean title?: boolean message?: boolean type?: boolean category?: boolean severity?: boolean priority?: boolean status?: boolean is_emergency?: boolean is_broadcast?: boolean is_recurring?: boolean location?: boolean coordinates_lat?: boolean coordinates_lng?: boolean target_zones?: boolean target_buildings?: boolean target_roles?: boolean target_teams?: boolean target_users?: boolean geofence_ids?: boolean scheduled_at?: boolean starts_at?: boolean ends_at?: boolean expires_at?: boolean acknowledged_at?: boolean resolved_at?: boolean recurrence_pattern?: boolean next_occurrence?: boolean content?: boolean attachments?: boolean media_urls?: boolean action_buttons?: boolean channels?: boolean delivery_config?: boolean source?: boolean source_id?: boolean context?: boolean incident_id?: boolean camera_ids?: boolean related_alerts?: boolean total_recipients?: boolean delivered_count?: boolean acknowledged_count?: boolean failed_count?: boolean tags?: boolean metadata?: boolean custom_fields?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean updated_by?: boolean deleted_at?: boolean deleted_by?: boolean } export type alertsOmit = $Extensions.GetOmit<"id" | "alert_id" | "title" | "message" | "type" | "category" | "severity" | "priority" | "status" | "is_emergency" | "is_broadcast" | "is_recurring" | "location" | "coordinates_lat" | "coordinates_lng" | "target_zones" | "target_buildings" | "target_roles" | "target_teams" | "target_users" | "geofence_ids" | "scheduled_at" | "starts_at" | "ends_at" | "expires_at" | "acknowledged_at" | "resolved_at" | "recurrence_pattern" | "next_occurrence" | "content" | "attachments" | "media_urls" | "action_buttons" | "channels" | "delivery_config" | "source" | "source_id" | "context" | "incident_id" | "camera_ids" | "related_alerts" | "total_recipients" | "delivered_count" | "acknowledged_count" | "failed_count" | "tags" | "metadata" | "custom_fields" | "created_at" | "updated_at" | "created_by" | "updated_by" | "deleted_at" | "deleted_by", ExtArgs["result"]["alerts"]> export type alertsInclude = { alert_recipients?: boolean | alerts$alert_recipientsArgs incidents?: boolean | alerts$incidentsArgs _count?: boolean | AlertsCountOutputTypeDefaultArgs } export type $alertsPayload = { name: "alerts" objects: { alert_recipients: Prisma.$alert_recipientsPayload[] incidents: Prisma.$incidentsPayload | null } scalars: $Extensions.GetPayloadResult<{ id: string alert_id: string title: string message: string type: string category: string | null severity: string priority: string status: string is_emergency: boolean | null is_broadcast: boolean | null is_recurring: boolean | null location: Prisma.JsonValue | null coordinates_lat: Prisma.Decimal | null coordinates_lng: Prisma.Decimal | null target_zones: Prisma.JsonValue | null target_buildings: Prisma.JsonValue | null target_roles: Prisma.JsonValue | null target_teams: Prisma.JsonValue | null target_users: Prisma.JsonValue | null geofence_ids: Prisma.JsonValue | null scheduled_at: Date | null starts_at: Date | null ends_at: Date | null expires_at: Date | null acknowledged_at: Date | null resolved_at: Date | null recurrence_pattern: Prisma.JsonValue | null next_occurrence: Date | null content: Prisma.JsonValue | null attachments: Prisma.JsonValue | null media_urls: Prisma.JsonValue | null action_buttons: Prisma.JsonValue | null channels: Prisma.JsonValue | null delivery_config: Prisma.JsonValue | null source: string | null source_id: string | null context: Prisma.JsonValue | null incident_id: string | null camera_ids: Prisma.JsonValue | null related_alerts: Prisma.JsonValue | null total_recipients: number | null delivered_count: number | null acknowledged_count: number | null failed_count: number | null tags: Prisma.JsonValue | null metadata: Prisma.JsonValue | null custom_fields: Prisma.JsonValue | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null deleted_at: Date | null deleted_by: string | null }, ExtArgs["result"]["alerts"]> composites: {} } type alertsGetPayload = $Result.GetResult type alertsCountArgs = Omit & { select?: AlertsCountAggregateInputType | true } export interface alertsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['alerts'], meta: { name: 'alerts' } } /** * Find zero or one Alerts that matches the filter. * @param {alertsFindUniqueArgs} args - Arguments to find a Alerts * @example * // Get one Alerts * const alerts = await prisma.alerts.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__alertsClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Alerts that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {alertsFindUniqueOrThrowArgs} args - Arguments to find a Alerts * @example * // Get one Alerts * const alerts = await prisma.alerts.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__alertsClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Alerts 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 {alertsFindFirstArgs} args - Arguments to find a Alerts * @example * // Get one Alerts * const alerts = await prisma.alerts.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__alertsClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Alerts 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 {alertsFindFirstOrThrowArgs} args - Arguments to find a Alerts * @example * // Get one Alerts * const alerts = await prisma.alerts.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__alertsClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Alerts 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 {alertsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Alerts * const alerts = await prisma.alerts.findMany() * * // Get first 10 Alerts * const alerts = await prisma.alerts.findMany({ take: 10 }) * * // Only select the `id` * const alertsWithIdOnly = await prisma.alerts.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Alerts. * @param {alertsCreateArgs} args - Arguments to create a Alerts. * @example * // Create one Alerts * const Alerts = await prisma.alerts.create({ * data: { * // ... data to create a Alerts * } * }) * */ create(args: SelectSubset>): Prisma__alertsClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Alerts. * @param {alertsCreateManyArgs} args - Arguments to create many Alerts. * @example * // Create many Alerts * const alerts = await prisma.alerts.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Alerts. * @param {alertsDeleteArgs} args - Arguments to delete one Alerts. * @example * // Delete one Alerts * const Alerts = await prisma.alerts.delete({ * where: { * // ... filter to delete one Alerts * } * }) * */ delete(args: SelectSubset>): Prisma__alertsClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Alerts. * @param {alertsUpdateArgs} args - Arguments to update one Alerts. * @example * // Update one Alerts * const alerts = await prisma.alerts.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__alertsClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Alerts. * @param {alertsDeleteManyArgs} args - Arguments to filter Alerts to delete. * @example * // Delete a few Alerts * const { count } = await prisma.alerts.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Alerts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {alertsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Alerts * const alerts = await prisma.alerts.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Alerts. * @param {alertsUpsertArgs} args - Arguments to update or create a Alerts. * @example * // Update or create a Alerts * const alerts = await prisma.alerts.upsert({ * create: { * // ... data to create a Alerts * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Alerts we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__alertsClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Alerts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {alertsCountArgs} args - Arguments to filter Alerts to count. * @example * // Count the number of Alerts * const count = await prisma.alerts.count({ * where: { * // ... the filter for the Alerts 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 Alerts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AlertsAggregateArgs} 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 Alerts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {alertsGroupByArgs} 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 alertsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: alertsGroupByArgs['orderBy'] } : { orderBy?: alertsGroupByArgs['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 ? GetAlertsGroupByPayload : Prisma.PrismaPromise /** * Fields of the alerts model */ readonly fields: alertsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for alerts. * 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__alertsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" alert_recipients = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> incidents = {}>(args?: Subset>): Prisma__incidentsClient<$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 alerts model */ interface alertsFieldRefs { readonly id: FieldRef<"alerts", 'String'> readonly alert_id: FieldRef<"alerts", 'String'> readonly title: FieldRef<"alerts", 'String'> readonly message: FieldRef<"alerts", 'String'> readonly type: FieldRef<"alerts", 'String'> readonly category: FieldRef<"alerts", 'String'> readonly severity: FieldRef<"alerts", 'String'> readonly priority: FieldRef<"alerts", 'String'> readonly status: FieldRef<"alerts", 'String'> readonly is_emergency: FieldRef<"alerts", 'Boolean'> readonly is_broadcast: FieldRef<"alerts", 'Boolean'> readonly is_recurring: FieldRef<"alerts", 'Boolean'> readonly location: FieldRef<"alerts", 'Json'> readonly coordinates_lat: FieldRef<"alerts", 'Decimal'> readonly coordinates_lng: FieldRef<"alerts", 'Decimal'> readonly target_zones: FieldRef<"alerts", 'Json'> readonly target_buildings: FieldRef<"alerts", 'Json'> readonly target_roles: FieldRef<"alerts", 'Json'> readonly target_teams: FieldRef<"alerts", 'Json'> readonly target_users: FieldRef<"alerts", 'Json'> readonly geofence_ids: FieldRef<"alerts", 'Json'> readonly scheduled_at: FieldRef<"alerts", 'DateTime'> readonly starts_at: FieldRef<"alerts", 'DateTime'> readonly ends_at: FieldRef<"alerts", 'DateTime'> readonly expires_at: FieldRef<"alerts", 'DateTime'> readonly acknowledged_at: FieldRef<"alerts", 'DateTime'> readonly resolved_at: FieldRef<"alerts", 'DateTime'> readonly recurrence_pattern: FieldRef<"alerts", 'Json'> readonly next_occurrence: FieldRef<"alerts", 'DateTime'> readonly content: FieldRef<"alerts", 'Json'> readonly attachments: FieldRef<"alerts", 'Json'> readonly media_urls: FieldRef<"alerts", 'Json'> readonly action_buttons: FieldRef<"alerts", 'Json'> readonly channels: FieldRef<"alerts", 'Json'> readonly delivery_config: FieldRef<"alerts", 'Json'> readonly source: FieldRef<"alerts", 'String'> readonly source_id: FieldRef<"alerts", 'String'> readonly context: FieldRef<"alerts", 'Json'> readonly incident_id: FieldRef<"alerts", 'String'> readonly camera_ids: FieldRef<"alerts", 'Json'> readonly related_alerts: FieldRef<"alerts", 'Json'> readonly total_recipients: FieldRef<"alerts", 'Int'> readonly delivered_count: FieldRef<"alerts", 'Int'> readonly acknowledged_count: FieldRef<"alerts", 'Int'> readonly failed_count: FieldRef<"alerts", 'Int'> readonly tags: FieldRef<"alerts", 'Json'> readonly metadata: FieldRef<"alerts", 'Json'> readonly custom_fields: FieldRef<"alerts", 'Json'> readonly created_at: FieldRef<"alerts", 'DateTime'> readonly updated_at: FieldRef<"alerts", 'DateTime'> readonly created_by: FieldRef<"alerts", 'String'> readonly updated_by: FieldRef<"alerts", 'String'> readonly deleted_at: FieldRef<"alerts", 'DateTime'> readonly deleted_by: FieldRef<"alerts", 'String'> } // Custom InputTypes /** * alerts findUnique */ export type alertsFindUniqueArgs = { /** * Select specific fields to fetch from the alerts */ select?: alertsSelect | null /** * Omit specific fields from the alerts */ omit?: alertsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alertsInclude | null /** * Filter, which alerts to fetch. */ where: alertsWhereUniqueInput } /** * alerts findUniqueOrThrow */ export type alertsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the alerts */ select?: alertsSelect | null /** * Omit specific fields from the alerts */ omit?: alertsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alertsInclude | null /** * Filter, which alerts to fetch. */ where: alertsWhereUniqueInput } /** * alerts findFirst */ export type alertsFindFirstArgs = { /** * Select specific fields to fetch from the alerts */ select?: alertsSelect | null /** * Omit specific fields from the alerts */ omit?: alertsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alertsInclude | null /** * Filter, which alerts to fetch. */ where?: alertsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of alerts to fetch. */ orderBy?: alertsOrderByWithRelationInput | alertsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for alerts. */ cursor?: alertsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` alerts 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` alerts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of alerts. */ distinct?: AlertsScalarFieldEnum | AlertsScalarFieldEnum[] } /** * alerts findFirstOrThrow */ export type alertsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the alerts */ select?: alertsSelect | null /** * Omit specific fields from the alerts */ omit?: alertsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alertsInclude | null /** * Filter, which alerts to fetch. */ where?: alertsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of alerts to fetch. */ orderBy?: alertsOrderByWithRelationInput | alertsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for alerts. */ cursor?: alertsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` alerts 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` alerts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of alerts. */ distinct?: AlertsScalarFieldEnum | AlertsScalarFieldEnum[] } /** * alerts findMany */ export type alertsFindManyArgs = { /** * Select specific fields to fetch from the alerts */ select?: alertsSelect | null /** * Omit specific fields from the alerts */ omit?: alertsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alertsInclude | null /** * Filter, which alerts to fetch. */ where?: alertsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of alerts to fetch. */ orderBy?: alertsOrderByWithRelationInput | alertsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing alerts. */ cursor?: alertsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` alerts 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` alerts. */ skip?: number distinct?: AlertsScalarFieldEnum | AlertsScalarFieldEnum[] } /** * alerts create */ export type alertsCreateArgs = { /** * Select specific fields to fetch from the alerts */ select?: alertsSelect | null /** * Omit specific fields from the alerts */ omit?: alertsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alertsInclude | null /** * The data needed to create a alerts. */ data: XOR } /** * alerts createMany */ export type alertsCreateManyArgs = { /** * The data used to create many alerts. */ data: alertsCreateManyInput | alertsCreateManyInput[] skipDuplicates?: boolean } /** * alerts update */ export type alertsUpdateArgs = { /** * Select specific fields to fetch from the alerts */ select?: alertsSelect | null /** * Omit specific fields from the alerts */ omit?: alertsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alertsInclude | null /** * The data needed to update a alerts. */ data: XOR /** * Choose, which alerts to update. */ where: alertsWhereUniqueInput } /** * alerts updateMany */ export type alertsUpdateManyArgs = { /** * The data used to update alerts. */ data: XOR /** * Filter which alerts to update */ where?: alertsWhereInput /** * Limit how many alerts to update. */ limit?: number } /** * alerts upsert */ export type alertsUpsertArgs = { /** * Select specific fields to fetch from the alerts */ select?: alertsSelect | null /** * Omit specific fields from the alerts */ omit?: alertsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alertsInclude | null /** * The filter to search for the alerts to update in case it exists. */ where: alertsWhereUniqueInput /** * In case the alerts found by the `where` argument doesn't exist, create a new alerts with this data. */ create: XOR /** * In case the alerts was found with the provided `where` argument, update it with this data. */ update: XOR } /** * alerts delete */ export type alertsDeleteArgs = { /** * Select specific fields to fetch from the alerts */ select?: alertsSelect | null /** * Omit specific fields from the alerts */ omit?: alertsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alertsInclude | null /** * Filter which alerts to delete. */ where: alertsWhereUniqueInput } /** * alerts deleteMany */ export type alertsDeleteManyArgs = { /** * Filter which alerts to delete */ where?: alertsWhereInput /** * Limit how many alerts to delete. */ limit?: number } /** * alerts.alert_recipients */ export type alerts$alert_recipientsArgs = { /** * Select specific fields to fetch from the alert_recipients */ select?: alert_recipientsSelect | null /** * Omit specific fields from the alert_recipients */ omit?: alert_recipientsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alert_recipientsInclude | null where?: alert_recipientsWhereInput orderBy?: alert_recipientsOrderByWithRelationInput | alert_recipientsOrderByWithRelationInput[] cursor?: alert_recipientsWhereUniqueInput take?: number skip?: number distinct?: Alert_recipientsScalarFieldEnum | Alert_recipientsScalarFieldEnum[] } /** * alerts.incidents */ export type alerts$incidentsArgs = { /** * Select specific fields to fetch from the incidents */ select?: incidentsSelect | null /** * Omit specific fields from the incidents */ omit?: incidentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: incidentsInclude | null where?: incidentsWhereInput } /** * alerts without action */ export type alertsDefaultArgs = { /** * Select specific fields to fetch from the alerts */ select?: alertsSelect | null /** * Omit specific fields from the alerts */ omit?: alertsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alertsInclude | null } /** * Model basemap_configs */ export type AggregateBasemap_configs = { _count: Basemap_configsCountAggregateOutputType | null _avg: Basemap_configsAvgAggregateOutputType | null _sum: Basemap_configsSumAggregateOutputType | null _min: Basemap_configsMinAggregateOutputType | null _max: Basemap_configsMaxAggregateOutputType | null } export type Basemap_configsAvgAggregateOutputType = { version: number | null file_size: number | null } export type Basemap_configsSumAggregateOutputType = { version: number | null file_size: number | null } export type Basemap_configsMinAggregateOutputType = { id: string | null name: string | null description: string | null svg_data: string | null is_active: boolean | null is_default: boolean | null version: number | null file_size: number | null checksum: string | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null } export type Basemap_configsMaxAggregateOutputType = { id: string | null name: string | null description: string | null svg_data: string | null is_active: boolean | null is_default: boolean | null version: number | null file_size: number | null checksum: string | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null } export type Basemap_configsCountAggregateOutputType = { id: number name: number description: number svg_data: number calibration: number dimensions: number is_active: number is_default: number version: number settings: number metadata: number file_size: number checksum: number created_at: number updated_at: number created_by: number updated_by: number _all: number } export type Basemap_configsAvgAggregateInputType = { version?: true file_size?: true } export type Basemap_configsSumAggregateInputType = { version?: true file_size?: true } export type Basemap_configsMinAggregateInputType = { id?: true name?: true description?: true svg_data?: true is_active?: true is_default?: true version?: true file_size?: true checksum?: true created_at?: true updated_at?: true created_by?: true updated_by?: true } export type Basemap_configsMaxAggregateInputType = { id?: true name?: true description?: true svg_data?: true is_active?: true is_default?: true version?: true file_size?: true checksum?: true created_at?: true updated_at?: true created_by?: true updated_by?: true } export type Basemap_configsCountAggregateInputType = { id?: true name?: true description?: true svg_data?: true calibration?: true dimensions?: true is_active?: true is_default?: true version?: true settings?: true metadata?: true file_size?: true checksum?: true created_at?: true updated_at?: true created_by?: true updated_by?: true _all?: true } export type Basemap_configsAggregateArgs = { /** * Filter which basemap_configs to aggregate. */ where?: basemap_configsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of basemap_configs to fetch. */ orderBy?: basemap_configsOrderByWithRelationInput | basemap_configsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: basemap_configsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` basemap_configs 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` basemap_configs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned basemap_configs **/ _count?: true | Basemap_configsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Basemap_configsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Basemap_configsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Basemap_configsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Basemap_configsMaxAggregateInputType } export type GetBasemap_configsAggregateType = { [P in keyof T & keyof AggregateBasemap_configs]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type basemap_configsGroupByArgs = { where?: basemap_configsWhereInput orderBy?: basemap_configsOrderByWithAggregationInput | basemap_configsOrderByWithAggregationInput[] by: Basemap_configsScalarFieldEnum[] | Basemap_configsScalarFieldEnum having?: basemap_configsScalarWhereWithAggregatesInput take?: number skip?: number _count?: Basemap_configsCountAggregateInputType | true _avg?: Basemap_configsAvgAggregateInputType _sum?: Basemap_configsSumAggregateInputType _min?: Basemap_configsMinAggregateInputType _max?: Basemap_configsMaxAggregateInputType } export type Basemap_configsGroupByOutputType = { id: string name: string description: string | null svg_data: string calibration: JsonValue dimensions: JsonValue is_active: boolean | null is_default: boolean | null version: number | null settings: JsonValue | null metadata: JsonValue | null file_size: number | null checksum: string | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null _count: Basemap_configsCountAggregateOutputType | null _avg: Basemap_configsAvgAggregateOutputType | null _sum: Basemap_configsSumAggregateOutputType | null _min: Basemap_configsMinAggregateOutputType | null _max: Basemap_configsMaxAggregateOutputType | null } type GetBasemap_configsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Basemap_configsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type basemap_configsSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean description?: boolean svg_data?: boolean calibration?: boolean dimensions?: boolean is_active?: boolean is_default?: boolean version?: boolean settings?: boolean metadata?: boolean file_size?: boolean checksum?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean updated_by?: boolean }, ExtArgs["result"]["basemap_configs"]> export type basemap_configsSelectScalar = { id?: boolean name?: boolean description?: boolean svg_data?: boolean calibration?: boolean dimensions?: boolean is_active?: boolean is_default?: boolean version?: boolean settings?: boolean metadata?: boolean file_size?: boolean checksum?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean updated_by?: boolean } export type basemap_configsOmit = $Extensions.GetOmit<"id" | "name" | "description" | "svg_data" | "calibration" | "dimensions" | "is_active" | "is_default" | "version" | "settings" | "metadata" | "file_size" | "checksum" | "created_at" | "updated_at" | "created_by" | "updated_by", ExtArgs["result"]["basemap_configs"]> export type $basemap_configsPayload = { name: "basemap_configs" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string name: string description: string | null svg_data: string calibration: Prisma.JsonValue dimensions: Prisma.JsonValue is_active: boolean | null is_default: boolean | null version: number | null settings: Prisma.JsonValue | null metadata: Prisma.JsonValue | null file_size: number | null checksum: string | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null }, ExtArgs["result"]["basemap_configs"]> composites: {} } type basemap_configsGetPayload = $Result.GetResult type basemap_configsCountArgs = Omit & { select?: Basemap_configsCountAggregateInputType | true } export interface basemap_configsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['basemap_configs'], meta: { name: 'basemap_configs' } } /** * Find zero or one Basemap_configs that matches the filter. * @param {basemap_configsFindUniqueArgs} args - Arguments to find a Basemap_configs * @example * // Get one Basemap_configs * const basemap_configs = await prisma.basemap_configs.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__basemap_configsClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Basemap_configs that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {basemap_configsFindUniqueOrThrowArgs} args - Arguments to find a Basemap_configs * @example * // Get one Basemap_configs * const basemap_configs = await prisma.basemap_configs.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__basemap_configsClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Basemap_configs 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 {basemap_configsFindFirstArgs} args - Arguments to find a Basemap_configs * @example * // Get one Basemap_configs * const basemap_configs = await prisma.basemap_configs.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__basemap_configsClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Basemap_configs 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 {basemap_configsFindFirstOrThrowArgs} args - Arguments to find a Basemap_configs * @example * // Get one Basemap_configs * const basemap_configs = await prisma.basemap_configs.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__basemap_configsClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Basemap_configs 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 {basemap_configsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Basemap_configs * const basemap_configs = await prisma.basemap_configs.findMany() * * // Get first 10 Basemap_configs * const basemap_configs = await prisma.basemap_configs.findMany({ take: 10 }) * * // Only select the `id` * const basemap_configsWithIdOnly = await prisma.basemap_configs.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Basemap_configs. * @param {basemap_configsCreateArgs} args - Arguments to create a Basemap_configs. * @example * // Create one Basemap_configs * const Basemap_configs = await prisma.basemap_configs.create({ * data: { * // ... data to create a Basemap_configs * } * }) * */ create(args: SelectSubset>): Prisma__basemap_configsClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Basemap_configs. * @param {basemap_configsCreateManyArgs} args - Arguments to create many Basemap_configs. * @example * // Create many Basemap_configs * const basemap_configs = await prisma.basemap_configs.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Basemap_configs. * @param {basemap_configsDeleteArgs} args - Arguments to delete one Basemap_configs. * @example * // Delete one Basemap_configs * const Basemap_configs = await prisma.basemap_configs.delete({ * where: { * // ... filter to delete one Basemap_configs * } * }) * */ delete(args: SelectSubset>): Prisma__basemap_configsClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Basemap_configs. * @param {basemap_configsUpdateArgs} args - Arguments to update one Basemap_configs. * @example * // Update one Basemap_configs * const basemap_configs = await prisma.basemap_configs.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__basemap_configsClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Basemap_configs. * @param {basemap_configsDeleteManyArgs} args - Arguments to filter Basemap_configs to delete. * @example * // Delete a few Basemap_configs * const { count } = await prisma.basemap_configs.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Basemap_configs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {basemap_configsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Basemap_configs * const basemap_configs = await prisma.basemap_configs.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Basemap_configs. * @param {basemap_configsUpsertArgs} args - Arguments to update or create a Basemap_configs. * @example * // Update or create a Basemap_configs * const basemap_configs = await prisma.basemap_configs.upsert({ * create: { * // ... data to create a Basemap_configs * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Basemap_configs we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__basemap_configsClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Basemap_configs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {basemap_configsCountArgs} args - Arguments to filter Basemap_configs to count. * @example * // Count the number of Basemap_configs * const count = await prisma.basemap_configs.count({ * where: { * // ... the filter for the Basemap_configs 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 Basemap_configs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Basemap_configsAggregateArgs} 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 Basemap_configs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {basemap_configsGroupByArgs} 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 basemap_configsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: basemap_configsGroupByArgs['orderBy'] } : { orderBy?: basemap_configsGroupByArgs['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 ? GetBasemap_configsGroupByPayload : Prisma.PrismaPromise /** * Fields of the basemap_configs model */ readonly fields: basemap_configsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for basemap_configs. * 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__basemap_configsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the basemap_configs model */ interface basemap_configsFieldRefs { readonly id: FieldRef<"basemap_configs", 'String'> readonly name: FieldRef<"basemap_configs", 'String'> readonly description: FieldRef<"basemap_configs", 'String'> readonly svg_data: FieldRef<"basemap_configs", 'String'> readonly calibration: FieldRef<"basemap_configs", 'Json'> readonly dimensions: FieldRef<"basemap_configs", 'Json'> readonly is_active: FieldRef<"basemap_configs", 'Boolean'> readonly is_default: FieldRef<"basemap_configs", 'Boolean'> readonly version: FieldRef<"basemap_configs", 'Int'> readonly settings: FieldRef<"basemap_configs", 'Json'> readonly metadata: FieldRef<"basemap_configs", 'Json'> readonly file_size: FieldRef<"basemap_configs", 'Int'> readonly checksum: FieldRef<"basemap_configs", 'String'> readonly created_at: FieldRef<"basemap_configs", 'DateTime'> readonly updated_at: FieldRef<"basemap_configs", 'DateTime'> readonly created_by: FieldRef<"basemap_configs", 'String'> readonly updated_by: FieldRef<"basemap_configs", 'String'> } // Custom InputTypes /** * basemap_configs findUnique */ export type basemap_configsFindUniqueArgs = { /** * Select specific fields to fetch from the basemap_configs */ select?: basemap_configsSelect | null /** * Omit specific fields from the basemap_configs */ omit?: basemap_configsOmit | null /** * Filter, which basemap_configs to fetch. */ where: basemap_configsWhereUniqueInput } /** * basemap_configs findUniqueOrThrow */ export type basemap_configsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the basemap_configs */ select?: basemap_configsSelect | null /** * Omit specific fields from the basemap_configs */ omit?: basemap_configsOmit | null /** * Filter, which basemap_configs to fetch. */ where: basemap_configsWhereUniqueInput } /** * basemap_configs findFirst */ export type basemap_configsFindFirstArgs = { /** * Select specific fields to fetch from the basemap_configs */ select?: basemap_configsSelect | null /** * Omit specific fields from the basemap_configs */ omit?: basemap_configsOmit | null /** * Filter, which basemap_configs to fetch. */ where?: basemap_configsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of basemap_configs to fetch. */ orderBy?: basemap_configsOrderByWithRelationInput | basemap_configsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for basemap_configs. */ cursor?: basemap_configsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` basemap_configs 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` basemap_configs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of basemap_configs. */ distinct?: Basemap_configsScalarFieldEnum | Basemap_configsScalarFieldEnum[] } /** * basemap_configs findFirstOrThrow */ export type basemap_configsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the basemap_configs */ select?: basemap_configsSelect | null /** * Omit specific fields from the basemap_configs */ omit?: basemap_configsOmit | null /** * Filter, which basemap_configs to fetch. */ where?: basemap_configsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of basemap_configs to fetch. */ orderBy?: basemap_configsOrderByWithRelationInput | basemap_configsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for basemap_configs. */ cursor?: basemap_configsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` basemap_configs 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` basemap_configs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of basemap_configs. */ distinct?: Basemap_configsScalarFieldEnum | Basemap_configsScalarFieldEnum[] } /** * basemap_configs findMany */ export type basemap_configsFindManyArgs = { /** * Select specific fields to fetch from the basemap_configs */ select?: basemap_configsSelect | null /** * Omit specific fields from the basemap_configs */ omit?: basemap_configsOmit | null /** * Filter, which basemap_configs to fetch. */ where?: basemap_configsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of basemap_configs to fetch. */ orderBy?: basemap_configsOrderByWithRelationInput | basemap_configsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing basemap_configs. */ cursor?: basemap_configsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` basemap_configs 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` basemap_configs. */ skip?: number distinct?: Basemap_configsScalarFieldEnum | Basemap_configsScalarFieldEnum[] } /** * basemap_configs create */ export type basemap_configsCreateArgs = { /** * Select specific fields to fetch from the basemap_configs */ select?: basemap_configsSelect | null /** * Omit specific fields from the basemap_configs */ omit?: basemap_configsOmit | null /** * The data needed to create a basemap_configs. */ data: XOR } /** * basemap_configs createMany */ export type basemap_configsCreateManyArgs = { /** * The data used to create many basemap_configs. */ data: basemap_configsCreateManyInput | basemap_configsCreateManyInput[] skipDuplicates?: boolean } /** * basemap_configs update */ export type basemap_configsUpdateArgs = { /** * Select specific fields to fetch from the basemap_configs */ select?: basemap_configsSelect | null /** * Omit specific fields from the basemap_configs */ omit?: basemap_configsOmit | null /** * The data needed to update a basemap_configs. */ data: XOR /** * Choose, which basemap_configs to update. */ where: basemap_configsWhereUniqueInput } /** * basemap_configs updateMany */ export type basemap_configsUpdateManyArgs = { /** * The data used to update basemap_configs. */ data: XOR /** * Filter which basemap_configs to update */ where?: basemap_configsWhereInput /** * Limit how many basemap_configs to update. */ limit?: number } /** * basemap_configs upsert */ export type basemap_configsUpsertArgs = { /** * Select specific fields to fetch from the basemap_configs */ select?: basemap_configsSelect | null /** * Omit specific fields from the basemap_configs */ omit?: basemap_configsOmit | null /** * The filter to search for the basemap_configs to update in case it exists. */ where: basemap_configsWhereUniqueInput /** * In case the basemap_configs found by the `where` argument doesn't exist, create a new basemap_configs with this data. */ create: XOR /** * In case the basemap_configs was found with the provided `where` argument, update it with this data. */ update: XOR } /** * basemap_configs delete */ export type basemap_configsDeleteArgs = { /** * Select specific fields to fetch from the basemap_configs */ select?: basemap_configsSelect | null /** * Omit specific fields from the basemap_configs */ omit?: basemap_configsOmit | null /** * Filter which basemap_configs to delete. */ where: basemap_configsWhereUniqueInput } /** * basemap_configs deleteMany */ export type basemap_configsDeleteManyArgs = { /** * Filter which basemap_configs to delete */ where?: basemap_configsWhereInput /** * Limit how many basemap_configs to delete. */ limit?: number } /** * basemap_configs without action */ export type basemap_configsDefaultArgs = { /** * Select specific fields to fetch from the basemap_configs */ select?: basemap_configsSelect | null /** * Omit specific fields from the basemap_configs */ omit?: basemap_configsOmit | null } /** * Model camera_health_log */ export type AggregateCamera_health_log = { _count: Camera_health_logCountAggregateOutputType | null _avg: Camera_health_logAvgAggregateOutputType | null _sum: Camera_health_logSumAggregateOutputType | null _min: Camera_health_logMinAggregateOutputType | null _max: Camera_health_logMaxAggregateOutputType | null } export type Camera_health_logAvgAggregateOutputType = { id: number | null response_time: number | null health_score: number | null } export type Camera_health_logSumAggregateOutputType = { id: number | null response_time: number | null health_score: number | null } export type Camera_health_logMinAggregateOutputType = { id: number | null camera_id: string | null status: string | null response_time: number | null health_score: number | null error_message: string | null stream_accessible: boolean | null timestamp: Date | null } export type Camera_health_logMaxAggregateOutputType = { id: number | null camera_id: string | null status: string | null response_time: number | null health_score: number | null error_message: string | null stream_accessible: boolean | null timestamp: Date | null } export type Camera_health_logCountAggregateOutputType = { id: number camera_id: number status: number response_time: number health_score: number error_message: number stream_accessible: number timestamp: number _all: number } export type Camera_health_logAvgAggregateInputType = { id?: true response_time?: true health_score?: true } export type Camera_health_logSumAggregateInputType = { id?: true response_time?: true health_score?: true } export type Camera_health_logMinAggregateInputType = { id?: true camera_id?: true status?: true response_time?: true health_score?: true error_message?: true stream_accessible?: true timestamp?: true } export type Camera_health_logMaxAggregateInputType = { id?: true camera_id?: true status?: true response_time?: true health_score?: true error_message?: true stream_accessible?: true timestamp?: true } export type Camera_health_logCountAggregateInputType = { id?: true camera_id?: true status?: true response_time?: true health_score?: true error_message?: true stream_accessible?: true timestamp?: true _all?: true } export type Camera_health_logAggregateArgs = { /** * Filter which camera_health_log to aggregate. */ where?: camera_health_logWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of camera_health_logs to fetch. */ orderBy?: camera_health_logOrderByWithRelationInput | camera_health_logOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: camera_health_logWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` camera_health_logs 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` camera_health_logs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned camera_health_logs **/ _count?: true | Camera_health_logCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Camera_health_logAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Camera_health_logSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Camera_health_logMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Camera_health_logMaxAggregateInputType } export type GetCamera_health_logAggregateType = { [P in keyof T & keyof AggregateCamera_health_log]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type camera_health_logGroupByArgs = { where?: camera_health_logWhereInput orderBy?: camera_health_logOrderByWithAggregationInput | camera_health_logOrderByWithAggregationInput[] by: Camera_health_logScalarFieldEnum[] | Camera_health_logScalarFieldEnum having?: camera_health_logScalarWhereWithAggregatesInput take?: number skip?: number _count?: Camera_health_logCountAggregateInputType | true _avg?: Camera_health_logAvgAggregateInputType _sum?: Camera_health_logSumAggregateInputType _min?: Camera_health_logMinAggregateInputType _max?: Camera_health_logMaxAggregateInputType } export type Camera_health_logGroupByOutputType = { id: number camera_id: string status: string response_time: number health_score: number error_message: string | null stream_accessible: boolean | null timestamp: Date | null _count: Camera_health_logCountAggregateOutputType | null _avg: Camera_health_logAvgAggregateOutputType | null _sum: Camera_health_logSumAggregateOutputType | null _min: Camera_health_logMinAggregateOutputType | null _max: Camera_health_logMaxAggregateOutputType | null } type GetCamera_health_logGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Camera_health_logGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type camera_health_logSelect = $Extensions.GetSelect<{ id?: boolean camera_id?: boolean status?: boolean response_time?: boolean health_score?: boolean error_message?: boolean stream_accessible?: boolean timestamp?: boolean cameras?: boolean | camerasDefaultArgs }, ExtArgs["result"]["camera_health_log"]> export type camera_health_logSelectScalar = { id?: boolean camera_id?: boolean status?: boolean response_time?: boolean health_score?: boolean error_message?: boolean stream_accessible?: boolean timestamp?: boolean } export type camera_health_logOmit = $Extensions.GetOmit<"id" | "camera_id" | "status" | "response_time" | "health_score" | "error_message" | "stream_accessible" | "timestamp", ExtArgs["result"]["camera_health_log"]> export type camera_health_logInclude = { cameras?: boolean | camerasDefaultArgs } export type $camera_health_logPayload = { name: "camera_health_log" objects: { cameras: Prisma.$camerasPayload } scalars: $Extensions.GetPayloadResult<{ id: number camera_id: string status: string response_time: number health_score: number error_message: string | null stream_accessible: boolean | null timestamp: Date | null }, ExtArgs["result"]["camera_health_log"]> composites: {} } type camera_health_logGetPayload = $Result.GetResult type camera_health_logCountArgs = Omit & { select?: Camera_health_logCountAggregateInputType | true } export interface camera_health_logDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['camera_health_log'], meta: { name: 'camera_health_log' } } /** * Find zero or one Camera_health_log that matches the filter. * @param {camera_health_logFindUniqueArgs} args - Arguments to find a Camera_health_log * @example * // Get one Camera_health_log * const camera_health_log = await prisma.camera_health_log.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__camera_health_logClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Camera_health_log that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {camera_health_logFindUniqueOrThrowArgs} args - Arguments to find a Camera_health_log * @example * // Get one Camera_health_log * const camera_health_log = await prisma.camera_health_log.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__camera_health_logClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Camera_health_log 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 {camera_health_logFindFirstArgs} args - Arguments to find a Camera_health_log * @example * // Get one Camera_health_log * const camera_health_log = await prisma.camera_health_log.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__camera_health_logClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Camera_health_log 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 {camera_health_logFindFirstOrThrowArgs} args - Arguments to find a Camera_health_log * @example * // Get one Camera_health_log * const camera_health_log = await prisma.camera_health_log.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__camera_health_logClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Camera_health_logs 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 {camera_health_logFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Camera_health_logs * const camera_health_logs = await prisma.camera_health_log.findMany() * * // Get first 10 Camera_health_logs * const camera_health_logs = await prisma.camera_health_log.findMany({ take: 10 }) * * // Only select the `id` * const camera_health_logWithIdOnly = await prisma.camera_health_log.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Camera_health_log. * @param {camera_health_logCreateArgs} args - Arguments to create a Camera_health_log. * @example * // Create one Camera_health_log * const Camera_health_log = await prisma.camera_health_log.create({ * data: { * // ... data to create a Camera_health_log * } * }) * */ create(args: SelectSubset>): Prisma__camera_health_logClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Camera_health_logs. * @param {camera_health_logCreateManyArgs} args - Arguments to create many Camera_health_logs. * @example * // Create many Camera_health_logs * const camera_health_log = await prisma.camera_health_log.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Camera_health_log. * @param {camera_health_logDeleteArgs} args - Arguments to delete one Camera_health_log. * @example * // Delete one Camera_health_log * const Camera_health_log = await prisma.camera_health_log.delete({ * where: { * // ... filter to delete one Camera_health_log * } * }) * */ delete(args: SelectSubset>): Prisma__camera_health_logClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Camera_health_log. * @param {camera_health_logUpdateArgs} args - Arguments to update one Camera_health_log. * @example * // Update one Camera_health_log * const camera_health_log = await prisma.camera_health_log.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__camera_health_logClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Camera_health_logs. * @param {camera_health_logDeleteManyArgs} args - Arguments to filter Camera_health_logs to delete. * @example * // Delete a few Camera_health_logs * const { count } = await prisma.camera_health_log.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Camera_health_logs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {camera_health_logUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Camera_health_logs * const camera_health_log = await prisma.camera_health_log.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Camera_health_log. * @param {camera_health_logUpsertArgs} args - Arguments to update or create a Camera_health_log. * @example * // Update or create a Camera_health_log * const camera_health_log = await prisma.camera_health_log.upsert({ * create: { * // ... data to create a Camera_health_log * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Camera_health_log we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__camera_health_logClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Camera_health_logs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {camera_health_logCountArgs} args - Arguments to filter Camera_health_logs to count. * @example * // Count the number of Camera_health_logs * const count = await prisma.camera_health_log.count({ * where: { * // ... the filter for the Camera_health_logs 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 Camera_health_log. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Camera_health_logAggregateArgs} 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 Camera_health_log. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {camera_health_logGroupByArgs} 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 camera_health_logGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: camera_health_logGroupByArgs['orderBy'] } : { orderBy?: camera_health_logGroupByArgs['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 ? GetCamera_health_logGroupByPayload : Prisma.PrismaPromise /** * Fields of the camera_health_log model */ readonly fields: camera_health_logFieldRefs; } /** * The delegate class that acts as a "Promise-like" for camera_health_log. * 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__camera_health_logClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" cameras = {}>(args?: Subset>): Prisma__camerasClient<$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 camera_health_log model */ interface camera_health_logFieldRefs { readonly id: FieldRef<"camera_health_log", 'Int'> readonly camera_id: FieldRef<"camera_health_log", 'String'> readonly status: FieldRef<"camera_health_log", 'String'> readonly response_time: FieldRef<"camera_health_log", 'Int'> readonly health_score: FieldRef<"camera_health_log", 'Int'> readonly error_message: FieldRef<"camera_health_log", 'String'> readonly stream_accessible: FieldRef<"camera_health_log", 'Boolean'> readonly timestamp: FieldRef<"camera_health_log", 'DateTime'> } // Custom InputTypes /** * camera_health_log findUnique */ export type camera_health_logFindUniqueArgs = { /** * Select specific fields to fetch from the camera_health_log */ select?: camera_health_logSelect | null /** * Omit specific fields from the camera_health_log */ omit?: camera_health_logOmit | null /** * Choose, which related nodes to fetch as well */ include?: camera_health_logInclude | null /** * Filter, which camera_health_log to fetch. */ where: camera_health_logWhereUniqueInput } /** * camera_health_log findUniqueOrThrow */ export type camera_health_logFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the camera_health_log */ select?: camera_health_logSelect | null /** * Omit specific fields from the camera_health_log */ omit?: camera_health_logOmit | null /** * Choose, which related nodes to fetch as well */ include?: camera_health_logInclude | null /** * Filter, which camera_health_log to fetch. */ where: camera_health_logWhereUniqueInput } /** * camera_health_log findFirst */ export type camera_health_logFindFirstArgs = { /** * Select specific fields to fetch from the camera_health_log */ select?: camera_health_logSelect | null /** * Omit specific fields from the camera_health_log */ omit?: camera_health_logOmit | null /** * Choose, which related nodes to fetch as well */ include?: camera_health_logInclude | null /** * Filter, which camera_health_log to fetch. */ where?: camera_health_logWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of camera_health_logs to fetch. */ orderBy?: camera_health_logOrderByWithRelationInput | camera_health_logOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for camera_health_logs. */ cursor?: camera_health_logWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` camera_health_logs 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` camera_health_logs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of camera_health_logs. */ distinct?: Camera_health_logScalarFieldEnum | Camera_health_logScalarFieldEnum[] } /** * camera_health_log findFirstOrThrow */ export type camera_health_logFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the camera_health_log */ select?: camera_health_logSelect | null /** * Omit specific fields from the camera_health_log */ omit?: camera_health_logOmit | null /** * Choose, which related nodes to fetch as well */ include?: camera_health_logInclude | null /** * Filter, which camera_health_log to fetch. */ where?: camera_health_logWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of camera_health_logs to fetch. */ orderBy?: camera_health_logOrderByWithRelationInput | camera_health_logOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for camera_health_logs. */ cursor?: camera_health_logWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` camera_health_logs 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` camera_health_logs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of camera_health_logs. */ distinct?: Camera_health_logScalarFieldEnum | Camera_health_logScalarFieldEnum[] } /** * camera_health_log findMany */ export type camera_health_logFindManyArgs = { /** * Select specific fields to fetch from the camera_health_log */ select?: camera_health_logSelect | null /** * Omit specific fields from the camera_health_log */ omit?: camera_health_logOmit | null /** * Choose, which related nodes to fetch as well */ include?: camera_health_logInclude | null /** * Filter, which camera_health_logs to fetch. */ where?: camera_health_logWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of camera_health_logs to fetch. */ orderBy?: camera_health_logOrderByWithRelationInput | camera_health_logOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing camera_health_logs. */ cursor?: camera_health_logWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` camera_health_logs 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` camera_health_logs. */ skip?: number distinct?: Camera_health_logScalarFieldEnum | Camera_health_logScalarFieldEnum[] } /** * camera_health_log create */ export type camera_health_logCreateArgs = { /** * Select specific fields to fetch from the camera_health_log */ select?: camera_health_logSelect | null /** * Omit specific fields from the camera_health_log */ omit?: camera_health_logOmit | null /** * Choose, which related nodes to fetch as well */ include?: camera_health_logInclude | null /** * The data needed to create a camera_health_log. */ data: XOR } /** * camera_health_log createMany */ export type camera_health_logCreateManyArgs = { /** * The data used to create many camera_health_logs. */ data: camera_health_logCreateManyInput | camera_health_logCreateManyInput[] skipDuplicates?: boolean } /** * camera_health_log update */ export type camera_health_logUpdateArgs = { /** * Select specific fields to fetch from the camera_health_log */ select?: camera_health_logSelect | null /** * Omit specific fields from the camera_health_log */ omit?: camera_health_logOmit | null /** * Choose, which related nodes to fetch as well */ include?: camera_health_logInclude | null /** * The data needed to update a camera_health_log. */ data: XOR /** * Choose, which camera_health_log to update. */ where: camera_health_logWhereUniqueInput } /** * camera_health_log updateMany */ export type camera_health_logUpdateManyArgs = { /** * The data used to update camera_health_logs. */ data: XOR /** * Filter which camera_health_logs to update */ where?: camera_health_logWhereInput /** * Limit how many camera_health_logs to update. */ limit?: number } /** * camera_health_log upsert */ export type camera_health_logUpsertArgs = { /** * Select specific fields to fetch from the camera_health_log */ select?: camera_health_logSelect | null /** * Omit specific fields from the camera_health_log */ omit?: camera_health_logOmit | null /** * Choose, which related nodes to fetch as well */ include?: camera_health_logInclude | null /** * The filter to search for the camera_health_log to update in case it exists. */ where: camera_health_logWhereUniqueInput /** * In case the camera_health_log found by the `where` argument doesn't exist, create a new camera_health_log with this data. */ create: XOR /** * In case the camera_health_log was found with the provided `where` argument, update it with this data. */ update: XOR } /** * camera_health_log delete */ export type camera_health_logDeleteArgs = { /** * Select specific fields to fetch from the camera_health_log */ select?: camera_health_logSelect | null /** * Omit specific fields from the camera_health_log */ omit?: camera_health_logOmit | null /** * Choose, which related nodes to fetch as well */ include?: camera_health_logInclude | null /** * Filter which camera_health_log to delete. */ where: camera_health_logWhereUniqueInput } /** * camera_health_log deleteMany */ export type camera_health_logDeleteManyArgs = { /** * Filter which camera_health_logs to delete */ where?: camera_health_logWhereInput /** * Limit how many camera_health_logs to delete. */ limit?: number } /** * camera_health_log without action */ export type camera_health_logDefaultArgs = { /** * Select specific fields to fetch from the camera_health_log */ select?: camera_health_logSelect | null /** * Omit specific fields from the camera_health_log */ omit?: camera_health_logOmit | null /** * Choose, which related nodes to fetch as well */ include?: camera_health_logInclude | null } /** * Model cameras */ export type AggregateCameras = { _count: CamerasCountAggregateOutputType | null _avg: CamerasAvgAggregateOutputType | null _sum: CamerasSumAggregateOutputType | null _min: CamerasMinAggregateOutputType | null _max: CamerasMaxAggregateOutputType | null } export type CamerasAvgAggregateOutputType = { lat: Decimal | null lng: Decimal | null response_time: number | null health_score: number | null } export type CamerasSumAggregateOutputType = { lat: Decimal | null lng: Decimal | null response_time: number | null health_score: number | null } export type CamerasMinAggregateOutputType = { id: string | null label: string | null area: string | null lat: Decimal | null lng: Decimal | null stream_url: string | null status: $Enums.cameras_status | null last_heartbeat: Date | null response_time: number | null health_score: number | null error_message: string | null created_at: Date | null updated_at: Date | null } export type CamerasMaxAggregateOutputType = { id: string | null label: string | null area: string | null lat: Decimal | null lng: Decimal | null stream_url: string | null status: $Enums.cameras_status | null last_heartbeat: Date | null response_time: number | null health_score: number | null error_message: string | null created_at: Date | null updated_at: Date | null } export type CamerasCountAggregateOutputType = { id: number label: number area: number lat: number lng: number stream_url: number status: number last_heartbeat: number response_time: number health_score: number error_message: number created_at: number updated_at: number _all: number } export type CamerasAvgAggregateInputType = { lat?: true lng?: true response_time?: true health_score?: true } export type CamerasSumAggregateInputType = { lat?: true lng?: true response_time?: true health_score?: true } export type CamerasMinAggregateInputType = { id?: true label?: true area?: true lat?: true lng?: true stream_url?: true status?: true last_heartbeat?: true response_time?: true health_score?: true error_message?: true created_at?: true updated_at?: true } export type CamerasMaxAggregateInputType = { id?: true label?: true area?: true lat?: true lng?: true stream_url?: true status?: true last_heartbeat?: true response_time?: true health_score?: true error_message?: true created_at?: true updated_at?: true } export type CamerasCountAggregateInputType = { id?: true label?: true area?: true lat?: true lng?: true stream_url?: true status?: true last_heartbeat?: true response_time?: true health_score?: true error_message?: true created_at?: true updated_at?: true _all?: true } export type CamerasAggregateArgs = { /** * Filter which cameras to aggregate. */ where?: camerasWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of cameras to fetch. */ orderBy?: camerasOrderByWithRelationInput | camerasOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: camerasWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` cameras 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` cameras. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned cameras **/ _count?: true | CamerasCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CamerasAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CamerasSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CamerasMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CamerasMaxAggregateInputType } export type GetCamerasAggregateType = { [P in keyof T & keyof AggregateCameras]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type camerasGroupByArgs = { where?: camerasWhereInput orderBy?: camerasOrderByWithAggregationInput | camerasOrderByWithAggregationInput[] by: CamerasScalarFieldEnum[] | CamerasScalarFieldEnum having?: camerasScalarWhereWithAggregatesInput take?: number skip?: number _count?: CamerasCountAggregateInputType | true _avg?: CamerasAvgAggregateInputType _sum?: CamerasSumAggregateInputType _min?: CamerasMinAggregateInputType _max?: CamerasMaxAggregateInputType } export type CamerasGroupByOutputType = { id: string label: string area: string lat: Decimal lng: Decimal stream_url: string status: $Enums.cameras_status | null last_heartbeat: Date | null response_time: number | null health_score: number | null error_message: string | null created_at: Date | null updated_at: Date | null _count: CamerasCountAggregateOutputType | null _avg: CamerasAvgAggregateOutputType | null _sum: CamerasSumAggregateOutputType | null _min: CamerasMinAggregateOutputType | null _max: CamerasMaxAggregateOutputType | null } type GetCamerasGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CamerasGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type camerasSelect = $Extensions.GetSelect<{ id?: boolean label?: boolean area?: boolean lat?: boolean lng?: boolean stream_url?: boolean status?: boolean last_heartbeat?: boolean response_time?: boolean health_score?: boolean error_message?: boolean created_at?: boolean updated_at?: boolean camera_health_log?: boolean | cameras$camera_health_logArgs _count?: boolean | CamerasCountOutputTypeDefaultArgs }, ExtArgs["result"]["cameras"]> export type camerasSelectScalar = { id?: boolean label?: boolean area?: boolean lat?: boolean lng?: boolean stream_url?: boolean status?: boolean last_heartbeat?: boolean response_time?: boolean health_score?: boolean error_message?: boolean created_at?: boolean updated_at?: boolean } export type camerasOmit = $Extensions.GetOmit<"id" | "label" | "area" | "lat" | "lng" | "stream_url" | "status" | "last_heartbeat" | "response_time" | "health_score" | "error_message" | "created_at" | "updated_at", ExtArgs["result"]["cameras"]> export type camerasInclude = { camera_health_log?: boolean | cameras$camera_health_logArgs _count?: boolean | CamerasCountOutputTypeDefaultArgs } export type $camerasPayload = { name: "cameras" objects: { camera_health_log: Prisma.$camera_health_logPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string label: string area: string lat: Prisma.Decimal lng: Prisma.Decimal stream_url: string status: $Enums.cameras_status | null last_heartbeat: Date | null response_time: number | null health_score: number | null error_message: string | null created_at: Date | null updated_at: Date | null }, ExtArgs["result"]["cameras"]> composites: {} } type camerasGetPayload = $Result.GetResult type camerasCountArgs = Omit & { select?: CamerasCountAggregateInputType | true } export interface camerasDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['cameras'], meta: { name: 'cameras' } } /** * Find zero or one Cameras that matches the filter. * @param {camerasFindUniqueArgs} args - Arguments to find a Cameras * @example * // Get one Cameras * const cameras = await prisma.cameras.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__camerasClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Cameras that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {camerasFindUniqueOrThrowArgs} args - Arguments to find a Cameras * @example * // Get one Cameras * const cameras = await prisma.cameras.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__camerasClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Cameras 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 {camerasFindFirstArgs} args - Arguments to find a Cameras * @example * // Get one Cameras * const cameras = await prisma.cameras.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__camerasClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Cameras 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 {camerasFindFirstOrThrowArgs} args - Arguments to find a Cameras * @example * // Get one Cameras * const cameras = await prisma.cameras.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__camerasClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Cameras 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 {camerasFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Cameras * const cameras = await prisma.cameras.findMany() * * // Get first 10 Cameras * const cameras = await prisma.cameras.findMany({ take: 10 }) * * // Only select the `id` * const camerasWithIdOnly = await prisma.cameras.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Cameras. * @param {camerasCreateArgs} args - Arguments to create a Cameras. * @example * // Create one Cameras * const Cameras = await prisma.cameras.create({ * data: { * // ... data to create a Cameras * } * }) * */ create(args: SelectSubset>): Prisma__camerasClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Cameras. * @param {camerasCreateManyArgs} args - Arguments to create many Cameras. * @example * // Create many Cameras * const cameras = await prisma.cameras.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Cameras. * @param {camerasDeleteArgs} args - Arguments to delete one Cameras. * @example * // Delete one Cameras * const Cameras = await prisma.cameras.delete({ * where: { * // ... filter to delete one Cameras * } * }) * */ delete(args: SelectSubset>): Prisma__camerasClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Cameras. * @param {camerasUpdateArgs} args - Arguments to update one Cameras. * @example * // Update one Cameras * const cameras = await prisma.cameras.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__camerasClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Cameras. * @param {camerasDeleteManyArgs} args - Arguments to filter Cameras to delete. * @example * // Delete a few Cameras * const { count } = await prisma.cameras.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Cameras. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {camerasUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Cameras * const cameras = await prisma.cameras.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Cameras. * @param {camerasUpsertArgs} args - Arguments to update or create a Cameras. * @example * // Update or create a Cameras * const cameras = await prisma.cameras.upsert({ * create: { * // ... data to create a Cameras * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Cameras we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__camerasClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Cameras. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {camerasCountArgs} args - Arguments to filter Cameras to count. * @example * // Count the number of Cameras * const count = await prisma.cameras.count({ * where: { * // ... the filter for the Cameras 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 Cameras. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CamerasAggregateArgs} 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 Cameras. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {camerasGroupByArgs} 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 camerasGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: camerasGroupByArgs['orderBy'] } : { orderBy?: camerasGroupByArgs['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 ? GetCamerasGroupByPayload : Prisma.PrismaPromise /** * Fields of the cameras model */ readonly fields: camerasFieldRefs; } /** * The delegate class that acts as a "Promise-like" for cameras. * 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__camerasClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" camera_health_log = {}>(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 cameras model */ interface camerasFieldRefs { readonly id: FieldRef<"cameras", 'String'> readonly label: FieldRef<"cameras", 'String'> readonly area: FieldRef<"cameras", 'String'> readonly lat: FieldRef<"cameras", 'Decimal'> readonly lng: FieldRef<"cameras", 'Decimal'> readonly stream_url: FieldRef<"cameras", 'String'> readonly status: FieldRef<"cameras", 'cameras_status'> readonly last_heartbeat: FieldRef<"cameras", 'DateTime'> readonly response_time: FieldRef<"cameras", 'Int'> readonly health_score: FieldRef<"cameras", 'Int'> readonly error_message: FieldRef<"cameras", 'String'> readonly created_at: FieldRef<"cameras", 'DateTime'> readonly updated_at: FieldRef<"cameras", 'DateTime'> } // Custom InputTypes /** * cameras findUnique */ export type camerasFindUniqueArgs = { /** * Select specific fields to fetch from the cameras */ select?: camerasSelect | null /** * Omit specific fields from the cameras */ omit?: camerasOmit | null /** * Choose, which related nodes to fetch as well */ include?: camerasInclude | null /** * Filter, which cameras to fetch. */ where: camerasWhereUniqueInput } /** * cameras findUniqueOrThrow */ export type camerasFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the cameras */ select?: camerasSelect | null /** * Omit specific fields from the cameras */ omit?: camerasOmit | null /** * Choose, which related nodes to fetch as well */ include?: camerasInclude | null /** * Filter, which cameras to fetch. */ where: camerasWhereUniqueInput } /** * cameras findFirst */ export type camerasFindFirstArgs = { /** * Select specific fields to fetch from the cameras */ select?: camerasSelect | null /** * Omit specific fields from the cameras */ omit?: camerasOmit | null /** * Choose, which related nodes to fetch as well */ include?: camerasInclude | null /** * Filter, which cameras to fetch. */ where?: camerasWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of cameras to fetch. */ orderBy?: camerasOrderByWithRelationInput | camerasOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for cameras. */ cursor?: camerasWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` cameras 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` cameras. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of cameras. */ distinct?: CamerasScalarFieldEnum | CamerasScalarFieldEnum[] } /** * cameras findFirstOrThrow */ export type camerasFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the cameras */ select?: camerasSelect | null /** * Omit specific fields from the cameras */ omit?: camerasOmit | null /** * Choose, which related nodes to fetch as well */ include?: camerasInclude | null /** * Filter, which cameras to fetch. */ where?: camerasWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of cameras to fetch. */ orderBy?: camerasOrderByWithRelationInput | camerasOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for cameras. */ cursor?: camerasWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` cameras 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` cameras. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of cameras. */ distinct?: CamerasScalarFieldEnum | CamerasScalarFieldEnum[] } /** * cameras findMany */ export type camerasFindManyArgs = { /** * Select specific fields to fetch from the cameras */ select?: camerasSelect | null /** * Omit specific fields from the cameras */ omit?: camerasOmit | null /** * Choose, which related nodes to fetch as well */ include?: camerasInclude | null /** * Filter, which cameras to fetch. */ where?: camerasWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of cameras to fetch. */ orderBy?: camerasOrderByWithRelationInput | camerasOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing cameras. */ cursor?: camerasWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` cameras 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` cameras. */ skip?: number distinct?: CamerasScalarFieldEnum | CamerasScalarFieldEnum[] } /** * cameras create */ export type camerasCreateArgs = { /** * Select specific fields to fetch from the cameras */ select?: camerasSelect | null /** * Omit specific fields from the cameras */ omit?: camerasOmit | null /** * Choose, which related nodes to fetch as well */ include?: camerasInclude | null /** * The data needed to create a cameras. */ data: XOR } /** * cameras createMany */ export type camerasCreateManyArgs = { /** * The data used to create many cameras. */ data: camerasCreateManyInput | camerasCreateManyInput[] skipDuplicates?: boolean } /** * cameras update */ export type camerasUpdateArgs = { /** * Select specific fields to fetch from the cameras */ select?: camerasSelect | null /** * Omit specific fields from the cameras */ omit?: camerasOmit | null /** * Choose, which related nodes to fetch as well */ include?: camerasInclude | null /** * The data needed to update a cameras. */ data: XOR /** * Choose, which cameras to update. */ where: camerasWhereUniqueInput } /** * cameras updateMany */ export type camerasUpdateManyArgs = { /** * The data used to update cameras. */ data: XOR /** * Filter which cameras to update */ where?: camerasWhereInput /** * Limit how many cameras to update. */ limit?: number } /** * cameras upsert */ export type camerasUpsertArgs = { /** * Select specific fields to fetch from the cameras */ select?: camerasSelect | null /** * Omit specific fields from the cameras */ omit?: camerasOmit | null /** * Choose, which related nodes to fetch as well */ include?: camerasInclude | null /** * The filter to search for the cameras to update in case it exists. */ where: camerasWhereUniqueInput /** * In case the cameras found by the `where` argument doesn't exist, create a new cameras with this data. */ create: XOR /** * In case the cameras was found with the provided `where` argument, update it with this data. */ update: XOR } /** * cameras delete */ export type camerasDeleteArgs = { /** * Select specific fields to fetch from the cameras */ select?: camerasSelect | null /** * Omit specific fields from the cameras */ omit?: camerasOmit | null /** * Choose, which related nodes to fetch as well */ include?: camerasInclude | null /** * Filter which cameras to delete. */ where: camerasWhereUniqueInput } /** * cameras deleteMany */ export type camerasDeleteManyArgs = { /** * Filter which cameras to delete */ where?: camerasWhereInput /** * Limit how many cameras to delete. */ limit?: number } /** * cameras.camera_health_log */ export type cameras$camera_health_logArgs = { /** * Select specific fields to fetch from the camera_health_log */ select?: camera_health_logSelect | null /** * Omit specific fields from the camera_health_log */ omit?: camera_health_logOmit | null /** * Choose, which related nodes to fetch as well */ include?: camera_health_logInclude | null where?: camera_health_logWhereInput orderBy?: camera_health_logOrderByWithRelationInput | camera_health_logOrderByWithRelationInput[] cursor?: camera_health_logWhereUniqueInput take?: number skip?: number distinct?: Camera_health_logScalarFieldEnum | Camera_health_logScalarFieldEnum[] } /** * cameras without action */ export type camerasDefaultArgs = { /** * Select specific fields to fetch from the cameras */ select?: camerasSelect | null /** * Omit specific fields from the cameras */ omit?: camerasOmit | null /** * Choose, which related nodes to fetch as well */ include?: camerasInclude | null } /** * Model feature_flags */ export type AggregateFeature_flags = { _count: Feature_flagsCountAggregateOutputType | null _avg: Feature_flagsAvgAggregateOutputType | null _sum: Feature_flagsSumAggregateOutputType | null _min: Feature_flagsMinAggregateOutputType | null _max: Feature_flagsMaxAggregateOutputType | null } export type Feature_flagsAvgAggregateOutputType = { rollout_percentage: Decimal | null evaluation_count: number | null } export type Feature_flagsSumAggregateOutputType = { rollout_percentage: Decimal | null evaluation_count: bigint | null } export type Feature_flagsMinAggregateOutputType = { id: string | null key: string | null name: string | null description: string | null is_enabled: boolean | null type: string | null environment: string | null category: string | null rollout_percentage: Decimal | null is_archived: boolean | null is_permanent: boolean | null expires_at: Date | null last_evaluated_at: Date | null evaluation_count: bigint | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null enabled_at: Date | null disabled_at: Date | null } export type Feature_flagsMaxAggregateOutputType = { id: string | null key: string | null name: string | null description: string | null is_enabled: boolean | null type: string | null environment: string | null category: string | null rollout_percentage: Decimal | null is_archived: boolean | null is_permanent: boolean | null expires_at: Date | null last_evaluated_at: Date | null evaluation_count: bigint | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null enabled_at: Date | null disabled_at: Date | null } export type Feature_flagsCountAggregateOutputType = { id: number key: number name: number description: number is_enabled: number type: number value: number default_value: number environment: number category: number tags: number conditions: number rollout_percentage: number user_segments: number is_archived: number is_permanent: number expires_at: number last_evaluated_at: number evaluation_count: number metadata: number created_at: number updated_at: number created_by: number updated_by: number enabled_at: number disabled_at: number _all: number } export type Feature_flagsAvgAggregateInputType = { rollout_percentage?: true evaluation_count?: true } export type Feature_flagsSumAggregateInputType = { rollout_percentage?: true evaluation_count?: true } export type Feature_flagsMinAggregateInputType = { id?: true key?: true name?: true description?: true is_enabled?: true type?: true environment?: true category?: true rollout_percentage?: true is_archived?: true is_permanent?: true expires_at?: true last_evaluated_at?: true evaluation_count?: true created_at?: true updated_at?: true created_by?: true updated_by?: true enabled_at?: true disabled_at?: true } export type Feature_flagsMaxAggregateInputType = { id?: true key?: true name?: true description?: true is_enabled?: true type?: true environment?: true category?: true rollout_percentage?: true is_archived?: true is_permanent?: true expires_at?: true last_evaluated_at?: true evaluation_count?: true created_at?: true updated_at?: true created_by?: true updated_by?: true enabled_at?: true disabled_at?: true } export type Feature_flagsCountAggregateInputType = { id?: true key?: true name?: true description?: true is_enabled?: true type?: true value?: true default_value?: true environment?: true category?: true tags?: true conditions?: true rollout_percentage?: true user_segments?: true is_archived?: true is_permanent?: true expires_at?: true last_evaluated_at?: true evaluation_count?: true metadata?: true created_at?: true updated_at?: true created_by?: true updated_by?: true enabled_at?: true disabled_at?: true _all?: true } export type Feature_flagsAggregateArgs = { /** * Filter which feature_flags to aggregate. */ where?: feature_flagsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of feature_flags to fetch. */ orderBy?: feature_flagsOrderByWithRelationInput | feature_flagsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: feature_flagsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` feature_flags 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` feature_flags. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned feature_flags **/ _count?: true | Feature_flagsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Feature_flagsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Feature_flagsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Feature_flagsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Feature_flagsMaxAggregateInputType } export type GetFeature_flagsAggregateType = { [P in keyof T & keyof AggregateFeature_flags]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type feature_flagsGroupByArgs = { where?: feature_flagsWhereInput orderBy?: feature_flagsOrderByWithAggregationInput | feature_flagsOrderByWithAggregationInput[] by: Feature_flagsScalarFieldEnum[] | Feature_flagsScalarFieldEnum having?: feature_flagsScalarWhereWithAggregatesInput take?: number skip?: number _count?: Feature_flagsCountAggregateInputType | true _avg?: Feature_flagsAvgAggregateInputType _sum?: Feature_flagsSumAggregateInputType _min?: Feature_flagsMinAggregateInputType _max?: Feature_flagsMaxAggregateInputType } export type Feature_flagsGroupByOutputType = { id: string key: string name: string description: string | null is_enabled: boolean | null type: string value: JsonValue | null default_value: JsonValue | null environment: string | null category: string | null tags: JsonValue | null conditions: JsonValue | null rollout_percentage: Decimal | null user_segments: JsonValue | null is_archived: boolean | null is_permanent: boolean | null expires_at: Date | null last_evaluated_at: Date | null evaluation_count: bigint | null metadata: JsonValue | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null enabled_at: Date | null disabled_at: Date | null _count: Feature_flagsCountAggregateOutputType | null _avg: Feature_flagsAvgAggregateOutputType | null _sum: Feature_flagsSumAggregateOutputType | null _min: Feature_flagsMinAggregateOutputType | null _max: Feature_flagsMaxAggregateOutputType | null } type GetFeature_flagsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Feature_flagsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type feature_flagsSelect = $Extensions.GetSelect<{ id?: boolean key?: boolean name?: boolean description?: boolean is_enabled?: boolean type?: boolean value?: boolean default_value?: boolean environment?: boolean category?: boolean tags?: boolean conditions?: boolean rollout_percentage?: boolean user_segments?: boolean is_archived?: boolean is_permanent?: boolean expires_at?: boolean last_evaluated_at?: boolean evaluation_count?: boolean metadata?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean updated_by?: boolean enabled_at?: boolean disabled_at?: boolean }, ExtArgs["result"]["feature_flags"]> export type feature_flagsSelectScalar = { id?: boolean key?: boolean name?: boolean description?: boolean is_enabled?: boolean type?: boolean value?: boolean default_value?: boolean environment?: boolean category?: boolean tags?: boolean conditions?: boolean rollout_percentage?: boolean user_segments?: boolean is_archived?: boolean is_permanent?: boolean expires_at?: boolean last_evaluated_at?: boolean evaluation_count?: boolean metadata?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean updated_by?: boolean enabled_at?: boolean disabled_at?: boolean } export type feature_flagsOmit = $Extensions.GetOmit<"id" | "key" | "name" | "description" | "is_enabled" | "type" | "value" | "default_value" | "environment" | "category" | "tags" | "conditions" | "rollout_percentage" | "user_segments" | "is_archived" | "is_permanent" | "expires_at" | "last_evaluated_at" | "evaluation_count" | "metadata" | "created_at" | "updated_at" | "created_by" | "updated_by" | "enabled_at" | "disabled_at", ExtArgs["result"]["feature_flags"]> export type $feature_flagsPayload = { name: "feature_flags" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string key: string name: string description: string | null is_enabled: boolean | null type: string value: Prisma.JsonValue | null default_value: Prisma.JsonValue | null environment: string | null category: string | null tags: Prisma.JsonValue | null conditions: Prisma.JsonValue | null rollout_percentage: Prisma.Decimal | null user_segments: Prisma.JsonValue | null is_archived: boolean | null is_permanent: boolean | null expires_at: Date | null last_evaluated_at: Date | null evaluation_count: bigint | null metadata: Prisma.JsonValue | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null enabled_at: Date | null disabled_at: Date | null }, ExtArgs["result"]["feature_flags"]> composites: {} } type feature_flagsGetPayload = $Result.GetResult type feature_flagsCountArgs = Omit & { select?: Feature_flagsCountAggregateInputType | true } export interface feature_flagsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['feature_flags'], meta: { name: 'feature_flags' } } /** * Find zero or one Feature_flags that matches the filter. * @param {feature_flagsFindUniqueArgs} args - Arguments to find a Feature_flags * @example * // Get one Feature_flags * const feature_flags = await prisma.feature_flags.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__feature_flagsClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Feature_flags that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {feature_flagsFindUniqueOrThrowArgs} args - Arguments to find a Feature_flags * @example * // Get one Feature_flags * const feature_flags = await prisma.feature_flags.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__feature_flagsClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Feature_flags 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 {feature_flagsFindFirstArgs} args - Arguments to find a Feature_flags * @example * // Get one Feature_flags * const feature_flags = await prisma.feature_flags.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__feature_flagsClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Feature_flags 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 {feature_flagsFindFirstOrThrowArgs} args - Arguments to find a Feature_flags * @example * // Get one Feature_flags * const feature_flags = await prisma.feature_flags.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__feature_flagsClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Feature_flags 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 {feature_flagsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Feature_flags * const feature_flags = await prisma.feature_flags.findMany() * * // Get first 10 Feature_flags * const feature_flags = await prisma.feature_flags.findMany({ take: 10 }) * * // Only select the `id` * const feature_flagsWithIdOnly = await prisma.feature_flags.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Feature_flags. * @param {feature_flagsCreateArgs} args - Arguments to create a Feature_flags. * @example * // Create one Feature_flags * const Feature_flags = await prisma.feature_flags.create({ * data: { * // ... data to create a Feature_flags * } * }) * */ create(args: SelectSubset>): Prisma__feature_flagsClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Feature_flags. * @param {feature_flagsCreateManyArgs} args - Arguments to create many Feature_flags. * @example * // Create many Feature_flags * const feature_flags = await prisma.feature_flags.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Feature_flags. * @param {feature_flagsDeleteArgs} args - Arguments to delete one Feature_flags. * @example * // Delete one Feature_flags * const Feature_flags = await prisma.feature_flags.delete({ * where: { * // ... filter to delete one Feature_flags * } * }) * */ delete(args: SelectSubset>): Prisma__feature_flagsClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Feature_flags. * @param {feature_flagsUpdateArgs} args - Arguments to update one Feature_flags. * @example * // Update one Feature_flags * const feature_flags = await prisma.feature_flags.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__feature_flagsClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Feature_flags. * @param {feature_flagsDeleteManyArgs} args - Arguments to filter Feature_flags to delete. * @example * // Delete a few Feature_flags * const { count } = await prisma.feature_flags.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Feature_flags. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {feature_flagsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Feature_flags * const feature_flags = await prisma.feature_flags.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Feature_flags. * @param {feature_flagsUpsertArgs} args - Arguments to update or create a Feature_flags. * @example * // Update or create a Feature_flags * const feature_flags = await prisma.feature_flags.upsert({ * create: { * // ... data to create a Feature_flags * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Feature_flags we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__feature_flagsClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Feature_flags. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {feature_flagsCountArgs} args - Arguments to filter Feature_flags to count. * @example * // Count the number of Feature_flags * const count = await prisma.feature_flags.count({ * where: { * // ... the filter for the Feature_flags 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 Feature_flags. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Feature_flagsAggregateArgs} 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 Feature_flags. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {feature_flagsGroupByArgs} 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 feature_flagsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: feature_flagsGroupByArgs['orderBy'] } : { orderBy?: feature_flagsGroupByArgs['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 ? GetFeature_flagsGroupByPayload : Prisma.PrismaPromise /** * Fields of the feature_flags model */ readonly fields: feature_flagsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for feature_flags. * 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__feature_flagsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the feature_flags model */ interface feature_flagsFieldRefs { readonly id: FieldRef<"feature_flags", 'String'> readonly key: FieldRef<"feature_flags", 'String'> readonly name: FieldRef<"feature_flags", 'String'> readonly description: FieldRef<"feature_flags", 'String'> readonly is_enabled: FieldRef<"feature_flags", 'Boolean'> readonly type: FieldRef<"feature_flags", 'String'> readonly value: FieldRef<"feature_flags", 'Json'> readonly default_value: FieldRef<"feature_flags", 'Json'> readonly environment: FieldRef<"feature_flags", 'String'> readonly category: FieldRef<"feature_flags", 'String'> readonly tags: FieldRef<"feature_flags", 'Json'> readonly conditions: FieldRef<"feature_flags", 'Json'> readonly rollout_percentage: FieldRef<"feature_flags", 'Decimal'> readonly user_segments: FieldRef<"feature_flags", 'Json'> readonly is_archived: FieldRef<"feature_flags", 'Boolean'> readonly is_permanent: FieldRef<"feature_flags", 'Boolean'> readonly expires_at: FieldRef<"feature_flags", 'DateTime'> readonly last_evaluated_at: FieldRef<"feature_flags", 'DateTime'> readonly evaluation_count: FieldRef<"feature_flags", 'BigInt'> readonly metadata: FieldRef<"feature_flags", 'Json'> readonly created_at: FieldRef<"feature_flags", 'DateTime'> readonly updated_at: FieldRef<"feature_flags", 'DateTime'> readonly created_by: FieldRef<"feature_flags", 'String'> readonly updated_by: FieldRef<"feature_flags", 'String'> readonly enabled_at: FieldRef<"feature_flags", 'DateTime'> readonly disabled_at: FieldRef<"feature_flags", 'DateTime'> } // Custom InputTypes /** * feature_flags findUnique */ export type feature_flagsFindUniqueArgs = { /** * Select specific fields to fetch from the feature_flags */ select?: feature_flagsSelect | null /** * Omit specific fields from the feature_flags */ omit?: feature_flagsOmit | null /** * Filter, which feature_flags to fetch. */ where: feature_flagsWhereUniqueInput } /** * feature_flags findUniqueOrThrow */ export type feature_flagsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the feature_flags */ select?: feature_flagsSelect | null /** * Omit specific fields from the feature_flags */ omit?: feature_flagsOmit | null /** * Filter, which feature_flags to fetch. */ where: feature_flagsWhereUniqueInput } /** * feature_flags findFirst */ export type feature_flagsFindFirstArgs = { /** * Select specific fields to fetch from the feature_flags */ select?: feature_flagsSelect | null /** * Omit specific fields from the feature_flags */ omit?: feature_flagsOmit | null /** * Filter, which feature_flags to fetch. */ where?: feature_flagsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of feature_flags to fetch. */ orderBy?: feature_flagsOrderByWithRelationInput | feature_flagsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for feature_flags. */ cursor?: feature_flagsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` feature_flags 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` feature_flags. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of feature_flags. */ distinct?: Feature_flagsScalarFieldEnum | Feature_flagsScalarFieldEnum[] } /** * feature_flags findFirstOrThrow */ export type feature_flagsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the feature_flags */ select?: feature_flagsSelect | null /** * Omit specific fields from the feature_flags */ omit?: feature_flagsOmit | null /** * Filter, which feature_flags to fetch. */ where?: feature_flagsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of feature_flags to fetch. */ orderBy?: feature_flagsOrderByWithRelationInput | feature_flagsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for feature_flags. */ cursor?: feature_flagsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` feature_flags 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` feature_flags. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of feature_flags. */ distinct?: Feature_flagsScalarFieldEnum | Feature_flagsScalarFieldEnum[] } /** * feature_flags findMany */ export type feature_flagsFindManyArgs = { /** * Select specific fields to fetch from the feature_flags */ select?: feature_flagsSelect | null /** * Omit specific fields from the feature_flags */ omit?: feature_flagsOmit | null /** * Filter, which feature_flags to fetch. */ where?: feature_flagsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of feature_flags to fetch. */ orderBy?: feature_flagsOrderByWithRelationInput | feature_flagsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing feature_flags. */ cursor?: feature_flagsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` feature_flags 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` feature_flags. */ skip?: number distinct?: Feature_flagsScalarFieldEnum | Feature_flagsScalarFieldEnum[] } /** * feature_flags create */ export type feature_flagsCreateArgs = { /** * Select specific fields to fetch from the feature_flags */ select?: feature_flagsSelect | null /** * Omit specific fields from the feature_flags */ omit?: feature_flagsOmit | null /** * The data needed to create a feature_flags. */ data: XOR } /** * feature_flags createMany */ export type feature_flagsCreateManyArgs = { /** * The data used to create many feature_flags. */ data: feature_flagsCreateManyInput | feature_flagsCreateManyInput[] skipDuplicates?: boolean } /** * feature_flags update */ export type feature_flagsUpdateArgs = { /** * Select specific fields to fetch from the feature_flags */ select?: feature_flagsSelect | null /** * Omit specific fields from the feature_flags */ omit?: feature_flagsOmit | null /** * The data needed to update a feature_flags. */ data: XOR /** * Choose, which feature_flags to update. */ where: feature_flagsWhereUniqueInput } /** * feature_flags updateMany */ export type feature_flagsUpdateManyArgs = { /** * The data used to update feature_flags. */ data: XOR /** * Filter which feature_flags to update */ where?: feature_flagsWhereInput /** * Limit how many feature_flags to update. */ limit?: number } /** * feature_flags upsert */ export type feature_flagsUpsertArgs = { /** * Select specific fields to fetch from the feature_flags */ select?: feature_flagsSelect | null /** * Omit specific fields from the feature_flags */ omit?: feature_flagsOmit | null /** * The filter to search for the feature_flags to update in case it exists. */ where: feature_flagsWhereUniqueInput /** * In case the feature_flags found by the `where` argument doesn't exist, create a new feature_flags with this data. */ create: XOR /** * In case the feature_flags was found with the provided `where` argument, update it with this data. */ update: XOR } /** * feature_flags delete */ export type feature_flagsDeleteArgs = { /** * Select specific fields to fetch from the feature_flags */ select?: feature_flagsSelect | null /** * Omit specific fields from the feature_flags */ omit?: feature_flagsOmit | null /** * Filter which feature_flags to delete. */ where: feature_flagsWhereUniqueInput } /** * feature_flags deleteMany */ export type feature_flagsDeleteManyArgs = { /** * Filter which feature_flags to delete */ where?: feature_flagsWhereInput /** * Limit how many feature_flags to delete. */ limit?: number } /** * feature_flags without action */ export type feature_flagsDefaultArgs = { /** * Select specific fields to fetch from the feature_flags */ select?: feature_flagsSelect | null /** * Omit specific fields from the feature_flags */ omit?: feature_flagsOmit | null } /** * Model geofence_breaches */ export type AggregateGeofence_breaches = { _count: Geofence_breachesCountAggregateOutputType | null _min: Geofence_breachesMinAggregateOutputType | null _max: Geofence_breachesMaxAggregateOutputType | null } export type Geofence_breachesMinAggregateOutputType = { id: string | null geofence_id: string | null team_member_id: string | null breach_type: string | null severity: string | null is_resolved: boolean | null resolved_at: Date | null resolved_by: string | null notes: string | null created_at: Date | null updated_at: Date | null } export type Geofence_breachesMaxAggregateOutputType = { id: string | null geofence_id: string | null team_member_id: string | null breach_type: string | null severity: string | null is_resolved: boolean | null resolved_at: Date | null resolved_by: string | null notes: string | null created_at: Date | null updated_at: Date | null } export type Geofence_breachesCountAggregateOutputType = { id: number geofence_id: number team_member_id: number breach_type: number location: number severity: number is_resolved: number resolved_at: number resolved_by: number notes: number metadata: number created_at: number updated_at: number _all: number } export type Geofence_breachesMinAggregateInputType = { id?: true geofence_id?: true team_member_id?: true breach_type?: true severity?: true is_resolved?: true resolved_at?: true resolved_by?: true notes?: true created_at?: true updated_at?: true } export type Geofence_breachesMaxAggregateInputType = { id?: true geofence_id?: true team_member_id?: true breach_type?: true severity?: true is_resolved?: true resolved_at?: true resolved_by?: true notes?: true created_at?: true updated_at?: true } export type Geofence_breachesCountAggregateInputType = { id?: true geofence_id?: true team_member_id?: true breach_type?: true location?: true severity?: true is_resolved?: true resolved_at?: true resolved_by?: true notes?: true metadata?: true created_at?: true updated_at?: true _all?: true } export type Geofence_breachesAggregateArgs = { /** * Filter which geofence_breaches to aggregate. */ where?: geofence_breachesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of geofence_breaches to fetch. */ orderBy?: geofence_breachesOrderByWithRelationInput | geofence_breachesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: geofence_breachesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` geofence_breaches 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` geofence_breaches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned geofence_breaches **/ _count?: true | Geofence_breachesCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Geofence_breachesMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Geofence_breachesMaxAggregateInputType } export type GetGeofence_breachesAggregateType = { [P in keyof T & keyof AggregateGeofence_breaches]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type geofence_breachesGroupByArgs = { where?: geofence_breachesWhereInput orderBy?: geofence_breachesOrderByWithAggregationInput | geofence_breachesOrderByWithAggregationInput[] by: Geofence_breachesScalarFieldEnum[] | Geofence_breachesScalarFieldEnum having?: geofence_breachesScalarWhereWithAggregatesInput take?: number skip?: number _count?: Geofence_breachesCountAggregateInputType | true _min?: Geofence_breachesMinAggregateInputType _max?: Geofence_breachesMaxAggregateInputType } export type Geofence_breachesGroupByOutputType = { id: string geofence_id: string team_member_id: string | null breach_type: string location: JsonValue severity: string | null is_resolved: boolean | null resolved_at: Date | null resolved_by: string | null notes: string | null metadata: JsonValue | null created_at: Date | null updated_at: Date | null _count: Geofence_breachesCountAggregateOutputType | null _min: Geofence_breachesMinAggregateOutputType | null _max: Geofence_breachesMaxAggregateOutputType | null } type GetGeofence_breachesGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Geofence_breachesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type geofence_breachesSelect = $Extensions.GetSelect<{ id?: boolean geofence_id?: boolean team_member_id?: boolean breach_type?: boolean location?: boolean severity?: boolean is_resolved?: boolean resolved_at?: boolean resolved_by?: boolean notes?: boolean metadata?: boolean created_at?: boolean updated_at?: boolean geofences?: boolean | geofencesDefaultArgs }, ExtArgs["result"]["geofence_breaches"]> export type geofence_breachesSelectScalar = { id?: boolean geofence_id?: boolean team_member_id?: boolean breach_type?: boolean location?: boolean severity?: boolean is_resolved?: boolean resolved_at?: boolean resolved_by?: boolean notes?: boolean metadata?: boolean created_at?: boolean updated_at?: boolean } export type geofence_breachesOmit = $Extensions.GetOmit<"id" | "geofence_id" | "team_member_id" | "breach_type" | "location" | "severity" | "is_resolved" | "resolved_at" | "resolved_by" | "notes" | "metadata" | "created_at" | "updated_at", ExtArgs["result"]["geofence_breaches"]> export type geofence_breachesInclude = { geofences?: boolean | geofencesDefaultArgs } export type $geofence_breachesPayload = { name: "geofence_breaches" objects: { geofences: Prisma.$geofencesPayload } scalars: $Extensions.GetPayloadResult<{ id: string geofence_id: string team_member_id: string | null breach_type: string location: Prisma.JsonValue severity: string | null is_resolved: boolean | null resolved_at: Date | null resolved_by: string | null notes: string | null metadata: Prisma.JsonValue | null created_at: Date | null updated_at: Date | null }, ExtArgs["result"]["geofence_breaches"]> composites: {} } type geofence_breachesGetPayload = $Result.GetResult type geofence_breachesCountArgs = Omit & { select?: Geofence_breachesCountAggregateInputType | true } export interface geofence_breachesDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['geofence_breaches'], meta: { name: 'geofence_breaches' } } /** * Find zero or one Geofence_breaches that matches the filter. * @param {geofence_breachesFindUniqueArgs} args - Arguments to find a Geofence_breaches * @example * // Get one Geofence_breaches * const geofence_breaches = await prisma.geofence_breaches.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__geofence_breachesClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Geofence_breaches that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {geofence_breachesFindUniqueOrThrowArgs} args - Arguments to find a Geofence_breaches * @example * // Get one Geofence_breaches * const geofence_breaches = await prisma.geofence_breaches.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__geofence_breachesClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Geofence_breaches 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 {geofence_breachesFindFirstArgs} args - Arguments to find a Geofence_breaches * @example * // Get one Geofence_breaches * const geofence_breaches = await prisma.geofence_breaches.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__geofence_breachesClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Geofence_breaches 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 {geofence_breachesFindFirstOrThrowArgs} args - Arguments to find a Geofence_breaches * @example * // Get one Geofence_breaches * const geofence_breaches = await prisma.geofence_breaches.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__geofence_breachesClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Geofence_breaches 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 {geofence_breachesFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Geofence_breaches * const geofence_breaches = await prisma.geofence_breaches.findMany() * * // Get first 10 Geofence_breaches * const geofence_breaches = await prisma.geofence_breaches.findMany({ take: 10 }) * * // Only select the `id` * const geofence_breachesWithIdOnly = await prisma.geofence_breaches.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Geofence_breaches. * @param {geofence_breachesCreateArgs} args - Arguments to create a Geofence_breaches. * @example * // Create one Geofence_breaches * const Geofence_breaches = await prisma.geofence_breaches.create({ * data: { * // ... data to create a Geofence_breaches * } * }) * */ create(args: SelectSubset>): Prisma__geofence_breachesClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Geofence_breaches. * @param {geofence_breachesCreateManyArgs} args - Arguments to create many Geofence_breaches. * @example * // Create many Geofence_breaches * const geofence_breaches = await prisma.geofence_breaches.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Geofence_breaches. * @param {geofence_breachesDeleteArgs} args - Arguments to delete one Geofence_breaches. * @example * // Delete one Geofence_breaches * const Geofence_breaches = await prisma.geofence_breaches.delete({ * where: { * // ... filter to delete one Geofence_breaches * } * }) * */ delete(args: SelectSubset>): Prisma__geofence_breachesClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Geofence_breaches. * @param {geofence_breachesUpdateArgs} args - Arguments to update one Geofence_breaches. * @example * // Update one Geofence_breaches * const geofence_breaches = await prisma.geofence_breaches.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__geofence_breachesClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Geofence_breaches. * @param {geofence_breachesDeleteManyArgs} args - Arguments to filter Geofence_breaches to delete. * @example * // Delete a few Geofence_breaches * const { count } = await prisma.geofence_breaches.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Geofence_breaches. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {geofence_breachesUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Geofence_breaches * const geofence_breaches = await prisma.geofence_breaches.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Geofence_breaches. * @param {geofence_breachesUpsertArgs} args - Arguments to update or create a Geofence_breaches. * @example * // Update or create a Geofence_breaches * const geofence_breaches = await prisma.geofence_breaches.upsert({ * create: { * // ... data to create a Geofence_breaches * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Geofence_breaches we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__geofence_breachesClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Geofence_breaches. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {geofence_breachesCountArgs} args - Arguments to filter Geofence_breaches to count. * @example * // Count the number of Geofence_breaches * const count = await prisma.geofence_breaches.count({ * where: { * // ... the filter for the Geofence_breaches 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 Geofence_breaches. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Geofence_breachesAggregateArgs} 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 Geofence_breaches. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {geofence_breachesGroupByArgs} 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 geofence_breachesGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: geofence_breachesGroupByArgs['orderBy'] } : { orderBy?: geofence_breachesGroupByArgs['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 ? GetGeofence_breachesGroupByPayload : Prisma.PrismaPromise /** * Fields of the geofence_breaches model */ readonly fields: geofence_breachesFieldRefs; } /** * The delegate class that acts as a "Promise-like" for geofence_breaches. * 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__geofence_breachesClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" geofences = {}>(args?: Subset>): Prisma__geofencesClient<$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 geofence_breaches model */ interface geofence_breachesFieldRefs { readonly id: FieldRef<"geofence_breaches", 'String'> readonly geofence_id: FieldRef<"geofence_breaches", 'String'> readonly team_member_id: FieldRef<"geofence_breaches", 'String'> readonly breach_type: FieldRef<"geofence_breaches", 'String'> readonly location: FieldRef<"geofence_breaches", 'Json'> readonly severity: FieldRef<"geofence_breaches", 'String'> readonly is_resolved: FieldRef<"geofence_breaches", 'Boolean'> readonly resolved_at: FieldRef<"geofence_breaches", 'DateTime'> readonly resolved_by: FieldRef<"geofence_breaches", 'String'> readonly notes: FieldRef<"geofence_breaches", 'String'> readonly metadata: FieldRef<"geofence_breaches", 'Json'> readonly created_at: FieldRef<"geofence_breaches", 'DateTime'> readonly updated_at: FieldRef<"geofence_breaches", 'DateTime'> } // Custom InputTypes /** * geofence_breaches findUnique */ export type geofence_breachesFindUniqueArgs = { /** * Select specific fields to fetch from the geofence_breaches */ select?: geofence_breachesSelect | null /** * Omit specific fields from the geofence_breaches */ omit?: geofence_breachesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofence_breachesInclude | null /** * Filter, which geofence_breaches to fetch. */ where: geofence_breachesWhereUniqueInput } /** * geofence_breaches findUniqueOrThrow */ export type geofence_breachesFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the geofence_breaches */ select?: geofence_breachesSelect | null /** * Omit specific fields from the geofence_breaches */ omit?: geofence_breachesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofence_breachesInclude | null /** * Filter, which geofence_breaches to fetch. */ where: geofence_breachesWhereUniqueInput } /** * geofence_breaches findFirst */ export type geofence_breachesFindFirstArgs = { /** * Select specific fields to fetch from the geofence_breaches */ select?: geofence_breachesSelect | null /** * Omit specific fields from the geofence_breaches */ omit?: geofence_breachesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofence_breachesInclude | null /** * Filter, which geofence_breaches to fetch. */ where?: geofence_breachesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of geofence_breaches to fetch. */ orderBy?: geofence_breachesOrderByWithRelationInput | geofence_breachesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for geofence_breaches. */ cursor?: geofence_breachesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` geofence_breaches 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` geofence_breaches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of geofence_breaches. */ distinct?: Geofence_breachesScalarFieldEnum | Geofence_breachesScalarFieldEnum[] } /** * geofence_breaches findFirstOrThrow */ export type geofence_breachesFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the geofence_breaches */ select?: geofence_breachesSelect | null /** * Omit specific fields from the geofence_breaches */ omit?: geofence_breachesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofence_breachesInclude | null /** * Filter, which geofence_breaches to fetch. */ where?: geofence_breachesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of geofence_breaches to fetch. */ orderBy?: geofence_breachesOrderByWithRelationInput | geofence_breachesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for geofence_breaches. */ cursor?: geofence_breachesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` geofence_breaches 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` geofence_breaches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of geofence_breaches. */ distinct?: Geofence_breachesScalarFieldEnum | Geofence_breachesScalarFieldEnum[] } /** * geofence_breaches findMany */ export type geofence_breachesFindManyArgs = { /** * Select specific fields to fetch from the geofence_breaches */ select?: geofence_breachesSelect | null /** * Omit specific fields from the geofence_breaches */ omit?: geofence_breachesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofence_breachesInclude | null /** * Filter, which geofence_breaches to fetch. */ where?: geofence_breachesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of geofence_breaches to fetch. */ orderBy?: geofence_breachesOrderByWithRelationInput | geofence_breachesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing geofence_breaches. */ cursor?: geofence_breachesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` geofence_breaches 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` geofence_breaches. */ skip?: number distinct?: Geofence_breachesScalarFieldEnum | Geofence_breachesScalarFieldEnum[] } /** * geofence_breaches create */ export type geofence_breachesCreateArgs = { /** * Select specific fields to fetch from the geofence_breaches */ select?: geofence_breachesSelect | null /** * Omit specific fields from the geofence_breaches */ omit?: geofence_breachesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofence_breachesInclude | null /** * The data needed to create a geofence_breaches. */ data: XOR } /** * geofence_breaches createMany */ export type geofence_breachesCreateManyArgs = { /** * The data used to create many geofence_breaches. */ data: geofence_breachesCreateManyInput | geofence_breachesCreateManyInput[] skipDuplicates?: boolean } /** * geofence_breaches update */ export type geofence_breachesUpdateArgs = { /** * Select specific fields to fetch from the geofence_breaches */ select?: geofence_breachesSelect | null /** * Omit specific fields from the geofence_breaches */ omit?: geofence_breachesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofence_breachesInclude | null /** * The data needed to update a geofence_breaches. */ data: XOR /** * Choose, which geofence_breaches to update. */ where: geofence_breachesWhereUniqueInput } /** * geofence_breaches updateMany */ export type geofence_breachesUpdateManyArgs = { /** * The data used to update geofence_breaches. */ data: XOR /** * Filter which geofence_breaches to update */ where?: geofence_breachesWhereInput /** * Limit how many geofence_breaches to update. */ limit?: number } /** * geofence_breaches upsert */ export type geofence_breachesUpsertArgs = { /** * Select specific fields to fetch from the geofence_breaches */ select?: geofence_breachesSelect | null /** * Omit specific fields from the geofence_breaches */ omit?: geofence_breachesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofence_breachesInclude | null /** * The filter to search for the geofence_breaches to update in case it exists. */ where: geofence_breachesWhereUniqueInput /** * In case the geofence_breaches found by the `where` argument doesn't exist, create a new geofence_breaches with this data. */ create: XOR /** * In case the geofence_breaches was found with the provided `where` argument, update it with this data. */ update: XOR } /** * geofence_breaches delete */ export type geofence_breachesDeleteArgs = { /** * Select specific fields to fetch from the geofence_breaches */ select?: geofence_breachesSelect | null /** * Omit specific fields from the geofence_breaches */ omit?: geofence_breachesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofence_breachesInclude | null /** * Filter which geofence_breaches to delete. */ where: geofence_breachesWhereUniqueInput } /** * geofence_breaches deleteMany */ export type geofence_breachesDeleteManyArgs = { /** * Filter which geofence_breaches to delete */ where?: geofence_breachesWhereInput /** * Limit how many geofence_breaches to delete. */ limit?: number } /** * geofence_breaches without action */ export type geofence_breachesDefaultArgs = { /** * Select specific fields to fetch from the geofence_breaches */ select?: geofence_breachesSelect | null /** * Omit specific fields from the geofence_breaches */ omit?: geofence_breachesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofence_breachesInclude | null } /** * Model geofences */ export type AggregateGeofences = { _count: GeofencesCountAggregateOutputType | null _min: GeofencesMinAggregateOutputType | null _max: GeofencesMaxAggregateOutputType | null } export type GeofencesMinAggregateOutputType = { id: string | null name: string | null type: string | null description: string | null is_active: boolean | null priority: string | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null } export type GeofencesMaxAggregateOutputType = { id: string | null name: string | null type: string | null description: string | null is_active: boolean | null priority: string | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null } export type GeofencesCountAggregateOutputType = { id: number name: number type: number coordinates: number description: number is_active: number priority: number notification_settings: number metadata: number created_at: number updated_at: number created_by: number updated_by: number _all: number } export type GeofencesMinAggregateInputType = { id?: true name?: true type?: true description?: true is_active?: true priority?: true created_at?: true updated_at?: true created_by?: true updated_by?: true } export type GeofencesMaxAggregateInputType = { id?: true name?: true type?: true description?: true is_active?: true priority?: true created_at?: true updated_at?: true created_by?: true updated_by?: true } export type GeofencesCountAggregateInputType = { id?: true name?: true type?: true coordinates?: true description?: true is_active?: true priority?: true notification_settings?: true metadata?: true created_at?: true updated_at?: true created_by?: true updated_by?: true _all?: true } export type GeofencesAggregateArgs = { /** * Filter which geofences to aggregate. */ where?: geofencesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of geofences to fetch. */ orderBy?: geofencesOrderByWithRelationInput | geofencesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: geofencesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` geofences 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` geofences. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned geofences **/ _count?: true | GeofencesCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: GeofencesMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: GeofencesMaxAggregateInputType } export type GetGeofencesAggregateType = { [P in keyof T & keyof AggregateGeofences]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type geofencesGroupByArgs = { where?: geofencesWhereInput orderBy?: geofencesOrderByWithAggregationInput | geofencesOrderByWithAggregationInput[] by: GeofencesScalarFieldEnum[] | GeofencesScalarFieldEnum having?: geofencesScalarWhereWithAggregatesInput take?: number skip?: number _count?: GeofencesCountAggregateInputType | true _min?: GeofencesMinAggregateInputType _max?: GeofencesMaxAggregateInputType } export type GeofencesGroupByOutputType = { id: string name: string type: string coordinates: JsonValue description: string | null is_active: boolean | null priority: string | null notification_settings: JsonValue | null metadata: JsonValue | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null _count: GeofencesCountAggregateOutputType | null _min: GeofencesMinAggregateOutputType | null _max: GeofencesMaxAggregateOutputType | null } type GetGeofencesGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof GeofencesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type geofencesSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean type?: boolean coordinates?: boolean description?: boolean is_active?: boolean priority?: boolean notification_settings?: boolean metadata?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean updated_by?: boolean geofence_breaches?: boolean | geofences$geofence_breachesArgs incidents?: boolean | geofences$incidentsArgs map_pins?: boolean | geofences$map_pinsArgs _count?: boolean | GeofencesCountOutputTypeDefaultArgs }, ExtArgs["result"]["geofences"]> export type geofencesSelectScalar = { id?: boolean name?: boolean type?: boolean coordinates?: boolean description?: boolean is_active?: boolean priority?: boolean notification_settings?: boolean metadata?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean updated_by?: boolean } export type geofencesOmit = $Extensions.GetOmit<"id" | "name" | "type" | "coordinates" | "description" | "is_active" | "priority" | "notification_settings" | "metadata" | "created_at" | "updated_at" | "created_by" | "updated_by", ExtArgs["result"]["geofences"]> export type geofencesInclude = { geofence_breaches?: boolean | geofences$geofence_breachesArgs incidents?: boolean | geofences$incidentsArgs map_pins?: boolean | geofences$map_pinsArgs _count?: boolean | GeofencesCountOutputTypeDefaultArgs } export type $geofencesPayload = { name: "geofences" objects: { geofence_breaches: Prisma.$geofence_breachesPayload[] incidents: Prisma.$incidentsPayload[] map_pins: Prisma.$map_pinsPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string name: string type: string coordinates: Prisma.JsonValue description: string | null is_active: boolean | null priority: string | null notification_settings: Prisma.JsonValue | null metadata: Prisma.JsonValue | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null }, ExtArgs["result"]["geofences"]> composites: {} } type geofencesGetPayload = $Result.GetResult type geofencesCountArgs = Omit & { select?: GeofencesCountAggregateInputType | true } export interface geofencesDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['geofences'], meta: { name: 'geofences' } } /** * Find zero or one Geofences that matches the filter. * @param {geofencesFindUniqueArgs} args - Arguments to find a Geofences * @example * // Get one Geofences * const geofences = await prisma.geofences.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__geofencesClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Geofences that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {geofencesFindUniqueOrThrowArgs} args - Arguments to find a Geofences * @example * // Get one Geofences * const geofences = await prisma.geofences.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__geofencesClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Geofences 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 {geofencesFindFirstArgs} args - Arguments to find a Geofences * @example * // Get one Geofences * const geofences = await prisma.geofences.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__geofencesClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Geofences 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 {geofencesFindFirstOrThrowArgs} args - Arguments to find a Geofences * @example * // Get one Geofences * const geofences = await prisma.geofences.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__geofencesClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Geofences 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 {geofencesFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Geofences * const geofences = await prisma.geofences.findMany() * * // Get first 10 Geofences * const geofences = await prisma.geofences.findMany({ take: 10 }) * * // Only select the `id` * const geofencesWithIdOnly = await prisma.geofences.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Geofences. * @param {geofencesCreateArgs} args - Arguments to create a Geofences. * @example * // Create one Geofences * const Geofences = await prisma.geofences.create({ * data: { * // ... data to create a Geofences * } * }) * */ create(args: SelectSubset>): Prisma__geofencesClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Geofences. * @param {geofencesCreateManyArgs} args - Arguments to create many Geofences. * @example * // Create many Geofences * const geofences = await prisma.geofences.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Geofences. * @param {geofencesDeleteArgs} args - Arguments to delete one Geofences. * @example * // Delete one Geofences * const Geofences = await prisma.geofences.delete({ * where: { * // ... filter to delete one Geofences * } * }) * */ delete(args: SelectSubset>): Prisma__geofencesClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Geofences. * @param {geofencesUpdateArgs} args - Arguments to update one Geofences. * @example * // Update one Geofences * const geofences = await prisma.geofences.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__geofencesClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Geofences. * @param {geofencesDeleteManyArgs} args - Arguments to filter Geofences to delete. * @example * // Delete a few Geofences * const { count } = await prisma.geofences.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Geofences. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {geofencesUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Geofences * const geofences = await prisma.geofences.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Geofences. * @param {geofencesUpsertArgs} args - Arguments to update or create a Geofences. * @example * // Update or create a Geofences * const geofences = await prisma.geofences.upsert({ * create: { * // ... data to create a Geofences * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Geofences we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__geofencesClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Geofences. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {geofencesCountArgs} args - Arguments to filter Geofences to count. * @example * // Count the number of Geofences * const count = await prisma.geofences.count({ * where: { * // ... the filter for the Geofences 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 Geofences. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GeofencesAggregateArgs} 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 Geofences. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {geofencesGroupByArgs} 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 geofencesGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: geofencesGroupByArgs['orderBy'] } : { orderBy?: geofencesGroupByArgs['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 ? GetGeofencesGroupByPayload : Prisma.PrismaPromise /** * Fields of the geofences model */ readonly fields: geofencesFieldRefs; } /** * The delegate class that acts as a "Promise-like" for geofences. * 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__geofencesClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" geofence_breaches = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> incidents = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> map_pins = {}>(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 geofences model */ interface geofencesFieldRefs { readonly id: FieldRef<"geofences", 'String'> readonly name: FieldRef<"geofences", 'String'> readonly type: FieldRef<"geofences", 'String'> readonly coordinates: FieldRef<"geofences", 'Json'> readonly description: FieldRef<"geofences", 'String'> readonly is_active: FieldRef<"geofences", 'Boolean'> readonly priority: FieldRef<"geofences", 'String'> readonly notification_settings: FieldRef<"geofences", 'Json'> readonly metadata: FieldRef<"geofences", 'Json'> readonly created_at: FieldRef<"geofences", 'DateTime'> readonly updated_at: FieldRef<"geofences", 'DateTime'> readonly created_by: FieldRef<"geofences", 'String'> readonly updated_by: FieldRef<"geofences", 'String'> } // Custom InputTypes /** * geofences findUnique */ export type geofencesFindUniqueArgs = { /** * Select specific fields to fetch from the geofences */ select?: geofencesSelect | null /** * Omit specific fields from the geofences */ omit?: geofencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofencesInclude | null /** * Filter, which geofences to fetch. */ where: geofencesWhereUniqueInput } /** * geofences findUniqueOrThrow */ export type geofencesFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the geofences */ select?: geofencesSelect | null /** * Omit specific fields from the geofences */ omit?: geofencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofencesInclude | null /** * Filter, which geofences to fetch. */ where: geofencesWhereUniqueInput } /** * geofences findFirst */ export type geofencesFindFirstArgs = { /** * Select specific fields to fetch from the geofences */ select?: geofencesSelect | null /** * Omit specific fields from the geofences */ omit?: geofencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofencesInclude | null /** * Filter, which geofences to fetch. */ where?: geofencesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of geofences to fetch. */ orderBy?: geofencesOrderByWithRelationInput | geofencesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for geofences. */ cursor?: geofencesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` geofences 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` geofences. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of geofences. */ distinct?: GeofencesScalarFieldEnum | GeofencesScalarFieldEnum[] } /** * geofences findFirstOrThrow */ export type geofencesFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the geofences */ select?: geofencesSelect | null /** * Omit specific fields from the geofences */ omit?: geofencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofencesInclude | null /** * Filter, which geofences to fetch. */ where?: geofencesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of geofences to fetch. */ orderBy?: geofencesOrderByWithRelationInput | geofencesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for geofences. */ cursor?: geofencesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` geofences 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` geofences. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of geofences. */ distinct?: GeofencesScalarFieldEnum | GeofencesScalarFieldEnum[] } /** * geofences findMany */ export type geofencesFindManyArgs = { /** * Select specific fields to fetch from the geofences */ select?: geofencesSelect | null /** * Omit specific fields from the geofences */ omit?: geofencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofencesInclude | null /** * Filter, which geofences to fetch. */ where?: geofencesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of geofences to fetch. */ orderBy?: geofencesOrderByWithRelationInput | geofencesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing geofences. */ cursor?: geofencesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` geofences 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` geofences. */ skip?: number distinct?: GeofencesScalarFieldEnum | GeofencesScalarFieldEnum[] } /** * geofences create */ export type geofencesCreateArgs = { /** * Select specific fields to fetch from the geofences */ select?: geofencesSelect | null /** * Omit specific fields from the geofences */ omit?: geofencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofencesInclude | null /** * The data needed to create a geofences. */ data: XOR } /** * geofences createMany */ export type geofencesCreateManyArgs = { /** * The data used to create many geofences. */ data: geofencesCreateManyInput | geofencesCreateManyInput[] skipDuplicates?: boolean } /** * geofences update */ export type geofencesUpdateArgs = { /** * Select specific fields to fetch from the geofences */ select?: geofencesSelect | null /** * Omit specific fields from the geofences */ omit?: geofencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofencesInclude | null /** * The data needed to update a geofences. */ data: XOR /** * Choose, which geofences to update. */ where: geofencesWhereUniqueInput } /** * geofences updateMany */ export type geofencesUpdateManyArgs = { /** * The data used to update geofences. */ data: XOR /** * Filter which geofences to update */ where?: geofencesWhereInput /** * Limit how many geofences to update. */ limit?: number } /** * geofences upsert */ export type geofencesUpsertArgs = { /** * Select specific fields to fetch from the geofences */ select?: geofencesSelect | null /** * Omit specific fields from the geofences */ omit?: geofencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofencesInclude | null /** * The filter to search for the geofences to update in case it exists. */ where: geofencesWhereUniqueInput /** * In case the geofences found by the `where` argument doesn't exist, create a new geofences with this data. */ create: XOR /** * In case the geofences was found with the provided `where` argument, update it with this data. */ update: XOR } /** * geofences delete */ export type geofencesDeleteArgs = { /** * Select specific fields to fetch from the geofences */ select?: geofencesSelect | null /** * Omit specific fields from the geofences */ omit?: geofencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofencesInclude | null /** * Filter which geofences to delete. */ where: geofencesWhereUniqueInput } /** * geofences deleteMany */ export type geofencesDeleteManyArgs = { /** * Filter which geofences to delete */ where?: geofencesWhereInput /** * Limit how many geofences to delete. */ limit?: number } /** * geofences.geofence_breaches */ export type geofences$geofence_breachesArgs = { /** * Select specific fields to fetch from the geofence_breaches */ select?: geofence_breachesSelect | null /** * Omit specific fields from the geofence_breaches */ omit?: geofence_breachesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofence_breachesInclude | null where?: geofence_breachesWhereInput orderBy?: geofence_breachesOrderByWithRelationInput | geofence_breachesOrderByWithRelationInput[] cursor?: geofence_breachesWhereUniqueInput take?: number skip?: number distinct?: Geofence_breachesScalarFieldEnum | Geofence_breachesScalarFieldEnum[] } /** * geofences.incidents */ export type geofences$incidentsArgs = { /** * Select specific fields to fetch from the incidents */ select?: incidentsSelect | null /** * Omit specific fields from the incidents */ omit?: incidentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: incidentsInclude | null where?: incidentsWhereInput orderBy?: incidentsOrderByWithRelationInput | incidentsOrderByWithRelationInput[] cursor?: incidentsWhereUniqueInput take?: number skip?: number distinct?: IncidentsScalarFieldEnum | IncidentsScalarFieldEnum[] } /** * geofences.map_pins */ export type geofences$map_pinsArgs = { /** * Select specific fields to fetch from the map_pins */ select?: map_pinsSelect | null /** * Omit specific fields from the map_pins */ omit?: map_pinsOmit | null /** * Choose, which related nodes to fetch as well */ include?: map_pinsInclude | null where?: map_pinsWhereInput orderBy?: map_pinsOrderByWithRelationInput | map_pinsOrderByWithRelationInput[] cursor?: map_pinsWhereUniqueInput take?: number skip?: number distinct?: Map_pinsScalarFieldEnum | Map_pinsScalarFieldEnum[] } /** * geofences without action */ export type geofencesDefaultArgs = { /** * Select specific fields to fetch from the geofences */ select?: geofencesSelect | null /** * Omit specific fields from the geofences */ omit?: geofencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofencesInclude | null } /** * Model houses */ export type AggregateHouses = { _count: HousesCountAggregateOutputType | null _min: HousesMinAggregateOutputType | null _max: HousesMaxAggregateOutputType | null } export type HousesMinAggregateOutputType = { id: string | null house_number: string | null block: string | null street: string | null owner_name: string | null owner_phone: string | null status: $Enums.houses_status | null perumahan_id: string | null created_at: Date | null updated_at: Date | null } export type HousesMaxAggregateOutputType = { id: string | null house_number: string | null block: string | null street: string | null owner_name: string | null owner_phone: string | null status: $Enums.houses_status | null perumahan_id: string | null created_at: Date | null updated_at: Date | null } export type HousesCountAggregateOutputType = { id: number house_number: number block: number street: number owner_name: number owner_phone: number status: number perumahan_id: number created_at: number updated_at: number _all: number } export type HousesMinAggregateInputType = { id?: true house_number?: true block?: true street?: true owner_name?: true owner_phone?: true status?: true perumahan_id?: true created_at?: true updated_at?: true } export type HousesMaxAggregateInputType = { id?: true house_number?: true block?: true street?: true owner_name?: true owner_phone?: true status?: true perumahan_id?: true created_at?: true updated_at?: true } export type HousesCountAggregateInputType = { id?: true house_number?: true block?: true street?: true owner_name?: true owner_phone?: true status?: true perumahan_id?: true created_at?: true updated_at?: true _all?: true } export type HousesAggregateArgs = { /** * Filter which houses to aggregate. */ where?: housesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of houses to fetch. */ orderBy?: housesOrderByWithRelationInput | housesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: housesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` houses 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` houses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned houses **/ _count?: true | HousesCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: HousesMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: HousesMaxAggregateInputType } export type GetHousesAggregateType = { [P in keyof T & keyof AggregateHouses]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type housesGroupByArgs = { where?: housesWhereInput orderBy?: housesOrderByWithAggregationInput | housesOrderByWithAggregationInput[] by: HousesScalarFieldEnum[] | HousesScalarFieldEnum having?: housesScalarWhereWithAggregatesInput take?: number skip?: number _count?: HousesCountAggregateInputType | true _min?: HousesMinAggregateInputType _max?: HousesMaxAggregateInputType } export type HousesGroupByOutputType = { id: string house_number: string block: string street: string owner_name: string owner_phone: string status: $Enums.houses_status | null perumahan_id: string | null created_at: Date | null updated_at: Date | null _count: HousesCountAggregateOutputType | null _min: HousesMinAggregateOutputType | null _max: HousesMaxAggregateOutputType | null } type GetHousesGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof HousesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type housesSelect = $Extensions.GetSelect<{ id?: boolean house_number?: boolean block?: boolean street?: boolean owner_name?: boolean owner_phone?: boolean status?: boolean perumahan_id?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["houses"]> export type housesSelectScalar = { id?: boolean house_number?: boolean block?: boolean street?: boolean owner_name?: boolean owner_phone?: boolean status?: boolean perumahan_id?: boolean created_at?: boolean updated_at?: boolean } export type housesOmit = $Extensions.GetOmit<"id" | "house_number" | "block" | "street" | "owner_name" | "owner_phone" | "status" | "perumahan_id" | "created_at" | "updated_at", ExtArgs["result"]["houses"]> export type $housesPayload = { name: "houses" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string house_number: string block: string street: string owner_name: string owner_phone: string status: $Enums.houses_status | null perumahan_id: string | null created_at: Date | null updated_at: Date | null }, ExtArgs["result"]["houses"]> composites: {} } type housesGetPayload = $Result.GetResult type housesCountArgs = Omit & { select?: HousesCountAggregateInputType | true } export interface housesDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['houses'], meta: { name: 'houses' } } /** * Find zero or one Houses that matches the filter. * @param {housesFindUniqueArgs} args - Arguments to find a Houses * @example * // Get one Houses * const houses = await prisma.houses.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__housesClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Houses that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {housesFindUniqueOrThrowArgs} args - Arguments to find a Houses * @example * // Get one Houses * const houses = await prisma.houses.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__housesClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Houses 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 {housesFindFirstArgs} args - Arguments to find a Houses * @example * // Get one Houses * const houses = await prisma.houses.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__housesClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Houses 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 {housesFindFirstOrThrowArgs} args - Arguments to find a Houses * @example * // Get one Houses * const houses = await prisma.houses.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__housesClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Houses 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 {housesFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Houses * const houses = await prisma.houses.findMany() * * // Get first 10 Houses * const houses = await prisma.houses.findMany({ take: 10 }) * * // Only select the `id` * const housesWithIdOnly = await prisma.houses.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Houses. * @param {housesCreateArgs} args - Arguments to create a Houses. * @example * // Create one Houses * const Houses = await prisma.houses.create({ * data: { * // ... data to create a Houses * } * }) * */ create(args: SelectSubset>): Prisma__housesClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Houses. * @param {housesCreateManyArgs} args - Arguments to create many Houses. * @example * // Create many Houses * const houses = await prisma.houses.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Houses. * @param {housesDeleteArgs} args - Arguments to delete one Houses. * @example * // Delete one Houses * const Houses = await prisma.houses.delete({ * where: { * // ... filter to delete one Houses * } * }) * */ delete(args: SelectSubset>): Prisma__housesClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Houses. * @param {housesUpdateArgs} args - Arguments to update one Houses. * @example * // Update one Houses * const houses = await prisma.houses.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__housesClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Houses. * @param {housesDeleteManyArgs} args - Arguments to filter Houses to delete. * @example * // Delete a few Houses * const { count } = await prisma.houses.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Houses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {housesUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Houses * const houses = await prisma.houses.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Houses. * @param {housesUpsertArgs} args - Arguments to update or create a Houses. * @example * // Update or create a Houses * const houses = await prisma.houses.upsert({ * create: { * // ... data to create a Houses * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Houses we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__housesClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Houses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {housesCountArgs} args - Arguments to filter Houses to count. * @example * // Count the number of Houses * const count = await prisma.houses.count({ * where: { * // ... the filter for the Houses 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 Houses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {HousesAggregateArgs} 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 Houses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {housesGroupByArgs} 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 housesGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: housesGroupByArgs['orderBy'] } : { orderBy?: housesGroupByArgs['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 ? GetHousesGroupByPayload : Prisma.PrismaPromise /** * Fields of the houses model */ readonly fields: housesFieldRefs; } /** * The delegate class that acts as a "Promise-like" for houses. * 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__housesClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the houses model */ interface housesFieldRefs { readonly id: FieldRef<"houses", 'String'> readonly house_number: FieldRef<"houses", 'String'> readonly block: FieldRef<"houses", 'String'> readonly street: FieldRef<"houses", 'String'> readonly owner_name: FieldRef<"houses", 'String'> readonly owner_phone: FieldRef<"houses", 'String'> readonly status: FieldRef<"houses", 'houses_status'> readonly perumahan_id: FieldRef<"houses", 'String'> readonly created_at: FieldRef<"houses", 'DateTime'> readonly updated_at: FieldRef<"houses", 'DateTime'> } // Custom InputTypes /** * houses findUnique */ export type housesFindUniqueArgs = { /** * Select specific fields to fetch from the houses */ select?: housesSelect | null /** * Omit specific fields from the houses */ omit?: housesOmit | null /** * Filter, which houses to fetch. */ where: housesWhereUniqueInput } /** * houses findUniqueOrThrow */ export type housesFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the houses */ select?: housesSelect | null /** * Omit specific fields from the houses */ omit?: housesOmit | null /** * Filter, which houses to fetch. */ where: housesWhereUniqueInput } /** * houses findFirst */ export type housesFindFirstArgs = { /** * Select specific fields to fetch from the houses */ select?: housesSelect | null /** * Omit specific fields from the houses */ omit?: housesOmit | null /** * Filter, which houses to fetch. */ where?: housesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of houses to fetch. */ orderBy?: housesOrderByWithRelationInput | housesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for houses. */ cursor?: housesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` houses 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` houses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of houses. */ distinct?: HousesScalarFieldEnum | HousesScalarFieldEnum[] } /** * houses findFirstOrThrow */ export type housesFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the houses */ select?: housesSelect | null /** * Omit specific fields from the houses */ omit?: housesOmit | null /** * Filter, which houses to fetch. */ where?: housesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of houses to fetch. */ orderBy?: housesOrderByWithRelationInput | housesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for houses. */ cursor?: housesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` houses 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` houses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of houses. */ distinct?: HousesScalarFieldEnum | HousesScalarFieldEnum[] } /** * houses findMany */ export type housesFindManyArgs = { /** * Select specific fields to fetch from the houses */ select?: housesSelect | null /** * Omit specific fields from the houses */ omit?: housesOmit | null /** * Filter, which houses to fetch. */ where?: housesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of houses to fetch. */ orderBy?: housesOrderByWithRelationInput | housesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing houses. */ cursor?: housesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` houses 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` houses. */ skip?: number distinct?: HousesScalarFieldEnum | HousesScalarFieldEnum[] } /** * houses create */ export type housesCreateArgs = { /** * Select specific fields to fetch from the houses */ select?: housesSelect | null /** * Omit specific fields from the houses */ omit?: housesOmit | null /** * The data needed to create a houses. */ data: XOR } /** * houses createMany */ export type housesCreateManyArgs = { /** * The data used to create many houses. */ data: housesCreateManyInput | housesCreateManyInput[] skipDuplicates?: boolean } /** * houses update */ export type housesUpdateArgs = { /** * Select specific fields to fetch from the houses */ select?: housesSelect | null /** * Omit specific fields from the houses */ omit?: housesOmit | null /** * The data needed to update a houses. */ data: XOR /** * Choose, which houses to update. */ where: housesWhereUniqueInput } /** * houses updateMany */ export type housesUpdateManyArgs = { /** * The data used to update houses. */ data: XOR /** * Filter which houses to update */ where?: housesWhereInput /** * Limit how many houses to update. */ limit?: number } /** * houses upsert */ export type housesUpsertArgs = { /** * Select specific fields to fetch from the houses */ select?: housesSelect | null /** * Omit specific fields from the houses */ omit?: housesOmit | null /** * The filter to search for the houses to update in case it exists. */ where: housesWhereUniqueInput /** * In case the houses found by the `where` argument doesn't exist, create a new houses with this data. */ create: XOR /** * In case the houses was found with the provided `where` argument, update it with this data. */ update: XOR } /** * houses delete */ export type housesDeleteArgs = { /** * Select specific fields to fetch from the houses */ select?: housesSelect | null /** * Omit specific fields from the houses */ omit?: housesOmit | null /** * Filter which houses to delete. */ where: housesWhereUniqueInput } /** * houses deleteMany */ export type housesDeleteManyArgs = { /** * Filter which houses to delete */ where?: housesWhereInput /** * Limit how many houses to delete. */ limit?: number } /** * houses without action */ export type housesDefaultArgs = { /** * Select specific fields to fetch from the houses */ select?: housesSelect | null /** * Omit specific fields from the houses */ omit?: housesOmit | null } /** * Model incident_updates */ export type AggregateIncident_updates = { _count: Incident_updatesCountAggregateOutputType | null _min: Incident_updatesMinAggregateOutputType | null _max: Incident_updatesMaxAggregateOutputType | null } export type Incident_updatesMinAggregateOutputType = { id: string | null incident_id: string | null update_type: string | null title: string | null description: string | null is_internal: boolean | null is_system_generated: boolean | null created_at: Date | null created_by: string | null notification_status: string | null } export type Incident_updatesMaxAggregateOutputType = { id: string | null incident_id: string | null update_type: string | null title: string | null description: string | null is_internal: boolean | null is_system_generated: boolean | null created_at: Date | null created_by: string | null notification_status: string | null } export type Incident_updatesCountAggregateOutputType = { id: number incident_id: number update_type: number title: number description: number old_values: number new_values: number changed_fields: number is_internal: number is_system_generated: number attachments: number created_at: number created_by: number notifications_sent: number notification_status: number _all: number } export type Incident_updatesMinAggregateInputType = { id?: true incident_id?: true update_type?: true title?: true description?: true is_internal?: true is_system_generated?: true created_at?: true created_by?: true notification_status?: true } export type Incident_updatesMaxAggregateInputType = { id?: true incident_id?: true update_type?: true title?: true description?: true is_internal?: true is_system_generated?: true created_at?: true created_by?: true notification_status?: true } export type Incident_updatesCountAggregateInputType = { id?: true incident_id?: true update_type?: true title?: true description?: true old_values?: true new_values?: true changed_fields?: true is_internal?: true is_system_generated?: true attachments?: true created_at?: true created_by?: true notifications_sent?: true notification_status?: true _all?: true } export type Incident_updatesAggregateArgs = { /** * Filter which incident_updates to aggregate. */ where?: incident_updatesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of incident_updates to fetch. */ orderBy?: incident_updatesOrderByWithRelationInput | incident_updatesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: incident_updatesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` incident_updates 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` incident_updates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned incident_updates **/ _count?: true | Incident_updatesCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Incident_updatesMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Incident_updatesMaxAggregateInputType } export type GetIncident_updatesAggregateType = { [P in keyof T & keyof AggregateIncident_updates]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type incident_updatesGroupByArgs = { where?: incident_updatesWhereInput orderBy?: incident_updatesOrderByWithAggregationInput | incident_updatesOrderByWithAggregationInput[] by: Incident_updatesScalarFieldEnum[] | Incident_updatesScalarFieldEnum having?: incident_updatesScalarWhereWithAggregatesInput take?: number skip?: number _count?: Incident_updatesCountAggregateInputType | true _min?: Incident_updatesMinAggregateInputType _max?: Incident_updatesMaxAggregateInputType } export type Incident_updatesGroupByOutputType = { id: string incident_id: string update_type: string title: string | null description: string | null old_values: JsonValue | null new_values: JsonValue | null changed_fields: JsonValue | null is_internal: boolean | null is_system_generated: boolean | null attachments: JsonValue | null created_at: Date | null created_by: string notifications_sent: JsonValue | null notification_status: string | null _count: Incident_updatesCountAggregateOutputType | null _min: Incident_updatesMinAggregateOutputType | null _max: Incident_updatesMaxAggregateOutputType | null } type GetIncident_updatesGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Incident_updatesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type incident_updatesSelect = $Extensions.GetSelect<{ id?: boolean incident_id?: boolean update_type?: boolean title?: boolean description?: boolean old_values?: boolean new_values?: boolean changed_fields?: boolean is_internal?: boolean is_system_generated?: boolean attachments?: boolean created_at?: boolean created_by?: boolean notifications_sent?: boolean notification_status?: boolean incidents?: boolean | incidentsDefaultArgs }, ExtArgs["result"]["incident_updates"]> export type incident_updatesSelectScalar = { id?: boolean incident_id?: boolean update_type?: boolean title?: boolean description?: boolean old_values?: boolean new_values?: boolean changed_fields?: boolean is_internal?: boolean is_system_generated?: boolean attachments?: boolean created_at?: boolean created_by?: boolean notifications_sent?: boolean notification_status?: boolean } export type incident_updatesOmit = $Extensions.GetOmit<"id" | "incident_id" | "update_type" | "title" | "description" | "old_values" | "new_values" | "changed_fields" | "is_internal" | "is_system_generated" | "attachments" | "created_at" | "created_by" | "notifications_sent" | "notification_status", ExtArgs["result"]["incident_updates"]> export type incident_updatesInclude = { incidents?: boolean | incidentsDefaultArgs } export type $incident_updatesPayload = { name: "incident_updates" objects: { incidents: Prisma.$incidentsPayload } scalars: $Extensions.GetPayloadResult<{ id: string incident_id: string update_type: string title: string | null description: string | null old_values: Prisma.JsonValue | null new_values: Prisma.JsonValue | null changed_fields: Prisma.JsonValue | null is_internal: boolean | null is_system_generated: boolean | null attachments: Prisma.JsonValue | null created_at: Date | null created_by: string notifications_sent: Prisma.JsonValue | null notification_status: string | null }, ExtArgs["result"]["incident_updates"]> composites: {} } type incident_updatesGetPayload = $Result.GetResult type incident_updatesCountArgs = Omit & { select?: Incident_updatesCountAggregateInputType | true } export interface incident_updatesDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['incident_updates'], meta: { name: 'incident_updates' } } /** * Find zero or one Incident_updates that matches the filter. * @param {incident_updatesFindUniqueArgs} args - Arguments to find a Incident_updates * @example * // Get one Incident_updates * const incident_updates = await prisma.incident_updates.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__incident_updatesClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Incident_updates that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {incident_updatesFindUniqueOrThrowArgs} args - Arguments to find a Incident_updates * @example * // Get one Incident_updates * const incident_updates = await prisma.incident_updates.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__incident_updatesClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Incident_updates 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 {incident_updatesFindFirstArgs} args - Arguments to find a Incident_updates * @example * // Get one Incident_updates * const incident_updates = await prisma.incident_updates.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__incident_updatesClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Incident_updates 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 {incident_updatesFindFirstOrThrowArgs} args - Arguments to find a Incident_updates * @example * // Get one Incident_updates * const incident_updates = await prisma.incident_updates.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__incident_updatesClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Incident_updates 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 {incident_updatesFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Incident_updates * const incident_updates = await prisma.incident_updates.findMany() * * // Get first 10 Incident_updates * const incident_updates = await prisma.incident_updates.findMany({ take: 10 }) * * // Only select the `id` * const incident_updatesWithIdOnly = await prisma.incident_updates.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Incident_updates. * @param {incident_updatesCreateArgs} args - Arguments to create a Incident_updates. * @example * // Create one Incident_updates * const Incident_updates = await prisma.incident_updates.create({ * data: { * // ... data to create a Incident_updates * } * }) * */ create(args: SelectSubset>): Prisma__incident_updatesClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Incident_updates. * @param {incident_updatesCreateManyArgs} args - Arguments to create many Incident_updates. * @example * // Create many Incident_updates * const incident_updates = await prisma.incident_updates.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Incident_updates. * @param {incident_updatesDeleteArgs} args - Arguments to delete one Incident_updates. * @example * // Delete one Incident_updates * const Incident_updates = await prisma.incident_updates.delete({ * where: { * // ... filter to delete one Incident_updates * } * }) * */ delete(args: SelectSubset>): Prisma__incident_updatesClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Incident_updates. * @param {incident_updatesUpdateArgs} args - Arguments to update one Incident_updates. * @example * // Update one Incident_updates * const incident_updates = await prisma.incident_updates.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__incident_updatesClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Incident_updates. * @param {incident_updatesDeleteManyArgs} args - Arguments to filter Incident_updates to delete. * @example * // Delete a few Incident_updates * const { count } = await prisma.incident_updates.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Incident_updates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {incident_updatesUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Incident_updates * const incident_updates = await prisma.incident_updates.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Incident_updates. * @param {incident_updatesUpsertArgs} args - Arguments to update or create a Incident_updates. * @example * // Update or create a Incident_updates * const incident_updates = await prisma.incident_updates.upsert({ * create: { * // ... data to create a Incident_updates * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Incident_updates we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__incident_updatesClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Incident_updates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {incident_updatesCountArgs} args - Arguments to filter Incident_updates to count. * @example * // Count the number of Incident_updates * const count = await prisma.incident_updates.count({ * where: { * // ... the filter for the Incident_updates 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 Incident_updates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Incident_updatesAggregateArgs} 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 Incident_updates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {incident_updatesGroupByArgs} 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 incident_updatesGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: incident_updatesGroupByArgs['orderBy'] } : { orderBy?: incident_updatesGroupByArgs['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 ? GetIncident_updatesGroupByPayload : Prisma.PrismaPromise /** * Fields of the incident_updates model */ readonly fields: incident_updatesFieldRefs; } /** * The delegate class that acts as a "Promise-like" for incident_updates. * 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__incident_updatesClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" incidents = {}>(args?: Subset>): Prisma__incidentsClient<$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 incident_updates model */ interface incident_updatesFieldRefs { readonly id: FieldRef<"incident_updates", 'String'> readonly incident_id: FieldRef<"incident_updates", 'String'> readonly update_type: FieldRef<"incident_updates", 'String'> readonly title: FieldRef<"incident_updates", 'String'> readonly description: FieldRef<"incident_updates", 'String'> readonly old_values: FieldRef<"incident_updates", 'Json'> readonly new_values: FieldRef<"incident_updates", 'Json'> readonly changed_fields: FieldRef<"incident_updates", 'Json'> readonly is_internal: FieldRef<"incident_updates", 'Boolean'> readonly is_system_generated: FieldRef<"incident_updates", 'Boolean'> readonly attachments: FieldRef<"incident_updates", 'Json'> readonly created_at: FieldRef<"incident_updates", 'DateTime'> readonly created_by: FieldRef<"incident_updates", 'String'> readonly notifications_sent: FieldRef<"incident_updates", 'Json'> readonly notification_status: FieldRef<"incident_updates", 'String'> } // Custom InputTypes /** * incident_updates findUnique */ export type incident_updatesFindUniqueArgs = { /** * Select specific fields to fetch from the incident_updates */ select?: incident_updatesSelect | null /** * Omit specific fields from the incident_updates */ omit?: incident_updatesOmit | null /** * Choose, which related nodes to fetch as well */ include?: incident_updatesInclude | null /** * Filter, which incident_updates to fetch. */ where: incident_updatesWhereUniqueInput } /** * incident_updates findUniqueOrThrow */ export type incident_updatesFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the incident_updates */ select?: incident_updatesSelect | null /** * Omit specific fields from the incident_updates */ omit?: incident_updatesOmit | null /** * Choose, which related nodes to fetch as well */ include?: incident_updatesInclude | null /** * Filter, which incident_updates to fetch. */ where: incident_updatesWhereUniqueInput } /** * incident_updates findFirst */ export type incident_updatesFindFirstArgs = { /** * Select specific fields to fetch from the incident_updates */ select?: incident_updatesSelect | null /** * Omit specific fields from the incident_updates */ omit?: incident_updatesOmit | null /** * Choose, which related nodes to fetch as well */ include?: incident_updatesInclude | null /** * Filter, which incident_updates to fetch. */ where?: incident_updatesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of incident_updates to fetch. */ orderBy?: incident_updatesOrderByWithRelationInput | incident_updatesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for incident_updates. */ cursor?: incident_updatesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` incident_updates 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` incident_updates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of incident_updates. */ distinct?: Incident_updatesScalarFieldEnum | Incident_updatesScalarFieldEnum[] } /** * incident_updates findFirstOrThrow */ export type incident_updatesFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the incident_updates */ select?: incident_updatesSelect | null /** * Omit specific fields from the incident_updates */ omit?: incident_updatesOmit | null /** * Choose, which related nodes to fetch as well */ include?: incident_updatesInclude | null /** * Filter, which incident_updates to fetch. */ where?: incident_updatesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of incident_updates to fetch. */ orderBy?: incident_updatesOrderByWithRelationInput | incident_updatesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for incident_updates. */ cursor?: incident_updatesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` incident_updates 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` incident_updates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of incident_updates. */ distinct?: Incident_updatesScalarFieldEnum | Incident_updatesScalarFieldEnum[] } /** * incident_updates findMany */ export type incident_updatesFindManyArgs = { /** * Select specific fields to fetch from the incident_updates */ select?: incident_updatesSelect | null /** * Omit specific fields from the incident_updates */ omit?: incident_updatesOmit | null /** * Choose, which related nodes to fetch as well */ include?: incident_updatesInclude | null /** * Filter, which incident_updates to fetch. */ where?: incident_updatesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of incident_updates to fetch. */ orderBy?: incident_updatesOrderByWithRelationInput | incident_updatesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing incident_updates. */ cursor?: incident_updatesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` incident_updates 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` incident_updates. */ skip?: number distinct?: Incident_updatesScalarFieldEnum | Incident_updatesScalarFieldEnum[] } /** * incident_updates create */ export type incident_updatesCreateArgs = { /** * Select specific fields to fetch from the incident_updates */ select?: incident_updatesSelect | null /** * Omit specific fields from the incident_updates */ omit?: incident_updatesOmit | null /** * Choose, which related nodes to fetch as well */ include?: incident_updatesInclude | null /** * The data needed to create a incident_updates. */ data: XOR } /** * incident_updates createMany */ export type incident_updatesCreateManyArgs = { /** * The data used to create many incident_updates. */ data: incident_updatesCreateManyInput | incident_updatesCreateManyInput[] skipDuplicates?: boolean } /** * incident_updates update */ export type incident_updatesUpdateArgs = { /** * Select specific fields to fetch from the incident_updates */ select?: incident_updatesSelect | null /** * Omit specific fields from the incident_updates */ omit?: incident_updatesOmit | null /** * Choose, which related nodes to fetch as well */ include?: incident_updatesInclude | null /** * The data needed to update a incident_updates. */ data: XOR /** * Choose, which incident_updates to update. */ where: incident_updatesWhereUniqueInput } /** * incident_updates updateMany */ export type incident_updatesUpdateManyArgs = { /** * The data used to update incident_updates. */ data: XOR /** * Filter which incident_updates to update */ where?: incident_updatesWhereInput /** * Limit how many incident_updates to update. */ limit?: number } /** * incident_updates upsert */ export type incident_updatesUpsertArgs = { /** * Select specific fields to fetch from the incident_updates */ select?: incident_updatesSelect | null /** * Omit specific fields from the incident_updates */ omit?: incident_updatesOmit | null /** * Choose, which related nodes to fetch as well */ include?: incident_updatesInclude | null /** * The filter to search for the incident_updates to update in case it exists. */ where: incident_updatesWhereUniqueInput /** * In case the incident_updates found by the `where` argument doesn't exist, create a new incident_updates with this data. */ create: XOR /** * In case the incident_updates was found with the provided `where` argument, update it with this data. */ update: XOR } /** * incident_updates delete */ export type incident_updatesDeleteArgs = { /** * Select specific fields to fetch from the incident_updates */ select?: incident_updatesSelect | null /** * Omit specific fields from the incident_updates */ omit?: incident_updatesOmit | null /** * Choose, which related nodes to fetch as well */ include?: incident_updatesInclude | null /** * Filter which incident_updates to delete. */ where: incident_updatesWhereUniqueInput } /** * incident_updates deleteMany */ export type incident_updatesDeleteManyArgs = { /** * Filter which incident_updates to delete */ where?: incident_updatesWhereInput /** * Limit how many incident_updates to delete. */ limit?: number } /** * incident_updates without action */ export type incident_updatesDefaultArgs = { /** * Select specific fields to fetch from the incident_updates */ select?: incident_updatesSelect | null /** * Omit specific fields from the incident_updates */ omit?: incident_updatesOmit | null /** * Choose, which related nodes to fetch as well */ include?: incident_updatesInclude | null } /** * Model incidents */ export type AggregateIncidents = { _count: IncidentsCountAggregateOutputType | null _avg: IncidentsAvgAggregateOutputType | null _sum: IncidentsSumAggregateOutputType | null _min: IncidentsMinAggregateOutputType | null _max: IncidentsMaxAggregateOutputType | null } export type IncidentsAvgAggregateOutputType = { coordinates_lat: Decimal | null coordinates_lng: Decimal | null } export type IncidentsSumAggregateOutputType = { coordinates_lat: Decimal | null coordinates_lng: Decimal | null } export type IncidentsMinAggregateOutputType = { id: string | null incident_number: string | null title: string | null description: string | null type: string | null severity: string | null priority: string | null status: string | null coordinates_lat: Decimal | null coordinates_lng: Decimal | null address: string | null zone: string | null building: string | null floor: string | null room: string | null reported_by: string | null reporter_name: string | null reporter_contact: string | null reporter_type: string | null assigned_to: string | null assigned_team: string | null assigned_at: Date | null occurred_at: Date | null reported_at: Date | null acknowledged_at: Date | null resolved_at: Date | null closed_at: Date | null due_date: Date | null geofence_id: string | null alert_id: string | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null deleted_at: Date | null deleted_by: string | null } export type IncidentsMaxAggregateOutputType = { id: string | null incident_number: string | null title: string | null description: string | null type: string | null severity: string | null priority: string | null status: string | null coordinates_lat: Decimal | null coordinates_lng: Decimal | null address: string | null zone: string | null building: string | null floor: string | null room: string | null reported_by: string | null reporter_name: string | null reporter_contact: string | null reporter_type: string | null assigned_to: string | null assigned_team: string | null assigned_at: Date | null occurred_at: Date | null reported_at: Date | null acknowledged_at: Date | null resolved_at: Date | null closed_at: Date | null due_date: Date | null geofence_id: string | null alert_id: string | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null deleted_at: Date | null deleted_by: string | null } export type IncidentsCountAggregateOutputType = { id: number incident_number: number title: number description: number type: number severity: number priority: number status: number location: number coordinates_lat: number coordinates_lng: number address: number zone: number building: number floor: number room: number reported_by: number reporter_name: number reporter_contact: number reporter_type: number assigned_to: number assigned_team: number assigned_at: number occurred_at: number reported_at: number acknowledged_at: number resolved_at: number closed_at: number due_date: number tags: number attachments: number evidence: number witnesses: number related_incidents: number camera_ids: number geofence_id: number alert_id: number metadata: number custom_fields: number created_at: number updated_at: number created_by: number updated_by: number deleted_at: number deleted_by: number _all: number } export type IncidentsAvgAggregateInputType = { coordinates_lat?: true coordinates_lng?: true } export type IncidentsSumAggregateInputType = { coordinates_lat?: true coordinates_lng?: true } export type IncidentsMinAggregateInputType = { id?: true incident_number?: true title?: true description?: true type?: true severity?: true priority?: true status?: true coordinates_lat?: true coordinates_lng?: true address?: true zone?: true building?: true floor?: true room?: true reported_by?: true reporter_name?: true reporter_contact?: true reporter_type?: true assigned_to?: true assigned_team?: true assigned_at?: true occurred_at?: true reported_at?: true acknowledged_at?: true resolved_at?: true closed_at?: true due_date?: true geofence_id?: true alert_id?: true created_at?: true updated_at?: true created_by?: true updated_by?: true deleted_at?: true deleted_by?: true } export type IncidentsMaxAggregateInputType = { id?: true incident_number?: true title?: true description?: true type?: true severity?: true priority?: true status?: true coordinates_lat?: true coordinates_lng?: true address?: true zone?: true building?: true floor?: true room?: true reported_by?: true reporter_name?: true reporter_contact?: true reporter_type?: true assigned_to?: true assigned_team?: true assigned_at?: true occurred_at?: true reported_at?: true acknowledged_at?: true resolved_at?: true closed_at?: true due_date?: true geofence_id?: true alert_id?: true created_at?: true updated_at?: true created_by?: true updated_by?: true deleted_at?: true deleted_by?: true } export type IncidentsCountAggregateInputType = { id?: true incident_number?: true title?: true description?: true type?: true severity?: true priority?: true status?: true location?: true coordinates_lat?: true coordinates_lng?: true address?: true zone?: true building?: true floor?: true room?: true reported_by?: true reporter_name?: true reporter_contact?: true reporter_type?: true assigned_to?: true assigned_team?: true assigned_at?: true occurred_at?: true reported_at?: true acknowledged_at?: true resolved_at?: true closed_at?: true due_date?: true tags?: true attachments?: true evidence?: true witnesses?: true related_incidents?: true camera_ids?: true geofence_id?: true alert_id?: true metadata?: true custom_fields?: true created_at?: true updated_at?: true created_by?: true updated_by?: true deleted_at?: true deleted_by?: true _all?: true } export type IncidentsAggregateArgs = { /** * Filter which incidents to aggregate. */ where?: incidentsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of incidents to fetch. */ orderBy?: incidentsOrderByWithRelationInput | incidentsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: incidentsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` incidents 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` incidents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned incidents **/ _count?: true | IncidentsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: IncidentsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: IncidentsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: IncidentsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: IncidentsMaxAggregateInputType } export type GetIncidentsAggregateType = { [P in keyof T & keyof AggregateIncidents]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type incidentsGroupByArgs = { where?: incidentsWhereInput orderBy?: incidentsOrderByWithAggregationInput | incidentsOrderByWithAggregationInput[] by: IncidentsScalarFieldEnum[] | IncidentsScalarFieldEnum having?: incidentsScalarWhereWithAggregatesInput take?: number skip?: number _count?: IncidentsCountAggregateInputType | true _avg?: IncidentsAvgAggregateInputType _sum?: IncidentsSumAggregateInputType _min?: IncidentsMinAggregateInputType _max?: IncidentsMaxAggregateInputType } export type IncidentsGroupByOutputType = { id: string incident_number: string title: string description: string | null type: string severity: string priority: string status: string location: JsonValue coordinates_lat: Decimal | null coordinates_lng: Decimal | null address: string | null zone: string | null building: string | null floor: string | null room: string | null reported_by: string | null reporter_name: string | null reporter_contact: string | null reporter_type: string | null assigned_to: string | null assigned_team: string | null assigned_at: Date | null occurred_at: Date reported_at: Date | null acknowledged_at: Date | null resolved_at: Date | null closed_at: Date | null due_date: Date | null tags: JsonValue | null attachments: JsonValue | null evidence: JsonValue | null witnesses: JsonValue | null related_incidents: JsonValue | null camera_ids: JsonValue | null geofence_id: string | null alert_id: string | null metadata: JsonValue | null custom_fields: JsonValue | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null deleted_at: Date | null deleted_by: string | null _count: IncidentsCountAggregateOutputType | null _avg: IncidentsAvgAggregateOutputType | null _sum: IncidentsSumAggregateOutputType | null _min: IncidentsMinAggregateOutputType | null _max: IncidentsMaxAggregateOutputType | null } type GetIncidentsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof IncidentsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type incidentsSelect = $Extensions.GetSelect<{ id?: boolean incident_number?: boolean title?: boolean description?: boolean type?: boolean severity?: boolean priority?: boolean status?: boolean location?: boolean coordinates_lat?: boolean coordinates_lng?: boolean address?: boolean zone?: boolean building?: boolean floor?: boolean room?: boolean reported_by?: boolean reporter_name?: boolean reporter_contact?: boolean reporter_type?: boolean assigned_to?: boolean assigned_team?: boolean assigned_at?: boolean occurred_at?: boolean reported_at?: boolean acknowledged_at?: boolean resolved_at?: boolean closed_at?: boolean due_date?: boolean tags?: boolean attachments?: boolean evidence?: boolean witnesses?: boolean related_incidents?: boolean camera_ids?: boolean geofence_id?: boolean alert_id?: boolean metadata?: boolean custom_fields?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean updated_by?: boolean deleted_at?: boolean deleted_by?: boolean alerts?: boolean | incidents$alertsArgs incident_updates?: boolean | incidents$incident_updatesArgs team_members_incidents_reported_byToteam_members?: boolean | incidents$team_members_incidents_reported_byToteam_membersArgs team_members_incidents_assigned_toToteam_members?: boolean | incidents$team_members_incidents_assigned_toToteam_membersArgs geofences?: boolean | incidents$geofencesArgs _count?: boolean | IncidentsCountOutputTypeDefaultArgs }, ExtArgs["result"]["incidents"]> export type incidentsSelectScalar = { id?: boolean incident_number?: boolean title?: boolean description?: boolean type?: boolean severity?: boolean priority?: boolean status?: boolean location?: boolean coordinates_lat?: boolean coordinates_lng?: boolean address?: boolean zone?: boolean building?: boolean floor?: boolean room?: boolean reported_by?: boolean reporter_name?: boolean reporter_contact?: boolean reporter_type?: boolean assigned_to?: boolean assigned_team?: boolean assigned_at?: boolean occurred_at?: boolean reported_at?: boolean acknowledged_at?: boolean resolved_at?: boolean closed_at?: boolean due_date?: boolean tags?: boolean attachments?: boolean evidence?: boolean witnesses?: boolean related_incidents?: boolean camera_ids?: boolean geofence_id?: boolean alert_id?: boolean metadata?: boolean custom_fields?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean updated_by?: boolean deleted_at?: boolean deleted_by?: boolean } export type incidentsOmit = $Extensions.GetOmit<"id" | "incident_number" | "title" | "description" | "type" | "severity" | "priority" | "status" | "location" | "coordinates_lat" | "coordinates_lng" | "address" | "zone" | "building" | "floor" | "room" | "reported_by" | "reporter_name" | "reporter_contact" | "reporter_type" | "assigned_to" | "assigned_team" | "assigned_at" | "occurred_at" | "reported_at" | "acknowledged_at" | "resolved_at" | "closed_at" | "due_date" | "tags" | "attachments" | "evidence" | "witnesses" | "related_incidents" | "camera_ids" | "geofence_id" | "alert_id" | "metadata" | "custom_fields" | "created_at" | "updated_at" | "created_by" | "updated_by" | "deleted_at" | "deleted_by", ExtArgs["result"]["incidents"]> export type incidentsInclude = { alerts?: boolean | incidents$alertsArgs incident_updates?: boolean | incidents$incident_updatesArgs team_members_incidents_reported_byToteam_members?: boolean | incidents$team_members_incidents_reported_byToteam_membersArgs team_members_incidents_assigned_toToteam_members?: boolean | incidents$team_members_incidents_assigned_toToteam_membersArgs geofences?: boolean | incidents$geofencesArgs _count?: boolean | IncidentsCountOutputTypeDefaultArgs } export type $incidentsPayload = { name: "incidents" objects: { alerts: Prisma.$alertsPayload[] incident_updates: Prisma.$incident_updatesPayload[] team_members_incidents_reported_byToteam_members: Prisma.$team_membersPayload | null team_members_incidents_assigned_toToteam_members: Prisma.$team_membersPayload | null geofences: Prisma.$geofencesPayload | null } scalars: $Extensions.GetPayloadResult<{ id: string incident_number: string title: string description: string | null type: string severity: string priority: string status: string location: Prisma.JsonValue coordinates_lat: Prisma.Decimal | null coordinates_lng: Prisma.Decimal | null address: string | null zone: string | null building: string | null floor: string | null room: string | null reported_by: string | null reporter_name: string | null reporter_contact: string | null reporter_type: string | null assigned_to: string | null assigned_team: string | null assigned_at: Date | null occurred_at: Date reported_at: Date | null acknowledged_at: Date | null resolved_at: Date | null closed_at: Date | null due_date: Date | null tags: Prisma.JsonValue | null attachments: Prisma.JsonValue | null evidence: Prisma.JsonValue | null witnesses: Prisma.JsonValue | null related_incidents: Prisma.JsonValue | null camera_ids: Prisma.JsonValue | null geofence_id: string | null alert_id: string | null metadata: Prisma.JsonValue | null custom_fields: Prisma.JsonValue | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null deleted_at: Date | null deleted_by: string | null }, ExtArgs["result"]["incidents"]> composites: {} } type incidentsGetPayload = $Result.GetResult type incidentsCountArgs = Omit & { select?: IncidentsCountAggregateInputType | true } export interface incidentsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['incidents'], meta: { name: 'incidents' } } /** * Find zero or one Incidents that matches the filter. * @param {incidentsFindUniqueArgs} args - Arguments to find a Incidents * @example * // Get one Incidents * const incidents = await prisma.incidents.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__incidentsClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Incidents that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {incidentsFindUniqueOrThrowArgs} args - Arguments to find a Incidents * @example * // Get one Incidents * const incidents = await prisma.incidents.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__incidentsClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Incidents 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 {incidentsFindFirstArgs} args - Arguments to find a Incidents * @example * // Get one Incidents * const incidents = await prisma.incidents.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__incidentsClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Incidents 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 {incidentsFindFirstOrThrowArgs} args - Arguments to find a Incidents * @example * // Get one Incidents * const incidents = await prisma.incidents.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__incidentsClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Incidents 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 {incidentsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Incidents * const incidents = await prisma.incidents.findMany() * * // Get first 10 Incidents * const incidents = await prisma.incidents.findMany({ take: 10 }) * * // Only select the `id` * const incidentsWithIdOnly = await prisma.incidents.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Incidents. * @param {incidentsCreateArgs} args - Arguments to create a Incidents. * @example * // Create one Incidents * const Incidents = await prisma.incidents.create({ * data: { * // ... data to create a Incidents * } * }) * */ create(args: SelectSubset>): Prisma__incidentsClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Incidents. * @param {incidentsCreateManyArgs} args - Arguments to create many Incidents. * @example * // Create many Incidents * const incidents = await prisma.incidents.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Incidents. * @param {incidentsDeleteArgs} args - Arguments to delete one Incidents. * @example * // Delete one Incidents * const Incidents = await prisma.incidents.delete({ * where: { * // ... filter to delete one Incidents * } * }) * */ delete(args: SelectSubset>): Prisma__incidentsClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Incidents. * @param {incidentsUpdateArgs} args - Arguments to update one Incidents. * @example * // Update one Incidents * const incidents = await prisma.incidents.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__incidentsClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Incidents. * @param {incidentsDeleteManyArgs} args - Arguments to filter Incidents to delete. * @example * // Delete a few Incidents * const { count } = await prisma.incidents.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Incidents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {incidentsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Incidents * const incidents = await prisma.incidents.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Incidents. * @param {incidentsUpsertArgs} args - Arguments to update or create a Incidents. * @example * // Update or create a Incidents * const incidents = await prisma.incidents.upsert({ * create: { * // ... data to create a Incidents * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Incidents we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__incidentsClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Incidents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {incidentsCountArgs} args - Arguments to filter Incidents to count. * @example * // Count the number of Incidents * const count = await prisma.incidents.count({ * where: { * // ... the filter for the Incidents 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 Incidents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IncidentsAggregateArgs} 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 Incidents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {incidentsGroupByArgs} 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 incidentsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: incidentsGroupByArgs['orderBy'] } : { orderBy?: incidentsGroupByArgs['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 ? GetIncidentsGroupByPayload : Prisma.PrismaPromise /** * Fields of the incidents model */ readonly fields: incidentsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for incidents. * 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__incidentsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" alerts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> incident_updates = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> team_members_incidents_reported_byToteam_members = {}>(args?: Subset>): Prisma__team_membersClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> team_members_incidents_assigned_toToteam_members = {}>(args?: Subset>): Prisma__team_membersClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> geofences = {}>(args?: Subset>): Prisma__geofencesClient<$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 incidents model */ interface incidentsFieldRefs { readonly id: FieldRef<"incidents", 'String'> readonly incident_number: FieldRef<"incidents", 'String'> readonly title: FieldRef<"incidents", 'String'> readonly description: FieldRef<"incidents", 'String'> readonly type: FieldRef<"incidents", 'String'> readonly severity: FieldRef<"incidents", 'String'> readonly priority: FieldRef<"incidents", 'String'> readonly status: FieldRef<"incidents", 'String'> readonly location: FieldRef<"incidents", 'Json'> readonly coordinates_lat: FieldRef<"incidents", 'Decimal'> readonly coordinates_lng: FieldRef<"incidents", 'Decimal'> readonly address: FieldRef<"incidents", 'String'> readonly zone: FieldRef<"incidents", 'String'> readonly building: FieldRef<"incidents", 'String'> readonly floor: FieldRef<"incidents", 'String'> readonly room: FieldRef<"incidents", 'String'> readonly reported_by: FieldRef<"incidents", 'String'> readonly reporter_name: FieldRef<"incidents", 'String'> readonly reporter_contact: FieldRef<"incidents", 'String'> readonly reporter_type: FieldRef<"incidents", 'String'> readonly assigned_to: FieldRef<"incidents", 'String'> readonly assigned_team: FieldRef<"incidents", 'String'> readonly assigned_at: FieldRef<"incidents", 'DateTime'> readonly occurred_at: FieldRef<"incidents", 'DateTime'> readonly reported_at: FieldRef<"incidents", 'DateTime'> readonly acknowledged_at: FieldRef<"incidents", 'DateTime'> readonly resolved_at: FieldRef<"incidents", 'DateTime'> readonly closed_at: FieldRef<"incidents", 'DateTime'> readonly due_date: FieldRef<"incidents", 'DateTime'> readonly tags: FieldRef<"incidents", 'Json'> readonly attachments: FieldRef<"incidents", 'Json'> readonly evidence: FieldRef<"incidents", 'Json'> readonly witnesses: FieldRef<"incidents", 'Json'> readonly related_incidents: FieldRef<"incidents", 'Json'> readonly camera_ids: FieldRef<"incidents", 'Json'> readonly geofence_id: FieldRef<"incidents", 'String'> readonly alert_id: FieldRef<"incidents", 'String'> readonly metadata: FieldRef<"incidents", 'Json'> readonly custom_fields: FieldRef<"incidents", 'Json'> readonly created_at: FieldRef<"incidents", 'DateTime'> readonly updated_at: FieldRef<"incidents", 'DateTime'> readonly created_by: FieldRef<"incidents", 'String'> readonly updated_by: FieldRef<"incidents", 'String'> readonly deleted_at: FieldRef<"incidents", 'DateTime'> readonly deleted_by: FieldRef<"incidents", 'String'> } // Custom InputTypes /** * incidents findUnique */ export type incidentsFindUniqueArgs = { /** * Select specific fields to fetch from the incidents */ select?: incidentsSelect | null /** * Omit specific fields from the incidents */ omit?: incidentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: incidentsInclude | null /** * Filter, which incidents to fetch. */ where: incidentsWhereUniqueInput } /** * incidents findUniqueOrThrow */ export type incidentsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the incidents */ select?: incidentsSelect | null /** * Omit specific fields from the incidents */ omit?: incidentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: incidentsInclude | null /** * Filter, which incidents to fetch. */ where: incidentsWhereUniqueInput } /** * incidents findFirst */ export type incidentsFindFirstArgs = { /** * Select specific fields to fetch from the incidents */ select?: incidentsSelect | null /** * Omit specific fields from the incidents */ omit?: incidentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: incidentsInclude | null /** * Filter, which incidents to fetch. */ where?: incidentsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of incidents to fetch. */ orderBy?: incidentsOrderByWithRelationInput | incidentsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for incidents. */ cursor?: incidentsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` incidents 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` incidents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of incidents. */ distinct?: IncidentsScalarFieldEnum | IncidentsScalarFieldEnum[] } /** * incidents findFirstOrThrow */ export type incidentsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the incidents */ select?: incidentsSelect | null /** * Omit specific fields from the incidents */ omit?: incidentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: incidentsInclude | null /** * Filter, which incidents to fetch. */ where?: incidentsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of incidents to fetch. */ orderBy?: incidentsOrderByWithRelationInput | incidentsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for incidents. */ cursor?: incidentsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` incidents 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` incidents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of incidents. */ distinct?: IncidentsScalarFieldEnum | IncidentsScalarFieldEnum[] } /** * incidents findMany */ export type incidentsFindManyArgs = { /** * Select specific fields to fetch from the incidents */ select?: incidentsSelect | null /** * Omit specific fields from the incidents */ omit?: incidentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: incidentsInclude | null /** * Filter, which incidents to fetch. */ where?: incidentsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of incidents to fetch. */ orderBy?: incidentsOrderByWithRelationInput | incidentsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing incidents. */ cursor?: incidentsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` incidents 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` incidents. */ skip?: number distinct?: IncidentsScalarFieldEnum | IncidentsScalarFieldEnum[] } /** * incidents create */ export type incidentsCreateArgs = { /** * Select specific fields to fetch from the incidents */ select?: incidentsSelect | null /** * Omit specific fields from the incidents */ omit?: incidentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: incidentsInclude | null /** * The data needed to create a incidents. */ data: XOR } /** * incidents createMany */ export type incidentsCreateManyArgs = { /** * The data used to create many incidents. */ data: incidentsCreateManyInput | incidentsCreateManyInput[] skipDuplicates?: boolean } /** * incidents update */ export type incidentsUpdateArgs = { /** * Select specific fields to fetch from the incidents */ select?: incidentsSelect | null /** * Omit specific fields from the incidents */ omit?: incidentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: incidentsInclude | null /** * The data needed to update a incidents. */ data: XOR /** * Choose, which incidents to update. */ where: incidentsWhereUniqueInput } /** * incidents updateMany */ export type incidentsUpdateManyArgs = { /** * The data used to update incidents. */ data: XOR /** * Filter which incidents to update */ where?: incidentsWhereInput /** * Limit how many incidents to update. */ limit?: number } /** * incidents upsert */ export type incidentsUpsertArgs = { /** * Select specific fields to fetch from the incidents */ select?: incidentsSelect | null /** * Omit specific fields from the incidents */ omit?: incidentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: incidentsInclude | null /** * The filter to search for the incidents to update in case it exists. */ where: incidentsWhereUniqueInput /** * In case the incidents found by the `where` argument doesn't exist, create a new incidents with this data. */ create: XOR /** * In case the incidents was found with the provided `where` argument, update it with this data. */ update: XOR } /** * incidents delete */ export type incidentsDeleteArgs = { /** * Select specific fields to fetch from the incidents */ select?: incidentsSelect | null /** * Omit specific fields from the incidents */ omit?: incidentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: incidentsInclude | null /** * Filter which incidents to delete. */ where: incidentsWhereUniqueInput } /** * incidents deleteMany */ export type incidentsDeleteManyArgs = { /** * Filter which incidents to delete */ where?: incidentsWhereInput /** * Limit how many incidents to delete. */ limit?: number } /** * incidents.alerts */ export type incidents$alertsArgs = { /** * Select specific fields to fetch from the alerts */ select?: alertsSelect | null /** * Omit specific fields from the alerts */ omit?: alertsOmit | null /** * Choose, which related nodes to fetch as well */ include?: alertsInclude | null where?: alertsWhereInput orderBy?: alertsOrderByWithRelationInput | alertsOrderByWithRelationInput[] cursor?: alertsWhereUniqueInput take?: number skip?: number distinct?: AlertsScalarFieldEnum | AlertsScalarFieldEnum[] } /** * incidents.incident_updates */ export type incidents$incident_updatesArgs = { /** * Select specific fields to fetch from the incident_updates */ select?: incident_updatesSelect | null /** * Omit specific fields from the incident_updates */ omit?: incident_updatesOmit | null /** * Choose, which related nodes to fetch as well */ include?: incident_updatesInclude | null where?: incident_updatesWhereInput orderBy?: incident_updatesOrderByWithRelationInput | incident_updatesOrderByWithRelationInput[] cursor?: incident_updatesWhereUniqueInput take?: number skip?: number distinct?: Incident_updatesScalarFieldEnum | Incident_updatesScalarFieldEnum[] } /** * incidents.team_members_incidents_reported_byToteam_members */ export type incidents$team_members_incidents_reported_byToteam_membersArgs = { /** * Select specific fields to fetch from the team_members */ select?: team_membersSelect | null /** * Omit specific fields from the team_members */ omit?: team_membersOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_membersInclude | null where?: team_membersWhereInput } /** * incidents.team_members_incidents_assigned_toToteam_members */ export type incidents$team_members_incidents_assigned_toToteam_membersArgs = { /** * Select specific fields to fetch from the team_members */ select?: team_membersSelect | null /** * Omit specific fields from the team_members */ omit?: team_membersOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_membersInclude | null where?: team_membersWhereInput } /** * incidents.geofences */ export type incidents$geofencesArgs = { /** * Select specific fields to fetch from the geofences */ select?: geofencesSelect | null /** * Omit specific fields from the geofences */ omit?: geofencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofencesInclude | null where?: geofencesWhereInput } /** * incidents without action */ export type incidentsDefaultArgs = { /** * Select specific fields to fetch from the incidents */ select?: incidentsSelect | null /** * Omit specific fields from the incidents */ omit?: incidentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: incidentsInclude | null } /** * Model ktp_validation_audit */ export type AggregateKtp_validation_audit = { _count: Ktp_validation_auditCountAggregateOutputType | null _min: Ktp_validation_auditMinAggregateOutputType | null _max: Ktp_validation_auditMaxAggregateOutputType | null } export type Ktp_validation_auditMinAggregateOutputType = { id: string | null ktp_data_id: string | null action: $Enums.ktp_validation_audit_action | null performed_by: string | null ip_address: string | null user_agent: string | null reason: string | null created_at: Date | null } export type Ktp_validation_auditMaxAggregateOutputType = { id: string | null ktp_data_id: string | null action: $Enums.ktp_validation_audit_action | null performed_by: string | null ip_address: string | null user_agent: string | null reason: string | null created_at: Date | null } export type Ktp_validation_auditCountAggregateOutputType = { id: number ktp_data_id: number action: number old_values: number new_values: number performed_by: number ip_address: number user_agent: number reason: number created_at: number metadata: number _all: number } export type Ktp_validation_auditMinAggregateInputType = { id?: true ktp_data_id?: true action?: true performed_by?: true ip_address?: true user_agent?: true reason?: true created_at?: true } export type Ktp_validation_auditMaxAggregateInputType = { id?: true ktp_data_id?: true action?: true performed_by?: true ip_address?: true user_agent?: true reason?: true created_at?: true } export type Ktp_validation_auditCountAggregateInputType = { id?: true ktp_data_id?: true action?: true old_values?: true new_values?: true performed_by?: true ip_address?: true user_agent?: true reason?: true created_at?: true metadata?: true _all?: true } export type Ktp_validation_auditAggregateArgs = { /** * Filter which ktp_validation_audit to aggregate. */ where?: ktp_validation_auditWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ktp_validation_audits to fetch. */ orderBy?: ktp_validation_auditOrderByWithRelationInput | ktp_validation_auditOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ktp_validation_auditWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ktp_validation_audits 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` ktp_validation_audits. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ktp_validation_audits **/ _count?: true | Ktp_validation_auditCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Ktp_validation_auditMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Ktp_validation_auditMaxAggregateInputType } export type GetKtp_validation_auditAggregateType = { [P in keyof T & keyof AggregateKtp_validation_audit]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ktp_validation_auditGroupByArgs = { where?: ktp_validation_auditWhereInput orderBy?: ktp_validation_auditOrderByWithAggregationInput | ktp_validation_auditOrderByWithAggregationInput[] by: Ktp_validation_auditScalarFieldEnum[] | Ktp_validation_auditScalarFieldEnum having?: ktp_validation_auditScalarWhereWithAggregatesInput take?: number skip?: number _count?: Ktp_validation_auditCountAggregateInputType | true _min?: Ktp_validation_auditMinAggregateInputType _max?: Ktp_validation_auditMaxAggregateInputType } export type Ktp_validation_auditGroupByOutputType = { id: string ktp_data_id: string action: $Enums.ktp_validation_audit_action old_values: JsonValue | null new_values: JsonValue | null performed_by: string ip_address: string | null user_agent: string | null reason: string | null created_at: Date metadata: JsonValue | null _count: Ktp_validation_auditCountAggregateOutputType | null _min: Ktp_validation_auditMinAggregateOutputType | null _max: Ktp_validation_auditMaxAggregateOutputType | null } type GetKtp_validation_auditGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Ktp_validation_auditGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ktp_validation_auditSelect = $Extensions.GetSelect<{ id?: boolean ktp_data_id?: boolean action?: boolean old_values?: boolean new_values?: boolean performed_by?: boolean ip_address?: boolean user_agent?: boolean reason?: boolean created_at?: boolean metadata?: boolean visitor_ktp_data?: boolean | visitor_ktp_dataDefaultArgs }, ExtArgs["result"]["ktp_validation_audit"]> export type ktp_validation_auditSelectScalar = { id?: boolean ktp_data_id?: boolean action?: boolean old_values?: boolean new_values?: boolean performed_by?: boolean ip_address?: boolean user_agent?: boolean reason?: boolean created_at?: boolean metadata?: boolean } export type ktp_validation_auditOmit = $Extensions.GetOmit<"id" | "ktp_data_id" | "action" | "old_values" | "new_values" | "performed_by" | "ip_address" | "user_agent" | "reason" | "created_at" | "metadata", ExtArgs["result"]["ktp_validation_audit"]> export type ktp_validation_auditInclude = { visitor_ktp_data?: boolean | visitor_ktp_dataDefaultArgs } export type $ktp_validation_auditPayload = { name: "ktp_validation_audit" objects: { visitor_ktp_data: Prisma.$visitor_ktp_dataPayload } scalars: $Extensions.GetPayloadResult<{ id: string ktp_data_id: string action: $Enums.ktp_validation_audit_action old_values: Prisma.JsonValue | null new_values: Prisma.JsonValue | null performed_by: string ip_address: string | null user_agent: string | null reason: string | null created_at: Date metadata: Prisma.JsonValue | null }, ExtArgs["result"]["ktp_validation_audit"]> composites: {} } type ktp_validation_auditGetPayload = $Result.GetResult type ktp_validation_auditCountArgs = Omit & { select?: Ktp_validation_auditCountAggregateInputType | true } export interface ktp_validation_auditDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ktp_validation_audit'], meta: { name: 'ktp_validation_audit' } } /** * Find zero or one Ktp_validation_audit that matches the filter. * @param {ktp_validation_auditFindUniqueArgs} args - Arguments to find a Ktp_validation_audit * @example * // Get one Ktp_validation_audit * const ktp_validation_audit = await prisma.ktp_validation_audit.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ktp_validation_auditClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Ktp_validation_audit that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ktp_validation_auditFindUniqueOrThrowArgs} args - Arguments to find a Ktp_validation_audit * @example * // Get one Ktp_validation_audit * const ktp_validation_audit = await prisma.ktp_validation_audit.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ktp_validation_auditClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Ktp_validation_audit 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 {ktp_validation_auditFindFirstArgs} args - Arguments to find a Ktp_validation_audit * @example * // Get one Ktp_validation_audit * const ktp_validation_audit = await prisma.ktp_validation_audit.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ktp_validation_auditClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Ktp_validation_audit 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 {ktp_validation_auditFindFirstOrThrowArgs} args - Arguments to find a Ktp_validation_audit * @example * // Get one Ktp_validation_audit * const ktp_validation_audit = await prisma.ktp_validation_audit.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ktp_validation_auditClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Ktp_validation_audits 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 {ktp_validation_auditFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Ktp_validation_audits * const ktp_validation_audits = await prisma.ktp_validation_audit.findMany() * * // Get first 10 Ktp_validation_audits * const ktp_validation_audits = await prisma.ktp_validation_audit.findMany({ take: 10 }) * * // Only select the `id` * const ktp_validation_auditWithIdOnly = await prisma.ktp_validation_audit.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Ktp_validation_audit. * @param {ktp_validation_auditCreateArgs} args - Arguments to create a Ktp_validation_audit. * @example * // Create one Ktp_validation_audit * const Ktp_validation_audit = await prisma.ktp_validation_audit.create({ * data: { * // ... data to create a Ktp_validation_audit * } * }) * */ create(args: SelectSubset>): Prisma__ktp_validation_auditClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Ktp_validation_audits. * @param {ktp_validation_auditCreateManyArgs} args - Arguments to create many Ktp_validation_audits. * @example * // Create many Ktp_validation_audits * const ktp_validation_audit = await prisma.ktp_validation_audit.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Ktp_validation_audit. * @param {ktp_validation_auditDeleteArgs} args - Arguments to delete one Ktp_validation_audit. * @example * // Delete one Ktp_validation_audit * const Ktp_validation_audit = await prisma.ktp_validation_audit.delete({ * where: { * // ... filter to delete one Ktp_validation_audit * } * }) * */ delete(args: SelectSubset>): Prisma__ktp_validation_auditClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Ktp_validation_audit. * @param {ktp_validation_auditUpdateArgs} args - Arguments to update one Ktp_validation_audit. * @example * // Update one Ktp_validation_audit * const ktp_validation_audit = await prisma.ktp_validation_audit.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ktp_validation_auditClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Ktp_validation_audits. * @param {ktp_validation_auditDeleteManyArgs} args - Arguments to filter Ktp_validation_audits to delete. * @example * // Delete a few Ktp_validation_audits * const { count } = await prisma.ktp_validation_audit.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Ktp_validation_audits. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ktp_validation_auditUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Ktp_validation_audits * const ktp_validation_audit = await prisma.ktp_validation_audit.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Ktp_validation_audit. * @param {ktp_validation_auditUpsertArgs} args - Arguments to update or create a Ktp_validation_audit. * @example * // Update or create a Ktp_validation_audit * const ktp_validation_audit = await prisma.ktp_validation_audit.upsert({ * create: { * // ... data to create a Ktp_validation_audit * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Ktp_validation_audit we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ktp_validation_auditClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Ktp_validation_audits. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ktp_validation_auditCountArgs} args - Arguments to filter Ktp_validation_audits to count. * @example * // Count the number of Ktp_validation_audits * const count = await prisma.ktp_validation_audit.count({ * where: { * // ... the filter for the Ktp_validation_audits 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 Ktp_validation_audit. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Ktp_validation_auditAggregateArgs} 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 Ktp_validation_audit. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ktp_validation_auditGroupByArgs} 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 ktp_validation_auditGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ktp_validation_auditGroupByArgs['orderBy'] } : { orderBy?: ktp_validation_auditGroupByArgs['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 ? GetKtp_validation_auditGroupByPayload : Prisma.PrismaPromise /** * Fields of the ktp_validation_audit model */ readonly fields: ktp_validation_auditFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ktp_validation_audit. * 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__ktp_validation_auditClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" visitor_ktp_data = {}>(args?: Subset>): Prisma__visitor_ktp_dataClient<$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 ktp_validation_audit model */ interface ktp_validation_auditFieldRefs { readonly id: FieldRef<"ktp_validation_audit", 'String'> readonly ktp_data_id: FieldRef<"ktp_validation_audit", 'String'> readonly action: FieldRef<"ktp_validation_audit", 'ktp_validation_audit_action'> readonly old_values: FieldRef<"ktp_validation_audit", 'Json'> readonly new_values: FieldRef<"ktp_validation_audit", 'Json'> readonly performed_by: FieldRef<"ktp_validation_audit", 'String'> readonly ip_address: FieldRef<"ktp_validation_audit", 'String'> readonly user_agent: FieldRef<"ktp_validation_audit", 'String'> readonly reason: FieldRef<"ktp_validation_audit", 'String'> readonly created_at: FieldRef<"ktp_validation_audit", 'DateTime'> readonly metadata: FieldRef<"ktp_validation_audit", 'Json'> } // Custom InputTypes /** * ktp_validation_audit findUnique */ export type ktp_validation_auditFindUniqueArgs = { /** * Select specific fields to fetch from the ktp_validation_audit */ select?: ktp_validation_auditSelect | null /** * Omit specific fields from the ktp_validation_audit */ omit?: ktp_validation_auditOmit | null /** * Choose, which related nodes to fetch as well */ include?: ktp_validation_auditInclude | null /** * Filter, which ktp_validation_audit to fetch. */ where: ktp_validation_auditWhereUniqueInput } /** * ktp_validation_audit findUniqueOrThrow */ export type ktp_validation_auditFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ktp_validation_audit */ select?: ktp_validation_auditSelect | null /** * Omit specific fields from the ktp_validation_audit */ omit?: ktp_validation_auditOmit | null /** * Choose, which related nodes to fetch as well */ include?: ktp_validation_auditInclude | null /** * Filter, which ktp_validation_audit to fetch. */ where: ktp_validation_auditWhereUniqueInput } /** * ktp_validation_audit findFirst */ export type ktp_validation_auditFindFirstArgs = { /** * Select specific fields to fetch from the ktp_validation_audit */ select?: ktp_validation_auditSelect | null /** * Omit specific fields from the ktp_validation_audit */ omit?: ktp_validation_auditOmit | null /** * Choose, which related nodes to fetch as well */ include?: ktp_validation_auditInclude | null /** * Filter, which ktp_validation_audit to fetch. */ where?: ktp_validation_auditWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ktp_validation_audits to fetch. */ orderBy?: ktp_validation_auditOrderByWithRelationInput | ktp_validation_auditOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ktp_validation_audits. */ cursor?: ktp_validation_auditWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ktp_validation_audits 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` ktp_validation_audits. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ktp_validation_audits. */ distinct?: Ktp_validation_auditScalarFieldEnum | Ktp_validation_auditScalarFieldEnum[] } /** * ktp_validation_audit findFirstOrThrow */ export type ktp_validation_auditFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ktp_validation_audit */ select?: ktp_validation_auditSelect | null /** * Omit specific fields from the ktp_validation_audit */ omit?: ktp_validation_auditOmit | null /** * Choose, which related nodes to fetch as well */ include?: ktp_validation_auditInclude | null /** * Filter, which ktp_validation_audit to fetch. */ where?: ktp_validation_auditWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ktp_validation_audits to fetch. */ orderBy?: ktp_validation_auditOrderByWithRelationInput | ktp_validation_auditOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ktp_validation_audits. */ cursor?: ktp_validation_auditWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ktp_validation_audits 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` ktp_validation_audits. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ktp_validation_audits. */ distinct?: Ktp_validation_auditScalarFieldEnum | Ktp_validation_auditScalarFieldEnum[] } /** * ktp_validation_audit findMany */ export type ktp_validation_auditFindManyArgs = { /** * Select specific fields to fetch from the ktp_validation_audit */ select?: ktp_validation_auditSelect | null /** * Omit specific fields from the ktp_validation_audit */ omit?: ktp_validation_auditOmit | null /** * Choose, which related nodes to fetch as well */ include?: ktp_validation_auditInclude | null /** * Filter, which ktp_validation_audits to fetch. */ where?: ktp_validation_auditWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ktp_validation_audits to fetch. */ orderBy?: ktp_validation_auditOrderByWithRelationInput | ktp_validation_auditOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ktp_validation_audits. */ cursor?: ktp_validation_auditWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ktp_validation_audits 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` ktp_validation_audits. */ skip?: number distinct?: Ktp_validation_auditScalarFieldEnum | Ktp_validation_auditScalarFieldEnum[] } /** * ktp_validation_audit create */ export type ktp_validation_auditCreateArgs = { /** * Select specific fields to fetch from the ktp_validation_audit */ select?: ktp_validation_auditSelect | null /** * Omit specific fields from the ktp_validation_audit */ omit?: ktp_validation_auditOmit | null /** * Choose, which related nodes to fetch as well */ include?: ktp_validation_auditInclude | null /** * The data needed to create a ktp_validation_audit. */ data: XOR } /** * ktp_validation_audit createMany */ export type ktp_validation_auditCreateManyArgs = { /** * The data used to create many ktp_validation_audits. */ data: ktp_validation_auditCreateManyInput | ktp_validation_auditCreateManyInput[] skipDuplicates?: boolean } /** * ktp_validation_audit update */ export type ktp_validation_auditUpdateArgs = { /** * Select specific fields to fetch from the ktp_validation_audit */ select?: ktp_validation_auditSelect | null /** * Omit specific fields from the ktp_validation_audit */ omit?: ktp_validation_auditOmit | null /** * Choose, which related nodes to fetch as well */ include?: ktp_validation_auditInclude | null /** * The data needed to update a ktp_validation_audit. */ data: XOR /** * Choose, which ktp_validation_audit to update. */ where: ktp_validation_auditWhereUniqueInput } /** * ktp_validation_audit updateMany */ export type ktp_validation_auditUpdateManyArgs = { /** * The data used to update ktp_validation_audits. */ data: XOR /** * Filter which ktp_validation_audits to update */ where?: ktp_validation_auditWhereInput /** * Limit how many ktp_validation_audits to update. */ limit?: number } /** * ktp_validation_audit upsert */ export type ktp_validation_auditUpsertArgs = { /** * Select specific fields to fetch from the ktp_validation_audit */ select?: ktp_validation_auditSelect | null /** * Omit specific fields from the ktp_validation_audit */ omit?: ktp_validation_auditOmit | null /** * Choose, which related nodes to fetch as well */ include?: ktp_validation_auditInclude | null /** * The filter to search for the ktp_validation_audit to update in case it exists. */ where: ktp_validation_auditWhereUniqueInput /** * In case the ktp_validation_audit found by the `where` argument doesn't exist, create a new ktp_validation_audit with this data. */ create: XOR /** * In case the ktp_validation_audit was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ktp_validation_audit delete */ export type ktp_validation_auditDeleteArgs = { /** * Select specific fields to fetch from the ktp_validation_audit */ select?: ktp_validation_auditSelect | null /** * Omit specific fields from the ktp_validation_audit */ omit?: ktp_validation_auditOmit | null /** * Choose, which related nodes to fetch as well */ include?: ktp_validation_auditInclude | null /** * Filter which ktp_validation_audit to delete. */ where: ktp_validation_auditWhereUniqueInput } /** * ktp_validation_audit deleteMany */ export type ktp_validation_auditDeleteManyArgs = { /** * Filter which ktp_validation_audits to delete */ where?: ktp_validation_auditWhereInput /** * Limit how many ktp_validation_audits to delete. */ limit?: number } /** * ktp_validation_audit without action */ export type ktp_validation_auditDefaultArgs = { /** * Select specific fields to fetch from the ktp_validation_audit */ select?: ktp_validation_auditSelect | null /** * Omit specific fields from the ktp_validation_audit */ omit?: ktp_validation_auditOmit | null /** * Choose, which related nodes to fetch as well */ include?: ktp_validation_auditInclude | null } /** * Model map_pins */ export type AggregateMap_pins = { _count: Map_pinsCountAggregateOutputType | null _min: Map_pinsMinAggregateOutputType | null _max: Map_pinsMaxAggregateOutputType | null } export type Map_pinsMinAggregateOutputType = { id: string | null type: string | null title: string | null description: string | null status: string | null priority: string | null icon_type: string | null icon_color: string | null size: string | null is_visible: boolean | null is_clickable: boolean | null alert_id: string | null incident_id: string | null team_member_id: string | null camera_id: string | null geofence_id: string | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null } export type Map_pinsMaxAggregateOutputType = { id: string | null type: string | null title: string | null description: string | null status: string | null priority: string | null icon_type: string | null icon_color: string | null size: string | null is_visible: boolean | null is_clickable: boolean | null alert_id: string | null incident_id: string | null team_member_id: string | null camera_id: string | null geofence_id: string | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null } export type Map_pinsCountAggregateOutputType = { id: number type: number coordinates: number title: number description: number status: number priority: number icon_type: number icon_color: number size: number is_visible: number is_clickable: number metadata: number alert_id: number incident_id: number team_member_id: number camera_id: number geofence_id: number created_at: number updated_at: number created_by: number updated_by: number _all: number } export type Map_pinsMinAggregateInputType = { id?: true type?: true title?: true description?: true status?: true priority?: true icon_type?: true icon_color?: true size?: true is_visible?: true is_clickable?: true alert_id?: true incident_id?: true team_member_id?: true camera_id?: true geofence_id?: true created_at?: true updated_at?: true created_by?: true updated_by?: true } export type Map_pinsMaxAggregateInputType = { id?: true type?: true title?: true description?: true status?: true priority?: true icon_type?: true icon_color?: true size?: true is_visible?: true is_clickable?: true alert_id?: true incident_id?: true team_member_id?: true camera_id?: true geofence_id?: true created_at?: true updated_at?: true created_by?: true updated_by?: true } export type Map_pinsCountAggregateInputType = { id?: true type?: true coordinates?: true title?: true description?: true status?: true priority?: true icon_type?: true icon_color?: true size?: true is_visible?: true is_clickable?: true metadata?: true alert_id?: true incident_id?: true team_member_id?: true camera_id?: true geofence_id?: true created_at?: true updated_at?: true created_by?: true updated_by?: true _all?: true } export type Map_pinsAggregateArgs = { /** * Filter which map_pins to aggregate. */ where?: map_pinsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of map_pins to fetch. */ orderBy?: map_pinsOrderByWithRelationInput | map_pinsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: map_pinsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` map_pins 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` map_pins. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned map_pins **/ _count?: true | Map_pinsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Map_pinsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Map_pinsMaxAggregateInputType } export type GetMap_pinsAggregateType = { [P in keyof T & keyof AggregateMap_pins]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type map_pinsGroupByArgs = { where?: map_pinsWhereInput orderBy?: map_pinsOrderByWithAggregationInput | map_pinsOrderByWithAggregationInput[] by: Map_pinsScalarFieldEnum[] | Map_pinsScalarFieldEnum having?: map_pinsScalarWhereWithAggregatesInput take?: number skip?: number _count?: Map_pinsCountAggregateInputType | true _min?: Map_pinsMinAggregateInputType _max?: Map_pinsMaxAggregateInputType } export type Map_pinsGroupByOutputType = { id: string type: string coordinates: JsonValue | null title: string description: string | null status: string | null priority: string | null icon_type: string | null icon_color: string | null size: string | null is_visible: boolean | null is_clickable: boolean | null metadata: JsonValue | null alert_id: string | null incident_id: string | null team_member_id: string | null camera_id: string | null geofence_id: string | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null _count: Map_pinsCountAggregateOutputType | null _min: Map_pinsMinAggregateOutputType | null _max: Map_pinsMaxAggregateOutputType | null } type GetMap_pinsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Map_pinsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type map_pinsSelect = $Extensions.GetSelect<{ id?: boolean type?: boolean coordinates?: boolean title?: boolean description?: boolean status?: boolean priority?: boolean icon_type?: boolean icon_color?: boolean size?: boolean is_visible?: boolean is_clickable?: boolean metadata?: boolean alert_id?: boolean incident_id?: boolean team_member_id?: boolean camera_id?: boolean geofence_id?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean updated_by?: boolean geofences?: boolean | map_pins$geofencesArgs }, ExtArgs["result"]["map_pins"]> export type map_pinsSelectScalar = { id?: boolean type?: boolean coordinates?: boolean title?: boolean description?: boolean status?: boolean priority?: boolean icon_type?: boolean icon_color?: boolean size?: boolean is_visible?: boolean is_clickable?: boolean metadata?: boolean alert_id?: boolean incident_id?: boolean team_member_id?: boolean camera_id?: boolean geofence_id?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean updated_by?: boolean } export type map_pinsOmit = $Extensions.GetOmit<"id" | "type" | "coordinates" | "title" | "description" | "status" | "priority" | "icon_type" | "icon_color" | "size" | "is_visible" | "is_clickable" | "metadata" | "alert_id" | "incident_id" | "team_member_id" | "camera_id" | "geofence_id" | "created_at" | "updated_at" | "created_by" | "updated_by", ExtArgs["result"]["map_pins"]> export type map_pinsInclude = { geofences?: boolean | map_pins$geofencesArgs } export type $map_pinsPayload = { name: "map_pins" objects: { geofences: Prisma.$geofencesPayload | null } scalars: $Extensions.GetPayloadResult<{ id: string type: string coordinates: Prisma.JsonValue | null title: string description: string | null status: string | null priority: string | null icon_type: string | null icon_color: string | null size: string | null is_visible: boolean | null is_clickable: boolean | null metadata: Prisma.JsonValue | null alert_id: string | null incident_id: string | null team_member_id: string | null camera_id: string | null geofence_id: string | null created_at: Date | null updated_at: Date | null created_by: string | null updated_by: string | null }, ExtArgs["result"]["map_pins"]> composites: {} } type map_pinsGetPayload = $Result.GetResult type map_pinsCountArgs = Omit & { select?: Map_pinsCountAggregateInputType | true } export interface map_pinsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['map_pins'], meta: { name: 'map_pins' } } /** * Find zero or one Map_pins that matches the filter. * @param {map_pinsFindUniqueArgs} args - Arguments to find a Map_pins * @example * // Get one Map_pins * const map_pins = await prisma.map_pins.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__map_pinsClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Map_pins that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {map_pinsFindUniqueOrThrowArgs} args - Arguments to find a Map_pins * @example * // Get one Map_pins * const map_pins = await prisma.map_pins.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__map_pinsClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Map_pins 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 {map_pinsFindFirstArgs} args - Arguments to find a Map_pins * @example * // Get one Map_pins * const map_pins = await prisma.map_pins.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__map_pinsClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Map_pins 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 {map_pinsFindFirstOrThrowArgs} args - Arguments to find a Map_pins * @example * // Get one Map_pins * const map_pins = await prisma.map_pins.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__map_pinsClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Map_pins 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 {map_pinsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Map_pins * const map_pins = await prisma.map_pins.findMany() * * // Get first 10 Map_pins * const map_pins = await prisma.map_pins.findMany({ take: 10 }) * * // Only select the `id` * const map_pinsWithIdOnly = await prisma.map_pins.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Map_pins. * @param {map_pinsCreateArgs} args - Arguments to create a Map_pins. * @example * // Create one Map_pins * const Map_pins = await prisma.map_pins.create({ * data: { * // ... data to create a Map_pins * } * }) * */ create(args: SelectSubset>): Prisma__map_pinsClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Map_pins. * @param {map_pinsCreateManyArgs} args - Arguments to create many Map_pins. * @example * // Create many Map_pins * const map_pins = await prisma.map_pins.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Map_pins. * @param {map_pinsDeleteArgs} args - Arguments to delete one Map_pins. * @example * // Delete one Map_pins * const Map_pins = await prisma.map_pins.delete({ * where: { * // ... filter to delete one Map_pins * } * }) * */ delete(args: SelectSubset>): Prisma__map_pinsClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Map_pins. * @param {map_pinsUpdateArgs} args - Arguments to update one Map_pins. * @example * // Update one Map_pins * const map_pins = await prisma.map_pins.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__map_pinsClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Map_pins. * @param {map_pinsDeleteManyArgs} args - Arguments to filter Map_pins to delete. * @example * // Delete a few Map_pins * const { count } = await prisma.map_pins.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Map_pins. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {map_pinsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Map_pins * const map_pins = await prisma.map_pins.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Map_pins. * @param {map_pinsUpsertArgs} args - Arguments to update or create a Map_pins. * @example * // Update or create a Map_pins * const map_pins = await prisma.map_pins.upsert({ * create: { * // ... data to create a Map_pins * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Map_pins we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__map_pinsClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Map_pins. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {map_pinsCountArgs} args - Arguments to filter Map_pins to count. * @example * // Count the number of Map_pins * const count = await prisma.map_pins.count({ * where: { * // ... the filter for the Map_pins 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 Map_pins. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Map_pinsAggregateArgs} 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 Map_pins. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {map_pinsGroupByArgs} 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 map_pinsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: map_pinsGroupByArgs['orderBy'] } : { orderBy?: map_pinsGroupByArgs['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 ? GetMap_pinsGroupByPayload : Prisma.PrismaPromise /** * Fields of the map_pins model */ readonly fields: map_pinsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for map_pins. * 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__map_pinsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" geofences = {}>(args?: Subset>): Prisma__geofencesClient<$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 map_pins model */ interface map_pinsFieldRefs { readonly id: FieldRef<"map_pins", 'String'> readonly type: FieldRef<"map_pins", 'String'> readonly coordinates: FieldRef<"map_pins", 'Json'> readonly title: FieldRef<"map_pins", 'String'> readonly description: FieldRef<"map_pins", 'String'> readonly status: FieldRef<"map_pins", 'String'> readonly priority: FieldRef<"map_pins", 'String'> readonly icon_type: FieldRef<"map_pins", 'String'> readonly icon_color: FieldRef<"map_pins", 'String'> readonly size: FieldRef<"map_pins", 'String'> readonly is_visible: FieldRef<"map_pins", 'Boolean'> readonly is_clickable: FieldRef<"map_pins", 'Boolean'> readonly metadata: FieldRef<"map_pins", 'Json'> readonly alert_id: FieldRef<"map_pins", 'String'> readonly incident_id: FieldRef<"map_pins", 'String'> readonly team_member_id: FieldRef<"map_pins", 'String'> readonly camera_id: FieldRef<"map_pins", 'String'> readonly geofence_id: FieldRef<"map_pins", 'String'> readonly created_at: FieldRef<"map_pins", 'DateTime'> readonly updated_at: FieldRef<"map_pins", 'DateTime'> readonly created_by: FieldRef<"map_pins", 'String'> readonly updated_by: FieldRef<"map_pins", 'String'> } // Custom InputTypes /** * map_pins findUnique */ export type map_pinsFindUniqueArgs = { /** * Select specific fields to fetch from the map_pins */ select?: map_pinsSelect | null /** * Omit specific fields from the map_pins */ omit?: map_pinsOmit | null /** * Choose, which related nodes to fetch as well */ include?: map_pinsInclude | null /** * Filter, which map_pins to fetch. */ where: map_pinsWhereUniqueInput } /** * map_pins findUniqueOrThrow */ export type map_pinsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the map_pins */ select?: map_pinsSelect | null /** * Omit specific fields from the map_pins */ omit?: map_pinsOmit | null /** * Choose, which related nodes to fetch as well */ include?: map_pinsInclude | null /** * Filter, which map_pins to fetch. */ where: map_pinsWhereUniqueInput } /** * map_pins findFirst */ export type map_pinsFindFirstArgs = { /** * Select specific fields to fetch from the map_pins */ select?: map_pinsSelect | null /** * Omit specific fields from the map_pins */ omit?: map_pinsOmit | null /** * Choose, which related nodes to fetch as well */ include?: map_pinsInclude | null /** * Filter, which map_pins to fetch. */ where?: map_pinsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of map_pins to fetch. */ orderBy?: map_pinsOrderByWithRelationInput | map_pinsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for map_pins. */ cursor?: map_pinsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` map_pins 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` map_pins. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of map_pins. */ distinct?: Map_pinsScalarFieldEnum | Map_pinsScalarFieldEnum[] } /** * map_pins findFirstOrThrow */ export type map_pinsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the map_pins */ select?: map_pinsSelect | null /** * Omit specific fields from the map_pins */ omit?: map_pinsOmit | null /** * Choose, which related nodes to fetch as well */ include?: map_pinsInclude | null /** * Filter, which map_pins to fetch. */ where?: map_pinsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of map_pins to fetch. */ orderBy?: map_pinsOrderByWithRelationInput | map_pinsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for map_pins. */ cursor?: map_pinsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` map_pins 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` map_pins. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of map_pins. */ distinct?: Map_pinsScalarFieldEnum | Map_pinsScalarFieldEnum[] } /** * map_pins findMany */ export type map_pinsFindManyArgs = { /** * Select specific fields to fetch from the map_pins */ select?: map_pinsSelect | null /** * Omit specific fields from the map_pins */ omit?: map_pinsOmit | null /** * Choose, which related nodes to fetch as well */ include?: map_pinsInclude | null /** * Filter, which map_pins to fetch. */ where?: map_pinsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of map_pins to fetch. */ orderBy?: map_pinsOrderByWithRelationInput | map_pinsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing map_pins. */ cursor?: map_pinsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` map_pins 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` map_pins. */ skip?: number distinct?: Map_pinsScalarFieldEnum | Map_pinsScalarFieldEnum[] } /** * map_pins create */ export type map_pinsCreateArgs = { /** * Select specific fields to fetch from the map_pins */ select?: map_pinsSelect | null /** * Omit specific fields from the map_pins */ omit?: map_pinsOmit | null /** * Choose, which related nodes to fetch as well */ include?: map_pinsInclude | null /** * The data needed to create a map_pins. */ data: XOR } /** * map_pins createMany */ export type map_pinsCreateManyArgs = { /** * The data used to create many map_pins. */ data: map_pinsCreateManyInput | map_pinsCreateManyInput[] skipDuplicates?: boolean } /** * map_pins update */ export type map_pinsUpdateArgs = { /** * Select specific fields to fetch from the map_pins */ select?: map_pinsSelect | null /** * Omit specific fields from the map_pins */ omit?: map_pinsOmit | null /** * Choose, which related nodes to fetch as well */ include?: map_pinsInclude | null /** * The data needed to update a map_pins. */ data: XOR /** * Choose, which map_pins to update. */ where: map_pinsWhereUniqueInput } /** * map_pins updateMany */ export type map_pinsUpdateManyArgs = { /** * The data used to update map_pins. */ data: XOR /** * Filter which map_pins to update */ where?: map_pinsWhereInput /** * Limit how many map_pins to update. */ limit?: number } /** * map_pins upsert */ export type map_pinsUpsertArgs = { /** * Select specific fields to fetch from the map_pins */ select?: map_pinsSelect | null /** * Omit specific fields from the map_pins */ omit?: map_pinsOmit | null /** * Choose, which related nodes to fetch as well */ include?: map_pinsInclude | null /** * The filter to search for the map_pins to update in case it exists. */ where: map_pinsWhereUniqueInput /** * In case the map_pins found by the `where` argument doesn't exist, create a new map_pins with this data. */ create: XOR /** * In case the map_pins was found with the provided `where` argument, update it with this data. */ update: XOR } /** * map_pins delete */ export type map_pinsDeleteArgs = { /** * Select specific fields to fetch from the map_pins */ select?: map_pinsSelect | null /** * Omit specific fields from the map_pins */ omit?: map_pinsOmit | null /** * Choose, which related nodes to fetch as well */ include?: map_pinsInclude | null /** * Filter which map_pins to delete. */ where: map_pinsWhereUniqueInput } /** * map_pins deleteMany */ export type map_pinsDeleteManyArgs = { /** * Filter which map_pins to delete */ where?: map_pinsWhereInput /** * Limit how many map_pins to delete. */ limit?: number } /** * map_pins.geofences */ export type map_pins$geofencesArgs = { /** * Select specific fields to fetch from the geofences */ select?: geofencesSelect | null /** * Omit specific fields from the geofences */ omit?: geofencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: geofencesInclude | null where?: geofencesWhereInput } /** * map_pins without action */ export type map_pinsDefaultArgs = { /** * Select specific fields to fetch from the map_pins */ select?: map_pinsSelect | null /** * Omit specific fields from the map_pins */ omit?: map_pinsOmit | null /** * Choose, which related nodes to fetch as well */ include?: map_pinsInclude | null } /** * Model perumahan_facilities */ export type AggregatePerumahan_facilities = { _count: Perumahan_facilitiesCountAggregateOutputType | null _avg: Perumahan_facilitiesAvgAggregateOutputType | null _sum: Perumahan_facilitiesSumAggregateOutputType | null _min: Perumahan_facilitiesMinAggregateOutputType | null _max: Perumahan_facilitiesMaxAggregateOutputType | null } export type Perumahan_facilitiesAvgAggregateOutputType = { id: number | null lat: Decimal | null lng: Decimal | null } export type Perumahan_facilitiesSumAggregateOutputType = { id: number | null lat: Decimal | null lng: Decimal | null } export type Perumahan_facilitiesMinAggregateOutputType = { id: number | null name: string | null type: string | null description: string | null location: string | null lat: Decimal | null lng: Decimal | null status: $Enums.perumahan_facilities_status | null created_at: Date | null updated_at: Date | null } export type Perumahan_facilitiesMaxAggregateOutputType = { id: number | null name: string | null type: string | null description: string | null location: string | null lat: Decimal | null lng: Decimal | null status: $Enums.perumahan_facilities_status | null created_at: Date | null updated_at: Date | null } export type Perumahan_facilitiesCountAggregateOutputType = { id: number name: number type: number description: number location: number lat: number lng: number status: number operating_hours: number contact_info: number created_at: number updated_at: number _all: number } export type Perumahan_facilitiesAvgAggregateInputType = { id?: true lat?: true lng?: true } export type Perumahan_facilitiesSumAggregateInputType = { id?: true lat?: true lng?: true } export type Perumahan_facilitiesMinAggregateInputType = { id?: true name?: true type?: true description?: true location?: true lat?: true lng?: true status?: true created_at?: true updated_at?: true } export type Perumahan_facilitiesMaxAggregateInputType = { id?: true name?: true type?: true description?: true location?: true lat?: true lng?: true status?: true created_at?: true updated_at?: true } export type Perumahan_facilitiesCountAggregateInputType = { id?: true name?: true type?: true description?: true location?: true lat?: true lng?: true status?: true operating_hours?: true contact_info?: true created_at?: true updated_at?: true _all?: true } export type Perumahan_facilitiesAggregateArgs = { /** * Filter which perumahan_facilities to aggregate. */ where?: perumahan_facilitiesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of perumahan_facilities to fetch. */ orderBy?: perumahan_facilitiesOrderByWithRelationInput | perumahan_facilitiesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: perumahan_facilitiesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` perumahan_facilities 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` perumahan_facilities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned perumahan_facilities **/ _count?: true | Perumahan_facilitiesCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Perumahan_facilitiesAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Perumahan_facilitiesSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Perumahan_facilitiesMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Perumahan_facilitiesMaxAggregateInputType } export type GetPerumahan_facilitiesAggregateType = { [P in keyof T & keyof AggregatePerumahan_facilities]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type perumahan_facilitiesGroupByArgs = { where?: perumahan_facilitiesWhereInput orderBy?: perumahan_facilitiesOrderByWithAggregationInput | perumahan_facilitiesOrderByWithAggregationInput[] by: Perumahan_facilitiesScalarFieldEnum[] | Perumahan_facilitiesScalarFieldEnum having?: perumahan_facilitiesScalarWhereWithAggregatesInput take?: number skip?: number _count?: Perumahan_facilitiesCountAggregateInputType | true _avg?: Perumahan_facilitiesAvgAggregateInputType _sum?: Perumahan_facilitiesSumAggregateInputType _min?: Perumahan_facilitiesMinAggregateInputType _max?: Perumahan_facilitiesMaxAggregateInputType } export type Perumahan_facilitiesGroupByOutputType = { id: number name: string type: string description: string | null location: string lat: Decimal lng: Decimal status: $Enums.perumahan_facilities_status | null operating_hours: JsonValue | null contact_info: JsonValue | null created_at: Date | null updated_at: Date | null _count: Perumahan_facilitiesCountAggregateOutputType | null _avg: Perumahan_facilitiesAvgAggregateOutputType | null _sum: Perumahan_facilitiesSumAggregateOutputType | null _min: Perumahan_facilitiesMinAggregateOutputType | null _max: Perumahan_facilitiesMaxAggregateOutputType | null } type GetPerumahan_facilitiesGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Perumahan_facilitiesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type perumahan_facilitiesSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean type?: boolean description?: boolean location?: boolean lat?: boolean lng?: boolean status?: boolean operating_hours?: boolean contact_info?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["perumahan_facilities"]> export type perumahan_facilitiesSelectScalar = { id?: boolean name?: boolean type?: boolean description?: boolean location?: boolean lat?: boolean lng?: boolean status?: boolean operating_hours?: boolean contact_info?: boolean created_at?: boolean updated_at?: boolean } export type perumahan_facilitiesOmit = $Extensions.GetOmit<"id" | "name" | "type" | "description" | "location" | "lat" | "lng" | "status" | "operating_hours" | "contact_info" | "created_at" | "updated_at", ExtArgs["result"]["perumahan_facilities"]> export type $perumahan_facilitiesPayload = { name: "perumahan_facilities" objects: {} scalars: $Extensions.GetPayloadResult<{ id: number name: string type: string description: string | null location: string lat: Prisma.Decimal lng: Prisma.Decimal status: $Enums.perumahan_facilities_status | null operating_hours: Prisma.JsonValue | null contact_info: Prisma.JsonValue | null created_at: Date | null updated_at: Date | null }, ExtArgs["result"]["perumahan_facilities"]> composites: {} } type perumahan_facilitiesGetPayload = $Result.GetResult type perumahan_facilitiesCountArgs = Omit & { select?: Perumahan_facilitiesCountAggregateInputType | true } export interface perumahan_facilitiesDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['perumahan_facilities'], meta: { name: 'perumahan_facilities' } } /** * Find zero or one Perumahan_facilities that matches the filter. * @param {perumahan_facilitiesFindUniqueArgs} args - Arguments to find a Perumahan_facilities * @example * // Get one Perumahan_facilities * const perumahan_facilities = await prisma.perumahan_facilities.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__perumahan_facilitiesClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Perumahan_facilities that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {perumahan_facilitiesFindUniqueOrThrowArgs} args - Arguments to find a Perumahan_facilities * @example * // Get one Perumahan_facilities * const perumahan_facilities = await prisma.perumahan_facilities.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__perumahan_facilitiesClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Perumahan_facilities 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 {perumahan_facilitiesFindFirstArgs} args - Arguments to find a Perumahan_facilities * @example * // Get one Perumahan_facilities * const perumahan_facilities = await prisma.perumahan_facilities.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__perumahan_facilitiesClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Perumahan_facilities 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 {perumahan_facilitiesFindFirstOrThrowArgs} args - Arguments to find a Perumahan_facilities * @example * // Get one Perumahan_facilities * const perumahan_facilities = await prisma.perumahan_facilities.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__perumahan_facilitiesClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Perumahan_facilities 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 {perumahan_facilitiesFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Perumahan_facilities * const perumahan_facilities = await prisma.perumahan_facilities.findMany() * * // Get first 10 Perumahan_facilities * const perumahan_facilities = await prisma.perumahan_facilities.findMany({ take: 10 }) * * // Only select the `id` * const perumahan_facilitiesWithIdOnly = await prisma.perumahan_facilities.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Perumahan_facilities. * @param {perumahan_facilitiesCreateArgs} args - Arguments to create a Perumahan_facilities. * @example * // Create one Perumahan_facilities * const Perumahan_facilities = await prisma.perumahan_facilities.create({ * data: { * // ... data to create a Perumahan_facilities * } * }) * */ create(args: SelectSubset>): Prisma__perumahan_facilitiesClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Perumahan_facilities. * @param {perumahan_facilitiesCreateManyArgs} args - Arguments to create many Perumahan_facilities. * @example * // Create many Perumahan_facilities * const perumahan_facilities = await prisma.perumahan_facilities.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Perumahan_facilities. * @param {perumahan_facilitiesDeleteArgs} args - Arguments to delete one Perumahan_facilities. * @example * // Delete one Perumahan_facilities * const Perumahan_facilities = await prisma.perumahan_facilities.delete({ * where: { * // ... filter to delete one Perumahan_facilities * } * }) * */ delete(args: SelectSubset>): Prisma__perumahan_facilitiesClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Perumahan_facilities. * @param {perumahan_facilitiesUpdateArgs} args - Arguments to update one Perumahan_facilities. * @example * // Update one Perumahan_facilities * const perumahan_facilities = await prisma.perumahan_facilities.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__perumahan_facilitiesClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Perumahan_facilities. * @param {perumahan_facilitiesDeleteManyArgs} args - Arguments to filter Perumahan_facilities to delete. * @example * // Delete a few Perumahan_facilities * const { count } = await prisma.perumahan_facilities.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Perumahan_facilities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {perumahan_facilitiesUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Perumahan_facilities * const perumahan_facilities = await prisma.perumahan_facilities.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Perumahan_facilities. * @param {perumahan_facilitiesUpsertArgs} args - Arguments to update or create a Perumahan_facilities. * @example * // Update or create a Perumahan_facilities * const perumahan_facilities = await prisma.perumahan_facilities.upsert({ * create: { * // ... data to create a Perumahan_facilities * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Perumahan_facilities we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__perumahan_facilitiesClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Perumahan_facilities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {perumahan_facilitiesCountArgs} args - Arguments to filter Perumahan_facilities to count. * @example * // Count the number of Perumahan_facilities * const count = await prisma.perumahan_facilities.count({ * where: { * // ... the filter for the Perumahan_facilities 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 Perumahan_facilities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Perumahan_facilitiesAggregateArgs} 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 Perumahan_facilities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {perumahan_facilitiesGroupByArgs} 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 perumahan_facilitiesGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: perumahan_facilitiesGroupByArgs['orderBy'] } : { orderBy?: perumahan_facilitiesGroupByArgs['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 ? GetPerumahan_facilitiesGroupByPayload : Prisma.PrismaPromise /** * Fields of the perumahan_facilities model */ readonly fields: perumahan_facilitiesFieldRefs; } /** * The delegate class that acts as a "Promise-like" for perumahan_facilities. * 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__perumahan_facilitiesClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the perumahan_facilities model */ interface perumahan_facilitiesFieldRefs { readonly id: FieldRef<"perumahan_facilities", 'Int'> readonly name: FieldRef<"perumahan_facilities", 'String'> readonly type: FieldRef<"perumahan_facilities", 'String'> readonly description: FieldRef<"perumahan_facilities", 'String'> readonly location: FieldRef<"perumahan_facilities", 'String'> readonly lat: FieldRef<"perumahan_facilities", 'Decimal'> readonly lng: FieldRef<"perumahan_facilities", 'Decimal'> readonly status: FieldRef<"perumahan_facilities", 'perumahan_facilities_status'> readonly operating_hours: FieldRef<"perumahan_facilities", 'Json'> readonly contact_info: FieldRef<"perumahan_facilities", 'Json'> readonly created_at: FieldRef<"perumahan_facilities", 'DateTime'> readonly updated_at: FieldRef<"perumahan_facilities", 'DateTime'> } // Custom InputTypes /** * perumahan_facilities findUnique */ export type perumahan_facilitiesFindUniqueArgs = { /** * Select specific fields to fetch from the perumahan_facilities */ select?: perumahan_facilitiesSelect | null /** * Omit specific fields from the perumahan_facilities */ omit?: perumahan_facilitiesOmit | null /** * Filter, which perumahan_facilities to fetch. */ where: perumahan_facilitiesWhereUniqueInput } /** * perumahan_facilities findUniqueOrThrow */ export type perumahan_facilitiesFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the perumahan_facilities */ select?: perumahan_facilitiesSelect | null /** * Omit specific fields from the perumahan_facilities */ omit?: perumahan_facilitiesOmit | null /** * Filter, which perumahan_facilities to fetch. */ where: perumahan_facilitiesWhereUniqueInput } /** * perumahan_facilities findFirst */ export type perumahan_facilitiesFindFirstArgs = { /** * Select specific fields to fetch from the perumahan_facilities */ select?: perumahan_facilitiesSelect | null /** * Omit specific fields from the perumahan_facilities */ omit?: perumahan_facilitiesOmit | null /** * Filter, which perumahan_facilities to fetch. */ where?: perumahan_facilitiesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of perumahan_facilities to fetch. */ orderBy?: perumahan_facilitiesOrderByWithRelationInput | perumahan_facilitiesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for perumahan_facilities. */ cursor?: perumahan_facilitiesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` perumahan_facilities 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` perumahan_facilities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of perumahan_facilities. */ distinct?: Perumahan_facilitiesScalarFieldEnum | Perumahan_facilitiesScalarFieldEnum[] } /** * perumahan_facilities findFirstOrThrow */ export type perumahan_facilitiesFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the perumahan_facilities */ select?: perumahan_facilitiesSelect | null /** * Omit specific fields from the perumahan_facilities */ omit?: perumahan_facilitiesOmit | null /** * Filter, which perumahan_facilities to fetch. */ where?: perumahan_facilitiesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of perumahan_facilities to fetch. */ orderBy?: perumahan_facilitiesOrderByWithRelationInput | perumahan_facilitiesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for perumahan_facilities. */ cursor?: perumahan_facilitiesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` perumahan_facilities 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` perumahan_facilities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of perumahan_facilities. */ distinct?: Perumahan_facilitiesScalarFieldEnum | Perumahan_facilitiesScalarFieldEnum[] } /** * perumahan_facilities findMany */ export type perumahan_facilitiesFindManyArgs = { /** * Select specific fields to fetch from the perumahan_facilities */ select?: perumahan_facilitiesSelect | null /** * Omit specific fields from the perumahan_facilities */ omit?: perumahan_facilitiesOmit | null /** * Filter, which perumahan_facilities to fetch. */ where?: perumahan_facilitiesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of perumahan_facilities to fetch. */ orderBy?: perumahan_facilitiesOrderByWithRelationInput | perumahan_facilitiesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing perumahan_facilities. */ cursor?: perumahan_facilitiesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` perumahan_facilities 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` perumahan_facilities. */ skip?: number distinct?: Perumahan_facilitiesScalarFieldEnum | Perumahan_facilitiesScalarFieldEnum[] } /** * perumahan_facilities create */ export type perumahan_facilitiesCreateArgs = { /** * Select specific fields to fetch from the perumahan_facilities */ select?: perumahan_facilitiesSelect | null /** * Omit specific fields from the perumahan_facilities */ omit?: perumahan_facilitiesOmit | null /** * The data needed to create a perumahan_facilities. */ data: XOR } /** * perumahan_facilities createMany */ export type perumahan_facilitiesCreateManyArgs = { /** * The data used to create many perumahan_facilities. */ data: perumahan_facilitiesCreateManyInput | perumahan_facilitiesCreateManyInput[] skipDuplicates?: boolean } /** * perumahan_facilities update */ export type perumahan_facilitiesUpdateArgs = { /** * Select specific fields to fetch from the perumahan_facilities */ select?: perumahan_facilitiesSelect | null /** * Omit specific fields from the perumahan_facilities */ omit?: perumahan_facilitiesOmit | null /** * The data needed to update a perumahan_facilities. */ data: XOR /** * Choose, which perumahan_facilities to update. */ where: perumahan_facilitiesWhereUniqueInput } /** * perumahan_facilities updateMany */ export type perumahan_facilitiesUpdateManyArgs = { /** * The data used to update perumahan_facilities. */ data: XOR /** * Filter which perumahan_facilities to update */ where?: perumahan_facilitiesWhereInput /** * Limit how many perumahan_facilities to update. */ limit?: number } /** * perumahan_facilities upsert */ export type perumahan_facilitiesUpsertArgs = { /** * Select specific fields to fetch from the perumahan_facilities */ select?: perumahan_facilitiesSelect | null /** * Omit specific fields from the perumahan_facilities */ omit?: perumahan_facilitiesOmit | null /** * The filter to search for the perumahan_facilities to update in case it exists. */ where: perumahan_facilitiesWhereUniqueInput /** * In case the perumahan_facilities found by the `where` argument doesn't exist, create a new perumahan_facilities with this data. */ create: XOR /** * In case the perumahan_facilities was found with the provided `where` argument, update it with this data. */ update: XOR } /** * perumahan_facilities delete */ export type perumahan_facilitiesDeleteArgs = { /** * Select specific fields to fetch from the perumahan_facilities */ select?: perumahan_facilitiesSelect | null /** * Omit specific fields from the perumahan_facilities */ omit?: perumahan_facilitiesOmit | null /** * Filter which perumahan_facilities to delete. */ where: perumahan_facilitiesWhereUniqueInput } /** * perumahan_facilities deleteMany */ export type perumahan_facilitiesDeleteManyArgs = { /** * Filter which perumahan_facilities to delete */ where?: perumahan_facilitiesWhereInput /** * Limit how many perumahan_facilities to delete. */ limit?: number } /** * perumahan_facilities without action */ export type perumahan_facilitiesDefaultArgs = { /** * Select specific fields to fetch from the perumahan_facilities */ select?: perumahan_facilitiesSelect | null /** * Omit specific fields from the perumahan_facilities */ omit?: perumahan_facilitiesOmit | null } /** * Model perumahan_info */ export type AggregatePerumahan_info = { _count: Perumahan_infoCountAggregateOutputType | null _avg: Perumahan_infoAvgAggregateOutputType | null _sum: Perumahan_infoSumAggregateOutputType | null _min: Perumahan_infoMinAggregateOutputType | null _max: Perumahan_infoMaxAggregateOutputType | null } export type Perumahan_infoAvgAggregateOutputType = { id: number | null total_units: number | null } export type Perumahan_infoSumAggregateOutputType = { id: number | null total_units: number | null } export type Perumahan_infoMinAggregateOutputType = { id: number | null name: string | null total_units: number | null address: string | null created_at: Date | null updated_at: Date | null } export type Perumahan_infoMaxAggregateOutputType = { id: number | null name: string | null total_units: number | null address: string | null created_at: Date | null updated_at: Date | null } export type Perumahan_infoCountAggregateOutputType = { id: number name: number total_units: number clusters: number address: number created_at: number updated_at: number _all: number } export type Perumahan_infoAvgAggregateInputType = { id?: true total_units?: true } export type Perumahan_infoSumAggregateInputType = { id?: true total_units?: true } export type Perumahan_infoMinAggregateInputType = { id?: true name?: true total_units?: true address?: true created_at?: true updated_at?: true } export type Perumahan_infoMaxAggregateInputType = { id?: true name?: true total_units?: true address?: true created_at?: true updated_at?: true } export type Perumahan_infoCountAggregateInputType = { id?: true name?: true total_units?: true clusters?: true address?: true created_at?: true updated_at?: true _all?: true } export type Perumahan_infoAggregateArgs = { /** * Filter which perumahan_info to aggregate. */ where?: perumahan_infoWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of perumahan_infos to fetch. */ orderBy?: perumahan_infoOrderByWithRelationInput | perumahan_infoOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: perumahan_infoWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` perumahan_infos 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` perumahan_infos. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned perumahan_infos **/ _count?: true | Perumahan_infoCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Perumahan_infoAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Perumahan_infoSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Perumahan_infoMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Perumahan_infoMaxAggregateInputType } export type GetPerumahan_infoAggregateType = { [P in keyof T & keyof AggregatePerumahan_info]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type perumahan_infoGroupByArgs = { where?: perumahan_infoWhereInput orderBy?: perumahan_infoOrderByWithAggregationInput | perumahan_infoOrderByWithAggregationInput[] by: Perumahan_infoScalarFieldEnum[] | Perumahan_infoScalarFieldEnum having?: perumahan_infoScalarWhereWithAggregatesInput take?: number skip?: number _count?: Perumahan_infoCountAggregateInputType | true _avg?: Perumahan_infoAvgAggregateInputType _sum?: Perumahan_infoSumAggregateInputType _min?: Perumahan_infoMinAggregateInputType _max?: Perumahan_infoMaxAggregateInputType } export type Perumahan_infoGroupByOutputType = { id: number name: string total_units: number clusters: JsonValue address: string | null created_at: Date | null updated_at: Date | null _count: Perumahan_infoCountAggregateOutputType | null _avg: Perumahan_infoAvgAggregateOutputType | null _sum: Perumahan_infoSumAggregateOutputType | null _min: Perumahan_infoMinAggregateOutputType | null _max: Perumahan_infoMaxAggregateOutputType | null } type GetPerumahan_infoGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Perumahan_infoGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type perumahan_infoSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean total_units?: boolean clusters?: boolean address?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["perumahan_info"]> export type perumahan_infoSelectScalar = { id?: boolean name?: boolean total_units?: boolean clusters?: boolean address?: boolean created_at?: boolean updated_at?: boolean } export type perumahan_infoOmit = $Extensions.GetOmit<"id" | "name" | "total_units" | "clusters" | "address" | "created_at" | "updated_at", ExtArgs["result"]["perumahan_info"]> export type $perumahan_infoPayload = { name: "perumahan_info" objects: {} scalars: $Extensions.GetPayloadResult<{ id: number name: string total_units: number clusters: Prisma.JsonValue address: string | null created_at: Date | null updated_at: Date | null }, ExtArgs["result"]["perumahan_info"]> composites: {} } type perumahan_infoGetPayload = $Result.GetResult type perumahan_infoCountArgs = Omit & { select?: Perumahan_infoCountAggregateInputType | true } export interface perumahan_infoDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['perumahan_info'], meta: { name: 'perumahan_info' } } /** * Find zero or one Perumahan_info that matches the filter. * @param {perumahan_infoFindUniqueArgs} args - Arguments to find a Perumahan_info * @example * // Get one Perumahan_info * const perumahan_info = await prisma.perumahan_info.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__perumahan_infoClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Perumahan_info that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {perumahan_infoFindUniqueOrThrowArgs} args - Arguments to find a Perumahan_info * @example * // Get one Perumahan_info * const perumahan_info = await prisma.perumahan_info.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__perumahan_infoClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Perumahan_info 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 {perumahan_infoFindFirstArgs} args - Arguments to find a Perumahan_info * @example * // Get one Perumahan_info * const perumahan_info = await prisma.perumahan_info.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__perumahan_infoClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Perumahan_info 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 {perumahan_infoFindFirstOrThrowArgs} args - Arguments to find a Perumahan_info * @example * // Get one Perumahan_info * const perumahan_info = await prisma.perumahan_info.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__perumahan_infoClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Perumahan_infos 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 {perumahan_infoFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Perumahan_infos * const perumahan_infos = await prisma.perumahan_info.findMany() * * // Get first 10 Perumahan_infos * const perumahan_infos = await prisma.perumahan_info.findMany({ take: 10 }) * * // Only select the `id` * const perumahan_infoWithIdOnly = await prisma.perumahan_info.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Perumahan_info. * @param {perumahan_infoCreateArgs} args - Arguments to create a Perumahan_info. * @example * // Create one Perumahan_info * const Perumahan_info = await prisma.perumahan_info.create({ * data: { * // ... data to create a Perumahan_info * } * }) * */ create(args: SelectSubset>): Prisma__perumahan_infoClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Perumahan_infos. * @param {perumahan_infoCreateManyArgs} args - Arguments to create many Perumahan_infos. * @example * // Create many Perumahan_infos * const perumahan_info = await prisma.perumahan_info.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Perumahan_info. * @param {perumahan_infoDeleteArgs} args - Arguments to delete one Perumahan_info. * @example * // Delete one Perumahan_info * const Perumahan_info = await prisma.perumahan_info.delete({ * where: { * // ... filter to delete one Perumahan_info * } * }) * */ delete(args: SelectSubset>): Prisma__perumahan_infoClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Perumahan_info. * @param {perumahan_infoUpdateArgs} args - Arguments to update one Perumahan_info. * @example * // Update one Perumahan_info * const perumahan_info = await prisma.perumahan_info.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__perumahan_infoClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Perumahan_infos. * @param {perumahan_infoDeleteManyArgs} args - Arguments to filter Perumahan_infos to delete. * @example * // Delete a few Perumahan_infos * const { count } = await prisma.perumahan_info.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Perumahan_infos. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {perumahan_infoUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Perumahan_infos * const perumahan_info = await prisma.perumahan_info.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Perumahan_info. * @param {perumahan_infoUpsertArgs} args - Arguments to update or create a Perumahan_info. * @example * // Update or create a Perumahan_info * const perumahan_info = await prisma.perumahan_info.upsert({ * create: { * // ... data to create a Perumahan_info * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Perumahan_info we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__perumahan_infoClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Perumahan_infos. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {perumahan_infoCountArgs} args - Arguments to filter Perumahan_infos to count. * @example * // Count the number of Perumahan_infos * const count = await prisma.perumahan_info.count({ * where: { * // ... the filter for the Perumahan_infos 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 Perumahan_info. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Perumahan_infoAggregateArgs} 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 Perumahan_info. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {perumahan_infoGroupByArgs} 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 perumahan_infoGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: perumahan_infoGroupByArgs['orderBy'] } : { orderBy?: perumahan_infoGroupByArgs['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 ? GetPerumahan_infoGroupByPayload : Prisma.PrismaPromise /** * Fields of the perumahan_info model */ readonly fields: perumahan_infoFieldRefs; } /** * The delegate class that acts as a "Promise-like" for perumahan_info. * 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__perumahan_infoClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the perumahan_info model */ interface perumahan_infoFieldRefs { readonly id: FieldRef<"perumahan_info", 'Int'> readonly name: FieldRef<"perumahan_info", 'String'> readonly total_units: FieldRef<"perumahan_info", 'Int'> readonly clusters: FieldRef<"perumahan_info", 'Json'> readonly address: FieldRef<"perumahan_info", 'String'> readonly created_at: FieldRef<"perumahan_info", 'DateTime'> readonly updated_at: FieldRef<"perumahan_info", 'DateTime'> } // Custom InputTypes /** * perumahan_info findUnique */ export type perumahan_infoFindUniqueArgs = { /** * Select specific fields to fetch from the perumahan_info */ select?: perumahan_infoSelect | null /** * Omit specific fields from the perumahan_info */ omit?: perumahan_infoOmit | null /** * Filter, which perumahan_info to fetch. */ where: perumahan_infoWhereUniqueInput } /** * perumahan_info findUniqueOrThrow */ export type perumahan_infoFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the perumahan_info */ select?: perumahan_infoSelect | null /** * Omit specific fields from the perumahan_info */ omit?: perumahan_infoOmit | null /** * Filter, which perumahan_info to fetch. */ where: perumahan_infoWhereUniqueInput } /** * perumahan_info findFirst */ export type perumahan_infoFindFirstArgs = { /** * Select specific fields to fetch from the perumahan_info */ select?: perumahan_infoSelect | null /** * Omit specific fields from the perumahan_info */ omit?: perumahan_infoOmit | null /** * Filter, which perumahan_info to fetch. */ where?: perumahan_infoWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of perumahan_infos to fetch. */ orderBy?: perumahan_infoOrderByWithRelationInput | perumahan_infoOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for perumahan_infos. */ cursor?: perumahan_infoWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` perumahan_infos 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` perumahan_infos. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of perumahan_infos. */ distinct?: Perumahan_infoScalarFieldEnum | Perumahan_infoScalarFieldEnum[] } /** * perumahan_info findFirstOrThrow */ export type perumahan_infoFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the perumahan_info */ select?: perumahan_infoSelect | null /** * Omit specific fields from the perumahan_info */ omit?: perumahan_infoOmit | null /** * Filter, which perumahan_info to fetch. */ where?: perumahan_infoWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of perumahan_infos to fetch. */ orderBy?: perumahan_infoOrderByWithRelationInput | perumahan_infoOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for perumahan_infos. */ cursor?: perumahan_infoWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` perumahan_infos 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` perumahan_infos. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of perumahan_infos. */ distinct?: Perumahan_infoScalarFieldEnum | Perumahan_infoScalarFieldEnum[] } /** * perumahan_info findMany */ export type perumahan_infoFindManyArgs = { /** * Select specific fields to fetch from the perumahan_info */ select?: perumahan_infoSelect | null /** * Omit specific fields from the perumahan_info */ omit?: perumahan_infoOmit | null /** * Filter, which perumahan_infos to fetch. */ where?: perumahan_infoWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of perumahan_infos to fetch. */ orderBy?: perumahan_infoOrderByWithRelationInput | perumahan_infoOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing perumahan_infos. */ cursor?: perumahan_infoWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` perumahan_infos 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` perumahan_infos. */ skip?: number distinct?: Perumahan_infoScalarFieldEnum | Perumahan_infoScalarFieldEnum[] } /** * perumahan_info create */ export type perumahan_infoCreateArgs = { /** * Select specific fields to fetch from the perumahan_info */ select?: perumahan_infoSelect | null /** * Omit specific fields from the perumahan_info */ omit?: perumahan_infoOmit | null /** * The data needed to create a perumahan_info. */ data: XOR } /** * perumahan_info createMany */ export type perumahan_infoCreateManyArgs = { /** * The data used to create many perumahan_infos. */ data: perumahan_infoCreateManyInput | perumahan_infoCreateManyInput[] skipDuplicates?: boolean } /** * perumahan_info update */ export type perumahan_infoUpdateArgs = { /** * Select specific fields to fetch from the perumahan_info */ select?: perumahan_infoSelect | null /** * Omit specific fields from the perumahan_info */ omit?: perumahan_infoOmit | null /** * The data needed to update a perumahan_info. */ data: XOR /** * Choose, which perumahan_info to update. */ where: perumahan_infoWhereUniqueInput } /** * perumahan_info updateMany */ export type perumahan_infoUpdateManyArgs = { /** * The data used to update perumahan_infos. */ data: XOR /** * Filter which perumahan_infos to update */ where?: perumahan_infoWhereInput /** * Limit how many perumahan_infos to update. */ limit?: number } /** * perumahan_info upsert */ export type perumahan_infoUpsertArgs = { /** * Select specific fields to fetch from the perumahan_info */ select?: perumahan_infoSelect | null /** * Omit specific fields from the perumahan_info */ omit?: perumahan_infoOmit | null /** * The filter to search for the perumahan_info to update in case it exists. */ where: perumahan_infoWhereUniqueInput /** * In case the perumahan_info found by the `where` argument doesn't exist, create a new perumahan_info with this data. */ create: XOR /** * In case the perumahan_info was found with the provided `where` argument, update it with this data. */ update: XOR } /** * perumahan_info delete */ export type perumahan_infoDeleteArgs = { /** * Select specific fields to fetch from the perumahan_info */ select?: perumahan_infoSelect | null /** * Omit specific fields from the perumahan_info */ omit?: perumahan_infoOmit | null /** * Filter which perumahan_info to delete. */ where: perumahan_infoWhereUniqueInput } /** * perumahan_info deleteMany */ export type perumahan_infoDeleteManyArgs = { /** * Filter which perumahan_infos to delete */ where?: perumahan_infoWhereInput /** * Limit how many perumahan_infos to delete. */ limit?: number } /** * perumahan_info without action */ export type perumahan_infoDefaultArgs = { /** * Select specific fields to fetch from the perumahan_info */ select?: perumahan_infoSelect | null /** * Omit specific fields from the perumahan_info */ omit?: perumahan_infoOmit | null } /** * Model qr_codes */ export type AggregateQr_codes = { _count: Qr_codesCountAggregateOutputType | null _avg: Qr_codesAvgAggregateOutputType | null _sum: Qr_codesSumAggregateOutputType | null _min: Qr_codesMinAggregateOutputType | null _max: Qr_codesMaxAggregateOutputType | null } export type Qr_codesAvgAggregateOutputType = { location_lat: Decimal | null location_lng: Decimal | null geofence_radius: number | null max_daily_registrations: number | null usage_count: number | null } export type Qr_codesSumAggregateOutputType = { location_lat: Decimal | null location_lng: Decimal | null geofence_radius: number | null max_daily_registrations: number | null usage_count: number | null } export type Qr_codesMinAggregateOutputType = { id: string | null entry_point: string | null qr_data: string | null location_lat: Decimal | null location_lng: Decimal | null geofence_radius: number | null is_active: boolean | null description: string | null max_daily_registrations: number | null security_level: $Enums.qr_codes_security_level | null requires_approval: boolean | null last_used_at: Date | null usage_count: number | null created_by: string | null updated_by: string | null created_at: Date | null updated_at: Date | null } export type Qr_codesMaxAggregateOutputType = { id: string | null entry_point: string | null qr_data: string | null location_lat: Decimal | null location_lng: Decimal | null geofence_radius: number | null is_active: boolean | null description: string | null max_daily_registrations: number | null security_level: $Enums.qr_codes_security_level | null requires_approval: boolean | null last_used_at: Date | null usage_count: number | null created_by: string | null updated_by: string | null created_at: Date | null updated_at: Date | null } export type Qr_codesCountAggregateOutputType = { id: number entry_point: number qr_data: number location_lat: number location_lng: number geofence_radius: number is_active: number description: number max_daily_registrations: number operating_hours: number security_level: number requires_approval: number auto_approve_roles: number metadata: number last_used_at: number usage_count: number created_by: number updated_by: number created_at: number updated_at: number _all: number } export type Qr_codesAvgAggregateInputType = { location_lat?: true location_lng?: true geofence_radius?: true max_daily_registrations?: true usage_count?: true } export type Qr_codesSumAggregateInputType = { location_lat?: true location_lng?: true geofence_radius?: true max_daily_registrations?: true usage_count?: true } export type Qr_codesMinAggregateInputType = { id?: true entry_point?: true qr_data?: true location_lat?: true location_lng?: true geofence_radius?: true is_active?: true description?: true max_daily_registrations?: true security_level?: true requires_approval?: true last_used_at?: true usage_count?: true created_by?: true updated_by?: true created_at?: true updated_at?: true } export type Qr_codesMaxAggregateInputType = { id?: true entry_point?: true qr_data?: true location_lat?: true location_lng?: true geofence_radius?: true is_active?: true description?: true max_daily_registrations?: true security_level?: true requires_approval?: true last_used_at?: true usage_count?: true created_by?: true updated_by?: true created_at?: true updated_at?: true } export type Qr_codesCountAggregateInputType = { id?: true entry_point?: true qr_data?: true location_lat?: true location_lng?: true geofence_radius?: true is_active?: true description?: true max_daily_registrations?: true operating_hours?: true security_level?: true requires_approval?: true auto_approve_roles?: true metadata?: true last_used_at?: true usage_count?: true created_by?: true updated_by?: true created_at?: true updated_at?: true _all?: true } export type Qr_codesAggregateArgs = { /** * Filter which qr_codes to aggregate. */ where?: qr_codesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of qr_codes to fetch. */ orderBy?: qr_codesOrderByWithRelationInput | qr_codesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: qr_codesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` qr_codes 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` qr_codes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned qr_codes **/ _count?: true | Qr_codesCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Qr_codesAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Qr_codesSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Qr_codesMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Qr_codesMaxAggregateInputType } export type GetQr_codesAggregateType = { [P in keyof T & keyof AggregateQr_codes]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type qr_codesGroupByArgs = { where?: qr_codesWhereInput orderBy?: qr_codesOrderByWithAggregationInput | qr_codesOrderByWithAggregationInput[] by: Qr_codesScalarFieldEnum[] | Qr_codesScalarFieldEnum having?: qr_codesScalarWhereWithAggregatesInput take?: number skip?: number _count?: Qr_codesCountAggregateInputType | true _avg?: Qr_codesAvgAggregateInputType _sum?: Qr_codesSumAggregateInputType _min?: Qr_codesMinAggregateInputType _max?: Qr_codesMaxAggregateInputType } export type Qr_codesGroupByOutputType = { id: string entry_point: string qr_data: string location_lat: Decimal location_lng: Decimal geofence_radius: number is_active: boolean description: string | null max_daily_registrations: number | null operating_hours: JsonValue | null security_level: $Enums.qr_codes_security_level requires_approval: boolean auto_approve_roles: JsonValue | null metadata: JsonValue | null last_used_at: Date | null usage_count: number created_by: string | null updated_by: string | null created_at: Date updated_at: Date _count: Qr_codesCountAggregateOutputType | null _avg: Qr_codesAvgAggregateOutputType | null _sum: Qr_codesSumAggregateOutputType | null _min: Qr_codesMinAggregateOutputType | null _max: Qr_codesMaxAggregateOutputType | null } type GetQr_codesGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Qr_codesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type qr_codesSelect = $Extensions.GetSelect<{ id?: boolean entry_point?: boolean qr_data?: boolean location_lat?: boolean location_lng?: boolean geofence_radius?: boolean is_active?: boolean description?: boolean max_daily_registrations?: boolean operating_hours?: boolean security_level?: boolean requires_approval?: boolean auto_approve_roles?: boolean metadata?: boolean last_used_at?: boolean usage_count?: boolean created_by?: boolean updated_by?: boolean created_at?: boolean updated_at?: boolean visitor_registrations?: boolean | qr_codes$visitor_registrationsArgs _count?: boolean | Qr_codesCountOutputTypeDefaultArgs }, ExtArgs["result"]["qr_codes"]> export type qr_codesSelectScalar = { id?: boolean entry_point?: boolean qr_data?: boolean location_lat?: boolean location_lng?: boolean geofence_radius?: boolean is_active?: boolean description?: boolean max_daily_registrations?: boolean operating_hours?: boolean security_level?: boolean requires_approval?: boolean auto_approve_roles?: boolean metadata?: boolean last_used_at?: boolean usage_count?: boolean created_by?: boolean updated_by?: boolean created_at?: boolean updated_at?: boolean } export type qr_codesOmit = $Extensions.GetOmit<"id" | "entry_point" | "qr_data" | "location_lat" | "location_lng" | "geofence_radius" | "is_active" | "description" | "max_daily_registrations" | "operating_hours" | "security_level" | "requires_approval" | "auto_approve_roles" | "metadata" | "last_used_at" | "usage_count" | "created_by" | "updated_by" | "created_at" | "updated_at", ExtArgs["result"]["qr_codes"]> export type qr_codesInclude = { visitor_registrations?: boolean | qr_codes$visitor_registrationsArgs _count?: boolean | Qr_codesCountOutputTypeDefaultArgs } export type $qr_codesPayload = { name: "qr_codes" objects: { visitor_registrations: Prisma.$visitor_registrationsPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string entry_point: string qr_data: string location_lat: Prisma.Decimal location_lng: Prisma.Decimal geofence_radius: number is_active: boolean description: string | null max_daily_registrations: number | null operating_hours: Prisma.JsonValue | null security_level: $Enums.qr_codes_security_level requires_approval: boolean auto_approve_roles: Prisma.JsonValue | null metadata: Prisma.JsonValue | null last_used_at: Date | null usage_count: number created_by: string | null updated_by: string | null created_at: Date updated_at: Date }, ExtArgs["result"]["qr_codes"]> composites: {} } type qr_codesGetPayload = $Result.GetResult type qr_codesCountArgs = Omit & { select?: Qr_codesCountAggregateInputType | true } export interface qr_codesDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['qr_codes'], meta: { name: 'qr_codes' } } /** * Find zero or one Qr_codes that matches the filter. * @param {qr_codesFindUniqueArgs} args - Arguments to find a Qr_codes * @example * // Get one Qr_codes * const qr_codes = await prisma.qr_codes.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__qr_codesClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Qr_codes that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {qr_codesFindUniqueOrThrowArgs} args - Arguments to find a Qr_codes * @example * // Get one Qr_codes * const qr_codes = await prisma.qr_codes.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__qr_codesClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Qr_codes 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 {qr_codesFindFirstArgs} args - Arguments to find a Qr_codes * @example * // Get one Qr_codes * const qr_codes = await prisma.qr_codes.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__qr_codesClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Qr_codes 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 {qr_codesFindFirstOrThrowArgs} args - Arguments to find a Qr_codes * @example * // Get one Qr_codes * const qr_codes = await prisma.qr_codes.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__qr_codesClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Qr_codes 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 {qr_codesFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Qr_codes * const qr_codes = await prisma.qr_codes.findMany() * * // Get first 10 Qr_codes * const qr_codes = await prisma.qr_codes.findMany({ take: 10 }) * * // Only select the `id` * const qr_codesWithIdOnly = await prisma.qr_codes.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Qr_codes. * @param {qr_codesCreateArgs} args - Arguments to create a Qr_codes. * @example * // Create one Qr_codes * const Qr_codes = await prisma.qr_codes.create({ * data: { * // ... data to create a Qr_codes * } * }) * */ create(args: SelectSubset>): Prisma__qr_codesClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Qr_codes. * @param {qr_codesCreateManyArgs} args - Arguments to create many Qr_codes. * @example * // Create many Qr_codes * const qr_codes = await prisma.qr_codes.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Qr_codes. * @param {qr_codesDeleteArgs} args - Arguments to delete one Qr_codes. * @example * // Delete one Qr_codes * const Qr_codes = await prisma.qr_codes.delete({ * where: { * // ... filter to delete one Qr_codes * } * }) * */ delete(args: SelectSubset>): Prisma__qr_codesClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Qr_codes. * @param {qr_codesUpdateArgs} args - Arguments to update one Qr_codes. * @example * // Update one Qr_codes * const qr_codes = await prisma.qr_codes.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__qr_codesClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Qr_codes. * @param {qr_codesDeleteManyArgs} args - Arguments to filter Qr_codes to delete. * @example * // Delete a few Qr_codes * const { count } = await prisma.qr_codes.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Qr_codes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {qr_codesUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Qr_codes * const qr_codes = await prisma.qr_codes.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Qr_codes. * @param {qr_codesUpsertArgs} args - Arguments to update or create a Qr_codes. * @example * // Update or create a Qr_codes * const qr_codes = await prisma.qr_codes.upsert({ * create: { * // ... data to create a Qr_codes * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Qr_codes we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__qr_codesClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Qr_codes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {qr_codesCountArgs} args - Arguments to filter Qr_codes to count. * @example * // Count the number of Qr_codes * const count = await prisma.qr_codes.count({ * where: { * // ... the filter for the Qr_codes 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 Qr_codes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Qr_codesAggregateArgs} 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 Qr_codes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {qr_codesGroupByArgs} 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 qr_codesGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: qr_codesGroupByArgs['orderBy'] } : { orderBy?: qr_codesGroupByArgs['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 ? GetQr_codesGroupByPayload : Prisma.PrismaPromise /** * Fields of the qr_codes model */ readonly fields: qr_codesFieldRefs; } /** * The delegate class that acts as a "Promise-like" for qr_codes. * 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__qr_codesClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" visitor_registrations = {}>(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 qr_codes model */ interface qr_codesFieldRefs { readonly id: FieldRef<"qr_codes", 'String'> readonly entry_point: FieldRef<"qr_codes", 'String'> readonly qr_data: FieldRef<"qr_codes", 'String'> readonly location_lat: FieldRef<"qr_codes", 'Decimal'> readonly location_lng: FieldRef<"qr_codes", 'Decimal'> readonly geofence_radius: FieldRef<"qr_codes", 'Int'> readonly is_active: FieldRef<"qr_codes", 'Boolean'> readonly description: FieldRef<"qr_codes", 'String'> readonly max_daily_registrations: FieldRef<"qr_codes", 'Int'> readonly operating_hours: FieldRef<"qr_codes", 'Json'> readonly security_level: FieldRef<"qr_codes", 'qr_codes_security_level'> readonly requires_approval: FieldRef<"qr_codes", 'Boolean'> readonly auto_approve_roles: FieldRef<"qr_codes", 'Json'> readonly metadata: FieldRef<"qr_codes", 'Json'> readonly last_used_at: FieldRef<"qr_codes", 'DateTime'> readonly usage_count: FieldRef<"qr_codes", 'Int'> readonly created_by: FieldRef<"qr_codes", 'String'> readonly updated_by: FieldRef<"qr_codes", 'String'> readonly created_at: FieldRef<"qr_codes", 'DateTime'> readonly updated_at: FieldRef<"qr_codes", 'DateTime'> } // Custom InputTypes /** * qr_codes findUnique */ export type qr_codesFindUniqueArgs = { /** * Select specific fields to fetch from the qr_codes */ select?: qr_codesSelect | null /** * Omit specific fields from the qr_codes */ omit?: qr_codesOmit | null /** * Choose, which related nodes to fetch as well */ include?: qr_codesInclude | null /** * Filter, which qr_codes to fetch. */ where: qr_codesWhereUniqueInput } /** * qr_codes findUniqueOrThrow */ export type qr_codesFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the qr_codes */ select?: qr_codesSelect | null /** * Omit specific fields from the qr_codes */ omit?: qr_codesOmit | null /** * Choose, which related nodes to fetch as well */ include?: qr_codesInclude | null /** * Filter, which qr_codes to fetch. */ where: qr_codesWhereUniqueInput } /** * qr_codes findFirst */ export type qr_codesFindFirstArgs = { /** * Select specific fields to fetch from the qr_codes */ select?: qr_codesSelect | null /** * Omit specific fields from the qr_codes */ omit?: qr_codesOmit | null /** * Choose, which related nodes to fetch as well */ include?: qr_codesInclude | null /** * Filter, which qr_codes to fetch. */ where?: qr_codesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of qr_codes to fetch. */ orderBy?: qr_codesOrderByWithRelationInput | qr_codesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for qr_codes. */ cursor?: qr_codesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` qr_codes 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` qr_codes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of qr_codes. */ distinct?: Qr_codesScalarFieldEnum | Qr_codesScalarFieldEnum[] } /** * qr_codes findFirstOrThrow */ export type qr_codesFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the qr_codes */ select?: qr_codesSelect | null /** * Omit specific fields from the qr_codes */ omit?: qr_codesOmit | null /** * Choose, which related nodes to fetch as well */ include?: qr_codesInclude | null /** * Filter, which qr_codes to fetch. */ where?: qr_codesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of qr_codes to fetch. */ orderBy?: qr_codesOrderByWithRelationInput | qr_codesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for qr_codes. */ cursor?: qr_codesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` qr_codes 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` qr_codes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of qr_codes. */ distinct?: Qr_codesScalarFieldEnum | Qr_codesScalarFieldEnum[] } /** * qr_codes findMany */ export type qr_codesFindManyArgs = { /** * Select specific fields to fetch from the qr_codes */ select?: qr_codesSelect | null /** * Omit specific fields from the qr_codes */ omit?: qr_codesOmit | null /** * Choose, which related nodes to fetch as well */ include?: qr_codesInclude | null /** * Filter, which qr_codes to fetch. */ where?: qr_codesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of qr_codes to fetch. */ orderBy?: qr_codesOrderByWithRelationInput | qr_codesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing qr_codes. */ cursor?: qr_codesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` qr_codes 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` qr_codes. */ skip?: number distinct?: Qr_codesScalarFieldEnum | Qr_codesScalarFieldEnum[] } /** * qr_codes create */ export type qr_codesCreateArgs = { /** * Select specific fields to fetch from the qr_codes */ select?: qr_codesSelect | null /** * Omit specific fields from the qr_codes */ omit?: qr_codesOmit | null /** * Choose, which related nodes to fetch as well */ include?: qr_codesInclude | null /** * The data needed to create a qr_codes. */ data: XOR } /** * qr_codes createMany */ export type qr_codesCreateManyArgs = { /** * The data used to create many qr_codes. */ data: qr_codesCreateManyInput | qr_codesCreateManyInput[] skipDuplicates?: boolean } /** * qr_codes update */ export type qr_codesUpdateArgs = { /** * Select specific fields to fetch from the qr_codes */ select?: qr_codesSelect | null /** * Omit specific fields from the qr_codes */ omit?: qr_codesOmit | null /** * Choose, which related nodes to fetch as well */ include?: qr_codesInclude | null /** * The data needed to update a qr_codes. */ data: XOR /** * Choose, which qr_codes to update. */ where: qr_codesWhereUniqueInput } /** * qr_codes updateMany */ export type qr_codesUpdateManyArgs = { /** * The data used to update qr_codes. */ data: XOR /** * Filter which qr_codes to update */ where?: qr_codesWhereInput /** * Limit how many qr_codes to update. */ limit?: number } /** * qr_codes upsert */ export type qr_codesUpsertArgs = { /** * Select specific fields to fetch from the qr_codes */ select?: qr_codesSelect | null /** * Omit specific fields from the qr_codes */ omit?: qr_codesOmit | null /** * Choose, which related nodes to fetch as well */ include?: qr_codesInclude | null /** * The filter to search for the qr_codes to update in case it exists. */ where: qr_codesWhereUniqueInput /** * In case the qr_codes found by the `where` argument doesn't exist, create a new qr_codes with this data. */ create: XOR /** * In case the qr_codes was found with the provided `where` argument, update it with this data. */ update: XOR } /** * qr_codes delete */ export type qr_codesDeleteArgs = { /** * Select specific fields to fetch from the qr_codes */ select?: qr_codesSelect | null /** * Omit specific fields from the qr_codes */ omit?: qr_codesOmit | null /** * Choose, which related nodes to fetch as well */ include?: qr_codesInclude | null /** * Filter which qr_codes to delete. */ where: qr_codesWhereUniqueInput } /** * qr_codes deleteMany */ export type qr_codesDeleteManyArgs = { /** * Filter which qr_codes to delete */ where?: qr_codesWhereInput /** * Limit how many qr_codes to delete. */ limit?: number } /** * qr_codes.visitor_registrations */ export type qr_codes$visitor_registrationsArgs = { /** * Select specific fields to fetch from the visitor_registrations */ select?: visitor_registrationsSelect | null /** * Omit specific fields from the visitor_registrations */ omit?: visitor_registrationsOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_registrationsInclude | null where?: visitor_registrationsWhereInput orderBy?: visitor_registrationsOrderByWithRelationInput | visitor_registrationsOrderByWithRelationInput[] cursor?: visitor_registrationsWhereUniqueInput take?: number skip?: number distinct?: Visitor_registrationsScalarFieldEnum | Visitor_registrationsScalarFieldEnum[] } /** * qr_codes without action */ export type qr_codesDefaultArgs = { /** * Select specific fields to fetch from the qr_codes */ select?: qr_codesSelect | null /** * Omit specific fields from the qr_codes */ omit?: qr_codesOmit | null /** * Choose, which related nodes to fetch as well */ include?: qr_codesInclude | null } /** * Model security_activities */ export type AggregateSecurity_activities = { _count: Security_activitiesCountAggregateOutputType | null _avg: Security_activitiesAvgAggregateOutputType | null _sum: Security_activitiesSumAggregateOutputType | null _min: Security_activitiesMinAggregateOutputType | null _max: Security_activitiesMaxAggregateOutputType | null } export type Security_activitiesAvgAggregateOutputType = { id: number | null } export type Security_activitiesSumAggregateOutputType = { id: number | null } export type Security_activitiesMinAggregateOutputType = { id: number | null type: string | null ref_id: string | null actor: string | null note: string | null severity: $Enums.security_activities_severity | null timestamp: Date | null source: string | null } export type Security_activitiesMaxAggregateOutputType = { id: number | null type: string | null ref_id: string | null actor: string | null note: string | null severity: $Enums.security_activities_severity | null timestamp: Date | null source: string | null } export type Security_activitiesCountAggregateOutputType = { id: number type: number ref_id: number actor: number note: number severity: number timestamp: number metadata: number source: number _all: number } export type Security_activitiesAvgAggregateInputType = { id?: true } export type Security_activitiesSumAggregateInputType = { id?: true } export type Security_activitiesMinAggregateInputType = { id?: true type?: true ref_id?: true actor?: true note?: true severity?: true timestamp?: true source?: true } export type Security_activitiesMaxAggregateInputType = { id?: true type?: true ref_id?: true actor?: true note?: true severity?: true timestamp?: true source?: true } export type Security_activitiesCountAggregateInputType = { id?: true type?: true ref_id?: true actor?: true note?: true severity?: true timestamp?: true metadata?: true source?: true _all?: true } export type Security_activitiesAggregateArgs = { /** * Filter which security_activities to aggregate. */ where?: security_activitiesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of security_activities to fetch. */ orderBy?: security_activitiesOrderByWithRelationInput | security_activitiesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: security_activitiesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` security_activities 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` security_activities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned security_activities **/ _count?: true | Security_activitiesCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Security_activitiesAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Security_activitiesSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Security_activitiesMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Security_activitiesMaxAggregateInputType } export type GetSecurity_activitiesAggregateType = { [P in keyof T & keyof AggregateSecurity_activities]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type security_activitiesGroupByArgs = { where?: security_activitiesWhereInput orderBy?: security_activitiesOrderByWithAggregationInput | security_activitiesOrderByWithAggregationInput[] by: Security_activitiesScalarFieldEnum[] | Security_activitiesScalarFieldEnum having?: security_activitiesScalarWhereWithAggregatesInput take?: number skip?: number _count?: Security_activitiesCountAggregateInputType | true _avg?: Security_activitiesAvgAggregateInputType _sum?: Security_activitiesSumAggregateInputType _min?: Security_activitiesMinAggregateInputType _max?: Security_activitiesMaxAggregateInputType } export type Security_activitiesGroupByOutputType = { id: number type: string ref_id: string | null actor: string note: string severity: $Enums.security_activities_severity | null timestamp: Date | null metadata: JsonValue | null source: string | null _count: Security_activitiesCountAggregateOutputType | null _avg: Security_activitiesAvgAggregateOutputType | null _sum: Security_activitiesSumAggregateOutputType | null _min: Security_activitiesMinAggregateOutputType | null _max: Security_activitiesMaxAggregateOutputType | null } type GetSecurity_activitiesGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Security_activitiesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type security_activitiesSelect = $Extensions.GetSelect<{ id?: boolean type?: boolean ref_id?: boolean actor?: boolean note?: boolean severity?: boolean timestamp?: boolean metadata?: boolean source?: boolean }, ExtArgs["result"]["security_activities"]> export type security_activitiesSelectScalar = { id?: boolean type?: boolean ref_id?: boolean actor?: boolean note?: boolean severity?: boolean timestamp?: boolean metadata?: boolean source?: boolean } export type security_activitiesOmit = $Extensions.GetOmit<"id" | "type" | "ref_id" | "actor" | "note" | "severity" | "timestamp" | "metadata" | "source", ExtArgs["result"]["security_activities"]> export type $security_activitiesPayload = { name: "security_activities" objects: {} scalars: $Extensions.GetPayloadResult<{ id: number type: string ref_id: string | null actor: string note: string severity: $Enums.security_activities_severity | null timestamp: Date | null metadata: Prisma.JsonValue | null source: string | null }, ExtArgs["result"]["security_activities"]> composites: {} } type security_activitiesGetPayload = $Result.GetResult type security_activitiesCountArgs = Omit & { select?: Security_activitiesCountAggregateInputType | true } export interface security_activitiesDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['security_activities'], meta: { name: 'security_activities' } } /** * Find zero or one Security_activities that matches the filter. * @param {security_activitiesFindUniqueArgs} args - Arguments to find a Security_activities * @example * // Get one Security_activities * const security_activities = await prisma.security_activities.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__security_activitiesClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Security_activities that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {security_activitiesFindUniqueOrThrowArgs} args - Arguments to find a Security_activities * @example * // Get one Security_activities * const security_activities = await prisma.security_activities.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__security_activitiesClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Security_activities 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 {security_activitiesFindFirstArgs} args - Arguments to find a Security_activities * @example * // Get one Security_activities * const security_activities = await prisma.security_activities.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__security_activitiesClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Security_activities 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 {security_activitiesFindFirstOrThrowArgs} args - Arguments to find a Security_activities * @example * // Get one Security_activities * const security_activities = await prisma.security_activities.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__security_activitiesClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Security_activities 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 {security_activitiesFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Security_activities * const security_activities = await prisma.security_activities.findMany() * * // Get first 10 Security_activities * const security_activities = await prisma.security_activities.findMany({ take: 10 }) * * // Only select the `id` * const security_activitiesWithIdOnly = await prisma.security_activities.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Security_activities. * @param {security_activitiesCreateArgs} args - Arguments to create a Security_activities. * @example * // Create one Security_activities * const Security_activities = await prisma.security_activities.create({ * data: { * // ... data to create a Security_activities * } * }) * */ create(args: SelectSubset>): Prisma__security_activitiesClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Security_activities. * @param {security_activitiesCreateManyArgs} args - Arguments to create many Security_activities. * @example * // Create many Security_activities * const security_activities = await prisma.security_activities.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Security_activities. * @param {security_activitiesDeleteArgs} args - Arguments to delete one Security_activities. * @example * // Delete one Security_activities * const Security_activities = await prisma.security_activities.delete({ * where: { * // ... filter to delete one Security_activities * } * }) * */ delete(args: SelectSubset>): Prisma__security_activitiesClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Security_activities. * @param {security_activitiesUpdateArgs} args - Arguments to update one Security_activities. * @example * // Update one Security_activities * const security_activities = await prisma.security_activities.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__security_activitiesClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Security_activities. * @param {security_activitiesDeleteManyArgs} args - Arguments to filter Security_activities to delete. * @example * // Delete a few Security_activities * const { count } = await prisma.security_activities.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Security_activities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {security_activitiesUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Security_activities * const security_activities = await prisma.security_activities.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Security_activities. * @param {security_activitiesUpsertArgs} args - Arguments to update or create a Security_activities. * @example * // Update or create a Security_activities * const security_activities = await prisma.security_activities.upsert({ * create: { * // ... data to create a Security_activities * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Security_activities we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__security_activitiesClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Security_activities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {security_activitiesCountArgs} args - Arguments to filter Security_activities to count. * @example * // Count the number of Security_activities * const count = await prisma.security_activities.count({ * where: { * // ... the filter for the Security_activities 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 Security_activities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Security_activitiesAggregateArgs} 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 Security_activities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {security_activitiesGroupByArgs} 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 security_activitiesGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: security_activitiesGroupByArgs['orderBy'] } : { orderBy?: security_activitiesGroupByArgs['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 ? GetSecurity_activitiesGroupByPayload : Prisma.PrismaPromise /** * Fields of the security_activities model */ readonly fields: security_activitiesFieldRefs; } /** * The delegate class that acts as a "Promise-like" for security_activities. * 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__security_activitiesClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the security_activities model */ interface security_activitiesFieldRefs { readonly id: FieldRef<"security_activities", 'Int'> readonly type: FieldRef<"security_activities", 'String'> readonly ref_id: FieldRef<"security_activities", 'String'> readonly actor: FieldRef<"security_activities", 'String'> readonly note: FieldRef<"security_activities", 'String'> readonly severity: FieldRef<"security_activities", 'security_activities_severity'> readonly timestamp: FieldRef<"security_activities", 'DateTime'> readonly metadata: FieldRef<"security_activities", 'Json'> readonly source: FieldRef<"security_activities", 'String'> } // Custom InputTypes /** * security_activities findUnique */ export type security_activitiesFindUniqueArgs = { /** * Select specific fields to fetch from the security_activities */ select?: security_activitiesSelect | null /** * Omit specific fields from the security_activities */ omit?: security_activitiesOmit | null /** * Filter, which security_activities to fetch. */ where: security_activitiesWhereUniqueInput } /** * security_activities findUniqueOrThrow */ export type security_activitiesFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the security_activities */ select?: security_activitiesSelect | null /** * Omit specific fields from the security_activities */ omit?: security_activitiesOmit | null /** * Filter, which security_activities to fetch. */ where: security_activitiesWhereUniqueInput } /** * security_activities findFirst */ export type security_activitiesFindFirstArgs = { /** * Select specific fields to fetch from the security_activities */ select?: security_activitiesSelect | null /** * Omit specific fields from the security_activities */ omit?: security_activitiesOmit | null /** * Filter, which security_activities to fetch. */ where?: security_activitiesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of security_activities to fetch. */ orderBy?: security_activitiesOrderByWithRelationInput | security_activitiesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for security_activities. */ cursor?: security_activitiesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` security_activities 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` security_activities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of security_activities. */ distinct?: Security_activitiesScalarFieldEnum | Security_activitiesScalarFieldEnum[] } /** * security_activities findFirstOrThrow */ export type security_activitiesFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the security_activities */ select?: security_activitiesSelect | null /** * Omit specific fields from the security_activities */ omit?: security_activitiesOmit | null /** * Filter, which security_activities to fetch. */ where?: security_activitiesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of security_activities to fetch. */ orderBy?: security_activitiesOrderByWithRelationInput | security_activitiesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for security_activities. */ cursor?: security_activitiesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` security_activities 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` security_activities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of security_activities. */ distinct?: Security_activitiesScalarFieldEnum | Security_activitiesScalarFieldEnum[] } /** * security_activities findMany */ export type security_activitiesFindManyArgs = { /** * Select specific fields to fetch from the security_activities */ select?: security_activitiesSelect | null /** * Omit specific fields from the security_activities */ omit?: security_activitiesOmit | null /** * Filter, which security_activities to fetch. */ where?: security_activitiesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of security_activities to fetch. */ orderBy?: security_activitiesOrderByWithRelationInput | security_activitiesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing security_activities. */ cursor?: security_activitiesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` security_activities 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` security_activities. */ skip?: number distinct?: Security_activitiesScalarFieldEnum | Security_activitiesScalarFieldEnum[] } /** * security_activities create */ export type security_activitiesCreateArgs = { /** * Select specific fields to fetch from the security_activities */ select?: security_activitiesSelect | null /** * Omit specific fields from the security_activities */ omit?: security_activitiesOmit | null /** * The data needed to create a security_activities. */ data: XOR } /** * security_activities createMany */ export type security_activitiesCreateManyArgs = { /** * The data used to create many security_activities. */ data: security_activitiesCreateManyInput | security_activitiesCreateManyInput[] skipDuplicates?: boolean } /** * security_activities update */ export type security_activitiesUpdateArgs = { /** * Select specific fields to fetch from the security_activities */ select?: security_activitiesSelect | null /** * Omit specific fields from the security_activities */ omit?: security_activitiesOmit | null /** * The data needed to update a security_activities. */ data: XOR /** * Choose, which security_activities to update. */ where: security_activitiesWhereUniqueInput } /** * security_activities updateMany */ export type security_activitiesUpdateManyArgs = { /** * The data used to update security_activities. */ data: XOR /** * Filter which security_activities to update */ where?: security_activitiesWhereInput /** * Limit how many security_activities to update. */ limit?: number } /** * security_activities upsert */ export type security_activitiesUpsertArgs = { /** * Select specific fields to fetch from the security_activities */ select?: security_activitiesSelect | null /** * Omit specific fields from the security_activities */ omit?: security_activitiesOmit | null /** * The filter to search for the security_activities to update in case it exists. */ where: security_activitiesWhereUniqueInput /** * In case the security_activities found by the `where` argument doesn't exist, create a new security_activities with this data. */ create: XOR /** * In case the security_activities was found with the provided `where` argument, update it with this data. */ update: XOR } /** * security_activities delete */ export type security_activitiesDeleteArgs = { /** * Select specific fields to fetch from the security_activities */ select?: security_activitiesSelect | null /** * Omit specific fields from the security_activities */ omit?: security_activitiesOmit | null /** * Filter which security_activities to delete. */ where: security_activitiesWhereUniqueInput } /** * security_activities deleteMany */ export type security_activitiesDeleteManyArgs = { /** * Filter which security_activities to delete */ where?: security_activitiesWhereInput /** * Limit how many security_activities to delete. */ limit?: number } /** * security_activities without action */ export type security_activitiesDefaultArgs = { /** * Select specific fields to fetch from the security_activities */ select?: security_activitiesSelect | null /** * Omit specific fields from the security_activities */ omit?: security_activitiesOmit | null } /** * Model sequelizemeta */ export type AggregateSequelizemeta = { _count: SequelizemetaCountAggregateOutputType | null _min: SequelizemetaMinAggregateOutputType | null _max: SequelizemetaMaxAggregateOutputType | null } export type SequelizemetaMinAggregateOutputType = { name: string | null } export type SequelizemetaMaxAggregateOutputType = { name: string | null } export type SequelizemetaCountAggregateOutputType = { name: number _all: number } export type SequelizemetaMinAggregateInputType = { name?: true } export type SequelizemetaMaxAggregateInputType = { name?: true } export type SequelizemetaCountAggregateInputType = { name?: true _all?: true } export type SequelizemetaAggregateArgs = { /** * Filter which sequelizemeta to aggregate. */ where?: sequelizemetaWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of sequelizemetas to fetch. */ orderBy?: sequelizemetaOrderByWithRelationInput | sequelizemetaOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: sequelizemetaWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` sequelizemetas 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` sequelizemetas. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned sequelizemetas **/ _count?: true | SequelizemetaCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SequelizemetaMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SequelizemetaMaxAggregateInputType } export type GetSequelizemetaAggregateType = { [P in keyof T & keyof AggregateSequelizemeta]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type sequelizemetaGroupByArgs = { where?: sequelizemetaWhereInput orderBy?: sequelizemetaOrderByWithAggregationInput | sequelizemetaOrderByWithAggregationInput[] by: SequelizemetaScalarFieldEnum[] | SequelizemetaScalarFieldEnum having?: sequelizemetaScalarWhereWithAggregatesInput take?: number skip?: number _count?: SequelizemetaCountAggregateInputType | true _min?: SequelizemetaMinAggregateInputType _max?: SequelizemetaMaxAggregateInputType } export type SequelizemetaGroupByOutputType = { name: string _count: SequelizemetaCountAggregateOutputType | null _min: SequelizemetaMinAggregateOutputType | null _max: SequelizemetaMaxAggregateOutputType | null } type GetSequelizemetaGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SequelizemetaGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type sequelizemetaSelect = $Extensions.GetSelect<{ name?: boolean }, ExtArgs["result"]["sequelizemeta"]> export type sequelizemetaSelectScalar = { name?: boolean } export type sequelizemetaOmit = $Extensions.GetOmit<"name", ExtArgs["result"]["sequelizemeta"]> export type $sequelizemetaPayload = { name: "sequelizemeta" objects: {} scalars: $Extensions.GetPayloadResult<{ name: string }, ExtArgs["result"]["sequelizemeta"]> composites: {} } type sequelizemetaGetPayload = $Result.GetResult type sequelizemetaCountArgs = Omit & { select?: SequelizemetaCountAggregateInputType | true } export interface sequelizemetaDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['sequelizemeta'], meta: { name: 'sequelizemeta' } } /** * Find zero or one Sequelizemeta that matches the filter. * @param {sequelizemetaFindUniqueArgs} args - Arguments to find a Sequelizemeta * @example * // Get one Sequelizemeta * const sequelizemeta = await prisma.sequelizemeta.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__sequelizemetaClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Sequelizemeta that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {sequelizemetaFindUniqueOrThrowArgs} args - Arguments to find a Sequelizemeta * @example * // Get one Sequelizemeta * const sequelizemeta = await prisma.sequelizemeta.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__sequelizemetaClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Sequelizemeta 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 {sequelizemetaFindFirstArgs} args - Arguments to find a Sequelizemeta * @example * // Get one Sequelizemeta * const sequelizemeta = await prisma.sequelizemeta.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__sequelizemetaClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Sequelizemeta 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 {sequelizemetaFindFirstOrThrowArgs} args - Arguments to find a Sequelizemeta * @example * // Get one Sequelizemeta * const sequelizemeta = await prisma.sequelizemeta.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__sequelizemetaClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Sequelizemetas 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 {sequelizemetaFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Sequelizemetas * const sequelizemetas = await prisma.sequelizemeta.findMany() * * // Get first 10 Sequelizemetas * const sequelizemetas = await prisma.sequelizemeta.findMany({ take: 10 }) * * // Only select the `name` * const sequelizemetaWithNameOnly = await prisma.sequelizemeta.findMany({ select: { name: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Sequelizemeta. * @param {sequelizemetaCreateArgs} args - Arguments to create a Sequelizemeta. * @example * // Create one Sequelizemeta * const Sequelizemeta = await prisma.sequelizemeta.create({ * data: { * // ... data to create a Sequelizemeta * } * }) * */ create(args: SelectSubset>): Prisma__sequelizemetaClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Sequelizemetas. * @param {sequelizemetaCreateManyArgs} args - Arguments to create many Sequelizemetas. * @example * // Create many Sequelizemetas * const sequelizemeta = await prisma.sequelizemeta.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Sequelizemeta. * @param {sequelizemetaDeleteArgs} args - Arguments to delete one Sequelizemeta. * @example * // Delete one Sequelizemeta * const Sequelizemeta = await prisma.sequelizemeta.delete({ * where: { * // ... filter to delete one Sequelizemeta * } * }) * */ delete(args: SelectSubset>): Prisma__sequelizemetaClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Sequelizemeta. * @param {sequelizemetaUpdateArgs} args - Arguments to update one Sequelizemeta. * @example * // Update one Sequelizemeta * const sequelizemeta = await prisma.sequelizemeta.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__sequelizemetaClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Sequelizemetas. * @param {sequelizemetaDeleteManyArgs} args - Arguments to filter Sequelizemetas to delete. * @example * // Delete a few Sequelizemetas * const { count } = await prisma.sequelizemeta.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sequelizemetas. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {sequelizemetaUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Sequelizemetas * const sequelizemeta = await prisma.sequelizemeta.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Sequelizemeta. * @param {sequelizemetaUpsertArgs} args - Arguments to update or create a Sequelizemeta. * @example * // Update or create a Sequelizemeta * const sequelizemeta = await prisma.sequelizemeta.upsert({ * create: { * // ... data to create a Sequelizemeta * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Sequelizemeta we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__sequelizemetaClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Sequelizemetas. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {sequelizemetaCountArgs} args - Arguments to filter Sequelizemetas to count. * @example * // Count the number of Sequelizemetas * const count = await prisma.sequelizemeta.count({ * where: { * // ... the filter for the Sequelizemetas 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 Sequelizemeta. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SequelizemetaAggregateArgs} 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 Sequelizemeta. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {sequelizemetaGroupByArgs} 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 sequelizemetaGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: sequelizemetaGroupByArgs['orderBy'] } : { orderBy?: sequelizemetaGroupByArgs['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 ? GetSequelizemetaGroupByPayload : Prisma.PrismaPromise /** * Fields of the sequelizemeta model */ readonly fields: sequelizemetaFieldRefs; } /** * The delegate class that acts as a "Promise-like" for sequelizemeta. * 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__sequelizemetaClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the sequelizemeta model */ interface sequelizemetaFieldRefs { readonly name: FieldRef<"sequelizemeta", 'String'> } // Custom InputTypes /** * sequelizemeta findUnique */ export type sequelizemetaFindUniqueArgs = { /** * Select specific fields to fetch from the sequelizemeta */ select?: sequelizemetaSelect | null /** * Omit specific fields from the sequelizemeta */ omit?: sequelizemetaOmit | null /** * Filter, which sequelizemeta to fetch. */ where: sequelizemetaWhereUniqueInput } /** * sequelizemeta findUniqueOrThrow */ export type sequelizemetaFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the sequelizemeta */ select?: sequelizemetaSelect | null /** * Omit specific fields from the sequelizemeta */ omit?: sequelizemetaOmit | null /** * Filter, which sequelizemeta to fetch. */ where: sequelizemetaWhereUniqueInput } /** * sequelizemeta findFirst */ export type sequelizemetaFindFirstArgs = { /** * Select specific fields to fetch from the sequelizemeta */ select?: sequelizemetaSelect | null /** * Omit specific fields from the sequelizemeta */ omit?: sequelizemetaOmit | null /** * Filter, which sequelizemeta to fetch. */ where?: sequelizemetaWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of sequelizemetas to fetch. */ orderBy?: sequelizemetaOrderByWithRelationInput | sequelizemetaOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for sequelizemetas. */ cursor?: sequelizemetaWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` sequelizemetas 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` sequelizemetas. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of sequelizemetas. */ distinct?: SequelizemetaScalarFieldEnum | SequelizemetaScalarFieldEnum[] } /** * sequelizemeta findFirstOrThrow */ export type sequelizemetaFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the sequelizemeta */ select?: sequelizemetaSelect | null /** * Omit specific fields from the sequelizemeta */ omit?: sequelizemetaOmit | null /** * Filter, which sequelizemeta to fetch. */ where?: sequelizemetaWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of sequelizemetas to fetch. */ orderBy?: sequelizemetaOrderByWithRelationInput | sequelizemetaOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for sequelizemetas. */ cursor?: sequelizemetaWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` sequelizemetas 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` sequelizemetas. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of sequelizemetas. */ distinct?: SequelizemetaScalarFieldEnum | SequelizemetaScalarFieldEnum[] } /** * sequelizemeta findMany */ export type sequelizemetaFindManyArgs = { /** * Select specific fields to fetch from the sequelizemeta */ select?: sequelizemetaSelect | null /** * Omit specific fields from the sequelizemeta */ omit?: sequelizemetaOmit | null /** * Filter, which sequelizemetas to fetch. */ where?: sequelizemetaWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of sequelizemetas to fetch. */ orderBy?: sequelizemetaOrderByWithRelationInput | sequelizemetaOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing sequelizemetas. */ cursor?: sequelizemetaWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` sequelizemetas 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` sequelizemetas. */ skip?: number distinct?: SequelizemetaScalarFieldEnum | SequelizemetaScalarFieldEnum[] } /** * sequelizemeta create */ export type sequelizemetaCreateArgs = { /** * Select specific fields to fetch from the sequelizemeta */ select?: sequelizemetaSelect | null /** * Omit specific fields from the sequelizemeta */ omit?: sequelizemetaOmit | null /** * The data needed to create a sequelizemeta. */ data: XOR } /** * sequelizemeta createMany */ export type sequelizemetaCreateManyArgs = { /** * The data used to create many sequelizemetas. */ data: sequelizemetaCreateManyInput | sequelizemetaCreateManyInput[] skipDuplicates?: boolean } /** * sequelizemeta update */ export type sequelizemetaUpdateArgs = { /** * Select specific fields to fetch from the sequelizemeta */ select?: sequelizemetaSelect | null /** * Omit specific fields from the sequelizemeta */ omit?: sequelizemetaOmit | null /** * The data needed to update a sequelizemeta. */ data: XOR /** * Choose, which sequelizemeta to update. */ where: sequelizemetaWhereUniqueInput } /** * sequelizemeta updateMany */ export type sequelizemetaUpdateManyArgs = { /** * The data used to update sequelizemetas. */ data: XOR /** * Filter which sequelizemetas to update */ where?: sequelizemetaWhereInput /** * Limit how many sequelizemetas to update. */ limit?: number } /** * sequelizemeta upsert */ export type sequelizemetaUpsertArgs = { /** * Select specific fields to fetch from the sequelizemeta */ select?: sequelizemetaSelect | null /** * Omit specific fields from the sequelizemeta */ omit?: sequelizemetaOmit | null /** * The filter to search for the sequelizemeta to update in case it exists. */ where: sequelizemetaWhereUniqueInput /** * In case the sequelizemeta found by the `where` argument doesn't exist, create a new sequelizemeta with this data. */ create: XOR /** * In case the sequelizemeta was found with the provided `where` argument, update it with this data. */ update: XOR } /** * sequelizemeta delete */ export type sequelizemetaDeleteArgs = { /** * Select specific fields to fetch from the sequelizemeta */ select?: sequelizemetaSelect | null /** * Omit specific fields from the sequelizemeta */ omit?: sequelizemetaOmit | null /** * Filter which sequelizemeta to delete. */ where: sequelizemetaWhereUniqueInput } /** * sequelizemeta deleteMany */ export type sequelizemetaDeleteManyArgs = { /** * Filter which sequelizemetas to delete */ where?: sequelizemetaWhereInput /** * Limit how many sequelizemetas to delete. */ limit?: number } /** * sequelizemeta without action */ export type sequelizemetaDefaultArgs = { /** * Select specific fields to fetch from the sequelizemeta */ select?: sequelizemetaSelect | null /** * Omit specific fields from the sequelizemeta */ omit?: sequelizemetaOmit | null } /** * Model team_location_history */ export type AggregateTeam_location_history = { _count: Team_location_historyCountAggregateOutputType | null _avg: Team_location_historyAvgAggregateOutputType | null _sum: Team_location_historySumAggregateOutputType | null _min: Team_location_historyMinAggregateOutputType | null _max: Team_location_historyMaxAggregateOutputType | null } export type Team_location_historyAvgAggregateOutputType = { id: number | null lat: Decimal | null lng: Decimal | null } export type Team_location_historySumAggregateOutputType = { id: number | null lat: Decimal | null lng: Decimal | null } export type Team_location_historyMinAggregateOutputType = { id: number | null member_id: string | null location: string | null lat: Decimal | null lng: Decimal | null activity_type: string | null timestamp: Date | null } export type Team_location_historyMaxAggregateOutputType = { id: number | null member_id: string | null location: string | null lat: Decimal | null lng: Decimal | null activity_type: string | null timestamp: Date | null } export type Team_location_historyCountAggregateOutputType = { id: number member_id: number location: number lat: number lng: number activity_type: number timestamp: number _all: number } export type Team_location_historyAvgAggregateInputType = { id?: true lat?: true lng?: true } export type Team_location_historySumAggregateInputType = { id?: true lat?: true lng?: true } export type Team_location_historyMinAggregateInputType = { id?: true member_id?: true location?: true lat?: true lng?: true activity_type?: true timestamp?: true } export type Team_location_historyMaxAggregateInputType = { id?: true member_id?: true location?: true lat?: true lng?: true activity_type?: true timestamp?: true } export type Team_location_historyCountAggregateInputType = { id?: true member_id?: true location?: true lat?: true lng?: true activity_type?: true timestamp?: true _all?: true } export type Team_location_historyAggregateArgs = { /** * Filter which team_location_history to aggregate. */ where?: team_location_historyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of team_location_histories to fetch. */ orderBy?: team_location_historyOrderByWithRelationInput | team_location_historyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: team_location_historyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` team_location_histories 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` team_location_histories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned team_location_histories **/ _count?: true | Team_location_historyCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Team_location_historyAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Team_location_historySumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Team_location_historyMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Team_location_historyMaxAggregateInputType } export type GetTeam_location_historyAggregateType = { [P in keyof T & keyof AggregateTeam_location_history]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type team_location_historyGroupByArgs = { where?: team_location_historyWhereInput orderBy?: team_location_historyOrderByWithAggregationInput | team_location_historyOrderByWithAggregationInput[] by: Team_location_historyScalarFieldEnum[] | Team_location_historyScalarFieldEnum having?: team_location_historyScalarWhereWithAggregatesInput take?: number skip?: number _count?: Team_location_historyCountAggregateInputType | true _avg?: Team_location_historyAvgAggregateInputType _sum?: Team_location_historySumAggregateInputType _min?: Team_location_historyMinAggregateInputType _max?: Team_location_historyMaxAggregateInputType } export type Team_location_historyGroupByOutputType = { id: number member_id: string location: string lat: Decimal | null lng: Decimal | null activity_type: string | null timestamp: Date | null _count: Team_location_historyCountAggregateOutputType | null _avg: Team_location_historyAvgAggregateOutputType | null _sum: Team_location_historySumAggregateOutputType | null _min: Team_location_historyMinAggregateOutputType | null _max: Team_location_historyMaxAggregateOutputType | null } type GetTeam_location_historyGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Team_location_historyGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type team_location_historySelect = $Extensions.GetSelect<{ id?: boolean member_id?: boolean location?: boolean lat?: boolean lng?: boolean activity_type?: boolean timestamp?: boolean team_members?: boolean | team_membersDefaultArgs }, ExtArgs["result"]["team_location_history"]> export type team_location_historySelectScalar = { id?: boolean member_id?: boolean location?: boolean lat?: boolean lng?: boolean activity_type?: boolean timestamp?: boolean } export type team_location_historyOmit = $Extensions.GetOmit<"id" | "member_id" | "location" | "lat" | "lng" | "activity_type" | "timestamp", ExtArgs["result"]["team_location_history"]> export type team_location_historyInclude = { team_members?: boolean | team_membersDefaultArgs } export type $team_location_historyPayload = { name: "team_location_history" objects: { team_members: Prisma.$team_membersPayload } scalars: $Extensions.GetPayloadResult<{ id: number member_id: string location: string lat: Prisma.Decimal | null lng: Prisma.Decimal | null activity_type: string | null timestamp: Date | null }, ExtArgs["result"]["team_location_history"]> composites: {} } type team_location_historyGetPayload = $Result.GetResult type team_location_historyCountArgs = Omit & { select?: Team_location_historyCountAggregateInputType | true } export interface team_location_historyDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['team_location_history'], meta: { name: 'team_location_history' } } /** * Find zero or one Team_location_history that matches the filter. * @param {team_location_historyFindUniqueArgs} args - Arguments to find a Team_location_history * @example * // Get one Team_location_history * const team_location_history = await prisma.team_location_history.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__team_location_historyClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Team_location_history that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {team_location_historyFindUniqueOrThrowArgs} args - Arguments to find a Team_location_history * @example * // Get one Team_location_history * const team_location_history = await prisma.team_location_history.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__team_location_historyClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Team_location_history 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 {team_location_historyFindFirstArgs} args - Arguments to find a Team_location_history * @example * // Get one Team_location_history * const team_location_history = await prisma.team_location_history.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__team_location_historyClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Team_location_history 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 {team_location_historyFindFirstOrThrowArgs} args - Arguments to find a Team_location_history * @example * // Get one Team_location_history * const team_location_history = await prisma.team_location_history.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__team_location_historyClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Team_location_histories 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 {team_location_historyFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Team_location_histories * const team_location_histories = await prisma.team_location_history.findMany() * * // Get first 10 Team_location_histories * const team_location_histories = await prisma.team_location_history.findMany({ take: 10 }) * * // Only select the `id` * const team_location_historyWithIdOnly = await prisma.team_location_history.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Team_location_history. * @param {team_location_historyCreateArgs} args - Arguments to create a Team_location_history. * @example * // Create one Team_location_history * const Team_location_history = await prisma.team_location_history.create({ * data: { * // ... data to create a Team_location_history * } * }) * */ create(args: SelectSubset>): Prisma__team_location_historyClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Team_location_histories. * @param {team_location_historyCreateManyArgs} args - Arguments to create many Team_location_histories. * @example * // Create many Team_location_histories * const team_location_history = await prisma.team_location_history.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Team_location_history. * @param {team_location_historyDeleteArgs} args - Arguments to delete one Team_location_history. * @example * // Delete one Team_location_history * const Team_location_history = await prisma.team_location_history.delete({ * where: { * // ... filter to delete one Team_location_history * } * }) * */ delete(args: SelectSubset>): Prisma__team_location_historyClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Team_location_history. * @param {team_location_historyUpdateArgs} args - Arguments to update one Team_location_history. * @example * // Update one Team_location_history * const team_location_history = await prisma.team_location_history.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__team_location_historyClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Team_location_histories. * @param {team_location_historyDeleteManyArgs} args - Arguments to filter Team_location_histories to delete. * @example * // Delete a few Team_location_histories * const { count } = await prisma.team_location_history.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Team_location_histories. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {team_location_historyUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Team_location_histories * const team_location_history = await prisma.team_location_history.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Team_location_history. * @param {team_location_historyUpsertArgs} args - Arguments to update or create a Team_location_history. * @example * // Update or create a Team_location_history * const team_location_history = await prisma.team_location_history.upsert({ * create: { * // ... data to create a Team_location_history * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Team_location_history we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__team_location_historyClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Team_location_histories. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {team_location_historyCountArgs} args - Arguments to filter Team_location_histories to count. * @example * // Count the number of Team_location_histories * const count = await prisma.team_location_history.count({ * where: { * // ... the filter for the Team_location_histories 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 Team_location_history. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Team_location_historyAggregateArgs} 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 Team_location_history. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {team_location_historyGroupByArgs} 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 team_location_historyGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: team_location_historyGroupByArgs['orderBy'] } : { orderBy?: team_location_historyGroupByArgs['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 ? GetTeam_location_historyGroupByPayload : Prisma.PrismaPromise /** * Fields of the team_location_history model */ readonly fields: team_location_historyFieldRefs; } /** * The delegate class that acts as a "Promise-like" for team_location_history. * 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__team_location_historyClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" team_members = {}>(args?: Subset>): Prisma__team_membersClient<$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 team_location_history model */ interface team_location_historyFieldRefs { readonly id: FieldRef<"team_location_history", 'Int'> readonly member_id: FieldRef<"team_location_history", 'String'> readonly location: FieldRef<"team_location_history", 'String'> readonly lat: FieldRef<"team_location_history", 'Decimal'> readonly lng: FieldRef<"team_location_history", 'Decimal'> readonly activity_type: FieldRef<"team_location_history", 'String'> readonly timestamp: FieldRef<"team_location_history", 'DateTime'> } // Custom InputTypes /** * team_location_history findUnique */ export type team_location_historyFindUniqueArgs = { /** * Select specific fields to fetch from the team_location_history */ select?: team_location_historySelect | null /** * Omit specific fields from the team_location_history */ omit?: team_location_historyOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_location_historyInclude | null /** * Filter, which team_location_history to fetch. */ where: team_location_historyWhereUniqueInput } /** * team_location_history findUniqueOrThrow */ export type team_location_historyFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the team_location_history */ select?: team_location_historySelect | null /** * Omit specific fields from the team_location_history */ omit?: team_location_historyOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_location_historyInclude | null /** * Filter, which team_location_history to fetch. */ where: team_location_historyWhereUniqueInput } /** * team_location_history findFirst */ export type team_location_historyFindFirstArgs = { /** * Select specific fields to fetch from the team_location_history */ select?: team_location_historySelect | null /** * Omit specific fields from the team_location_history */ omit?: team_location_historyOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_location_historyInclude | null /** * Filter, which team_location_history to fetch. */ where?: team_location_historyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of team_location_histories to fetch. */ orderBy?: team_location_historyOrderByWithRelationInput | team_location_historyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for team_location_histories. */ cursor?: team_location_historyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` team_location_histories 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` team_location_histories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of team_location_histories. */ distinct?: Team_location_historyScalarFieldEnum | Team_location_historyScalarFieldEnum[] } /** * team_location_history findFirstOrThrow */ export type team_location_historyFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the team_location_history */ select?: team_location_historySelect | null /** * Omit specific fields from the team_location_history */ omit?: team_location_historyOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_location_historyInclude | null /** * Filter, which team_location_history to fetch. */ where?: team_location_historyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of team_location_histories to fetch. */ orderBy?: team_location_historyOrderByWithRelationInput | team_location_historyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for team_location_histories. */ cursor?: team_location_historyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` team_location_histories 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` team_location_histories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of team_location_histories. */ distinct?: Team_location_historyScalarFieldEnum | Team_location_historyScalarFieldEnum[] } /** * team_location_history findMany */ export type team_location_historyFindManyArgs = { /** * Select specific fields to fetch from the team_location_history */ select?: team_location_historySelect | null /** * Omit specific fields from the team_location_history */ omit?: team_location_historyOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_location_historyInclude | null /** * Filter, which team_location_histories to fetch. */ where?: team_location_historyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of team_location_histories to fetch. */ orderBy?: team_location_historyOrderByWithRelationInput | team_location_historyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing team_location_histories. */ cursor?: team_location_historyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` team_location_histories 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` team_location_histories. */ skip?: number distinct?: Team_location_historyScalarFieldEnum | Team_location_historyScalarFieldEnum[] } /** * team_location_history create */ export type team_location_historyCreateArgs = { /** * Select specific fields to fetch from the team_location_history */ select?: team_location_historySelect | null /** * Omit specific fields from the team_location_history */ omit?: team_location_historyOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_location_historyInclude | null /** * The data needed to create a team_location_history. */ data: XOR } /** * team_location_history createMany */ export type team_location_historyCreateManyArgs = { /** * The data used to create many team_location_histories. */ data: team_location_historyCreateManyInput | team_location_historyCreateManyInput[] skipDuplicates?: boolean } /** * team_location_history update */ export type team_location_historyUpdateArgs = { /** * Select specific fields to fetch from the team_location_history */ select?: team_location_historySelect | null /** * Omit specific fields from the team_location_history */ omit?: team_location_historyOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_location_historyInclude | null /** * The data needed to update a team_location_history. */ data: XOR /** * Choose, which team_location_history to update. */ where: team_location_historyWhereUniqueInput } /** * team_location_history updateMany */ export type team_location_historyUpdateManyArgs = { /** * The data used to update team_location_histories. */ data: XOR /** * Filter which team_location_histories to update */ where?: team_location_historyWhereInput /** * Limit how many team_location_histories to update. */ limit?: number } /** * team_location_history upsert */ export type team_location_historyUpsertArgs = { /** * Select specific fields to fetch from the team_location_history */ select?: team_location_historySelect | null /** * Omit specific fields from the team_location_history */ omit?: team_location_historyOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_location_historyInclude | null /** * The filter to search for the team_location_history to update in case it exists. */ where: team_location_historyWhereUniqueInput /** * In case the team_location_history found by the `where` argument doesn't exist, create a new team_location_history with this data. */ create: XOR /** * In case the team_location_history was found with the provided `where` argument, update it with this data. */ update: XOR } /** * team_location_history delete */ export type team_location_historyDeleteArgs = { /** * Select specific fields to fetch from the team_location_history */ select?: team_location_historySelect | null /** * Omit specific fields from the team_location_history */ omit?: team_location_historyOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_location_historyInclude | null /** * Filter which team_location_history to delete. */ where: team_location_historyWhereUniqueInput } /** * team_location_history deleteMany */ export type team_location_historyDeleteManyArgs = { /** * Filter which team_location_histories to delete */ where?: team_location_historyWhereInput /** * Limit how many team_location_histories to delete. */ limit?: number } /** * team_location_history without action */ export type team_location_historyDefaultArgs = { /** * Select specific fields to fetch from the team_location_history */ select?: team_location_historySelect | null /** * Omit specific fields from the team_location_history */ omit?: team_location_historyOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_location_historyInclude | null } /** * Model team_members */ export type AggregateTeam_members = { _count: Team_membersCountAggregateOutputType | null _min: Team_membersMinAggregateOutputType | null _max: Team_membersMaxAggregateOutputType | null } export type Team_membersMinAggregateOutputType = { id: string | null nama: string | null role: string | null status: $Enums.team_members_status | null phone: string | null email: string | null current_location: string | null last_update: Date | null shift_start: Date | null shift_end: Date | null created_at: Date | null updated_at: Date | null } export type Team_membersMaxAggregateOutputType = { id: string | null nama: string | null role: string | null status: $Enums.team_members_status | null phone: string | null email: string | null current_location: string | null last_update: Date | null shift_start: Date | null shift_end: Date | null created_at: Date | null updated_at: Date | null } export type Team_membersCountAggregateOutputType = { id: number nama: number role: number status: number phone: number email: number current_location: number last_update: number shift_start: number shift_end: number created_at: number updated_at: number _all: number } export type Team_membersMinAggregateInputType = { id?: true nama?: true role?: true status?: true phone?: true email?: true current_location?: true last_update?: true shift_start?: true shift_end?: true created_at?: true updated_at?: true } export type Team_membersMaxAggregateInputType = { id?: true nama?: true role?: true status?: true phone?: true email?: true current_location?: true last_update?: true shift_start?: true shift_end?: true created_at?: true updated_at?: true } export type Team_membersCountAggregateInputType = { id?: true nama?: true role?: true status?: true phone?: true email?: true current_location?: true last_update?: true shift_start?: true shift_end?: true created_at?: true updated_at?: true _all?: true } export type Team_membersAggregateArgs = { /** * Filter which team_members to aggregate. */ where?: team_membersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of team_members to fetch. */ orderBy?: team_membersOrderByWithRelationInput | team_membersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: team_membersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` team_members 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` team_members. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned team_members **/ _count?: true | Team_membersCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Team_membersMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Team_membersMaxAggregateInputType } export type GetTeam_membersAggregateType = { [P in keyof T & keyof AggregateTeam_members]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type team_membersGroupByArgs = { where?: team_membersWhereInput orderBy?: team_membersOrderByWithAggregationInput | team_membersOrderByWithAggregationInput[] by: Team_membersScalarFieldEnum[] | Team_membersScalarFieldEnum having?: team_membersScalarWhereWithAggregatesInput take?: number skip?: number _count?: Team_membersCountAggregateInputType | true _min?: Team_membersMinAggregateInputType _max?: Team_membersMaxAggregateInputType } export type Team_membersGroupByOutputType = { id: string nama: string role: string status: $Enums.team_members_status | null phone: string email: string | null current_location: string | null last_update: Date | null shift_start: Date | null shift_end: Date | null created_at: Date | null updated_at: Date | null _count: Team_membersCountAggregateOutputType | null _min: Team_membersMinAggregateOutputType | null _max: Team_membersMaxAggregateOutputType | null } type GetTeam_membersGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Team_membersGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type team_membersSelect = $Extensions.GetSelect<{ id?: boolean nama?: boolean role?: boolean status?: boolean phone?: boolean email?: boolean current_location?: boolean last_update?: boolean shift_start?: boolean shift_end?: boolean created_at?: boolean updated_at?: boolean incidents_incidents_reported_byToteam_members?: boolean | team_members$incidents_incidents_reported_byToteam_membersArgs incidents_incidents_assigned_toToteam_members?: boolean | team_members$incidents_incidents_assigned_toToteam_membersArgs team_location_history?: boolean | team_members$team_location_historyArgs _count?: boolean | Team_membersCountOutputTypeDefaultArgs }, ExtArgs["result"]["team_members"]> export type team_membersSelectScalar = { id?: boolean nama?: boolean role?: boolean status?: boolean phone?: boolean email?: boolean current_location?: boolean last_update?: boolean shift_start?: boolean shift_end?: boolean created_at?: boolean updated_at?: boolean } export type team_membersOmit = $Extensions.GetOmit<"id" | "nama" | "role" | "status" | "phone" | "email" | "current_location" | "last_update" | "shift_start" | "shift_end" | "created_at" | "updated_at", ExtArgs["result"]["team_members"]> export type team_membersInclude = { incidents_incidents_reported_byToteam_members?: boolean | team_members$incidents_incidents_reported_byToteam_membersArgs incidents_incidents_assigned_toToteam_members?: boolean | team_members$incidents_incidents_assigned_toToteam_membersArgs team_location_history?: boolean | team_members$team_location_historyArgs _count?: boolean | Team_membersCountOutputTypeDefaultArgs } export type $team_membersPayload = { name: "team_members" objects: { incidents_incidents_reported_byToteam_members: Prisma.$incidentsPayload[] incidents_incidents_assigned_toToteam_members: Prisma.$incidentsPayload[] team_location_history: Prisma.$team_location_historyPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string nama: string role: string status: $Enums.team_members_status | null phone: string email: string | null current_location: string | null last_update: Date | null shift_start: Date | null shift_end: Date | null created_at: Date | null updated_at: Date | null }, ExtArgs["result"]["team_members"]> composites: {} } type team_membersGetPayload = $Result.GetResult type team_membersCountArgs = Omit & { select?: Team_membersCountAggregateInputType | true } export interface team_membersDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['team_members'], meta: { name: 'team_members' } } /** * Find zero or one Team_members that matches the filter. * @param {team_membersFindUniqueArgs} args - Arguments to find a Team_members * @example * // Get one Team_members * const team_members = await prisma.team_members.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__team_membersClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Team_members that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {team_membersFindUniqueOrThrowArgs} args - Arguments to find a Team_members * @example * // Get one Team_members * const team_members = await prisma.team_members.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__team_membersClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Team_members 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 {team_membersFindFirstArgs} args - Arguments to find a Team_members * @example * // Get one Team_members * const team_members = await prisma.team_members.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__team_membersClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Team_members 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 {team_membersFindFirstOrThrowArgs} args - Arguments to find a Team_members * @example * // Get one Team_members * const team_members = await prisma.team_members.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__team_membersClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Team_members 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 {team_membersFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Team_members * const team_members = await prisma.team_members.findMany() * * // Get first 10 Team_members * const team_members = await prisma.team_members.findMany({ take: 10 }) * * // Only select the `id` * const team_membersWithIdOnly = await prisma.team_members.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Team_members. * @param {team_membersCreateArgs} args - Arguments to create a Team_members. * @example * // Create one Team_members * const Team_members = await prisma.team_members.create({ * data: { * // ... data to create a Team_members * } * }) * */ create(args: SelectSubset>): Prisma__team_membersClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Team_members. * @param {team_membersCreateManyArgs} args - Arguments to create many Team_members. * @example * // Create many Team_members * const team_members = await prisma.team_members.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Team_members. * @param {team_membersDeleteArgs} args - Arguments to delete one Team_members. * @example * // Delete one Team_members * const Team_members = await prisma.team_members.delete({ * where: { * // ... filter to delete one Team_members * } * }) * */ delete(args: SelectSubset>): Prisma__team_membersClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Team_members. * @param {team_membersUpdateArgs} args - Arguments to update one Team_members. * @example * // Update one Team_members * const team_members = await prisma.team_members.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__team_membersClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Team_members. * @param {team_membersDeleteManyArgs} args - Arguments to filter Team_members to delete. * @example * // Delete a few Team_members * const { count } = await prisma.team_members.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Team_members. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {team_membersUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Team_members * const team_members = await prisma.team_members.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Team_members. * @param {team_membersUpsertArgs} args - Arguments to update or create a Team_members. * @example * // Update or create a Team_members * const team_members = await prisma.team_members.upsert({ * create: { * // ... data to create a Team_members * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Team_members we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__team_membersClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Team_members. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {team_membersCountArgs} args - Arguments to filter Team_members to count. * @example * // Count the number of Team_members * const count = await prisma.team_members.count({ * where: { * // ... the filter for the Team_members 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 Team_members. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Team_membersAggregateArgs} 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 Team_members. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {team_membersGroupByArgs} 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 team_membersGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: team_membersGroupByArgs['orderBy'] } : { orderBy?: team_membersGroupByArgs['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 ? GetTeam_membersGroupByPayload : Prisma.PrismaPromise /** * Fields of the team_members model */ readonly fields: team_membersFieldRefs; } /** * The delegate class that acts as a "Promise-like" for team_members. * 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__team_membersClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" incidents_incidents_reported_byToteam_members = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> incidents_incidents_assigned_toToteam_members = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> team_location_history = {}>(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 team_members model */ interface team_membersFieldRefs { readonly id: FieldRef<"team_members", 'String'> readonly nama: FieldRef<"team_members", 'String'> readonly role: FieldRef<"team_members", 'String'> readonly status: FieldRef<"team_members", 'team_members_status'> readonly phone: FieldRef<"team_members", 'String'> readonly email: FieldRef<"team_members", 'String'> readonly current_location: FieldRef<"team_members", 'String'> readonly last_update: FieldRef<"team_members", 'DateTime'> readonly shift_start: FieldRef<"team_members", 'DateTime'> readonly shift_end: FieldRef<"team_members", 'DateTime'> readonly created_at: FieldRef<"team_members", 'DateTime'> readonly updated_at: FieldRef<"team_members", 'DateTime'> } // Custom InputTypes /** * team_members findUnique */ export type team_membersFindUniqueArgs = { /** * Select specific fields to fetch from the team_members */ select?: team_membersSelect | null /** * Omit specific fields from the team_members */ omit?: team_membersOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_membersInclude | null /** * Filter, which team_members to fetch. */ where: team_membersWhereUniqueInput } /** * team_members findUniqueOrThrow */ export type team_membersFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the team_members */ select?: team_membersSelect | null /** * Omit specific fields from the team_members */ omit?: team_membersOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_membersInclude | null /** * Filter, which team_members to fetch. */ where: team_membersWhereUniqueInput } /** * team_members findFirst */ export type team_membersFindFirstArgs = { /** * Select specific fields to fetch from the team_members */ select?: team_membersSelect | null /** * Omit specific fields from the team_members */ omit?: team_membersOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_membersInclude | null /** * Filter, which team_members to fetch. */ where?: team_membersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of team_members to fetch. */ orderBy?: team_membersOrderByWithRelationInput | team_membersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for team_members. */ cursor?: team_membersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` team_members 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` team_members. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of team_members. */ distinct?: Team_membersScalarFieldEnum | Team_membersScalarFieldEnum[] } /** * team_members findFirstOrThrow */ export type team_membersFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the team_members */ select?: team_membersSelect | null /** * Omit specific fields from the team_members */ omit?: team_membersOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_membersInclude | null /** * Filter, which team_members to fetch. */ where?: team_membersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of team_members to fetch. */ orderBy?: team_membersOrderByWithRelationInput | team_membersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for team_members. */ cursor?: team_membersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` team_members 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` team_members. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of team_members. */ distinct?: Team_membersScalarFieldEnum | Team_membersScalarFieldEnum[] } /** * team_members findMany */ export type team_membersFindManyArgs = { /** * Select specific fields to fetch from the team_members */ select?: team_membersSelect | null /** * Omit specific fields from the team_members */ omit?: team_membersOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_membersInclude | null /** * Filter, which team_members to fetch. */ where?: team_membersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of team_members to fetch. */ orderBy?: team_membersOrderByWithRelationInput | team_membersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing team_members. */ cursor?: team_membersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` team_members 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` team_members. */ skip?: number distinct?: Team_membersScalarFieldEnum | Team_membersScalarFieldEnum[] } /** * team_members create */ export type team_membersCreateArgs = { /** * Select specific fields to fetch from the team_members */ select?: team_membersSelect | null /** * Omit specific fields from the team_members */ omit?: team_membersOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_membersInclude | null /** * The data needed to create a team_members. */ data: XOR } /** * team_members createMany */ export type team_membersCreateManyArgs = { /** * The data used to create many team_members. */ data: team_membersCreateManyInput | team_membersCreateManyInput[] skipDuplicates?: boolean } /** * team_members update */ export type team_membersUpdateArgs = { /** * Select specific fields to fetch from the team_members */ select?: team_membersSelect | null /** * Omit specific fields from the team_members */ omit?: team_membersOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_membersInclude | null /** * The data needed to update a team_members. */ data: XOR /** * Choose, which team_members to update. */ where: team_membersWhereUniqueInput } /** * team_members updateMany */ export type team_membersUpdateManyArgs = { /** * The data used to update team_members. */ data: XOR /** * Filter which team_members to update */ where?: team_membersWhereInput /** * Limit how many team_members to update. */ limit?: number } /** * team_members upsert */ export type team_membersUpsertArgs = { /** * Select specific fields to fetch from the team_members */ select?: team_membersSelect | null /** * Omit specific fields from the team_members */ omit?: team_membersOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_membersInclude | null /** * The filter to search for the team_members to update in case it exists. */ where: team_membersWhereUniqueInput /** * In case the team_members found by the `where` argument doesn't exist, create a new team_members with this data. */ create: XOR /** * In case the team_members was found with the provided `where` argument, update it with this data. */ update: XOR } /** * team_members delete */ export type team_membersDeleteArgs = { /** * Select specific fields to fetch from the team_members */ select?: team_membersSelect | null /** * Omit specific fields from the team_members */ omit?: team_membersOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_membersInclude | null /** * Filter which team_members to delete. */ where: team_membersWhereUniqueInput } /** * team_members deleteMany */ export type team_membersDeleteManyArgs = { /** * Filter which team_members to delete */ where?: team_membersWhereInput /** * Limit how many team_members to delete. */ limit?: number } /** * team_members.incidents_incidents_reported_byToteam_members */ export type team_members$incidents_incidents_reported_byToteam_membersArgs = { /** * Select specific fields to fetch from the incidents */ select?: incidentsSelect | null /** * Omit specific fields from the incidents */ omit?: incidentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: incidentsInclude | null where?: incidentsWhereInput orderBy?: incidentsOrderByWithRelationInput | incidentsOrderByWithRelationInput[] cursor?: incidentsWhereUniqueInput take?: number skip?: number distinct?: IncidentsScalarFieldEnum | IncidentsScalarFieldEnum[] } /** * team_members.incidents_incidents_assigned_toToteam_members */ export type team_members$incidents_incidents_assigned_toToteam_membersArgs = { /** * Select specific fields to fetch from the incidents */ select?: incidentsSelect | null /** * Omit specific fields from the incidents */ omit?: incidentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: incidentsInclude | null where?: incidentsWhereInput orderBy?: incidentsOrderByWithRelationInput | incidentsOrderByWithRelationInput[] cursor?: incidentsWhereUniqueInput take?: number skip?: number distinct?: IncidentsScalarFieldEnum | IncidentsScalarFieldEnum[] } /** * team_members.team_location_history */ export type team_members$team_location_historyArgs = { /** * Select specific fields to fetch from the team_location_history */ select?: team_location_historySelect | null /** * Omit specific fields from the team_location_history */ omit?: team_location_historyOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_location_historyInclude | null where?: team_location_historyWhereInput orderBy?: team_location_historyOrderByWithRelationInput | team_location_historyOrderByWithRelationInput[] cursor?: team_location_historyWhereUniqueInput take?: number skip?: number distinct?: Team_location_historyScalarFieldEnum | Team_location_historyScalarFieldEnum[] } /** * team_members without action */ export type team_membersDefaultArgs = { /** * Select specific fields to fetch from the team_members */ select?: team_membersSelect | null /** * Omit specific fields from the team_members */ omit?: team_membersOmit | null /** * Choose, which related nodes to fetch as well */ include?: team_membersInclude | null } /** * Model visitor_ktp_data */ export type AggregateVisitor_ktp_data = { _count: Visitor_ktp_dataCountAggregateOutputType | null _avg: Visitor_ktp_dataAvgAggregateOutputType | null _sum: Visitor_ktp_dataSumAggregateOutputType | null _min: Visitor_ktp_dataMinAggregateOutputType | null _max: Visitor_ktp_dataMaxAggregateOutputType | null } export type Visitor_ktp_dataAvgAggregateOutputType = { validation_confidence: Decimal | null } export type Visitor_ktp_dataSumAggregateOutputType = { validation_confidence: Decimal | null } export type Visitor_ktp_dataMinAggregateOutputType = { id: string | null visitor_registration_id: string | null ktp_number: string | null full_name: string | null birth_date: Date | null birth_place: string | null gender: $Enums.visitor_ktp_data_gender | null address: string | null rt_rw: string | null kelurahan: string | null kecamatan: string | null religion: string | null marital_status: string | null occupation: string | null nationality: string | null ktp_photo_url: string | null ktp_photo_hash: string | null validation_status: $Enums.visitor_ktp_data_validation_status | null validation_confidence: Decimal | null validation_notes: string | null validated_by: string | null validated_at: Date | null created_at: Date | null updated_at: Date | null } export type Visitor_ktp_dataMaxAggregateOutputType = { id: string | null visitor_registration_id: string | null ktp_number: string | null full_name: string | null birth_date: Date | null birth_place: string | null gender: $Enums.visitor_ktp_data_gender | null address: string | null rt_rw: string | null kelurahan: string | null kecamatan: string | null religion: string | null marital_status: string | null occupation: string | null nationality: string | null ktp_photo_url: string | null ktp_photo_hash: string | null validation_status: $Enums.visitor_ktp_data_validation_status | null validation_confidence: Decimal | null validation_notes: string | null validated_by: string | null validated_at: Date | null created_at: Date | null updated_at: Date | null } export type Visitor_ktp_dataCountAggregateOutputType = { id: number visitor_registration_id: number ktp_number: number full_name: number birth_date: number birth_place: number gender: number address: number rt_rw: number kelurahan: number kecamatan: number religion: number marital_status: number occupation: number nationality: number ktp_photo_url: number ktp_photo_hash: number validation_status: number validation_confidence: number validation_notes: number validated_by: number validated_at: number ocr_raw_data: number manual_corrections: number created_at: number updated_at: number _all: number } export type Visitor_ktp_dataAvgAggregateInputType = { validation_confidence?: true } export type Visitor_ktp_dataSumAggregateInputType = { validation_confidence?: true } export type Visitor_ktp_dataMinAggregateInputType = { id?: true visitor_registration_id?: true ktp_number?: true full_name?: true birth_date?: true birth_place?: true gender?: true address?: true rt_rw?: true kelurahan?: true kecamatan?: true religion?: true marital_status?: true occupation?: true nationality?: true ktp_photo_url?: true ktp_photo_hash?: true validation_status?: true validation_confidence?: true validation_notes?: true validated_by?: true validated_at?: true created_at?: true updated_at?: true } export type Visitor_ktp_dataMaxAggregateInputType = { id?: true visitor_registration_id?: true ktp_number?: true full_name?: true birth_date?: true birth_place?: true gender?: true address?: true rt_rw?: true kelurahan?: true kecamatan?: true religion?: true marital_status?: true occupation?: true nationality?: true ktp_photo_url?: true ktp_photo_hash?: true validation_status?: true validation_confidence?: true validation_notes?: true validated_by?: true validated_at?: true created_at?: true updated_at?: true } export type Visitor_ktp_dataCountAggregateInputType = { id?: true visitor_registration_id?: true ktp_number?: true full_name?: true birth_date?: true birth_place?: true gender?: true address?: true rt_rw?: true kelurahan?: true kecamatan?: true religion?: true marital_status?: true occupation?: true nationality?: true ktp_photo_url?: true ktp_photo_hash?: true validation_status?: true validation_confidence?: true validation_notes?: true validated_by?: true validated_at?: true ocr_raw_data?: true manual_corrections?: true created_at?: true updated_at?: true _all?: true } export type Visitor_ktp_dataAggregateArgs = { /** * Filter which visitor_ktp_data to aggregate. */ where?: visitor_ktp_dataWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of visitor_ktp_data to fetch. */ orderBy?: visitor_ktp_dataOrderByWithRelationInput | visitor_ktp_dataOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: visitor_ktp_dataWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` visitor_ktp_data 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` visitor_ktp_data. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned visitor_ktp_data **/ _count?: true | Visitor_ktp_dataCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Visitor_ktp_dataAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Visitor_ktp_dataSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Visitor_ktp_dataMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Visitor_ktp_dataMaxAggregateInputType } export type GetVisitor_ktp_dataAggregateType = { [P in keyof T & keyof AggregateVisitor_ktp_data]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type visitor_ktp_dataGroupByArgs = { where?: visitor_ktp_dataWhereInput orderBy?: visitor_ktp_dataOrderByWithAggregationInput | visitor_ktp_dataOrderByWithAggregationInput[] by: Visitor_ktp_dataScalarFieldEnum[] | Visitor_ktp_dataScalarFieldEnum having?: visitor_ktp_dataScalarWhereWithAggregatesInput take?: number skip?: number _count?: Visitor_ktp_dataCountAggregateInputType | true _avg?: Visitor_ktp_dataAvgAggregateInputType _sum?: Visitor_ktp_dataSumAggregateInputType _min?: Visitor_ktp_dataMinAggregateInputType _max?: Visitor_ktp_dataMaxAggregateInputType } export type Visitor_ktp_dataGroupByOutputType = { id: string visitor_registration_id: string ktp_number: string | null full_name: string | null birth_date: Date | null birth_place: string | null gender: $Enums.visitor_ktp_data_gender | null address: string | null rt_rw: string | null kelurahan: string | null kecamatan: string | null religion: string | null marital_status: string | null occupation: string | null nationality: string | null ktp_photo_url: string | null ktp_photo_hash: string | null validation_status: $Enums.visitor_ktp_data_validation_status validation_confidence: Decimal | null validation_notes: string | null validated_by: string | null validated_at: Date | null ocr_raw_data: JsonValue | null manual_corrections: JsonValue | null created_at: Date updated_at: Date _count: Visitor_ktp_dataCountAggregateOutputType | null _avg: Visitor_ktp_dataAvgAggregateOutputType | null _sum: Visitor_ktp_dataSumAggregateOutputType | null _min: Visitor_ktp_dataMinAggregateOutputType | null _max: Visitor_ktp_dataMaxAggregateOutputType | null } type GetVisitor_ktp_dataGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Visitor_ktp_dataGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type visitor_ktp_dataSelect = $Extensions.GetSelect<{ id?: boolean visitor_registration_id?: boolean ktp_number?: boolean full_name?: boolean birth_date?: boolean birth_place?: boolean gender?: boolean address?: boolean rt_rw?: boolean kelurahan?: boolean kecamatan?: boolean religion?: boolean marital_status?: boolean occupation?: boolean nationality?: boolean ktp_photo_url?: boolean ktp_photo_hash?: boolean validation_status?: boolean validation_confidence?: boolean validation_notes?: boolean validated_by?: boolean validated_at?: boolean ocr_raw_data?: boolean manual_corrections?: boolean created_at?: boolean updated_at?: boolean ktp_validation_audit?: boolean | visitor_ktp_data$ktp_validation_auditArgs _count?: boolean | Visitor_ktp_dataCountOutputTypeDefaultArgs }, ExtArgs["result"]["visitor_ktp_data"]> export type visitor_ktp_dataSelectScalar = { id?: boolean visitor_registration_id?: boolean ktp_number?: boolean full_name?: boolean birth_date?: boolean birth_place?: boolean gender?: boolean address?: boolean rt_rw?: boolean kelurahan?: boolean kecamatan?: boolean religion?: boolean marital_status?: boolean occupation?: boolean nationality?: boolean ktp_photo_url?: boolean ktp_photo_hash?: boolean validation_status?: boolean validation_confidence?: boolean validation_notes?: boolean validated_by?: boolean validated_at?: boolean ocr_raw_data?: boolean manual_corrections?: boolean created_at?: boolean updated_at?: boolean } export type visitor_ktp_dataOmit = $Extensions.GetOmit<"id" | "visitor_registration_id" | "ktp_number" | "full_name" | "birth_date" | "birth_place" | "gender" | "address" | "rt_rw" | "kelurahan" | "kecamatan" | "religion" | "marital_status" | "occupation" | "nationality" | "ktp_photo_url" | "ktp_photo_hash" | "validation_status" | "validation_confidence" | "validation_notes" | "validated_by" | "validated_at" | "ocr_raw_data" | "manual_corrections" | "created_at" | "updated_at", ExtArgs["result"]["visitor_ktp_data"]> export type visitor_ktp_dataInclude = { ktp_validation_audit?: boolean | visitor_ktp_data$ktp_validation_auditArgs _count?: boolean | Visitor_ktp_dataCountOutputTypeDefaultArgs } export type $visitor_ktp_dataPayload = { name: "visitor_ktp_data" objects: { ktp_validation_audit: Prisma.$ktp_validation_auditPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string visitor_registration_id: string ktp_number: string | null full_name: string | null birth_date: Date | null birth_place: string | null gender: $Enums.visitor_ktp_data_gender | null address: string | null rt_rw: string | null kelurahan: string | null kecamatan: string | null religion: string | null marital_status: string | null occupation: string | null nationality: string | null ktp_photo_url: string | null ktp_photo_hash: string | null validation_status: $Enums.visitor_ktp_data_validation_status validation_confidence: Prisma.Decimal | null validation_notes: string | null validated_by: string | null validated_at: Date | null ocr_raw_data: Prisma.JsonValue | null manual_corrections: Prisma.JsonValue | null created_at: Date updated_at: Date }, ExtArgs["result"]["visitor_ktp_data"]> composites: {} } type visitor_ktp_dataGetPayload = $Result.GetResult type visitor_ktp_dataCountArgs = Omit & { select?: Visitor_ktp_dataCountAggregateInputType | true } export interface visitor_ktp_dataDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['visitor_ktp_data'], meta: { name: 'visitor_ktp_data' } } /** * Find zero or one Visitor_ktp_data that matches the filter. * @param {visitor_ktp_dataFindUniqueArgs} args - Arguments to find a Visitor_ktp_data * @example * // Get one Visitor_ktp_data * const visitor_ktp_data = await prisma.visitor_ktp_data.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__visitor_ktp_dataClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Visitor_ktp_data that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {visitor_ktp_dataFindUniqueOrThrowArgs} args - Arguments to find a Visitor_ktp_data * @example * // Get one Visitor_ktp_data * const visitor_ktp_data = await prisma.visitor_ktp_data.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__visitor_ktp_dataClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Visitor_ktp_data 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 {visitor_ktp_dataFindFirstArgs} args - Arguments to find a Visitor_ktp_data * @example * // Get one Visitor_ktp_data * const visitor_ktp_data = await prisma.visitor_ktp_data.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__visitor_ktp_dataClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Visitor_ktp_data 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 {visitor_ktp_dataFindFirstOrThrowArgs} args - Arguments to find a Visitor_ktp_data * @example * // Get one Visitor_ktp_data * const visitor_ktp_data = await prisma.visitor_ktp_data.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__visitor_ktp_dataClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Visitor_ktp_data 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 {visitor_ktp_dataFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Visitor_ktp_data * const visitor_ktp_data = await prisma.visitor_ktp_data.findMany() * * // Get first 10 Visitor_ktp_data * const visitor_ktp_data = await prisma.visitor_ktp_data.findMany({ take: 10 }) * * // Only select the `id` * const visitor_ktp_dataWithIdOnly = await prisma.visitor_ktp_data.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Visitor_ktp_data. * @param {visitor_ktp_dataCreateArgs} args - Arguments to create a Visitor_ktp_data. * @example * // Create one Visitor_ktp_data * const Visitor_ktp_data = await prisma.visitor_ktp_data.create({ * data: { * // ... data to create a Visitor_ktp_data * } * }) * */ create(args: SelectSubset>): Prisma__visitor_ktp_dataClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Visitor_ktp_data. * @param {visitor_ktp_dataCreateManyArgs} args - Arguments to create many Visitor_ktp_data. * @example * // Create many Visitor_ktp_data * const visitor_ktp_data = await prisma.visitor_ktp_data.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Visitor_ktp_data. * @param {visitor_ktp_dataDeleteArgs} args - Arguments to delete one Visitor_ktp_data. * @example * // Delete one Visitor_ktp_data * const Visitor_ktp_data = await prisma.visitor_ktp_data.delete({ * where: { * // ... filter to delete one Visitor_ktp_data * } * }) * */ delete(args: SelectSubset>): Prisma__visitor_ktp_dataClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Visitor_ktp_data. * @param {visitor_ktp_dataUpdateArgs} args - Arguments to update one Visitor_ktp_data. * @example * // Update one Visitor_ktp_data * const visitor_ktp_data = await prisma.visitor_ktp_data.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__visitor_ktp_dataClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Visitor_ktp_data. * @param {visitor_ktp_dataDeleteManyArgs} args - Arguments to filter Visitor_ktp_data to delete. * @example * // Delete a few Visitor_ktp_data * const { count } = await prisma.visitor_ktp_data.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Visitor_ktp_data. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {visitor_ktp_dataUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Visitor_ktp_data * const visitor_ktp_data = await prisma.visitor_ktp_data.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Visitor_ktp_data. * @param {visitor_ktp_dataUpsertArgs} args - Arguments to update or create a Visitor_ktp_data. * @example * // Update or create a Visitor_ktp_data * const visitor_ktp_data = await prisma.visitor_ktp_data.upsert({ * create: { * // ... data to create a Visitor_ktp_data * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Visitor_ktp_data we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__visitor_ktp_dataClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Visitor_ktp_data. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {visitor_ktp_dataCountArgs} args - Arguments to filter Visitor_ktp_data to count. * @example * // Count the number of Visitor_ktp_data * const count = await prisma.visitor_ktp_data.count({ * where: { * // ... the filter for the Visitor_ktp_data 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 Visitor_ktp_data. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Visitor_ktp_dataAggregateArgs} 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 Visitor_ktp_data. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {visitor_ktp_dataGroupByArgs} 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 visitor_ktp_dataGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: visitor_ktp_dataGroupByArgs['orderBy'] } : { orderBy?: visitor_ktp_dataGroupByArgs['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 ? GetVisitor_ktp_dataGroupByPayload : Prisma.PrismaPromise /** * Fields of the visitor_ktp_data model */ readonly fields: visitor_ktp_dataFieldRefs; } /** * The delegate class that acts as a "Promise-like" for visitor_ktp_data. * 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__visitor_ktp_dataClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" ktp_validation_audit = {}>(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 visitor_ktp_data model */ interface visitor_ktp_dataFieldRefs { readonly id: FieldRef<"visitor_ktp_data", 'String'> readonly visitor_registration_id: FieldRef<"visitor_ktp_data", 'String'> readonly ktp_number: FieldRef<"visitor_ktp_data", 'String'> readonly full_name: FieldRef<"visitor_ktp_data", 'String'> readonly birth_date: FieldRef<"visitor_ktp_data", 'DateTime'> readonly birth_place: FieldRef<"visitor_ktp_data", 'String'> readonly gender: FieldRef<"visitor_ktp_data", 'visitor_ktp_data_gender'> readonly address: FieldRef<"visitor_ktp_data", 'String'> readonly rt_rw: FieldRef<"visitor_ktp_data", 'String'> readonly kelurahan: FieldRef<"visitor_ktp_data", 'String'> readonly kecamatan: FieldRef<"visitor_ktp_data", 'String'> readonly religion: FieldRef<"visitor_ktp_data", 'String'> readonly marital_status: FieldRef<"visitor_ktp_data", 'String'> readonly occupation: FieldRef<"visitor_ktp_data", 'String'> readonly nationality: FieldRef<"visitor_ktp_data", 'String'> readonly ktp_photo_url: FieldRef<"visitor_ktp_data", 'String'> readonly ktp_photo_hash: FieldRef<"visitor_ktp_data", 'String'> readonly validation_status: FieldRef<"visitor_ktp_data", 'visitor_ktp_data_validation_status'> readonly validation_confidence: FieldRef<"visitor_ktp_data", 'Decimal'> readonly validation_notes: FieldRef<"visitor_ktp_data", 'String'> readonly validated_by: FieldRef<"visitor_ktp_data", 'String'> readonly validated_at: FieldRef<"visitor_ktp_data", 'DateTime'> readonly ocr_raw_data: FieldRef<"visitor_ktp_data", 'Json'> readonly manual_corrections: FieldRef<"visitor_ktp_data", 'Json'> readonly created_at: FieldRef<"visitor_ktp_data", 'DateTime'> readonly updated_at: FieldRef<"visitor_ktp_data", 'DateTime'> } // Custom InputTypes /** * visitor_ktp_data findUnique */ export type visitor_ktp_dataFindUniqueArgs = { /** * Select specific fields to fetch from the visitor_ktp_data */ select?: visitor_ktp_dataSelect | null /** * Omit specific fields from the visitor_ktp_data */ omit?: visitor_ktp_dataOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_ktp_dataInclude | null /** * Filter, which visitor_ktp_data to fetch. */ where: visitor_ktp_dataWhereUniqueInput } /** * visitor_ktp_data findUniqueOrThrow */ export type visitor_ktp_dataFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the visitor_ktp_data */ select?: visitor_ktp_dataSelect | null /** * Omit specific fields from the visitor_ktp_data */ omit?: visitor_ktp_dataOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_ktp_dataInclude | null /** * Filter, which visitor_ktp_data to fetch. */ where: visitor_ktp_dataWhereUniqueInput } /** * visitor_ktp_data findFirst */ export type visitor_ktp_dataFindFirstArgs = { /** * Select specific fields to fetch from the visitor_ktp_data */ select?: visitor_ktp_dataSelect | null /** * Omit specific fields from the visitor_ktp_data */ omit?: visitor_ktp_dataOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_ktp_dataInclude | null /** * Filter, which visitor_ktp_data to fetch. */ where?: visitor_ktp_dataWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of visitor_ktp_data to fetch. */ orderBy?: visitor_ktp_dataOrderByWithRelationInput | visitor_ktp_dataOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for visitor_ktp_data. */ cursor?: visitor_ktp_dataWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` visitor_ktp_data 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` visitor_ktp_data. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of visitor_ktp_data. */ distinct?: Visitor_ktp_dataScalarFieldEnum | Visitor_ktp_dataScalarFieldEnum[] } /** * visitor_ktp_data findFirstOrThrow */ export type visitor_ktp_dataFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the visitor_ktp_data */ select?: visitor_ktp_dataSelect | null /** * Omit specific fields from the visitor_ktp_data */ omit?: visitor_ktp_dataOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_ktp_dataInclude | null /** * Filter, which visitor_ktp_data to fetch. */ where?: visitor_ktp_dataWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of visitor_ktp_data to fetch. */ orderBy?: visitor_ktp_dataOrderByWithRelationInput | visitor_ktp_dataOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for visitor_ktp_data. */ cursor?: visitor_ktp_dataWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` visitor_ktp_data 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` visitor_ktp_data. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of visitor_ktp_data. */ distinct?: Visitor_ktp_dataScalarFieldEnum | Visitor_ktp_dataScalarFieldEnum[] } /** * visitor_ktp_data findMany */ export type visitor_ktp_dataFindManyArgs = { /** * Select specific fields to fetch from the visitor_ktp_data */ select?: visitor_ktp_dataSelect | null /** * Omit specific fields from the visitor_ktp_data */ omit?: visitor_ktp_dataOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_ktp_dataInclude | null /** * Filter, which visitor_ktp_data to fetch. */ where?: visitor_ktp_dataWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of visitor_ktp_data to fetch. */ orderBy?: visitor_ktp_dataOrderByWithRelationInput | visitor_ktp_dataOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing visitor_ktp_data. */ cursor?: visitor_ktp_dataWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` visitor_ktp_data 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` visitor_ktp_data. */ skip?: number distinct?: Visitor_ktp_dataScalarFieldEnum | Visitor_ktp_dataScalarFieldEnum[] } /** * visitor_ktp_data create */ export type visitor_ktp_dataCreateArgs = { /** * Select specific fields to fetch from the visitor_ktp_data */ select?: visitor_ktp_dataSelect | null /** * Omit specific fields from the visitor_ktp_data */ omit?: visitor_ktp_dataOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_ktp_dataInclude | null /** * The data needed to create a visitor_ktp_data. */ data: XOR } /** * visitor_ktp_data createMany */ export type visitor_ktp_dataCreateManyArgs = { /** * The data used to create many visitor_ktp_data. */ data: visitor_ktp_dataCreateManyInput | visitor_ktp_dataCreateManyInput[] skipDuplicates?: boolean } /** * visitor_ktp_data update */ export type visitor_ktp_dataUpdateArgs = { /** * Select specific fields to fetch from the visitor_ktp_data */ select?: visitor_ktp_dataSelect | null /** * Omit specific fields from the visitor_ktp_data */ omit?: visitor_ktp_dataOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_ktp_dataInclude | null /** * The data needed to update a visitor_ktp_data. */ data: XOR /** * Choose, which visitor_ktp_data to update. */ where: visitor_ktp_dataWhereUniqueInput } /** * visitor_ktp_data updateMany */ export type visitor_ktp_dataUpdateManyArgs = { /** * The data used to update visitor_ktp_data. */ data: XOR /** * Filter which visitor_ktp_data to update */ where?: visitor_ktp_dataWhereInput /** * Limit how many visitor_ktp_data to update. */ limit?: number } /** * visitor_ktp_data upsert */ export type visitor_ktp_dataUpsertArgs = { /** * Select specific fields to fetch from the visitor_ktp_data */ select?: visitor_ktp_dataSelect | null /** * Omit specific fields from the visitor_ktp_data */ omit?: visitor_ktp_dataOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_ktp_dataInclude | null /** * The filter to search for the visitor_ktp_data to update in case it exists. */ where: visitor_ktp_dataWhereUniqueInput /** * In case the visitor_ktp_data found by the `where` argument doesn't exist, create a new visitor_ktp_data with this data. */ create: XOR /** * In case the visitor_ktp_data was found with the provided `where` argument, update it with this data. */ update: XOR } /** * visitor_ktp_data delete */ export type visitor_ktp_dataDeleteArgs = { /** * Select specific fields to fetch from the visitor_ktp_data */ select?: visitor_ktp_dataSelect | null /** * Omit specific fields from the visitor_ktp_data */ omit?: visitor_ktp_dataOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_ktp_dataInclude | null /** * Filter which visitor_ktp_data to delete. */ where: visitor_ktp_dataWhereUniqueInput } /** * visitor_ktp_data deleteMany */ export type visitor_ktp_dataDeleteManyArgs = { /** * Filter which visitor_ktp_data to delete */ where?: visitor_ktp_dataWhereInput /** * Limit how many visitor_ktp_data to delete. */ limit?: number } /** * visitor_ktp_data.ktp_validation_audit */ export type visitor_ktp_data$ktp_validation_auditArgs = { /** * Select specific fields to fetch from the ktp_validation_audit */ select?: ktp_validation_auditSelect | null /** * Omit specific fields from the ktp_validation_audit */ omit?: ktp_validation_auditOmit | null /** * Choose, which related nodes to fetch as well */ include?: ktp_validation_auditInclude | null where?: ktp_validation_auditWhereInput orderBy?: ktp_validation_auditOrderByWithRelationInput | ktp_validation_auditOrderByWithRelationInput[] cursor?: ktp_validation_auditWhereUniqueInput take?: number skip?: number distinct?: Ktp_validation_auditScalarFieldEnum | Ktp_validation_auditScalarFieldEnum[] } /** * visitor_ktp_data without action */ export type visitor_ktp_dataDefaultArgs = { /** * Select specific fields to fetch from the visitor_ktp_data */ select?: visitor_ktp_dataSelect | null /** * Omit specific fields from the visitor_ktp_data */ omit?: visitor_ktp_dataOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_ktp_dataInclude | null } /** * Model visitor_registrations */ export type AggregateVisitor_registrations = { _count: Visitor_registrationsCountAggregateOutputType | null _avg: Visitor_registrationsAvgAggregateOutputType | null _sum: Visitor_registrationsSumAggregateOutputType | null _min: Visitor_registrationsMinAggregateOutputType | null _max: Visitor_registrationsMaxAggregateOutputType | null } export type Visitor_registrationsAvgAggregateOutputType = { location_lat: Decimal | null location_lng: Decimal | null } export type Visitor_registrationsSumAggregateOutputType = { location_lat: Decimal | null location_lng: Decimal | null } export type Visitor_registrationsMinAggregateOutputType = { id: string | null name: string | null phone: string | null photo_url: string | null purpose: string | null entry_point: string | null location_lat: Decimal | null location_lng: Decimal | null qr_code_id: string | null status: $Enums.visitor_registrations_status | null approved_by: string | null approved_at: Date | null rejected_by: string | null rejected_at: Date | null rejection_reason: string | null expires_at: Date | null checked_in_at: Date | null checked_out_at: Date | null created_by: string | null updated_by: string | null created_at: Date | null updated_at: Date | null location_address: string | null location_updated_at: Date | null } export type Visitor_registrationsMaxAggregateOutputType = { id: string | null name: string | null phone: string | null photo_url: string | null purpose: string | null entry_point: string | null location_lat: Decimal | null location_lng: Decimal | null qr_code_id: string | null status: $Enums.visitor_registrations_status | null approved_by: string | null approved_at: Date | null rejected_by: string | null rejected_at: Date | null rejection_reason: string | null expires_at: Date | null checked_in_at: Date | null checked_out_at: Date | null created_by: string | null updated_by: string | null created_at: Date | null updated_at: Date | null location_address: string | null location_updated_at: Date | null } export type Visitor_registrationsCountAggregateOutputType = { id: number name: number phone: number photo_url: number purpose: number entry_point: number location_lat: number location_lng: number qr_code_id: number status: number approved_by: number approved_at: number rejected_by: number rejected_at: number rejection_reason: number expires_at: number checked_in_at: number checked_out_at: number metadata: number created_by: number updated_by: number created_at: number updated_at: number location_address: number location_updated_at: number _all: number } export type Visitor_registrationsAvgAggregateInputType = { location_lat?: true location_lng?: true } export type Visitor_registrationsSumAggregateInputType = { location_lat?: true location_lng?: true } export type Visitor_registrationsMinAggregateInputType = { id?: true name?: true phone?: true photo_url?: true purpose?: true entry_point?: true location_lat?: true location_lng?: true qr_code_id?: true status?: true approved_by?: true approved_at?: true rejected_by?: true rejected_at?: true rejection_reason?: true expires_at?: true checked_in_at?: true checked_out_at?: true created_by?: true updated_by?: true created_at?: true updated_at?: true location_address?: true location_updated_at?: true } export type Visitor_registrationsMaxAggregateInputType = { id?: true name?: true phone?: true photo_url?: true purpose?: true entry_point?: true location_lat?: true location_lng?: true qr_code_id?: true status?: true approved_by?: true approved_at?: true rejected_by?: true rejected_at?: true rejection_reason?: true expires_at?: true checked_in_at?: true checked_out_at?: true created_by?: true updated_by?: true created_at?: true updated_at?: true location_address?: true location_updated_at?: true } export type Visitor_registrationsCountAggregateInputType = { id?: true name?: true phone?: true photo_url?: true purpose?: true entry_point?: true location_lat?: true location_lng?: true qr_code_id?: true status?: true approved_by?: true approved_at?: true rejected_by?: true rejected_at?: true rejection_reason?: true expires_at?: true checked_in_at?: true checked_out_at?: true metadata?: true created_by?: true updated_by?: true created_at?: true updated_at?: true location_address?: true location_updated_at?: true _all?: true } export type Visitor_registrationsAggregateArgs = { /** * Filter which visitor_registrations to aggregate. */ where?: visitor_registrationsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of visitor_registrations to fetch. */ orderBy?: visitor_registrationsOrderByWithRelationInput | visitor_registrationsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: visitor_registrationsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` visitor_registrations 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` visitor_registrations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned visitor_registrations **/ _count?: true | Visitor_registrationsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Visitor_registrationsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Visitor_registrationsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Visitor_registrationsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Visitor_registrationsMaxAggregateInputType } export type GetVisitor_registrationsAggregateType = { [P in keyof T & keyof AggregateVisitor_registrations]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type visitor_registrationsGroupByArgs = { where?: visitor_registrationsWhereInput orderBy?: visitor_registrationsOrderByWithAggregationInput | visitor_registrationsOrderByWithAggregationInput[] by: Visitor_registrationsScalarFieldEnum[] | Visitor_registrationsScalarFieldEnum having?: visitor_registrationsScalarWhereWithAggregatesInput take?: number skip?: number _count?: Visitor_registrationsCountAggregateInputType | true _avg?: Visitor_registrationsAvgAggregateInputType _sum?: Visitor_registrationsSumAggregateInputType _min?: Visitor_registrationsMinAggregateInputType _max?: Visitor_registrationsMaxAggregateInputType } export type Visitor_registrationsGroupByOutputType = { id: string name: string phone: string photo_url: string | null purpose: string | null entry_point: string location_lat: Decimal | null location_lng: Decimal | null qr_code_id: string | null status: $Enums.visitor_registrations_status approved_by: string | null approved_at: Date | null rejected_by: string | null rejected_at: Date | null rejection_reason: string | null expires_at: Date | null checked_in_at: Date | null checked_out_at: Date | null metadata: JsonValue | null created_by: string | null updated_by: string | null created_at: Date updated_at: Date location_address: string | null location_updated_at: Date | null _count: Visitor_registrationsCountAggregateOutputType | null _avg: Visitor_registrationsAvgAggregateOutputType | null _sum: Visitor_registrationsSumAggregateOutputType | null _min: Visitor_registrationsMinAggregateOutputType | null _max: Visitor_registrationsMaxAggregateOutputType | null } type GetVisitor_registrationsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof Visitor_registrationsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type visitor_registrationsSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean phone?: boolean photo_url?: boolean purpose?: boolean entry_point?: boolean location_lat?: boolean location_lng?: boolean qr_code_id?: boolean status?: boolean approved_by?: boolean approved_at?: boolean rejected_by?: boolean rejected_at?: boolean rejection_reason?: boolean expires_at?: boolean checked_in_at?: boolean checked_out_at?: boolean metadata?: boolean created_by?: boolean updated_by?: boolean created_at?: boolean updated_at?: boolean location_address?: boolean location_updated_at?: boolean qr_codes?: boolean | visitor_registrations$qr_codesArgs }, ExtArgs["result"]["visitor_registrations"]> export type visitor_registrationsSelectScalar = { id?: boolean name?: boolean phone?: boolean photo_url?: boolean purpose?: boolean entry_point?: boolean location_lat?: boolean location_lng?: boolean qr_code_id?: boolean status?: boolean approved_by?: boolean approved_at?: boolean rejected_by?: boolean rejected_at?: boolean rejection_reason?: boolean expires_at?: boolean checked_in_at?: boolean checked_out_at?: boolean metadata?: boolean created_by?: boolean updated_by?: boolean created_at?: boolean updated_at?: boolean location_address?: boolean location_updated_at?: boolean } export type visitor_registrationsOmit = $Extensions.GetOmit<"id" | "name" | "phone" | "photo_url" | "purpose" | "entry_point" | "location_lat" | "location_lng" | "qr_code_id" | "status" | "approved_by" | "approved_at" | "rejected_by" | "rejected_at" | "rejection_reason" | "expires_at" | "checked_in_at" | "checked_out_at" | "metadata" | "created_by" | "updated_by" | "created_at" | "updated_at" | "location_address" | "location_updated_at", ExtArgs["result"]["visitor_registrations"]> export type visitor_registrationsInclude = { qr_codes?: boolean | visitor_registrations$qr_codesArgs } export type $visitor_registrationsPayload = { name: "visitor_registrations" objects: { qr_codes: Prisma.$qr_codesPayload | null } scalars: $Extensions.GetPayloadResult<{ id: string name: string phone: string photo_url: string | null purpose: string | null entry_point: string location_lat: Prisma.Decimal | null location_lng: Prisma.Decimal | null qr_code_id: string | null status: $Enums.visitor_registrations_status approved_by: string | null approved_at: Date | null rejected_by: string | null rejected_at: Date | null rejection_reason: string | null expires_at: Date | null checked_in_at: Date | null checked_out_at: Date | null metadata: Prisma.JsonValue | null created_by: string | null updated_by: string | null created_at: Date updated_at: Date location_address: string | null location_updated_at: Date | null }, ExtArgs["result"]["visitor_registrations"]> composites: {} } type visitor_registrationsGetPayload = $Result.GetResult type visitor_registrationsCountArgs = Omit & { select?: Visitor_registrationsCountAggregateInputType | true } export interface visitor_registrationsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['visitor_registrations'], meta: { name: 'visitor_registrations' } } /** * Find zero or one Visitor_registrations that matches the filter. * @param {visitor_registrationsFindUniqueArgs} args - Arguments to find a Visitor_registrations * @example * // Get one Visitor_registrations * const visitor_registrations = await prisma.visitor_registrations.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__visitor_registrationsClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Visitor_registrations that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {visitor_registrationsFindUniqueOrThrowArgs} args - Arguments to find a Visitor_registrations * @example * // Get one Visitor_registrations * const visitor_registrations = await prisma.visitor_registrations.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__visitor_registrationsClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Visitor_registrations 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 {visitor_registrationsFindFirstArgs} args - Arguments to find a Visitor_registrations * @example * // Get one Visitor_registrations * const visitor_registrations = await prisma.visitor_registrations.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__visitor_registrationsClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Visitor_registrations 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 {visitor_registrationsFindFirstOrThrowArgs} args - Arguments to find a Visitor_registrations * @example * // Get one Visitor_registrations * const visitor_registrations = await prisma.visitor_registrations.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__visitor_registrationsClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Visitor_registrations 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 {visitor_registrationsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Visitor_registrations * const visitor_registrations = await prisma.visitor_registrations.findMany() * * // Get first 10 Visitor_registrations * const visitor_registrations = await prisma.visitor_registrations.findMany({ take: 10 }) * * // Only select the `id` * const visitor_registrationsWithIdOnly = await prisma.visitor_registrations.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Visitor_registrations. * @param {visitor_registrationsCreateArgs} args - Arguments to create a Visitor_registrations. * @example * // Create one Visitor_registrations * const Visitor_registrations = await prisma.visitor_registrations.create({ * data: { * // ... data to create a Visitor_registrations * } * }) * */ create(args: SelectSubset>): Prisma__visitor_registrationsClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Visitor_registrations. * @param {visitor_registrationsCreateManyArgs} args - Arguments to create many Visitor_registrations. * @example * // Create many Visitor_registrations * const visitor_registrations = await prisma.visitor_registrations.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Visitor_registrations. * @param {visitor_registrationsDeleteArgs} args - Arguments to delete one Visitor_registrations. * @example * // Delete one Visitor_registrations * const Visitor_registrations = await prisma.visitor_registrations.delete({ * where: { * // ... filter to delete one Visitor_registrations * } * }) * */ delete(args: SelectSubset>): Prisma__visitor_registrationsClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Visitor_registrations. * @param {visitor_registrationsUpdateArgs} args - Arguments to update one Visitor_registrations. * @example * // Update one Visitor_registrations * const visitor_registrations = await prisma.visitor_registrations.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__visitor_registrationsClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Visitor_registrations. * @param {visitor_registrationsDeleteManyArgs} args - Arguments to filter Visitor_registrations to delete. * @example * // Delete a few Visitor_registrations * const { count } = await prisma.visitor_registrations.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Visitor_registrations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {visitor_registrationsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Visitor_registrations * const visitor_registrations = await prisma.visitor_registrations.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Visitor_registrations. * @param {visitor_registrationsUpsertArgs} args - Arguments to update or create a Visitor_registrations. * @example * // Update or create a Visitor_registrations * const visitor_registrations = await prisma.visitor_registrations.upsert({ * create: { * // ... data to create a Visitor_registrations * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Visitor_registrations we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__visitor_registrationsClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Visitor_registrations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {visitor_registrationsCountArgs} args - Arguments to filter Visitor_registrations to count. * @example * // Count the number of Visitor_registrations * const count = await prisma.visitor_registrations.count({ * where: { * // ... the filter for the Visitor_registrations 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 Visitor_registrations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Visitor_registrationsAggregateArgs} 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 Visitor_registrations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {visitor_registrationsGroupByArgs} 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 visitor_registrationsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: visitor_registrationsGroupByArgs['orderBy'] } : { orderBy?: visitor_registrationsGroupByArgs['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 ? GetVisitor_registrationsGroupByPayload : Prisma.PrismaPromise /** * Fields of the visitor_registrations model */ readonly fields: visitor_registrationsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for visitor_registrations. * 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__visitor_registrationsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" qr_codes = {}>(args?: Subset>): Prisma__qr_codesClient<$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 visitor_registrations model */ interface visitor_registrationsFieldRefs { readonly id: FieldRef<"visitor_registrations", 'String'> readonly name: FieldRef<"visitor_registrations", 'String'> readonly phone: FieldRef<"visitor_registrations", 'String'> readonly photo_url: FieldRef<"visitor_registrations", 'String'> readonly purpose: FieldRef<"visitor_registrations", 'String'> readonly entry_point: FieldRef<"visitor_registrations", 'String'> readonly location_lat: FieldRef<"visitor_registrations", 'Decimal'> readonly location_lng: FieldRef<"visitor_registrations", 'Decimal'> readonly qr_code_id: FieldRef<"visitor_registrations", 'String'> readonly status: FieldRef<"visitor_registrations", 'visitor_registrations_status'> readonly approved_by: FieldRef<"visitor_registrations", 'String'> readonly approved_at: FieldRef<"visitor_registrations", 'DateTime'> readonly rejected_by: FieldRef<"visitor_registrations", 'String'> readonly rejected_at: FieldRef<"visitor_registrations", 'DateTime'> readonly rejection_reason: FieldRef<"visitor_registrations", 'String'> readonly expires_at: FieldRef<"visitor_registrations", 'DateTime'> readonly checked_in_at: FieldRef<"visitor_registrations", 'DateTime'> readonly checked_out_at: FieldRef<"visitor_registrations", 'DateTime'> readonly metadata: FieldRef<"visitor_registrations", 'Json'> readonly created_by: FieldRef<"visitor_registrations", 'String'> readonly updated_by: FieldRef<"visitor_registrations", 'String'> readonly created_at: FieldRef<"visitor_registrations", 'DateTime'> readonly updated_at: FieldRef<"visitor_registrations", 'DateTime'> readonly location_address: FieldRef<"visitor_registrations", 'String'> readonly location_updated_at: FieldRef<"visitor_registrations", 'DateTime'> } // Custom InputTypes /** * visitor_registrations findUnique */ export type visitor_registrationsFindUniqueArgs = { /** * Select specific fields to fetch from the visitor_registrations */ select?: visitor_registrationsSelect | null /** * Omit specific fields from the visitor_registrations */ omit?: visitor_registrationsOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_registrationsInclude | null /** * Filter, which visitor_registrations to fetch. */ where: visitor_registrationsWhereUniqueInput } /** * visitor_registrations findUniqueOrThrow */ export type visitor_registrationsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the visitor_registrations */ select?: visitor_registrationsSelect | null /** * Omit specific fields from the visitor_registrations */ omit?: visitor_registrationsOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_registrationsInclude | null /** * Filter, which visitor_registrations to fetch. */ where: visitor_registrationsWhereUniqueInput } /** * visitor_registrations findFirst */ export type visitor_registrationsFindFirstArgs = { /** * Select specific fields to fetch from the visitor_registrations */ select?: visitor_registrationsSelect | null /** * Omit specific fields from the visitor_registrations */ omit?: visitor_registrationsOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_registrationsInclude | null /** * Filter, which visitor_registrations to fetch. */ where?: visitor_registrationsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of visitor_registrations to fetch. */ orderBy?: visitor_registrationsOrderByWithRelationInput | visitor_registrationsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for visitor_registrations. */ cursor?: visitor_registrationsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` visitor_registrations 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` visitor_registrations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of visitor_registrations. */ distinct?: Visitor_registrationsScalarFieldEnum | Visitor_registrationsScalarFieldEnum[] } /** * visitor_registrations findFirstOrThrow */ export type visitor_registrationsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the visitor_registrations */ select?: visitor_registrationsSelect | null /** * Omit specific fields from the visitor_registrations */ omit?: visitor_registrationsOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_registrationsInclude | null /** * Filter, which visitor_registrations to fetch. */ where?: visitor_registrationsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of visitor_registrations to fetch. */ orderBy?: visitor_registrationsOrderByWithRelationInput | visitor_registrationsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for visitor_registrations. */ cursor?: visitor_registrationsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` visitor_registrations 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` visitor_registrations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of visitor_registrations. */ distinct?: Visitor_registrationsScalarFieldEnum | Visitor_registrationsScalarFieldEnum[] } /** * visitor_registrations findMany */ export type visitor_registrationsFindManyArgs = { /** * Select specific fields to fetch from the visitor_registrations */ select?: visitor_registrationsSelect | null /** * Omit specific fields from the visitor_registrations */ omit?: visitor_registrationsOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_registrationsInclude | null /** * Filter, which visitor_registrations to fetch. */ where?: visitor_registrationsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of visitor_registrations to fetch. */ orderBy?: visitor_registrationsOrderByWithRelationInput | visitor_registrationsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing visitor_registrations. */ cursor?: visitor_registrationsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` visitor_registrations 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` visitor_registrations. */ skip?: number distinct?: Visitor_registrationsScalarFieldEnum | Visitor_registrationsScalarFieldEnum[] } /** * visitor_registrations create */ export type visitor_registrationsCreateArgs = { /** * Select specific fields to fetch from the visitor_registrations */ select?: visitor_registrationsSelect | null /** * Omit specific fields from the visitor_registrations */ omit?: visitor_registrationsOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_registrationsInclude | null /** * The data needed to create a visitor_registrations. */ data: XOR } /** * visitor_registrations createMany */ export type visitor_registrationsCreateManyArgs = { /** * The data used to create many visitor_registrations. */ data: visitor_registrationsCreateManyInput | visitor_registrationsCreateManyInput[] skipDuplicates?: boolean } /** * visitor_registrations update */ export type visitor_registrationsUpdateArgs = { /** * Select specific fields to fetch from the visitor_registrations */ select?: visitor_registrationsSelect | null /** * Omit specific fields from the visitor_registrations */ omit?: visitor_registrationsOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_registrationsInclude | null /** * The data needed to update a visitor_registrations. */ data: XOR /** * Choose, which visitor_registrations to update. */ where: visitor_registrationsWhereUniqueInput } /** * visitor_registrations updateMany */ export type visitor_registrationsUpdateManyArgs = { /** * The data used to update visitor_registrations. */ data: XOR /** * Filter which visitor_registrations to update */ where?: visitor_registrationsWhereInput /** * Limit how many visitor_registrations to update. */ limit?: number } /** * visitor_registrations upsert */ export type visitor_registrationsUpsertArgs = { /** * Select specific fields to fetch from the visitor_registrations */ select?: visitor_registrationsSelect | null /** * Omit specific fields from the visitor_registrations */ omit?: visitor_registrationsOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_registrationsInclude | null /** * The filter to search for the visitor_registrations to update in case it exists. */ where: visitor_registrationsWhereUniqueInput /** * In case the visitor_registrations found by the `where` argument doesn't exist, create a new visitor_registrations with this data. */ create: XOR /** * In case the visitor_registrations was found with the provided `where` argument, update it with this data. */ update: XOR } /** * visitor_registrations delete */ export type visitor_registrationsDeleteArgs = { /** * Select specific fields to fetch from the visitor_registrations */ select?: visitor_registrationsSelect | null /** * Omit specific fields from the visitor_registrations */ omit?: visitor_registrationsOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_registrationsInclude | null /** * Filter which visitor_registrations to delete. */ where: visitor_registrationsWhereUniqueInput } /** * visitor_registrations deleteMany */ export type visitor_registrationsDeleteManyArgs = { /** * Filter which visitor_registrations to delete */ where?: visitor_registrationsWhereInput /** * Limit how many visitor_registrations to delete. */ limit?: number } /** * visitor_registrations.qr_codes */ export type visitor_registrations$qr_codesArgs = { /** * Select specific fields to fetch from the qr_codes */ select?: qr_codesSelect | null /** * Omit specific fields from the qr_codes */ omit?: qr_codesOmit | null /** * Choose, which related nodes to fetch as well */ include?: qr_codesInclude | null where?: qr_codesWhereInput } /** * visitor_registrations without action */ export type visitor_registrationsDefaultArgs = { /** * Select specific fields to fetch from the visitor_registrations */ select?: visitor_registrationsSelect | null /** * Omit specific fields from the visitor_registrations */ omit?: visitor_registrationsOmit | null /** * Choose, which related nodes to fetch as well */ include?: visitor_registrationsInclude | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const Alert_recipientsScalarFieldEnum: { id: 'id', alert_id: 'alert_id', recipient_type: 'recipient_type', recipient_id: 'recipient_id', recipient_name: 'recipient_name', recipient_contact: 'recipient_contact', channel: 'channel', delivery_status: 'delivery_status', sent_at: 'sent_at', delivered_at: 'delivered_at', acknowledged_at: 'acknowledged_at', failed_at: 'failed_at', delivery_attempts: 'delivery_attempts', last_attempt_at: 'last_attempt_at', failure_reason: 'failure_reason', delivery_metadata: 'delivery_metadata', response_data: 'response_data', response_time: 'response_time', created_at: 'created_at', updated_at: 'updated_at' }; export type Alert_recipientsScalarFieldEnum = (typeof Alert_recipientsScalarFieldEnum)[keyof typeof Alert_recipientsScalarFieldEnum] export const AlertsScalarFieldEnum: { id: 'id', alert_id: 'alert_id', title: 'title', message: 'message', type: 'type', category: 'category', severity: 'severity', priority: 'priority', status: 'status', is_emergency: 'is_emergency', is_broadcast: 'is_broadcast', is_recurring: 'is_recurring', location: 'location', coordinates_lat: 'coordinates_lat', coordinates_lng: 'coordinates_lng', target_zones: 'target_zones', target_buildings: 'target_buildings', target_roles: 'target_roles', target_teams: 'target_teams', target_users: 'target_users', geofence_ids: 'geofence_ids', scheduled_at: 'scheduled_at', starts_at: 'starts_at', ends_at: 'ends_at', expires_at: 'expires_at', acknowledged_at: 'acknowledged_at', resolved_at: 'resolved_at', recurrence_pattern: 'recurrence_pattern', next_occurrence: 'next_occurrence', content: 'content', attachments: 'attachments', media_urls: 'media_urls', action_buttons: 'action_buttons', channels: 'channels', delivery_config: 'delivery_config', source: 'source', source_id: 'source_id', context: 'context', incident_id: 'incident_id', camera_ids: 'camera_ids', related_alerts: 'related_alerts', total_recipients: 'total_recipients', delivered_count: 'delivered_count', acknowledged_count: 'acknowledged_count', failed_count: 'failed_count', tags: 'tags', metadata: 'metadata', custom_fields: 'custom_fields', created_at: 'created_at', updated_at: 'updated_at', created_by: 'created_by', updated_by: 'updated_by', deleted_at: 'deleted_at', deleted_by: 'deleted_by' }; export type AlertsScalarFieldEnum = (typeof AlertsScalarFieldEnum)[keyof typeof AlertsScalarFieldEnum] export const Basemap_configsScalarFieldEnum: { id: 'id', name: 'name', description: 'description', svg_data: 'svg_data', calibration: 'calibration', dimensions: 'dimensions', is_active: 'is_active', is_default: 'is_default', version: 'version', settings: 'settings', metadata: 'metadata', file_size: 'file_size', checksum: 'checksum', created_at: 'created_at', updated_at: 'updated_at', created_by: 'created_by', updated_by: 'updated_by' }; export type Basemap_configsScalarFieldEnum = (typeof Basemap_configsScalarFieldEnum)[keyof typeof Basemap_configsScalarFieldEnum] export const Camera_health_logScalarFieldEnum: { id: 'id', camera_id: 'camera_id', status: 'status', response_time: 'response_time', health_score: 'health_score', error_message: 'error_message', stream_accessible: 'stream_accessible', timestamp: 'timestamp' }; export type Camera_health_logScalarFieldEnum = (typeof Camera_health_logScalarFieldEnum)[keyof typeof Camera_health_logScalarFieldEnum] export const CamerasScalarFieldEnum: { id: 'id', label: 'label', area: 'area', lat: 'lat', lng: 'lng', stream_url: 'stream_url', status: 'status', last_heartbeat: 'last_heartbeat', response_time: 'response_time', health_score: 'health_score', error_message: 'error_message', created_at: 'created_at', updated_at: 'updated_at' }; export type CamerasScalarFieldEnum = (typeof CamerasScalarFieldEnum)[keyof typeof CamerasScalarFieldEnum] export const Feature_flagsScalarFieldEnum: { id: 'id', key: 'key', name: 'name', description: 'description', is_enabled: 'is_enabled', type: 'type', value: 'value', default_value: 'default_value', environment: 'environment', category: 'category', tags: 'tags', conditions: 'conditions', rollout_percentage: 'rollout_percentage', user_segments: 'user_segments', is_archived: 'is_archived', is_permanent: 'is_permanent', expires_at: 'expires_at', last_evaluated_at: 'last_evaluated_at', evaluation_count: 'evaluation_count', metadata: 'metadata', created_at: 'created_at', updated_at: 'updated_at', created_by: 'created_by', updated_by: 'updated_by', enabled_at: 'enabled_at', disabled_at: 'disabled_at' }; export type Feature_flagsScalarFieldEnum = (typeof Feature_flagsScalarFieldEnum)[keyof typeof Feature_flagsScalarFieldEnum] export const Geofence_breachesScalarFieldEnum: { id: 'id', geofence_id: 'geofence_id', team_member_id: 'team_member_id', breach_type: 'breach_type', location: 'location', severity: 'severity', is_resolved: 'is_resolved', resolved_at: 'resolved_at', resolved_by: 'resolved_by', notes: 'notes', metadata: 'metadata', created_at: 'created_at', updated_at: 'updated_at' }; export type Geofence_breachesScalarFieldEnum = (typeof Geofence_breachesScalarFieldEnum)[keyof typeof Geofence_breachesScalarFieldEnum] export const GeofencesScalarFieldEnum: { id: 'id', name: 'name', type: 'type', coordinates: 'coordinates', description: 'description', is_active: 'is_active', priority: 'priority', notification_settings: 'notification_settings', metadata: 'metadata', created_at: 'created_at', updated_at: 'updated_at', created_by: 'created_by', updated_by: 'updated_by' }; export type GeofencesScalarFieldEnum = (typeof GeofencesScalarFieldEnum)[keyof typeof GeofencesScalarFieldEnum] export const HousesScalarFieldEnum: { id: 'id', house_number: 'house_number', block: 'block', street: 'street', owner_name: 'owner_name', owner_phone: 'owner_phone', status: 'status', perumahan_id: 'perumahan_id', created_at: 'created_at', updated_at: 'updated_at' }; export type HousesScalarFieldEnum = (typeof HousesScalarFieldEnum)[keyof typeof HousesScalarFieldEnum] export const Incident_updatesScalarFieldEnum: { id: 'id', incident_id: 'incident_id', update_type: 'update_type', title: 'title', description: 'description', old_values: 'old_values', new_values: 'new_values', changed_fields: 'changed_fields', is_internal: 'is_internal', is_system_generated: 'is_system_generated', attachments: 'attachments', created_at: 'created_at', created_by: 'created_by', notifications_sent: 'notifications_sent', notification_status: 'notification_status' }; export type Incident_updatesScalarFieldEnum = (typeof Incident_updatesScalarFieldEnum)[keyof typeof Incident_updatesScalarFieldEnum] export const IncidentsScalarFieldEnum: { id: 'id', incident_number: 'incident_number', title: 'title', description: 'description', type: 'type', severity: 'severity', priority: 'priority', status: 'status', location: 'location', coordinates_lat: 'coordinates_lat', coordinates_lng: 'coordinates_lng', address: 'address', zone: 'zone', building: 'building', floor: 'floor', room: 'room', reported_by: 'reported_by', reporter_name: 'reporter_name', reporter_contact: 'reporter_contact', reporter_type: 'reporter_type', assigned_to: 'assigned_to', assigned_team: 'assigned_team', assigned_at: 'assigned_at', occurred_at: 'occurred_at', reported_at: 'reported_at', acknowledged_at: 'acknowledged_at', resolved_at: 'resolved_at', closed_at: 'closed_at', due_date: 'due_date', tags: 'tags', attachments: 'attachments', evidence: 'evidence', witnesses: 'witnesses', related_incidents: 'related_incidents', camera_ids: 'camera_ids', geofence_id: 'geofence_id', alert_id: 'alert_id', metadata: 'metadata', custom_fields: 'custom_fields', created_at: 'created_at', updated_at: 'updated_at', created_by: 'created_by', updated_by: 'updated_by', deleted_at: 'deleted_at', deleted_by: 'deleted_by' }; export type IncidentsScalarFieldEnum = (typeof IncidentsScalarFieldEnum)[keyof typeof IncidentsScalarFieldEnum] export const Ktp_validation_auditScalarFieldEnum: { id: 'id', ktp_data_id: 'ktp_data_id', action: 'action', old_values: 'old_values', new_values: 'new_values', performed_by: 'performed_by', ip_address: 'ip_address', user_agent: 'user_agent', reason: 'reason', created_at: 'created_at', metadata: 'metadata' }; export type Ktp_validation_auditScalarFieldEnum = (typeof Ktp_validation_auditScalarFieldEnum)[keyof typeof Ktp_validation_auditScalarFieldEnum] export const Map_pinsScalarFieldEnum: { id: 'id', type: 'type', coordinates: 'coordinates', title: 'title', description: 'description', status: 'status', priority: 'priority', icon_type: 'icon_type', icon_color: 'icon_color', size: 'size', is_visible: 'is_visible', is_clickable: 'is_clickable', metadata: 'metadata', alert_id: 'alert_id', incident_id: 'incident_id', team_member_id: 'team_member_id', camera_id: 'camera_id', geofence_id: 'geofence_id', created_at: 'created_at', updated_at: 'updated_at', created_by: 'created_by', updated_by: 'updated_by' }; export type Map_pinsScalarFieldEnum = (typeof Map_pinsScalarFieldEnum)[keyof typeof Map_pinsScalarFieldEnum] export const Perumahan_facilitiesScalarFieldEnum: { id: 'id', name: 'name', type: 'type', description: 'description', location: 'location', lat: 'lat', lng: 'lng', status: 'status', operating_hours: 'operating_hours', contact_info: 'contact_info', created_at: 'created_at', updated_at: 'updated_at' }; export type Perumahan_facilitiesScalarFieldEnum = (typeof Perumahan_facilitiesScalarFieldEnum)[keyof typeof Perumahan_facilitiesScalarFieldEnum] export const Perumahan_infoScalarFieldEnum: { id: 'id', name: 'name', total_units: 'total_units', clusters: 'clusters', address: 'address', created_at: 'created_at', updated_at: 'updated_at' }; export type Perumahan_infoScalarFieldEnum = (typeof Perumahan_infoScalarFieldEnum)[keyof typeof Perumahan_infoScalarFieldEnum] export const Qr_codesScalarFieldEnum: { id: 'id', entry_point: 'entry_point', qr_data: 'qr_data', location_lat: 'location_lat', location_lng: 'location_lng', geofence_radius: 'geofence_radius', is_active: 'is_active', description: 'description', max_daily_registrations: 'max_daily_registrations', operating_hours: 'operating_hours', security_level: 'security_level', requires_approval: 'requires_approval', auto_approve_roles: 'auto_approve_roles', metadata: 'metadata', last_used_at: 'last_used_at', usage_count: 'usage_count', created_by: 'created_by', updated_by: 'updated_by', created_at: 'created_at', updated_at: 'updated_at' }; export type Qr_codesScalarFieldEnum = (typeof Qr_codesScalarFieldEnum)[keyof typeof Qr_codesScalarFieldEnum] export const Security_activitiesScalarFieldEnum: { id: 'id', type: 'type', ref_id: 'ref_id', actor: 'actor', note: 'note', severity: 'severity', timestamp: 'timestamp', metadata: 'metadata', source: 'source' }; export type Security_activitiesScalarFieldEnum = (typeof Security_activitiesScalarFieldEnum)[keyof typeof Security_activitiesScalarFieldEnum] export const SequelizemetaScalarFieldEnum: { name: 'name' }; export type SequelizemetaScalarFieldEnum = (typeof SequelizemetaScalarFieldEnum)[keyof typeof SequelizemetaScalarFieldEnum] export const Team_location_historyScalarFieldEnum: { id: 'id', member_id: 'member_id', location: 'location', lat: 'lat', lng: 'lng', activity_type: 'activity_type', timestamp: 'timestamp' }; export type Team_location_historyScalarFieldEnum = (typeof Team_location_historyScalarFieldEnum)[keyof typeof Team_location_historyScalarFieldEnum] export const Team_membersScalarFieldEnum: { id: 'id', nama: 'nama', role: 'role', status: 'status', phone: 'phone', email: 'email', current_location: 'current_location', last_update: 'last_update', shift_start: 'shift_start', shift_end: 'shift_end', created_at: 'created_at', updated_at: 'updated_at' }; export type Team_membersScalarFieldEnum = (typeof Team_membersScalarFieldEnum)[keyof typeof Team_membersScalarFieldEnum] export const Visitor_ktp_dataScalarFieldEnum: { id: 'id', visitor_registration_id: 'visitor_registration_id', ktp_number: 'ktp_number', full_name: 'full_name', birth_date: 'birth_date', birth_place: 'birth_place', gender: 'gender', address: 'address', rt_rw: 'rt_rw', kelurahan: 'kelurahan', kecamatan: 'kecamatan', religion: 'religion', marital_status: 'marital_status', occupation: 'occupation', nationality: 'nationality', ktp_photo_url: 'ktp_photo_url', ktp_photo_hash: 'ktp_photo_hash', validation_status: 'validation_status', validation_confidence: 'validation_confidence', validation_notes: 'validation_notes', validated_by: 'validated_by', validated_at: 'validated_at', ocr_raw_data: 'ocr_raw_data', manual_corrections: 'manual_corrections', created_at: 'created_at', updated_at: 'updated_at' }; export type Visitor_ktp_dataScalarFieldEnum = (typeof Visitor_ktp_dataScalarFieldEnum)[keyof typeof Visitor_ktp_dataScalarFieldEnum] export const Visitor_registrationsScalarFieldEnum: { id: 'id', name: 'name', phone: 'phone', photo_url: 'photo_url', purpose: 'purpose', entry_point: 'entry_point', location_lat: 'location_lat', location_lng: 'location_lng', qr_code_id: 'qr_code_id', status: 'status', approved_by: 'approved_by', approved_at: 'approved_at', rejected_by: 'rejected_by', rejected_at: 'rejected_at', rejection_reason: 'rejection_reason', expires_at: 'expires_at', checked_in_at: 'checked_in_at', checked_out_at: 'checked_out_at', metadata: 'metadata', created_by: 'created_by', updated_by: 'updated_by', created_at: 'created_at', updated_at: 'updated_at', location_address: 'location_address', location_updated_at: 'location_updated_at' }; export type Visitor_registrationsScalarFieldEnum = (typeof Visitor_registrationsScalarFieldEnum)[keyof typeof Visitor_registrationsScalarFieldEnum] export const SortOrder: { asc: 'asc', desc: 'desc' }; export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export const NullableJsonNullValueInput: { DbNull: typeof DbNull, JsonNull: typeof JsonNull }; export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput] export const JsonNullValueInput: { JsonNull: typeof JsonNull }; export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] export const JsonNullValueFilter: { DbNull: typeof DbNull, JsonNull: typeof JsonNull, AnyNull: typeof AnyNull }; export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] 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] export const alert_recipientsOrderByRelevanceFieldEnum: { id: 'id', alert_id: 'alert_id', recipient_type: 'recipient_type', recipient_id: 'recipient_id', recipient_name: 'recipient_name', channel: 'channel', delivery_status: 'delivery_status', failure_reason: 'failure_reason' }; export type alert_recipientsOrderByRelevanceFieldEnum = (typeof alert_recipientsOrderByRelevanceFieldEnum)[keyof typeof alert_recipientsOrderByRelevanceFieldEnum] export const alertsOrderByRelevanceFieldEnum: { id: 'id', alert_id: 'alert_id', title: 'title', message: 'message', type: 'type', category: 'category', severity: 'severity', priority: 'priority', status: 'status', source: 'source', source_id: 'source_id', incident_id: 'incident_id', created_by: 'created_by', updated_by: 'updated_by', deleted_by: 'deleted_by' }; export type alertsOrderByRelevanceFieldEnum = (typeof alertsOrderByRelevanceFieldEnum)[keyof typeof alertsOrderByRelevanceFieldEnum] export const basemap_configsOrderByRelevanceFieldEnum: { id: 'id', name: 'name', description: 'description', svg_data: 'svg_data', checksum: 'checksum', created_by: 'created_by', updated_by: 'updated_by' }; export type basemap_configsOrderByRelevanceFieldEnum = (typeof basemap_configsOrderByRelevanceFieldEnum)[keyof typeof basemap_configsOrderByRelevanceFieldEnum] export const camera_health_logOrderByRelevanceFieldEnum: { camera_id: 'camera_id', status: 'status', error_message: 'error_message' }; export type camera_health_logOrderByRelevanceFieldEnum = (typeof camera_health_logOrderByRelevanceFieldEnum)[keyof typeof camera_health_logOrderByRelevanceFieldEnum] export const camerasOrderByRelevanceFieldEnum: { id: 'id', label: 'label', area: 'area', stream_url: 'stream_url', error_message: 'error_message' }; export type camerasOrderByRelevanceFieldEnum = (typeof camerasOrderByRelevanceFieldEnum)[keyof typeof camerasOrderByRelevanceFieldEnum] export const feature_flagsOrderByRelevanceFieldEnum: { id: 'id', key: 'key', name: 'name', description: 'description', type: 'type', environment: 'environment', category: 'category', created_by: 'created_by', updated_by: 'updated_by' }; export type feature_flagsOrderByRelevanceFieldEnum = (typeof feature_flagsOrderByRelevanceFieldEnum)[keyof typeof feature_flagsOrderByRelevanceFieldEnum] export const geofence_breachesOrderByRelevanceFieldEnum: { id: 'id', geofence_id: 'geofence_id', team_member_id: 'team_member_id', breach_type: 'breach_type', severity: 'severity', resolved_by: 'resolved_by', notes: 'notes' }; export type geofence_breachesOrderByRelevanceFieldEnum = (typeof geofence_breachesOrderByRelevanceFieldEnum)[keyof typeof geofence_breachesOrderByRelevanceFieldEnum] export const geofencesOrderByRelevanceFieldEnum: { id: 'id', name: 'name', type: 'type', description: 'description', priority: 'priority', created_by: 'created_by', updated_by: 'updated_by' }; export type geofencesOrderByRelevanceFieldEnum = (typeof geofencesOrderByRelevanceFieldEnum)[keyof typeof geofencesOrderByRelevanceFieldEnum] export const housesOrderByRelevanceFieldEnum: { id: 'id', house_number: 'house_number', block: 'block', street: 'street', owner_name: 'owner_name', owner_phone: 'owner_phone', perumahan_id: 'perumahan_id' }; export type housesOrderByRelevanceFieldEnum = (typeof housesOrderByRelevanceFieldEnum)[keyof typeof housesOrderByRelevanceFieldEnum] export const incident_updatesOrderByRelevanceFieldEnum: { id: 'id', incident_id: 'incident_id', update_type: 'update_type', title: 'title', description: 'description', created_by: 'created_by', notification_status: 'notification_status' }; export type incident_updatesOrderByRelevanceFieldEnum = (typeof incident_updatesOrderByRelevanceFieldEnum)[keyof typeof incident_updatesOrderByRelevanceFieldEnum] export const incidentsOrderByRelevanceFieldEnum: { id: 'id', incident_number: 'incident_number', title: 'title', description: 'description', type: 'type', severity: 'severity', priority: 'priority', status: 'status', address: 'address', zone: 'zone', building: 'building', floor: 'floor', room: 'room', reported_by: 'reported_by', reporter_name: 'reporter_name', reporter_contact: 'reporter_contact', reporter_type: 'reporter_type', assigned_to: 'assigned_to', assigned_team: 'assigned_team', geofence_id: 'geofence_id', alert_id: 'alert_id', created_by: 'created_by', updated_by: 'updated_by', deleted_by: 'deleted_by' }; export type incidentsOrderByRelevanceFieldEnum = (typeof incidentsOrderByRelevanceFieldEnum)[keyof typeof incidentsOrderByRelevanceFieldEnum] export const ktp_validation_auditOrderByRelevanceFieldEnum: { id: 'id', ktp_data_id: 'ktp_data_id', performed_by: 'performed_by', ip_address: 'ip_address', user_agent: 'user_agent', reason: 'reason' }; export type ktp_validation_auditOrderByRelevanceFieldEnum = (typeof ktp_validation_auditOrderByRelevanceFieldEnum)[keyof typeof ktp_validation_auditOrderByRelevanceFieldEnum] export const map_pinsOrderByRelevanceFieldEnum: { id: 'id', type: 'type', title: 'title', description: 'description', status: 'status', priority: 'priority', icon_type: 'icon_type', icon_color: 'icon_color', size: 'size', alert_id: 'alert_id', incident_id: 'incident_id', team_member_id: 'team_member_id', camera_id: 'camera_id', geofence_id: 'geofence_id', created_by: 'created_by', updated_by: 'updated_by' }; export type map_pinsOrderByRelevanceFieldEnum = (typeof map_pinsOrderByRelevanceFieldEnum)[keyof typeof map_pinsOrderByRelevanceFieldEnum] export const perumahan_facilitiesOrderByRelevanceFieldEnum: { name: 'name', type: 'type', description: 'description', location: 'location' }; export type perumahan_facilitiesOrderByRelevanceFieldEnum = (typeof perumahan_facilitiesOrderByRelevanceFieldEnum)[keyof typeof perumahan_facilitiesOrderByRelevanceFieldEnum] export const perumahan_infoOrderByRelevanceFieldEnum: { name: 'name', address: 'address' }; export type perumahan_infoOrderByRelevanceFieldEnum = (typeof perumahan_infoOrderByRelevanceFieldEnum)[keyof typeof perumahan_infoOrderByRelevanceFieldEnum] export const qr_codesOrderByRelevanceFieldEnum: { id: 'id', entry_point: 'entry_point', qr_data: 'qr_data', description: 'description', created_by: 'created_by', updated_by: 'updated_by' }; export type qr_codesOrderByRelevanceFieldEnum = (typeof qr_codesOrderByRelevanceFieldEnum)[keyof typeof qr_codesOrderByRelevanceFieldEnum] export const security_activitiesOrderByRelevanceFieldEnum: { type: 'type', ref_id: 'ref_id', actor: 'actor', note: 'note', source: 'source' }; export type security_activitiesOrderByRelevanceFieldEnum = (typeof security_activitiesOrderByRelevanceFieldEnum)[keyof typeof security_activitiesOrderByRelevanceFieldEnum] export const sequelizemetaOrderByRelevanceFieldEnum: { name: 'name' }; export type sequelizemetaOrderByRelevanceFieldEnum = (typeof sequelizemetaOrderByRelevanceFieldEnum)[keyof typeof sequelizemetaOrderByRelevanceFieldEnum] export const team_location_historyOrderByRelevanceFieldEnum: { member_id: 'member_id', location: 'location', activity_type: 'activity_type' }; export type team_location_historyOrderByRelevanceFieldEnum = (typeof team_location_historyOrderByRelevanceFieldEnum)[keyof typeof team_location_historyOrderByRelevanceFieldEnum] export const team_membersOrderByRelevanceFieldEnum: { id: 'id', nama: 'nama', role: 'role', phone: 'phone', email: 'email', current_location: 'current_location' }; export type team_membersOrderByRelevanceFieldEnum = (typeof team_membersOrderByRelevanceFieldEnum)[keyof typeof team_membersOrderByRelevanceFieldEnum] export const visitor_ktp_dataOrderByRelevanceFieldEnum: { id: 'id', visitor_registration_id: 'visitor_registration_id', ktp_number: 'ktp_number', full_name: 'full_name', birth_place: 'birth_place', address: 'address', rt_rw: 'rt_rw', kelurahan: 'kelurahan', kecamatan: 'kecamatan', religion: 'religion', marital_status: 'marital_status', occupation: 'occupation', nationality: 'nationality', ktp_photo_url: 'ktp_photo_url', ktp_photo_hash: 'ktp_photo_hash', validation_notes: 'validation_notes', validated_by: 'validated_by' }; export type visitor_ktp_dataOrderByRelevanceFieldEnum = (typeof visitor_ktp_dataOrderByRelevanceFieldEnum)[keyof typeof visitor_ktp_dataOrderByRelevanceFieldEnum] export const visitor_registrationsOrderByRelevanceFieldEnum: { id: 'id', name: 'name', phone: 'phone', photo_url: 'photo_url', purpose: 'purpose', entry_point: 'entry_point', qr_code_id: 'qr_code_id', approved_by: 'approved_by', rejected_by: 'rejected_by', rejection_reason: 'rejection_reason', created_by: 'created_by', updated_by: 'updated_by', location_address: 'location_address' }; export type visitor_registrationsOrderByRelevanceFieldEnum = (typeof visitor_registrationsOrderByRelevanceFieldEnum)[keyof typeof visitor_registrationsOrderByRelevanceFieldEnum] /** * Field references */ /** * Reference to a field of type 'String' */ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> /** * Reference to a field of type 'Json' */ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'> /** * Reference to a field of type 'QueryMode' */ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'> /** * Reference to a field of type 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> /** * Reference to a field of type 'Int' */ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> /** * Reference to a field of type 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * Reference to a field of type 'Decimal' */ export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'> /** * Reference to a field of type 'cameras_status' */ export type Enumcameras_statusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'cameras_status'> /** * Reference to a field of type 'BigInt' */ export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'> /** * Reference to a field of type 'houses_status' */ export type Enumhouses_statusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'houses_status'> /** * Reference to a field of type 'ktp_validation_audit_action' */ export type Enumktp_validation_audit_actionFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ktp_validation_audit_action'> /** * Reference to a field of type 'perumahan_facilities_status' */ export type Enumperumahan_facilities_statusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'perumahan_facilities_status'> /** * Reference to a field of type 'qr_codes_security_level' */ export type Enumqr_codes_security_levelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'qr_codes_security_level'> /** * Reference to a field of type 'security_activities_severity' */ export type Enumsecurity_activities_severityFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'security_activities_severity'> /** * Reference to a field of type 'team_members_status' */ export type Enumteam_members_statusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'team_members_status'> /** * Reference to a field of type 'visitor_ktp_data_gender' */ export type Enumvisitor_ktp_data_genderFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'visitor_ktp_data_gender'> /** * Reference to a field of type 'visitor_ktp_data_validation_status' */ export type Enumvisitor_ktp_data_validation_statusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'visitor_ktp_data_validation_status'> /** * Reference to a field of type 'visitor_registrations_status' */ export type Enumvisitor_registrations_statusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'visitor_registrations_status'> /** * Reference to a field of type 'Float' */ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> /** * Deep Input Types */ export type alert_recipientsWhereInput = { AND?: alert_recipientsWhereInput | alert_recipientsWhereInput[] OR?: alert_recipientsWhereInput[] NOT?: alert_recipientsWhereInput | alert_recipientsWhereInput[] id?: StringFilter<"alert_recipients"> | string alert_id?: StringFilter<"alert_recipients"> | string recipient_type?: StringFilter<"alert_recipients"> | string recipient_id?: StringNullableFilter<"alert_recipients"> | string | null recipient_name?: StringNullableFilter<"alert_recipients"> | string | null recipient_contact?: JsonNullableFilter<"alert_recipients"> channel?: StringFilter<"alert_recipients"> | string delivery_status?: StringNullableFilter<"alert_recipients"> | string | null sent_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null delivered_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null acknowledged_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null failed_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null delivery_attempts?: IntNullableFilter<"alert_recipients"> | number | null last_attempt_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null failure_reason?: StringNullableFilter<"alert_recipients"> | string | null delivery_metadata?: JsonNullableFilter<"alert_recipients"> response_data?: JsonNullableFilter<"alert_recipients"> response_time?: IntNullableFilter<"alert_recipients"> | number | null created_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null updated_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null alerts?: XOR } export type alert_recipientsOrderByWithRelationInput = { id?: SortOrder alert_id?: SortOrder recipient_type?: SortOrder recipient_id?: SortOrderInput | SortOrder recipient_name?: SortOrderInput | SortOrder recipient_contact?: SortOrderInput | SortOrder channel?: SortOrder delivery_status?: SortOrderInput | SortOrder sent_at?: SortOrderInput | SortOrder delivered_at?: SortOrderInput | SortOrder acknowledged_at?: SortOrderInput | SortOrder failed_at?: SortOrderInput | SortOrder delivery_attempts?: SortOrderInput | SortOrder last_attempt_at?: SortOrderInput | SortOrder failure_reason?: SortOrderInput | SortOrder delivery_metadata?: SortOrderInput | SortOrder response_data?: SortOrderInput | SortOrder response_time?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder alerts?: alertsOrderByWithRelationInput _relevance?: alert_recipientsOrderByRelevanceInput } export type alert_recipientsWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: alert_recipientsWhereInput | alert_recipientsWhereInput[] OR?: alert_recipientsWhereInput[] NOT?: alert_recipientsWhereInput | alert_recipientsWhereInput[] alert_id?: StringFilter<"alert_recipients"> | string recipient_type?: StringFilter<"alert_recipients"> | string recipient_id?: StringNullableFilter<"alert_recipients"> | string | null recipient_name?: StringNullableFilter<"alert_recipients"> | string | null recipient_contact?: JsonNullableFilter<"alert_recipients"> channel?: StringFilter<"alert_recipients"> | string delivery_status?: StringNullableFilter<"alert_recipients"> | string | null sent_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null delivered_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null acknowledged_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null failed_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null delivery_attempts?: IntNullableFilter<"alert_recipients"> | number | null last_attempt_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null failure_reason?: StringNullableFilter<"alert_recipients"> | string | null delivery_metadata?: JsonNullableFilter<"alert_recipients"> response_data?: JsonNullableFilter<"alert_recipients"> response_time?: IntNullableFilter<"alert_recipients"> | number | null created_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null updated_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null alerts?: XOR }, "id"> export type alert_recipientsOrderByWithAggregationInput = { id?: SortOrder alert_id?: SortOrder recipient_type?: SortOrder recipient_id?: SortOrderInput | SortOrder recipient_name?: SortOrderInput | SortOrder recipient_contact?: SortOrderInput | SortOrder channel?: SortOrder delivery_status?: SortOrderInput | SortOrder sent_at?: SortOrderInput | SortOrder delivered_at?: SortOrderInput | SortOrder acknowledged_at?: SortOrderInput | SortOrder failed_at?: SortOrderInput | SortOrder delivery_attempts?: SortOrderInput | SortOrder last_attempt_at?: SortOrderInput | SortOrder failure_reason?: SortOrderInput | SortOrder delivery_metadata?: SortOrderInput | SortOrder response_data?: SortOrderInput | SortOrder response_time?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder _count?: alert_recipientsCountOrderByAggregateInput _avg?: alert_recipientsAvgOrderByAggregateInput _max?: alert_recipientsMaxOrderByAggregateInput _min?: alert_recipientsMinOrderByAggregateInput _sum?: alert_recipientsSumOrderByAggregateInput } export type alert_recipientsScalarWhereWithAggregatesInput = { AND?: alert_recipientsScalarWhereWithAggregatesInput | alert_recipientsScalarWhereWithAggregatesInput[] OR?: alert_recipientsScalarWhereWithAggregatesInput[] NOT?: alert_recipientsScalarWhereWithAggregatesInput | alert_recipientsScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"alert_recipients"> | string alert_id?: StringWithAggregatesFilter<"alert_recipients"> | string recipient_type?: StringWithAggregatesFilter<"alert_recipients"> | string recipient_id?: StringNullableWithAggregatesFilter<"alert_recipients"> | string | null recipient_name?: StringNullableWithAggregatesFilter<"alert_recipients"> | string | null recipient_contact?: JsonNullableWithAggregatesFilter<"alert_recipients"> channel?: StringWithAggregatesFilter<"alert_recipients"> | string delivery_status?: StringNullableWithAggregatesFilter<"alert_recipients"> | string | null sent_at?: DateTimeNullableWithAggregatesFilter<"alert_recipients"> | Date | string | null delivered_at?: DateTimeNullableWithAggregatesFilter<"alert_recipients"> | Date | string | null acknowledged_at?: DateTimeNullableWithAggregatesFilter<"alert_recipients"> | Date | string | null failed_at?: DateTimeNullableWithAggregatesFilter<"alert_recipients"> | Date | string | null delivery_attempts?: IntNullableWithAggregatesFilter<"alert_recipients"> | number | null last_attempt_at?: DateTimeNullableWithAggregatesFilter<"alert_recipients"> | Date | string | null failure_reason?: StringNullableWithAggregatesFilter<"alert_recipients"> | string | null delivery_metadata?: JsonNullableWithAggregatesFilter<"alert_recipients"> response_data?: JsonNullableWithAggregatesFilter<"alert_recipients"> response_time?: IntNullableWithAggregatesFilter<"alert_recipients"> | number | null created_at?: DateTimeNullableWithAggregatesFilter<"alert_recipients"> | Date | string | null updated_at?: DateTimeNullableWithAggregatesFilter<"alert_recipients"> | Date | string | null } export type alertsWhereInput = { AND?: alertsWhereInput | alertsWhereInput[] OR?: alertsWhereInput[] NOT?: alertsWhereInput | alertsWhereInput[] id?: StringFilter<"alerts"> | string alert_id?: StringFilter<"alerts"> | string title?: StringFilter<"alerts"> | string message?: StringFilter<"alerts"> | string type?: StringFilter<"alerts"> | string category?: StringNullableFilter<"alerts"> | string | null severity?: StringFilter<"alerts"> | string priority?: StringFilter<"alerts"> | string status?: StringFilter<"alerts"> | string is_emergency?: BoolNullableFilter<"alerts"> | boolean | null is_broadcast?: BoolNullableFilter<"alerts"> | boolean | null is_recurring?: BoolNullableFilter<"alerts"> | boolean | null location?: JsonNullableFilter<"alerts"> coordinates_lat?: DecimalNullableFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null coordinates_lng?: DecimalNullableFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null target_zones?: JsonNullableFilter<"alerts"> target_buildings?: JsonNullableFilter<"alerts"> target_roles?: JsonNullableFilter<"alerts"> target_teams?: JsonNullableFilter<"alerts"> target_users?: JsonNullableFilter<"alerts"> geofence_ids?: JsonNullableFilter<"alerts"> scheduled_at?: DateTimeNullableFilter<"alerts"> | Date | string | null starts_at?: DateTimeNullableFilter<"alerts"> | Date | string | null ends_at?: DateTimeNullableFilter<"alerts"> | Date | string | null expires_at?: DateTimeNullableFilter<"alerts"> | Date | string | null acknowledged_at?: DateTimeNullableFilter<"alerts"> | Date | string | null resolved_at?: DateTimeNullableFilter<"alerts"> | Date | string | null recurrence_pattern?: JsonNullableFilter<"alerts"> next_occurrence?: DateTimeNullableFilter<"alerts"> | Date | string | null content?: JsonNullableFilter<"alerts"> attachments?: JsonNullableFilter<"alerts"> media_urls?: JsonNullableFilter<"alerts"> action_buttons?: JsonNullableFilter<"alerts"> channels?: JsonNullableFilter<"alerts"> delivery_config?: JsonNullableFilter<"alerts"> source?: StringNullableFilter<"alerts"> | string | null source_id?: StringNullableFilter<"alerts"> | string | null context?: JsonNullableFilter<"alerts"> incident_id?: StringNullableFilter<"alerts"> | string | null camera_ids?: JsonNullableFilter<"alerts"> related_alerts?: JsonNullableFilter<"alerts"> total_recipients?: IntNullableFilter<"alerts"> | number | null delivered_count?: IntNullableFilter<"alerts"> | number | null acknowledged_count?: IntNullableFilter<"alerts"> | number | null failed_count?: IntNullableFilter<"alerts"> | number | null tags?: JsonNullableFilter<"alerts"> metadata?: JsonNullableFilter<"alerts"> custom_fields?: JsonNullableFilter<"alerts"> created_at?: DateTimeNullableFilter<"alerts"> | Date | string | null updated_at?: DateTimeNullableFilter<"alerts"> | Date | string | null created_by?: StringNullableFilter<"alerts"> | string | null updated_by?: StringNullableFilter<"alerts"> | string | null deleted_at?: DateTimeNullableFilter<"alerts"> | Date | string | null deleted_by?: StringNullableFilter<"alerts"> | string | null alert_recipients?: Alert_recipientsListRelationFilter incidents?: XOR | null } export type alertsOrderByWithRelationInput = { id?: SortOrder alert_id?: SortOrder title?: SortOrder message?: SortOrder type?: SortOrder category?: SortOrderInput | SortOrder severity?: SortOrder priority?: SortOrder status?: SortOrder is_emergency?: SortOrderInput | SortOrder is_broadcast?: SortOrderInput | SortOrder is_recurring?: SortOrderInput | SortOrder location?: SortOrderInput | SortOrder coordinates_lat?: SortOrderInput | SortOrder coordinates_lng?: SortOrderInput | SortOrder target_zones?: SortOrderInput | SortOrder target_buildings?: SortOrderInput | SortOrder target_roles?: SortOrderInput | SortOrder target_teams?: SortOrderInput | SortOrder target_users?: SortOrderInput | SortOrder geofence_ids?: SortOrderInput | SortOrder scheduled_at?: SortOrderInput | SortOrder starts_at?: SortOrderInput | SortOrder ends_at?: SortOrderInput | SortOrder expires_at?: SortOrderInput | SortOrder acknowledged_at?: SortOrderInput | SortOrder resolved_at?: SortOrderInput | SortOrder recurrence_pattern?: SortOrderInput | SortOrder next_occurrence?: SortOrderInput | SortOrder content?: SortOrderInput | SortOrder attachments?: SortOrderInput | SortOrder media_urls?: SortOrderInput | SortOrder action_buttons?: SortOrderInput | SortOrder channels?: SortOrderInput | SortOrder delivery_config?: SortOrderInput | SortOrder source?: SortOrderInput | SortOrder source_id?: SortOrderInput | SortOrder context?: SortOrderInput | SortOrder incident_id?: SortOrderInput | SortOrder camera_ids?: SortOrderInput | SortOrder related_alerts?: SortOrderInput | SortOrder total_recipients?: SortOrderInput | SortOrder delivered_count?: SortOrderInput | SortOrder acknowledged_count?: SortOrderInput | SortOrder failed_count?: SortOrderInput | SortOrder tags?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder custom_fields?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder deleted_at?: SortOrderInput | SortOrder deleted_by?: SortOrderInput | SortOrder alert_recipients?: alert_recipientsOrderByRelationAggregateInput incidents?: incidentsOrderByWithRelationInput _relevance?: alertsOrderByRelevanceInput } export type alertsWhereUniqueInput = Prisma.AtLeast<{ id?: string alert_id?: string AND?: alertsWhereInput | alertsWhereInput[] OR?: alertsWhereInput[] NOT?: alertsWhereInput | alertsWhereInput[] title?: StringFilter<"alerts"> | string message?: StringFilter<"alerts"> | string type?: StringFilter<"alerts"> | string category?: StringNullableFilter<"alerts"> | string | null severity?: StringFilter<"alerts"> | string priority?: StringFilter<"alerts"> | string status?: StringFilter<"alerts"> | string is_emergency?: BoolNullableFilter<"alerts"> | boolean | null is_broadcast?: BoolNullableFilter<"alerts"> | boolean | null is_recurring?: BoolNullableFilter<"alerts"> | boolean | null location?: JsonNullableFilter<"alerts"> coordinates_lat?: DecimalNullableFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null coordinates_lng?: DecimalNullableFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null target_zones?: JsonNullableFilter<"alerts"> target_buildings?: JsonNullableFilter<"alerts"> target_roles?: JsonNullableFilter<"alerts"> target_teams?: JsonNullableFilter<"alerts"> target_users?: JsonNullableFilter<"alerts"> geofence_ids?: JsonNullableFilter<"alerts"> scheduled_at?: DateTimeNullableFilter<"alerts"> | Date | string | null starts_at?: DateTimeNullableFilter<"alerts"> | Date | string | null ends_at?: DateTimeNullableFilter<"alerts"> | Date | string | null expires_at?: DateTimeNullableFilter<"alerts"> | Date | string | null acknowledged_at?: DateTimeNullableFilter<"alerts"> | Date | string | null resolved_at?: DateTimeNullableFilter<"alerts"> | Date | string | null recurrence_pattern?: JsonNullableFilter<"alerts"> next_occurrence?: DateTimeNullableFilter<"alerts"> | Date | string | null content?: JsonNullableFilter<"alerts"> attachments?: JsonNullableFilter<"alerts"> media_urls?: JsonNullableFilter<"alerts"> action_buttons?: JsonNullableFilter<"alerts"> channels?: JsonNullableFilter<"alerts"> delivery_config?: JsonNullableFilter<"alerts"> source?: StringNullableFilter<"alerts"> | string | null source_id?: StringNullableFilter<"alerts"> | string | null context?: JsonNullableFilter<"alerts"> incident_id?: StringNullableFilter<"alerts"> | string | null camera_ids?: JsonNullableFilter<"alerts"> related_alerts?: JsonNullableFilter<"alerts"> total_recipients?: IntNullableFilter<"alerts"> | number | null delivered_count?: IntNullableFilter<"alerts"> | number | null acknowledged_count?: IntNullableFilter<"alerts"> | number | null failed_count?: IntNullableFilter<"alerts"> | number | null tags?: JsonNullableFilter<"alerts"> metadata?: JsonNullableFilter<"alerts"> custom_fields?: JsonNullableFilter<"alerts"> created_at?: DateTimeNullableFilter<"alerts"> | Date | string | null updated_at?: DateTimeNullableFilter<"alerts"> | Date | string | null created_by?: StringNullableFilter<"alerts"> | string | null updated_by?: StringNullableFilter<"alerts"> | string | null deleted_at?: DateTimeNullableFilter<"alerts"> | Date | string | null deleted_by?: StringNullableFilter<"alerts"> | string | null alert_recipients?: Alert_recipientsListRelationFilter incidents?: XOR | null }, "id" | "alert_id"> export type alertsOrderByWithAggregationInput = { id?: SortOrder alert_id?: SortOrder title?: SortOrder message?: SortOrder type?: SortOrder category?: SortOrderInput | SortOrder severity?: SortOrder priority?: SortOrder status?: SortOrder is_emergency?: SortOrderInput | SortOrder is_broadcast?: SortOrderInput | SortOrder is_recurring?: SortOrderInput | SortOrder location?: SortOrderInput | SortOrder coordinates_lat?: SortOrderInput | SortOrder coordinates_lng?: SortOrderInput | SortOrder target_zones?: SortOrderInput | SortOrder target_buildings?: SortOrderInput | SortOrder target_roles?: SortOrderInput | SortOrder target_teams?: SortOrderInput | SortOrder target_users?: SortOrderInput | SortOrder geofence_ids?: SortOrderInput | SortOrder scheduled_at?: SortOrderInput | SortOrder starts_at?: SortOrderInput | SortOrder ends_at?: SortOrderInput | SortOrder expires_at?: SortOrderInput | SortOrder acknowledged_at?: SortOrderInput | SortOrder resolved_at?: SortOrderInput | SortOrder recurrence_pattern?: SortOrderInput | SortOrder next_occurrence?: SortOrderInput | SortOrder content?: SortOrderInput | SortOrder attachments?: SortOrderInput | SortOrder media_urls?: SortOrderInput | SortOrder action_buttons?: SortOrderInput | SortOrder channels?: SortOrderInput | SortOrder delivery_config?: SortOrderInput | SortOrder source?: SortOrderInput | SortOrder source_id?: SortOrderInput | SortOrder context?: SortOrderInput | SortOrder incident_id?: SortOrderInput | SortOrder camera_ids?: SortOrderInput | SortOrder related_alerts?: SortOrderInput | SortOrder total_recipients?: SortOrderInput | SortOrder delivered_count?: SortOrderInput | SortOrder acknowledged_count?: SortOrderInput | SortOrder failed_count?: SortOrderInput | SortOrder tags?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder custom_fields?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder deleted_at?: SortOrderInput | SortOrder deleted_by?: SortOrderInput | SortOrder _count?: alertsCountOrderByAggregateInput _avg?: alertsAvgOrderByAggregateInput _max?: alertsMaxOrderByAggregateInput _min?: alertsMinOrderByAggregateInput _sum?: alertsSumOrderByAggregateInput } export type alertsScalarWhereWithAggregatesInput = { AND?: alertsScalarWhereWithAggregatesInput | alertsScalarWhereWithAggregatesInput[] OR?: alertsScalarWhereWithAggregatesInput[] NOT?: alertsScalarWhereWithAggregatesInput | alertsScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"alerts"> | string alert_id?: StringWithAggregatesFilter<"alerts"> | string title?: StringWithAggregatesFilter<"alerts"> | string message?: StringWithAggregatesFilter<"alerts"> | string type?: StringWithAggregatesFilter<"alerts"> | string category?: StringNullableWithAggregatesFilter<"alerts"> | string | null severity?: StringWithAggregatesFilter<"alerts"> | string priority?: StringWithAggregatesFilter<"alerts"> | string status?: StringWithAggregatesFilter<"alerts"> | string is_emergency?: BoolNullableWithAggregatesFilter<"alerts"> | boolean | null is_broadcast?: BoolNullableWithAggregatesFilter<"alerts"> | boolean | null is_recurring?: BoolNullableWithAggregatesFilter<"alerts"> | boolean | null location?: JsonNullableWithAggregatesFilter<"alerts"> coordinates_lat?: DecimalNullableWithAggregatesFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null coordinates_lng?: DecimalNullableWithAggregatesFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null target_zones?: JsonNullableWithAggregatesFilter<"alerts"> target_buildings?: JsonNullableWithAggregatesFilter<"alerts"> target_roles?: JsonNullableWithAggregatesFilter<"alerts"> target_teams?: JsonNullableWithAggregatesFilter<"alerts"> target_users?: JsonNullableWithAggregatesFilter<"alerts"> geofence_ids?: JsonNullableWithAggregatesFilter<"alerts"> scheduled_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null starts_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null ends_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null expires_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null acknowledged_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null resolved_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null recurrence_pattern?: JsonNullableWithAggregatesFilter<"alerts"> next_occurrence?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null content?: JsonNullableWithAggregatesFilter<"alerts"> attachments?: JsonNullableWithAggregatesFilter<"alerts"> media_urls?: JsonNullableWithAggregatesFilter<"alerts"> action_buttons?: JsonNullableWithAggregatesFilter<"alerts"> channels?: JsonNullableWithAggregatesFilter<"alerts"> delivery_config?: JsonNullableWithAggregatesFilter<"alerts"> source?: StringNullableWithAggregatesFilter<"alerts"> | string | null source_id?: StringNullableWithAggregatesFilter<"alerts"> | string | null context?: JsonNullableWithAggregatesFilter<"alerts"> incident_id?: StringNullableWithAggregatesFilter<"alerts"> | string | null camera_ids?: JsonNullableWithAggregatesFilter<"alerts"> related_alerts?: JsonNullableWithAggregatesFilter<"alerts"> total_recipients?: IntNullableWithAggregatesFilter<"alerts"> | number | null delivered_count?: IntNullableWithAggregatesFilter<"alerts"> | number | null acknowledged_count?: IntNullableWithAggregatesFilter<"alerts"> | number | null failed_count?: IntNullableWithAggregatesFilter<"alerts"> | number | null tags?: JsonNullableWithAggregatesFilter<"alerts"> metadata?: JsonNullableWithAggregatesFilter<"alerts"> custom_fields?: JsonNullableWithAggregatesFilter<"alerts"> created_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null updated_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null created_by?: StringNullableWithAggregatesFilter<"alerts"> | string | null updated_by?: StringNullableWithAggregatesFilter<"alerts"> | string | null deleted_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null deleted_by?: StringNullableWithAggregatesFilter<"alerts"> | string | null } export type basemap_configsWhereInput = { AND?: basemap_configsWhereInput | basemap_configsWhereInput[] OR?: basemap_configsWhereInput[] NOT?: basemap_configsWhereInput | basemap_configsWhereInput[] id?: StringFilter<"basemap_configs"> | string name?: StringFilter<"basemap_configs"> | string description?: StringNullableFilter<"basemap_configs"> | string | null svg_data?: StringFilter<"basemap_configs"> | string calibration?: JsonFilter<"basemap_configs"> dimensions?: JsonFilter<"basemap_configs"> is_active?: BoolNullableFilter<"basemap_configs"> | boolean | null is_default?: BoolNullableFilter<"basemap_configs"> | boolean | null version?: IntNullableFilter<"basemap_configs"> | number | null settings?: JsonNullableFilter<"basemap_configs"> metadata?: JsonNullableFilter<"basemap_configs"> file_size?: IntNullableFilter<"basemap_configs"> | number | null checksum?: StringNullableFilter<"basemap_configs"> | string | null created_at?: DateTimeNullableFilter<"basemap_configs"> | Date | string | null updated_at?: DateTimeNullableFilter<"basemap_configs"> | Date | string | null created_by?: StringNullableFilter<"basemap_configs"> | string | null updated_by?: StringNullableFilter<"basemap_configs"> | string | null } export type basemap_configsOrderByWithRelationInput = { id?: SortOrder name?: SortOrder description?: SortOrderInput | SortOrder svg_data?: SortOrder calibration?: SortOrder dimensions?: SortOrder is_active?: SortOrderInput | SortOrder is_default?: SortOrderInput | SortOrder version?: SortOrderInput | SortOrder settings?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder file_size?: SortOrderInput | SortOrder checksum?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder _relevance?: basemap_configsOrderByRelevanceInput } export type basemap_configsWhereUniqueInput = Prisma.AtLeast<{ id?: string name?: string name_version?: basemap_configsNameVersionCompoundUniqueInput AND?: basemap_configsWhereInput | basemap_configsWhereInput[] OR?: basemap_configsWhereInput[] NOT?: basemap_configsWhereInput | basemap_configsWhereInput[] description?: StringNullableFilter<"basemap_configs"> | string | null svg_data?: StringFilter<"basemap_configs"> | string calibration?: JsonFilter<"basemap_configs"> dimensions?: JsonFilter<"basemap_configs"> is_active?: BoolNullableFilter<"basemap_configs"> | boolean | null is_default?: BoolNullableFilter<"basemap_configs"> | boolean | null version?: IntNullableFilter<"basemap_configs"> | number | null settings?: JsonNullableFilter<"basemap_configs"> metadata?: JsonNullableFilter<"basemap_configs"> file_size?: IntNullableFilter<"basemap_configs"> | number | null checksum?: StringNullableFilter<"basemap_configs"> | string | null created_at?: DateTimeNullableFilter<"basemap_configs"> | Date | string | null updated_at?: DateTimeNullableFilter<"basemap_configs"> | Date | string | null created_by?: StringNullableFilter<"basemap_configs"> | string | null updated_by?: StringNullableFilter<"basemap_configs"> | string | null }, "id" | "name" | "name_version"> export type basemap_configsOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder description?: SortOrderInput | SortOrder svg_data?: SortOrder calibration?: SortOrder dimensions?: SortOrder is_active?: SortOrderInput | SortOrder is_default?: SortOrderInput | SortOrder version?: SortOrderInput | SortOrder settings?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder file_size?: SortOrderInput | SortOrder checksum?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder _count?: basemap_configsCountOrderByAggregateInput _avg?: basemap_configsAvgOrderByAggregateInput _max?: basemap_configsMaxOrderByAggregateInput _min?: basemap_configsMinOrderByAggregateInput _sum?: basemap_configsSumOrderByAggregateInput } export type basemap_configsScalarWhereWithAggregatesInput = { AND?: basemap_configsScalarWhereWithAggregatesInput | basemap_configsScalarWhereWithAggregatesInput[] OR?: basemap_configsScalarWhereWithAggregatesInput[] NOT?: basemap_configsScalarWhereWithAggregatesInput | basemap_configsScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"basemap_configs"> | string name?: StringWithAggregatesFilter<"basemap_configs"> | string description?: StringNullableWithAggregatesFilter<"basemap_configs"> | string | null svg_data?: StringWithAggregatesFilter<"basemap_configs"> | string calibration?: JsonWithAggregatesFilter<"basemap_configs"> dimensions?: JsonWithAggregatesFilter<"basemap_configs"> is_active?: BoolNullableWithAggregatesFilter<"basemap_configs"> | boolean | null is_default?: BoolNullableWithAggregatesFilter<"basemap_configs"> | boolean | null version?: IntNullableWithAggregatesFilter<"basemap_configs"> | number | null settings?: JsonNullableWithAggregatesFilter<"basemap_configs"> metadata?: JsonNullableWithAggregatesFilter<"basemap_configs"> file_size?: IntNullableWithAggregatesFilter<"basemap_configs"> | number | null checksum?: StringNullableWithAggregatesFilter<"basemap_configs"> | string | null created_at?: DateTimeNullableWithAggregatesFilter<"basemap_configs"> | Date | string | null updated_at?: DateTimeNullableWithAggregatesFilter<"basemap_configs"> | Date | string | null created_by?: StringNullableWithAggregatesFilter<"basemap_configs"> | string | null updated_by?: StringNullableWithAggregatesFilter<"basemap_configs"> | string | null } export type camera_health_logWhereInput = { AND?: camera_health_logWhereInput | camera_health_logWhereInput[] OR?: camera_health_logWhereInput[] NOT?: camera_health_logWhereInput | camera_health_logWhereInput[] id?: IntFilter<"camera_health_log"> | number camera_id?: StringFilter<"camera_health_log"> | string status?: StringFilter<"camera_health_log"> | string response_time?: IntFilter<"camera_health_log"> | number health_score?: IntFilter<"camera_health_log"> | number error_message?: StringNullableFilter<"camera_health_log"> | string | null stream_accessible?: BoolNullableFilter<"camera_health_log"> | boolean | null timestamp?: DateTimeNullableFilter<"camera_health_log"> | Date | string | null cameras?: XOR } export type camera_health_logOrderByWithRelationInput = { id?: SortOrder camera_id?: SortOrder status?: SortOrder response_time?: SortOrder health_score?: SortOrder error_message?: SortOrderInput | SortOrder stream_accessible?: SortOrderInput | SortOrder timestamp?: SortOrderInput | SortOrder cameras?: camerasOrderByWithRelationInput _relevance?: camera_health_logOrderByRelevanceInput } export type camera_health_logWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: camera_health_logWhereInput | camera_health_logWhereInput[] OR?: camera_health_logWhereInput[] NOT?: camera_health_logWhereInput | camera_health_logWhereInput[] camera_id?: StringFilter<"camera_health_log"> | string status?: StringFilter<"camera_health_log"> | string response_time?: IntFilter<"camera_health_log"> | number health_score?: IntFilter<"camera_health_log"> | number error_message?: StringNullableFilter<"camera_health_log"> | string | null stream_accessible?: BoolNullableFilter<"camera_health_log"> | boolean | null timestamp?: DateTimeNullableFilter<"camera_health_log"> | Date | string | null cameras?: XOR }, "id"> export type camera_health_logOrderByWithAggregationInput = { id?: SortOrder camera_id?: SortOrder status?: SortOrder response_time?: SortOrder health_score?: SortOrder error_message?: SortOrderInput | SortOrder stream_accessible?: SortOrderInput | SortOrder timestamp?: SortOrderInput | SortOrder _count?: camera_health_logCountOrderByAggregateInput _avg?: camera_health_logAvgOrderByAggregateInput _max?: camera_health_logMaxOrderByAggregateInput _min?: camera_health_logMinOrderByAggregateInput _sum?: camera_health_logSumOrderByAggregateInput } export type camera_health_logScalarWhereWithAggregatesInput = { AND?: camera_health_logScalarWhereWithAggregatesInput | camera_health_logScalarWhereWithAggregatesInput[] OR?: camera_health_logScalarWhereWithAggregatesInput[] NOT?: camera_health_logScalarWhereWithAggregatesInput | camera_health_logScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"camera_health_log"> | number camera_id?: StringWithAggregatesFilter<"camera_health_log"> | string status?: StringWithAggregatesFilter<"camera_health_log"> | string response_time?: IntWithAggregatesFilter<"camera_health_log"> | number health_score?: IntWithAggregatesFilter<"camera_health_log"> | number error_message?: StringNullableWithAggregatesFilter<"camera_health_log"> | string | null stream_accessible?: BoolNullableWithAggregatesFilter<"camera_health_log"> | boolean | null timestamp?: DateTimeNullableWithAggregatesFilter<"camera_health_log"> | Date | string | null } export type camerasWhereInput = { AND?: camerasWhereInput | camerasWhereInput[] OR?: camerasWhereInput[] NOT?: camerasWhereInput | camerasWhereInput[] id?: StringFilter<"cameras"> | string label?: StringFilter<"cameras"> | string area?: StringFilter<"cameras"> | string lat?: DecimalFilter<"cameras"> | Decimal | DecimalJsLike | number | string lng?: DecimalFilter<"cameras"> | Decimal | DecimalJsLike | number | string stream_url?: StringFilter<"cameras"> | string status?: Enumcameras_statusNullableFilter<"cameras"> | $Enums.cameras_status | null last_heartbeat?: DateTimeNullableFilter<"cameras"> | Date | string | null response_time?: IntNullableFilter<"cameras"> | number | null health_score?: IntNullableFilter<"cameras"> | number | null error_message?: StringNullableFilter<"cameras"> | string | null created_at?: DateTimeNullableFilter<"cameras"> | Date | string | null updated_at?: DateTimeNullableFilter<"cameras"> | Date | string | null camera_health_log?: Camera_health_logListRelationFilter } export type camerasOrderByWithRelationInput = { id?: SortOrder label?: SortOrder area?: SortOrder lat?: SortOrder lng?: SortOrder stream_url?: SortOrder status?: SortOrderInput | SortOrder last_heartbeat?: SortOrderInput | SortOrder response_time?: SortOrderInput | SortOrder health_score?: SortOrderInput | SortOrder error_message?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder camera_health_log?: camera_health_logOrderByRelationAggregateInput _relevance?: camerasOrderByRelevanceInput } export type camerasWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: camerasWhereInput | camerasWhereInput[] OR?: camerasWhereInput[] NOT?: camerasWhereInput | camerasWhereInput[] label?: StringFilter<"cameras"> | string area?: StringFilter<"cameras"> | string lat?: DecimalFilter<"cameras"> | Decimal | DecimalJsLike | number | string lng?: DecimalFilter<"cameras"> | Decimal | DecimalJsLike | number | string stream_url?: StringFilter<"cameras"> | string status?: Enumcameras_statusNullableFilter<"cameras"> | $Enums.cameras_status | null last_heartbeat?: DateTimeNullableFilter<"cameras"> | Date | string | null response_time?: IntNullableFilter<"cameras"> | number | null health_score?: IntNullableFilter<"cameras"> | number | null error_message?: StringNullableFilter<"cameras"> | string | null created_at?: DateTimeNullableFilter<"cameras"> | Date | string | null updated_at?: DateTimeNullableFilter<"cameras"> | Date | string | null camera_health_log?: Camera_health_logListRelationFilter }, "id"> export type camerasOrderByWithAggregationInput = { id?: SortOrder label?: SortOrder area?: SortOrder lat?: SortOrder lng?: SortOrder stream_url?: SortOrder status?: SortOrderInput | SortOrder last_heartbeat?: SortOrderInput | SortOrder response_time?: SortOrderInput | SortOrder health_score?: SortOrderInput | SortOrder error_message?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder _count?: camerasCountOrderByAggregateInput _avg?: camerasAvgOrderByAggregateInput _max?: camerasMaxOrderByAggregateInput _min?: camerasMinOrderByAggregateInput _sum?: camerasSumOrderByAggregateInput } export type camerasScalarWhereWithAggregatesInput = { AND?: camerasScalarWhereWithAggregatesInput | camerasScalarWhereWithAggregatesInput[] OR?: camerasScalarWhereWithAggregatesInput[] NOT?: camerasScalarWhereWithAggregatesInput | camerasScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"cameras"> | string label?: StringWithAggregatesFilter<"cameras"> | string area?: StringWithAggregatesFilter<"cameras"> | string lat?: DecimalWithAggregatesFilter<"cameras"> | Decimal | DecimalJsLike | number | string lng?: DecimalWithAggregatesFilter<"cameras"> | Decimal | DecimalJsLike | number | string stream_url?: StringWithAggregatesFilter<"cameras"> | string status?: Enumcameras_statusNullableWithAggregatesFilter<"cameras"> | $Enums.cameras_status | null last_heartbeat?: DateTimeNullableWithAggregatesFilter<"cameras"> | Date | string | null response_time?: IntNullableWithAggregatesFilter<"cameras"> | number | null health_score?: IntNullableWithAggregatesFilter<"cameras"> | number | null error_message?: StringNullableWithAggregatesFilter<"cameras"> | string | null created_at?: DateTimeNullableWithAggregatesFilter<"cameras"> | Date | string | null updated_at?: DateTimeNullableWithAggregatesFilter<"cameras"> | Date | string | null } export type feature_flagsWhereInput = { AND?: feature_flagsWhereInput | feature_flagsWhereInput[] OR?: feature_flagsWhereInput[] NOT?: feature_flagsWhereInput | feature_flagsWhereInput[] id?: StringFilter<"feature_flags"> | string key?: StringFilter<"feature_flags"> | string name?: StringFilter<"feature_flags"> | string description?: StringNullableFilter<"feature_flags"> | string | null is_enabled?: BoolNullableFilter<"feature_flags"> | boolean | null type?: StringFilter<"feature_flags"> | string value?: JsonNullableFilter<"feature_flags"> default_value?: JsonNullableFilter<"feature_flags"> environment?: StringNullableFilter<"feature_flags"> | string | null category?: StringNullableFilter<"feature_flags"> | string | null tags?: JsonNullableFilter<"feature_flags"> conditions?: JsonNullableFilter<"feature_flags"> rollout_percentage?: DecimalNullableFilter<"feature_flags"> | Decimal | DecimalJsLike | number | string | null user_segments?: JsonNullableFilter<"feature_flags"> is_archived?: BoolNullableFilter<"feature_flags"> | boolean | null is_permanent?: BoolNullableFilter<"feature_flags"> | boolean | null expires_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null last_evaluated_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null evaluation_count?: BigIntNullableFilter<"feature_flags"> | bigint | number | null metadata?: JsonNullableFilter<"feature_flags"> created_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null updated_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null created_by?: StringNullableFilter<"feature_flags"> | string | null updated_by?: StringNullableFilter<"feature_flags"> | string | null enabled_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null disabled_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null } export type feature_flagsOrderByWithRelationInput = { id?: SortOrder key?: SortOrder name?: SortOrder description?: SortOrderInput | SortOrder is_enabled?: SortOrderInput | SortOrder type?: SortOrder value?: SortOrderInput | SortOrder default_value?: SortOrderInput | SortOrder environment?: SortOrderInput | SortOrder category?: SortOrderInput | SortOrder tags?: SortOrderInput | SortOrder conditions?: SortOrderInput | SortOrder rollout_percentage?: SortOrderInput | SortOrder user_segments?: SortOrderInput | SortOrder is_archived?: SortOrderInput | SortOrder is_permanent?: SortOrderInput | SortOrder expires_at?: SortOrderInput | SortOrder last_evaluated_at?: SortOrderInput | SortOrder evaluation_count?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder enabled_at?: SortOrderInput | SortOrder disabled_at?: SortOrderInput | SortOrder _relevance?: feature_flagsOrderByRelevanceInput } export type feature_flagsWhereUniqueInput = Prisma.AtLeast<{ id?: string key?: string AND?: feature_flagsWhereInput | feature_flagsWhereInput[] OR?: feature_flagsWhereInput[] NOT?: feature_flagsWhereInput | feature_flagsWhereInput[] name?: StringFilter<"feature_flags"> | string description?: StringNullableFilter<"feature_flags"> | string | null is_enabled?: BoolNullableFilter<"feature_flags"> | boolean | null type?: StringFilter<"feature_flags"> | string value?: JsonNullableFilter<"feature_flags"> default_value?: JsonNullableFilter<"feature_flags"> environment?: StringNullableFilter<"feature_flags"> | string | null category?: StringNullableFilter<"feature_flags"> | string | null tags?: JsonNullableFilter<"feature_flags"> conditions?: JsonNullableFilter<"feature_flags"> rollout_percentage?: DecimalNullableFilter<"feature_flags"> | Decimal | DecimalJsLike | number | string | null user_segments?: JsonNullableFilter<"feature_flags"> is_archived?: BoolNullableFilter<"feature_flags"> | boolean | null is_permanent?: BoolNullableFilter<"feature_flags"> | boolean | null expires_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null last_evaluated_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null evaluation_count?: BigIntNullableFilter<"feature_flags"> | bigint | number | null metadata?: JsonNullableFilter<"feature_flags"> created_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null updated_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null created_by?: StringNullableFilter<"feature_flags"> | string | null updated_by?: StringNullableFilter<"feature_flags"> | string | null enabled_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null disabled_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null }, "id" | "key"> export type feature_flagsOrderByWithAggregationInput = { id?: SortOrder key?: SortOrder name?: SortOrder description?: SortOrderInput | SortOrder is_enabled?: SortOrderInput | SortOrder type?: SortOrder value?: SortOrderInput | SortOrder default_value?: SortOrderInput | SortOrder environment?: SortOrderInput | SortOrder category?: SortOrderInput | SortOrder tags?: SortOrderInput | SortOrder conditions?: SortOrderInput | SortOrder rollout_percentage?: SortOrderInput | SortOrder user_segments?: SortOrderInput | SortOrder is_archived?: SortOrderInput | SortOrder is_permanent?: SortOrderInput | SortOrder expires_at?: SortOrderInput | SortOrder last_evaluated_at?: SortOrderInput | SortOrder evaluation_count?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder enabled_at?: SortOrderInput | SortOrder disabled_at?: SortOrderInput | SortOrder _count?: feature_flagsCountOrderByAggregateInput _avg?: feature_flagsAvgOrderByAggregateInput _max?: feature_flagsMaxOrderByAggregateInput _min?: feature_flagsMinOrderByAggregateInput _sum?: feature_flagsSumOrderByAggregateInput } export type feature_flagsScalarWhereWithAggregatesInput = { AND?: feature_flagsScalarWhereWithAggregatesInput | feature_flagsScalarWhereWithAggregatesInput[] OR?: feature_flagsScalarWhereWithAggregatesInput[] NOT?: feature_flagsScalarWhereWithAggregatesInput | feature_flagsScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"feature_flags"> | string key?: StringWithAggregatesFilter<"feature_flags"> | string name?: StringWithAggregatesFilter<"feature_flags"> | string description?: StringNullableWithAggregatesFilter<"feature_flags"> | string | null is_enabled?: BoolNullableWithAggregatesFilter<"feature_flags"> | boolean | null type?: StringWithAggregatesFilter<"feature_flags"> | string value?: JsonNullableWithAggregatesFilter<"feature_flags"> default_value?: JsonNullableWithAggregatesFilter<"feature_flags"> environment?: StringNullableWithAggregatesFilter<"feature_flags"> | string | null category?: StringNullableWithAggregatesFilter<"feature_flags"> | string | null tags?: JsonNullableWithAggregatesFilter<"feature_flags"> conditions?: JsonNullableWithAggregatesFilter<"feature_flags"> rollout_percentage?: DecimalNullableWithAggregatesFilter<"feature_flags"> | Decimal | DecimalJsLike | number | string | null user_segments?: JsonNullableWithAggregatesFilter<"feature_flags"> is_archived?: BoolNullableWithAggregatesFilter<"feature_flags"> | boolean | null is_permanent?: BoolNullableWithAggregatesFilter<"feature_flags"> | boolean | null expires_at?: DateTimeNullableWithAggregatesFilter<"feature_flags"> | Date | string | null last_evaluated_at?: DateTimeNullableWithAggregatesFilter<"feature_flags"> | Date | string | null evaluation_count?: BigIntNullableWithAggregatesFilter<"feature_flags"> | bigint | number | null metadata?: JsonNullableWithAggregatesFilter<"feature_flags"> created_at?: DateTimeNullableWithAggregatesFilter<"feature_flags"> | Date | string | null updated_at?: DateTimeNullableWithAggregatesFilter<"feature_flags"> | Date | string | null created_by?: StringNullableWithAggregatesFilter<"feature_flags"> | string | null updated_by?: StringNullableWithAggregatesFilter<"feature_flags"> | string | null enabled_at?: DateTimeNullableWithAggregatesFilter<"feature_flags"> | Date | string | null disabled_at?: DateTimeNullableWithAggregatesFilter<"feature_flags"> | Date | string | null } export type geofence_breachesWhereInput = { AND?: geofence_breachesWhereInput | geofence_breachesWhereInput[] OR?: geofence_breachesWhereInput[] NOT?: geofence_breachesWhereInput | geofence_breachesWhereInput[] id?: StringFilter<"geofence_breaches"> | string geofence_id?: StringFilter<"geofence_breaches"> | string team_member_id?: StringNullableFilter<"geofence_breaches"> | string | null breach_type?: StringFilter<"geofence_breaches"> | string location?: JsonFilter<"geofence_breaches"> severity?: StringNullableFilter<"geofence_breaches"> | string | null is_resolved?: BoolNullableFilter<"geofence_breaches"> | boolean | null resolved_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null resolved_by?: StringNullableFilter<"geofence_breaches"> | string | null notes?: StringNullableFilter<"geofence_breaches"> | string | null metadata?: JsonNullableFilter<"geofence_breaches"> created_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null updated_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null geofences?: XOR } export type geofence_breachesOrderByWithRelationInput = { id?: SortOrder geofence_id?: SortOrder team_member_id?: SortOrderInput | SortOrder breach_type?: SortOrder location?: SortOrder severity?: SortOrderInput | SortOrder is_resolved?: SortOrderInput | SortOrder resolved_at?: SortOrderInput | SortOrder resolved_by?: SortOrderInput | SortOrder notes?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder geofences?: geofencesOrderByWithRelationInput _relevance?: geofence_breachesOrderByRelevanceInput } export type geofence_breachesWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: geofence_breachesWhereInput | geofence_breachesWhereInput[] OR?: geofence_breachesWhereInput[] NOT?: geofence_breachesWhereInput | geofence_breachesWhereInput[] geofence_id?: StringFilter<"geofence_breaches"> | string team_member_id?: StringNullableFilter<"geofence_breaches"> | string | null breach_type?: StringFilter<"geofence_breaches"> | string location?: JsonFilter<"geofence_breaches"> severity?: StringNullableFilter<"geofence_breaches"> | string | null is_resolved?: BoolNullableFilter<"geofence_breaches"> | boolean | null resolved_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null resolved_by?: StringNullableFilter<"geofence_breaches"> | string | null notes?: StringNullableFilter<"geofence_breaches"> | string | null metadata?: JsonNullableFilter<"geofence_breaches"> created_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null updated_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null geofences?: XOR }, "id"> export type geofence_breachesOrderByWithAggregationInput = { id?: SortOrder geofence_id?: SortOrder team_member_id?: SortOrderInput | SortOrder breach_type?: SortOrder location?: SortOrder severity?: SortOrderInput | SortOrder is_resolved?: SortOrderInput | SortOrder resolved_at?: SortOrderInput | SortOrder resolved_by?: SortOrderInput | SortOrder notes?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder _count?: geofence_breachesCountOrderByAggregateInput _max?: geofence_breachesMaxOrderByAggregateInput _min?: geofence_breachesMinOrderByAggregateInput } export type geofence_breachesScalarWhereWithAggregatesInput = { AND?: geofence_breachesScalarWhereWithAggregatesInput | geofence_breachesScalarWhereWithAggregatesInput[] OR?: geofence_breachesScalarWhereWithAggregatesInput[] NOT?: geofence_breachesScalarWhereWithAggregatesInput | geofence_breachesScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"geofence_breaches"> | string geofence_id?: StringWithAggregatesFilter<"geofence_breaches"> | string team_member_id?: StringNullableWithAggregatesFilter<"geofence_breaches"> | string | null breach_type?: StringWithAggregatesFilter<"geofence_breaches"> | string location?: JsonWithAggregatesFilter<"geofence_breaches"> severity?: StringNullableWithAggregatesFilter<"geofence_breaches"> | string | null is_resolved?: BoolNullableWithAggregatesFilter<"geofence_breaches"> | boolean | null resolved_at?: DateTimeNullableWithAggregatesFilter<"geofence_breaches"> | Date | string | null resolved_by?: StringNullableWithAggregatesFilter<"geofence_breaches"> | string | null notes?: StringNullableWithAggregatesFilter<"geofence_breaches"> | string | null metadata?: JsonNullableWithAggregatesFilter<"geofence_breaches"> created_at?: DateTimeNullableWithAggregatesFilter<"geofence_breaches"> | Date | string | null updated_at?: DateTimeNullableWithAggregatesFilter<"geofence_breaches"> | Date | string | null } export type geofencesWhereInput = { AND?: geofencesWhereInput | geofencesWhereInput[] OR?: geofencesWhereInput[] NOT?: geofencesWhereInput | geofencesWhereInput[] id?: StringFilter<"geofences"> | string name?: StringFilter<"geofences"> | string type?: StringFilter<"geofences"> | string coordinates?: JsonFilter<"geofences"> description?: StringNullableFilter<"geofences"> | string | null is_active?: BoolNullableFilter<"geofences"> | boolean | null priority?: StringNullableFilter<"geofences"> | string | null notification_settings?: JsonNullableFilter<"geofences"> metadata?: JsonNullableFilter<"geofences"> created_at?: DateTimeNullableFilter<"geofences"> | Date | string | null updated_at?: DateTimeNullableFilter<"geofences"> | Date | string | null created_by?: StringNullableFilter<"geofences"> | string | null updated_by?: StringNullableFilter<"geofences"> | string | null geofence_breaches?: Geofence_breachesListRelationFilter incidents?: IncidentsListRelationFilter map_pins?: Map_pinsListRelationFilter } export type geofencesOrderByWithRelationInput = { id?: SortOrder name?: SortOrder type?: SortOrder coordinates?: SortOrder description?: SortOrderInput | SortOrder is_active?: SortOrderInput | SortOrder priority?: SortOrderInput | SortOrder notification_settings?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder geofence_breaches?: geofence_breachesOrderByRelationAggregateInput incidents?: incidentsOrderByRelationAggregateInput map_pins?: map_pinsOrderByRelationAggregateInput _relevance?: geofencesOrderByRelevanceInput } export type geofencesWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: geofencesWhereInput | geofencesWhereInput[] OR?: geofencesWhereInput[] NOT?: geofencesWhereInput | geofencesWhereInput[] name?: StringFilter<"geofences"> | string type?: StringFilter<"geofences"> | string coordinates?: JsonFilter<"geofences"> description?: StringNullableFilter<"geofences"> | string | null is_active?: BoolNullableFilter<"geofences"> | boolean | null priority?: StringNullableFilter<"geofences"> | string | null notification_settings?: JsonNullableFilter<"geofences"> metadata?: JsonNullableFilter<"geofences"> created_at?: DateTimeNullableFilter<"geofences"> | Date | string | null updated_at?: DateTimeNullableFilter<"geofences"> | Date | string | null created_by?: StringNullableFilter<"geofences"> | string | null updated_by?: StringNullableFilter<"geofences"> | string | null geofence_breaches?: Geofence_breachesListRelationFilter incidents?: IncidentsListRelationFilter map_pins?: Map_pinsListRelationFilter }, "id"> export type geofencesOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder type?: SortOrder coordinates?: SortOrder description?: SortOrderInput | SortOrder is_active?: SortOrderInput | SortOrder priority?: SortOrderInput | SortOrder notification_settings?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder _count?: geofencesCountOrderByAggregateInput _max?: geofencesMaxOrderByAggregateInput _min?: geofencesMinOrderByAggregateInput } export type geofencesScalarWhereWithAggregatesInput = { AND?: geofencesScalarWhereWithAggregatesInput | geofencesScalarWhereWithAggregatesInput[] OR?: geofencesScalarWhereWithAggregatesInput[] NOT?: geofencesScalarWhereWithAggregatesInput | geofencesScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"geofences"> | string name?: StringWithAggregatesFilter<"geofences"> | string type?: StringWithAggregatesFilter<"geofences"> | string coordinates?: JsonWithAggregatesFilter<"geofences"> description?: StringNullableWithAggregatesFilter<"geofences"> | string | null is_active?: BoolNullableWithAggregatesFilter<"geofences"> | boolean | null priority?: StringNullableWithAggregatesFilter<"geofences"> | string | null notification_settings?: JsonNullableWithAggregatesFilter<"geofences"> metadata?: JsonNullableWithAggregatesFilter<"geofences"> created_at?: DateTimeNullableWithAggregatesFilter<"geofences"> | Date | string | null updated_at?: DateTimeNullableWithAggregatesFilter<"geofences"> | Date | string | null created_by?: StringNullableWithAggregatesFilter<"geofences"> | string | null updated_by?: StringNullableWithAggregatesFilter<"geofences"> | string | null } export type housesWhereInput = { AND?: housesWhereInput | housesWhereInput[] OR?: housesWhereInput[] NOT?: housesWhereInput | housesWhereInput[] id?: StringFilter<"houses"> | string house_number?: StringFilter<"houses"> | string block?: StringFilter<"houses"> | string street?: StringFilter<"houses"> | string owner_name?: StringFilter<"houses"> | string owner_phone?: StringFilter<"houses"> | string status?: Enumhouses_statusNullableFilter<"houses"> | $Enums.houses_status | null perumahan_id?: StringNullableFilter<"houses"> | string | null created_at?: DateTimeNullableFilter<"houses"> | Date | string | null updated_at?: DateTimeNullableFilter<"houses"> | Date | string | null } export type housesOrderByWithRelationInput = { id?: SortOrder house_number?: SortOrder block?: SortOrder street?: SortOrder owner_name?: SortOrder owner_phone?: SortOrder status?: SortOrderInput | SortOrder perumahan_id?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder _relevance?: housesOrderByRelevanceInput } export type housesWhereUniqueInput = Prisma.AtLeast<{ id?: string house_number_block?: housesHouse_numberBlockCompoundUniqueInput AND?: housesWhereInput | housesWhereInput[] OR?: housesWhereInput[] NOT?: housesWhereInput | housesWhereInput[] house_number?: StringFilter<"houses"> | string block?: StringFilter<"houses"> | string street?: StringFilter<"houses"> | string owner_name?: StringFilter<"houses"> | string owner_phone?: StringFilter<"houses"> | string status?: Enumhouses_statusNullableFilter<"houses"> | $Enums.houses_status | null perumahan_id?: StringNullableFilter<"houses"> | string | null created_at?: DateTimeNullableFilter<"houses"> | Date | string | null updated_at?: DateTimeNullableFilter<"houses"> | Date | string | null }, "id" | "house_number_block"> export type housesOrderByWithAggregationInput = { id?: SortOrder house_number?: SortOrder block?: SortOrder street?: SortOrder owner_name?: SortOrder owner_phone?: SortOrder status?: SortOrderInput | SortOrder perumahan_id?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder _count?: housesCountOrderByAggregateInput _max?: housesMaxOrderByAggregateInput _min?: housesMinOrderByAggregateInput } export type housesScalarWhereWithAggregatesInput = { AND?: housesScalarWhereWithAggregatesInput | housesScalarWhereWithAggregatesInput[] OR?: housesScalarWhereWithAggregatesInput[] NOT?: housesScalarWhereWithAggregatesInput | housesScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"houses"> | string house_number?: StringWithAggregatesFilter<"houses"> | string block?: StringWithAggregatesFilter<"houses"> | string street?: StringWithAggregatesFilter<"houses"> | string owner_name?: StringWithAggregatesFilter<"houses"> | string owner_phone?: StringWithAggregatesFilter<"houses"> | string status?: Enumhouses_statusNullableWithAggregatesFilter<"houses"> | $Enums.houses_status | null perumahan_id?: StringNullableWithAggregatesFilter<"houses"> | string | null created_at?: DateTimeNullableWithAggregatesFilter<"houses"> | Date | string | null updated_at?: DateTimeNullableWithAggregatesFilter<"houses"> | Date | string | null } export type incident_updatesWhereInput = { AND?: incident_updatesWhereInput | incident_updatesWhereInput[] OR?: incident_updatesWhereInput[] NOT?: incident_updatesWhereInput | incident_updatesWhereInput[] id?: StringFilter<"incident_updates"> | string incident_id?: StringFilter<"incident_updates"> | string update_type?: StringFilter<"incident_updates"> | string title?: StringNullableFilter<"incident_updates"> | string | null description?: StringNullableFilter<"incident_updates"> | string | null old_values?: JsonNullableFilter<"incident_updates"> new_values?: JsonNullableFilter<"incident_updates"> changed_fields?: JsonNullableFilter<"incident_updates"> is_internal?: BoolNullableFilter<"incident_updates"> | boolean | null is_system_generated?: BoolNullableFilter<"incident_updates"> | boolean | null attachments?: JsonNullableFilter<"incident_updates"> created_at?: DateTimeNullableFilter<"incident_updates"> | Date | string | null created_by?: StringFilter<"incident_updates"> | string notifications_sent?: JsonNullableFilter<"incident_updates"> notification_status?: StringNullableFilter<"incident_updates"> | string | null incidents?: XOR } export type incident_updatesOrderByWithRelationInput = { id?: SortOrder incident_id?: SortOrder update_type?: SortOrder title?: SortOrderInput | SortOrder description?: SortOrderInput | SortOrder old_values?: SortOrderInput | SortOrder new_values?: SortOrderInput | SortOrder changed_fields?: SortOrderInput | SortOrder is_internal?: SortOrderInput | SortOrder is_system_generated?: SortOrderInput | SortOrder attachments?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder created_by?: SortOrder notifications_sent?: SortOrderInput | SortOrder notification_status?: SortOrderInput | SortOrder incidents?: incidentsOrderByWithRelationInput _relevance?: incident_updatesOrderByRelevanceInput } export type incident_updatesWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: incident_updatesWhereInput | incident_updatesWhereInput[] OR?: incident_updatesWhereInput[] NOT?: incident_updatesWhereInput | incident_updatesWhereInput[] incident_id?: StringFilter<"incident_updates"> | string update_type?: StringFilter<"incident_updates"> | string title?: StringNullableFilter<"incident_updates"> | string | null description?: StringNullableFilter<"incident_updates"> | string | null old_values?: JsonNullableFilter<"incident_updates"> new_values?: JsonNullableFilter<"incident_updates"> changed_fields?: JsonNullableFilter<"incident_updates"> is_internal?: BoolNullableFilter<"incident_updates"> | boolean | null is_system_generated?: BoolNullableFilter<"incident_updates"> | boolean | null attachments?: JsonNullableFilter<"incident_updates"> created_at?: DateTimeNullableFilter<"incident_updates"> | Date | string | null created_by?: StringFilter<"incident_updates"> | string notifications_sent?: JsonNullableFilter<"incident_updates"> notification_status?: StringNullableFilter<"incident_updates"> | string | null incidents?: XOR }, "id"> export type incident_updatesOrderByWithAggregationInput = { id?: SortOrder incident_id?: SortOrder update_type?: SortOrder title?: SortOrderInput | SortOrder description?: SortOrderInput | SortOrder old_values?: SortOrderInput | SortOrder new_values?: SortOrderInput | SortOrder changed_fields?: SortOrderInput | SortOrder is_internal?: SortOrderInput | SortOrder is_system_generated?: SortOrderInput | SortOrder attachments?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder created_by?: SortOrder notifications_sent?: SortOrderInput | SortOrder notification_status?: SortOrderInput | SortOrder _count?: incident_updatesCountOrderByAggregateInput _max?: incident_updatesMaxOrderByAggregateInput _min?: incident_updatesMinOrderByAggregateInput } export type incident_updatesScalarWhereWithAggregatesInput = { AND?: incident_updatesScalarWhereWithAggregatesInput | incident_updatesScalarWhereWithAggregatesInput[] OR?: incident_updatesScalarWhereWithAggregatesInput[] NOT?: incident_updatesScalarWhereWithAggregatesInput | incident_updatesScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"incident_updates"> | string incident_id?: StringWithAggregatesFilter<"incident_updates"> | string update_type?: StringWithAggregatesFilter<"incident_updates"> | string title?: StringNullableWithAggregatesFilter<"incident_updates"> | string | null description?: StringNullableWithAggregatesFilter<"incident_updates"> | string | null old_values?: JsonNullableWithAggregatesFilter<"incident_updates"> new_values?: JsonNullableWithAggregatesFilter<"incident_updates"> changed_fields?: JsonNullableWithAggregatesFilter<"incident_updates"> is_internal?: BoolNullableWithAggregatesFilter<"incident_updates"> | boolean | null is_system_generated?: BoolNullableWithAggregatesFilter<"incident_updates"> | boolean | null attachments?: JsonNullableWithAggregatesFilter<"incident_updates"> created_at?: DateTimeNullableWithAggregatesFilter<"incident_updates"> | Date | string | null created_by?: StringWithAggregatesFilter<"incident_updates"> | string notifications_sent?: JsonNullableWithAggregatesFilter<"incident_updates"> notification_status?: StringNullableWithAggregatesFilter<"incident_updates"> | string | null } export type incidentsWhereInput = { AND?: incidentsWhereInput | incidentsWhereInput[] OR?: incidentsWhereInput[] NOT?: incidentsWhereInput | incidentsWhereInput[] id?: StringFilter<"incidents"> | string incident_number?: StringFilter<"incidents"> | string title?: StringFilter<"incidents"> | string description?: StringNullableFilter<"incidents"> | string | null type?: StringFilter<"incidents"> | string severity?: StringFilter<"incidents"> | string priority?: StringFilter<"incidents"> | string status?: StringFilter<"incidents"> | string location?: JsonFilter<"incidents"> coordinates_lat?: DecimalNullableFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null coordinates_lng?: DecimalNullableFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null address?: StringNullableFilter<"incidents"> | string | null zone?: StringNullableFilter<"incidents"> | string | null building?: StringNullableFilter<"incidents"> | string | null floor?: StringNullableFilter<"incidents"> | string | null room?: StringNullableFilter<"incidents"> | string | null reported_by?: StringNullableFilter<"incidents"> | string | null reporter_name?: StringNullableFilter<"incidents"> | string | null reporter_contact?: StringNullableFilter<"incidents"> | string | null reporter_type?: StringNullableFilter<"incidents"> | string | null assigned_to?: StringNullableFilter<"incidents"> | string | null assigned_team?: StringNullableFilter<"incidents"> | string | null assigned_at?: DateTimeNullableFilter<"incidents"> | Date | string | null occurred_at?: DateTimeFilter<"incidents"> | Date | string reported_at?: DateTimeNullableFilter<"incidents"> | Date | string | null acknowledged_at?: DateTimeNullableFilter<"incidents"> | Date | string | null resolved_at?: DateTimeNullableFilter<"incidents"> | Date | string | null closed_at?: DateTimeNullableFilter<"incidents"> | Date | string | null due_date?: DateTimeNullableFilter<"incidents"> | Date | string | null tags?: JsonNullableFilter<"incidents"> attachments?: JsonNullableFilter<"incidents"> evidence?: JsonNullableFilter<"incidents"> witnesses?: JsonNullableFilter<"incidents"> related_incidents?: JsonNullableFilter<"incidents"> camera_ids?: JsonNullableFilter<"incidents"> geofence_id?: StringNullableFilter<"incidents"> | string | null alert_id?: StringNullableFilter<"incidents"> | string | null metadata?: JsonNullableFilter<"incidents"> custom_fields?: JsonNullableFilter<"incidents"> created_at?: DateTimeNullableFilter<"incidents"> | Date | string | null updated_at?: DateTimeNullableFilter<"incidents"> | Date | string | null created_by?: StringNullableFilter<"incidents"> | string | null updated_by?: StringNullableFilter<"incidents"> | string | null deleted_at?: DateTimeNullableFilter<"incidents"> | Date | string | null deleted_by?: StringNullableFilter<"incidents"> | string | null alerts?: AlertsListRelationFilter incident_updates?: Incident_updatesListRelationFilter team_members_incidents_reported_byToteam_members?: XOR | null team_members_incidents_assigned_toToteam_members?: XOR | null geofences?: XOR | null } export type incidentsOrderByWithRelationInput = { id?: SortOrder incident_number?: SortOrder title?: SortOrder description?: SortOrderInput | SortOrder type?: SortOrder severity?: SortOrder priority?: SortOrder status?: SortOrder location?: SortOrder coordinates_lat?: SortOrderInput | SortOrder coordinates_lng?: SortOrderInput | SortOrder address?: SortOrderInput | SortOrder zone?: SortOrderInput | SortOrder building?: SortOrderInput | SortOrder floor?: SortOrderInput | SortOrder room?: SortOrderInput | SortOrder reported_by?: SortOrderInput | SortOrder reporter_name?: SortOrderInput | SortOrder reporter_contact?: SortOrderInput | SortOrder reporter_type?: SortOrderInput | SortOrder assigned_to?: SortOrderInput | SortOrder assigned_team?: SortOrderInput | SortOrder assigned_at?: SortOrderInput | SortOrder occurred_at?: SortOrder reported_at?: SortOrderInput | SortOrder acknowledged_at?: SortOrderInput | SortOrder resolved_at?: SortOrderInput | SortOrder closed_at?: SortOrderInput | SortOrder due_date?: SortOrderInput | SortOrder tags?: SortOrderInput | SortOrder attachments?: SortOrderInput | SortOrder evidence?: SortOrderInput | SortOrder witnesses?: SortOrderInput | SortOrder related_incidents?: SortOrderInput | SortOrder camera_ids?: SortOrderInput | SortOrder geofence_id?: SortOrderInput | SortOrder alert_id?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder custom_fields?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder deleted_at?: SortOrderInput | SortOrder deleted_by?: SortOrderInput | SortOrder alerts?: alertsOrderByRelationAggregateInput incident_updates?: incident_updatesOrderByRelationAggregateInput team_members_incidents_reported_byToteam_members?: team_membersOrderByWithRelationInput team_members_incidents_assigned_toToteam_members?: team_membersOrderByWithRelationInput geofences?: geofencesOrderByWithRelationInput _relevance?: incidentsOrderByRelevanceInput } export type incidentsWhereUniqueInput = Prisma.AtLeast<{ id?: string incident_number?: string AND?: incidentsWhereInput | incidentsWhereInput[] OR?: incidentsWhereInput[] NOT?: incidentsWhereInput | incidentsWhereInput[] title?: StringFilter<"incidents"> | string description?: StringNullableFilter<"incidents"> | string | null type?: StringFilter<"incidents"> | string severity?: StringFilter<"incidents"> | string priority?: StringFilter<"incidents"> | string status?: StringFilter<"incidents"> | string location?: JsonFilter<"incidents"> coordinates_lat?: DecimalNullableFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null coordinates_lng?: DecimalNullableFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null address?: StringNullableFilter<"incidents"> | string | null zone?: StringNullableFilter<"incidents"> | string | null building?: StringNullableFilter<"incidents"> | string | null floor?: StringNullableFilter<"incidents"> | string | null room?: StringNullableFilter<"incidents"> | string | null reported_by?: StringNullableFilter<"incidents"> | string | null reporter_name?: StringNullableFilter<"incidents"> | string | null reporter_contact?: StringNullableFilter<"incidents"> | string | null reporter_type?: StringNullableFilter<"incidents"> | string | null assigned_to?: StringNullableFilter<"incidents"> | string | null assigned_team?: StringNullableFilter<"incidents"> | string | null assigned_at?: DateTimeNullableFilter<"incidents"> | Date | string | null occurred_at?: DateTimeFilter<"incidents"> | Date | string reported_at?: DateTimeNullableFilter<"incidents"> | Date | string | null acknowledged_at?: DateTimeNullableFilter<"incidents"> | Date | string | null resolved_at?: DateTimeNullableFilter<"incidents"> | Date | string | null closed_at?: DateTimeNullableFilter<"incidents"> | Date | string | null due_date?: DateTimeNullableFilter<"incidents"> | Date | string | null tags?: JsonNullableFilter<"incidents"> attachments?: JsonNullableFilter<"incidents"> evidence?: JsonNullableFilter<"incidents"> witnesses?: JsonNullableFilter<"incidents"> related_incidents?: JsonNullableFilter<"incidents"> camera_ids?: JsonNullableFilter<"incidents"> geofence_id?: StringNullableFilter<"incidents"> | string | null alert_id?: StringNullableFilter<"incidents"> | string | null metadata?: JsonNullableFilter<"incidents"> custom_fields?: JsonNullableFilter<"incidents"> created_at?: DateTimeNullableFilter<"incidents"> | Date | string | null updated_at?: DateTimeNullableFilter<"incidents"> | Date | string | null created_by?: StringNullableFilter<"incidents"> | string | null updated_by?: StringNullableFilter<"incidents"> | string | null deleted_at?: DateTimeNullableFilter<"incidents"> | Date | string | null deleted_by?: StringNullableFilter<"incidents"> | string | null alerts?: AlertsListRelationFilter incident_updates?: Incident_updatesListRelationFilter team_members_incidents_reported_byToteam_members?: XOR | null team_members_incidents_assigned_toToteam_members?: XOR | null geofences?: XOR | null }, "id" | "incident_number"> export type incidentsOrderByWithAggregationInput = { id?: SortOrder incident_number?: SortOrder title?: SortOrder description?: SortOrderInput | SortOrder type?: SortOrder severity?: SortOrder priority?: SortOrder status?: SortOrder location?: SortOrder coordinates_lat?: SortOrderInput | SortOrder coordinates_lng?: SortOrderInput | SortOrder address?: SortOrderInput | SortOrder zone?: SortOrderInput | SortOrder building?: SortOrderInput | SortOrder floor?: SortOrderInput | SortOrder room?: SortOrderInput | SortOrder reported_by?: SortOrderInput | SortOrder reporter_name?: SortOrderInput | SortOrder reporter_contact?: SortOrderInput | SortOrder reporter_type?: SortOrderInput | SortOrder assigned_to?: SortOrderInput | SortOrder assigned_team?: SortOrderInput | SortOrder assigned_at?: SortOrderInput | SortOrder occurred_at?: SortOrder reported_at?: SortOrderInput | SortOrder acknowledged_at?: SortOrderInput | SortOrder resolved_at?: SortOrderInput | SortOrder closed_at?: SortOrderInput | SortOrder due_date?: SortOrderInput | SortOrder tags?: SortOrderInput | SortOrder attachments?: SortOrderInput | SortOrder evidence?: SortOrderInput | SortOrder witnesses?: SortOrderInput | SortOrder related_incidents?: SortOrderInput | SortOrder camera_ids?: SortOrderInput | SortOrder geofence_id?: SortOrderInput | SortOrder alert_id?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder custom_fields?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder deleted_at?: SortOrderInput | SortOrder deleted_by?: SortOrderInput | SortOrder _count?: incidentsCountOrderByAggregateInput _avg?: incidentsAvgOrderByAggregateInput _max?: incidentsMaxOrderByAggregateInput _min?: incidentsMinOrderByAggregateInput _sum?: incidentsSumOrderByAggregateInput } export type incidentsScalarWhereWithAggregatesInput = { AND?: incidentsScalarWhereWithAggregatesInput | incidentsScalarWhereWithAggregatesInput[] OR?: incidentsScalarWhereWithAggregatesInput[] NOT?: incidentsScalarWhereWithAggregatesInput | incidentsScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"incidents"> | string incident_number?: StringWithAggregatesFilter<"incidents"> | string title?: StringWithAggregatesFilter<"incidents"> | string description?: StringNullableWithAggregatesFilter<"incidents"> | string | null type?: StringWithAggregatesFilter<"incidents"> | string severity?: StringWithAggregatesFilter<"incidents"> | string priority?: StringWithAggregatesFilter<"incidents"> | string status?: StringWithAggregatesFilter<"incidents"> | string location?: JsonWithAggregatesFilter<"incidents"> coordinates_lat?: DecimalNullableWithAggregatesFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null coordinates_lng?: DecimalNullableWithAggregatesFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null address?: StringNullableWithAggregatesFilter<"incidents"> | string | null zone?: StringNullableWithAggregatesFilter<"incidents"> | string | null building?: StringNullableWithAggregatesFilter<"incidents"> | string | null floor?: StringNullableWithAggregatesFilter<"incidents"> | string | null room?: StringNullableWithAggregatesFilter<"incidents"> | string | null reported_by?: StringNullableWithAggregatesFilter<"incidents"> | string | null reporter_name?: StringNullableWithAggregatesFilter<"incidents"> | string | null reporter_contact?: StringNullableWithAggregatesFilter<"incidents"> | string | null reporter_type?: StringNullableWithAggregatesFilter<"incidents"> | string | null assigned_to?: StringNullableWithAggregatesFilter<"incidents"> | string | null assigned_team?: StringNullableWithAggregatesFilter<"incidents"> | string | null assigned_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null occurred_at?: DateTimeWithAggregatesFilter<"incidents"> | Date | string reported_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null acknowledged_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null resolved_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null closed_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null due_date?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null tags?: JsonNullableWithAggregatesFilter<"incidents"> attachments?: JsonNullableWithAggregatesFilter<"incidents"> evidence?: JsonNullableWithAggregatesFilter<"incidents"> witnesses?: JsonNullableWithAggregatesFilter<"incidents"> related_incidents?: JsonNullableWithAggregatesFilter<"incidents"> camera_ids?: JsonNullableWithAggregatesFilter<"incidents"> geofence_id?: StringNullableWithAggregatesFilter<"incidents"> | string | null alert_id?: StringNullableWithAggregatesFilter<"incidents"> | string | null metadata?: JsonNullableWithAggregatesFilter<"incidents"> custom_fields?: JsonNullableWithAggregatesFilter<"incidents"> created_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null updated_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null created_by?: StringNullableWithAggregatesFilter<"incidents"> | string | null updated_by?: StringNullableWithAggregatesFilter<"incidents"> | string | null deleted_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null deleted_by?: StringNullableWithAggregatesFilter<"incidents"> | string | null } export type ktp_validation_auditWhereInput = { AND?: ktp_validation_auditWhereInput | ktp_validation_auditWhereInput[] OR?: ktp_validation_auditWhereInput[] NOT?: ktp_validation_auditWhereInput | ktp_validation_auditWhereInput[] id?: StringFilter<"ktp_validation_audit"> | string ktp_data_id?: StringFilter<"ktp_validation_audit"> | string action?: Enumktp_validation_audit_actionFilter<"ktp_validation_audit"> | $Enums.ktp_validation_audit_action old_values?: JsonNullableFilter<"ktp_validation_audit"> new_values?: JsonNullableFilter<"ktp_validation_audit"> performed_by?: StringFilter<"ktp_validation_audit"> | string ip_address?: StringNullableFilter<"ktp_validation_audit"> | string | null user_agent?: StringNullableFilter<"ktp_validation_audit"> | string | null reason?: StringNullableFilter<"ktp_validation_audit"> | string | null created_at?: DateTimeFilter<"ktp_validation_audit"> | Date | string metadata?: JsonNullableFilter<"ktp_validation_audit"> visitor_ktp_data?: XOR } export type ktp_validation_auditOrderByWithRelationInput = { id?: SortOrder ktp_data_id?: SortOrder action?: SortOrder old_values?: SortOrderInput | SortOrder new_values?: SortOrderInput | SortOrder performed_by?: SortOrder ip_address?: SortOrderInput | SortOrder user_agent?: SortOrderInput | SortOrder reason?: SortOrderInput | SortOrder created_at?: SortOrder metadata?: SortOrderInput | SortOrder visitor_ktp_data?: visitor_ktp_dataOrderByWithRelationInput _relevance?: ktp_validation_auditOrderByRelevanceInput } export type ktp_validation_auditWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: ktp_validation_auditWhereInput | ktp_validation_auditWhereInput[] OR?: ktp_validation_auditWhereInput[] NOT?: ktp_validation_auditWhereInput | ktp_validation_auditWhereInput[] ktp_data_id?: StringFilter<"ktp_validation_audit"> | string action?: Enumktp_validation_audit_actionFilter<"ktp_validation_audit"> | $Enums.ktp_validation_audit_action old_values?: JsonNullableFilter<"ktp_validation_audit"> new_values?: JsonNullableFilter<"ktp_validation_audit"> performed_by?: StringFilter<"ktp_validation_audit"> | string ip_address?: StringNullableFilter<"ktp_validation_audit"> | string | null user_agent?: StringNullableFilter<"ktp_validation_audit"> | string | null reason?: StringNullableFilter<"ktp_validation_audit"> | string | null created_at?: DateTimeFilter<"ktp_validation_audit"> | Date | string metadata?: JsonNullableFilter<"ktp_validation_audit"> visitor_ktp_data?: XOR }, "id"> export type ktp_validation_auditOrderByWithAggregationInput = { id?: SortOrder ktp_data_id?: SortOrder action?: SortOrder old_values?: SortOrderInput | SortOrder new_values?: SortOrderInput | SortOrder performed_by?: SortOrder ip_address?: SortOrderInput | SortOrder user_agent?: SortOrderInput | SortOrder reason?: SortOrderInput | SortOrder created_at?: SortOrder metadata?: SortOrderInput | SortOrder _count?: ktp_validation_auditCountOrderByAggregateInput _max?: ktp_validation_auditMaxOrderByAggregateInput _min?: ktp_validation_auditMinOrderByAggregateInput } export type ktp_validation_auditScalarWhereWithAggregatesInput = { AND?: ktp_validation_auditScalarWhereWithAggregatesInput | ktp_validation_auditScalarWhereWithAggregatesInput[] OR?: ktp_validation_auditScalarWhereWithAggregatesInput[] NOT?: ktp_validation_auditScalarWhereWithAggregatesInput | ktp_validation_auditScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"ktp_validation_audit"> | string ktp_data_id?: StringWithAggregatesFilter<"ktp_validation_audit"> | string action?: Enumktp_validation_audit_actionWithAggregatesFilter<"ktp_validation_audit"> | $Enums.ktp_validation_audit_action old_values?: JsonNullableWithAggregatesFilter<"ktp_validation_audit"> new_values?: JsonNullableWithAggregatesFilter<"ktp_validation_audit"> performed_by?: StringWithAggregatesFilter<"ktp_validation_audit"> | string ip_address?: StringNullableWithAggregatesFilter<"ktp_validation_audit"> | string | null user_agent?: StringNullableWithAggregatesFilter<"ktp_validation_audit"> | string | null reason?: StringNullableWithAggregatesFilter<"ktp_validation_audit"> | string | null created_at?: DateTimeWithAggregatesFilter<"ktp_validation_audit"> | Date | string metadata?: JsonNullableWithAggregatesFilter<"ktp_validation_audit"> } export type map_pinsWhereInput = { AND?: map_pinsWhereInput | map_pinsWhereInput[] OR?: map_pinsWhereInput[] NOT?: map_pinsWhereInput | map_pinsWhereInput[] id?: StringFilter<"map_pins"> | string type?: StringFilter<"map_pins"> | string coordinates?: JsonNullableFilter<"map_pins"> title?: StringFilter<"map_pins"> | string description?: StringNullableFilter<"map_pins"> | string | null status?: StringNullableFilter<"map_pins"> | string | null priority?: StringNullableFilter<"map_pins"> | string | null icon_type?: StringNullableFilter<"map_pins"> | string | null icon_color?: StringNullableFilter<"map_pins"> | string | null size?: StringNullableFilter<"map_pins"> | string | null is_visible?: BoolNullableFilter<"map_pins"> | boolean | null is_clickable?: BoolNullableFilter<"map_pins"> | boolean | null metadata?: JsonNullableFilter<"map_pins"> alert_id?: StringNullableFilter<"map_pins"> | string | null incident_id?: StringNullableFilter<"map_pins"> | string | null team_member_id?: StringNullableFilter<"map_pins"> | string | null camera_id?: StringNullableFilter<"map_pins"> | string | null geofence_id?: StringNullableFilter<"map_pins"> | string | null created_at?: DateTimeNullableFilter<"map_pins"> | Date | string | null updated_at?: DateTimeNullableFilter<"map_pins"> | Date | string | null created_by?: StringNullableFilter<"map_pins"> | string | null updated_by?: StringNullableFilter<"map_pins"> | string | null geofences?: XOR | null } export type map_pinsOrderByWithRelationInput = { id?: SortOrder type?: SortOrder coordinates?: SortOrderInput | SortOrder title?: SortOrder description?: SortOrderInput | SortOrder status?: SortOrderInput | SortOrder priority?: SortOrderInput | SortOrder icon_type?: SortOrderInput | SortOrder icon_color?: SortOrderInput | SortOrder size?: SortOrderInput | SortOrder is_visible?: SortOrderInput | SortOrder is_clickable?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder alert_id?: SortOrderInput | SortOrder incident_id?: SortOrderInput | SortOrder team_member_id?: SortOrderInput | SortOrder camera_id?: SortOrderInput | SortOrder geofence_id?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder geofences?: geofencesOrderByWithRelationInput _relevance?: map_pinsOrderByRelevanceInput } export type map_pinsWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: map_pinsWhereInput | map_pinsWhereInput[] OR?: map_pinsWhereInput[] NOT?: map_pinsWhereInput | map_pinsWhereInput[] type?: StringFilter<"map_pins"> | string coordinates?: JsonNullableFilter<"map_pins"> title?: StringFilter<"map_pins"> | string description?: StringNullableFilter<"map_pins"> | string | null status?: StringNullableFilter<"map_pins"> | string | null priority?: StringNullableFilter<"map_pins"> | string | null icon_type?: StringNullableFilter<"map_pins"> | string | null icon_color?: StringNullableFilter<"map_pins"> | string | null size?: StringNullableFilter<"map_pins"> | string | null is_visible?: BoolNullableFilter<"map_pins"> | boolean | null is_clickable?: BoolNullableFilter<"map_pins"> | boolean | null metadata?: JsonNullableFilter<"map_pins"> alert_id?: StringNullableFilter<"map_pins"> | string | null incident_id?: StringNullableFilter<"map_pins"> | string | null team_member_id?: StringNullableFilter<"map_pins"> | string | null camera_id?: StringNullableFilter<"map_pins"> | string | null geofence_id?: StringNullableFilter<"map_pins"> | string | null created_at?: DateTimeNullableFilter<"map_pins"> | Date | string | null updated_at?: DateTimeNullableFilter<"map_pins"> | Date | string | null created_by?: StringNullableFilter<"map_pins"> | string | null updated_by?: StringNullableFilter<"map_pins"> | string | null geofences?: XOR | null }, "id"> export type map_pinsOrderByWithAggregationInput = { id?: SortOrder type?: SortOrder coordinates?: SortOrderInput | SortOrder title?: SortOrder description?: SortOrderInput | SortOrder status?: SortOrderInput | SortOrder priority?: SortOrderInput | SortOrder icon_type?: SortOrderInput | SortOrder icon_color?: SortOrderInput | SortOrder size?: SortOrderInput | SortOrder is_visible?: SortOrderInput | SortOrder is_clickable?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder alert_id?: SortOrderInput | SortOrder incident_id?: SortOrderInput | SortOrder team_member_id?: SortOrderInput | SortOrder camera_id?: SortOrderInput | SortOrder geofence_id?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder _count?: map_pinsCountOrderByAggregateInput _max?: map_pinsMaxOrderByAggregateInput _min?: map_pinsMinOrderByAggregateInput } export type map_pinsScalarWhereWithAggregatesInput = { AND?: map_pinsScalarWhereWithAggregatesInput | map_pinsScalarWhereWithAggregatesInput[] OR?: map_pinsScalarWhereWithAggregatesInput[] NOT?: map_pinsScalarWhereWithAggregatesInput | map_pinsScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"map_pins"> | string type?: StringWithAggregatesFilter<"map_pins"> | string coordinates?: JsonNullableWithAggregatesFilter<"map_pins"> title?: StringWithAggregatesFilter<"map_pins"> | string description?: StringNullableWithAggregatesFilter<"map_pins"> | string | null status?: StringNullableWithAggregatesFilter<"map_pins"> | string | null priority?: StringNullableWithAggregatesFilter<"map_pins"> | string | null icon_type?: StringNullableWithAggregatesFilter<"map_pins"> | string | null icon_color?: StringNullableWithAggregatesFilter<"map_pins"> | string | null size?: StringNullableWithAggregatesFilter<"map_pins"> | string | null is_visible?: BoolNullableWithAggregatesFilter<"map_pins"> | boolean | null is_clickable?: BoolNullableWithAggregatesFilter<"map_pins"> | boolean | null metadata?: JsonNullableWithAggregatesFilter<"map_pins"> alert_id?: StringNullableWithAggregatesFilter<"map_pins"> | string | null incident_id?: StringNullableWithAggregatesFilter<"map_pins"> | string | null team_member_id?: StringNullableWithAggregatesFilter<"map_pins"> | string | null camera_id?: StringNullableWithAggregatesFilter<"map_pins"> | string | null geofence_id?: StringNullableWithAggregatesFilter<"map_pins"> | string | null created_at?: DateTimeNullableWithAggregatesFilter<"map_pins"> | Date | string | null updated_at?: DateTimeNullableWithAggregatesFilter<"map_pins"> | Date | string | null created_by?: StringNullableWithAggregatesFilter<"map_pins"> | string | null updated_by?: StringNullableWithAggregatesFilter<"map_pins"> | string | null } export type perumahan_facilitiesWhereInput = { AND?: perumahan_facilitiesWhereInput | perumahan_facilitiesWhereInput[] OR?: perumahan_facilitiesWhereInput[] NOT?: perumahan_facilitiesWhereInput | perumahan_facilitiesWhereInput[] id?: IntFilter<"perumahan_facilities"> | number name?: StringFilter<"perumahan_facilities"> | string type?: StringFilter<"perumahan_facilities"> | string description?: StringNullableFilter<"perumahan_facilities"> | string | null location?: StringFilter<"perumahan_facilities"> | string lat?: DecimalFilter<"perumahan_facilities"> | Decimal | DecimalJsLike | number | string lng?: DecimalFilter<"perumahan_facilities"> | Decimal | DecimalJsLike | number | string status?: Enumperumahan_facilities_statusNullableFilter<"perumahan_facilities"> | $Enums.perumahan_facilities_status | null operating_hours?: JsonNullableFilter<"perumahan_facilities"> contact_info?: JsonNullableFilter<"perumahan_facilities"> created_at?: DateTimeNullableFilter<"perumahan_facilities"> | Date | string | null updated_at?: DateTimeNullableFilter<"perumahan_facilities"> | Date | string | null } export type perumahan_facilitiesOrderByWithRelationInput = { id?: SortOrder name?: SortOrder type?: SortOrder description?: SortOrderInput | SortOrder location?: SortOrder lat?: SortOrder lng?: SortOrder status?: SortOrderInput | SortOrder operating_hours?: SortOrderInput | SortOrder contact_info?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder _relevance?: perumahan_facilitiesOrderByRelevanceInput } export type perumahan_facilitiesWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: perumahan_facilitiesWhereInput | perumahan_facilitiesWhereInput[] OR?: perumahan_facilitiesWhereInput[] NOT?: perumahan_facilitiesWhereInput | perumahan_facilitiesWhereInput[] name?: StringFilter<"perumahan_facilities"> | string type?: StringFilter<"perumahan_facilities"> | string description?: StringNullableFilter<"perumahan_facilities"> | string | null location?: StringFilter<"perumahan_facilities"> | string lat?: DecimalFilter<"perumahan_facilities"> | Decimal | DecimalJsLike | number | string lng?: DecimalFilter<"perumahan_facilities"> | Decimal | DecimalJsLike | number | string status?: Enumperumahan_facilities_statusNullableFilter<"perumahan_facilities"> | $Enums.perumahan_facilities_status | null operating_hours?: JsonNullableFilter<"perumahan_facilities"> contact_info?: JsonNullableFilter<"perumahan_facilities"> created_at?: DateTimeNullableFilter<"perumahan_facilities"> | Date | string | null updated_at?: DateTimeNullableFilter<"perumahan_facilities"> | Date | string | null }, "id"> export type perumahan_facilitiesOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder type?: SortOrder description?: SortOrderInput | SortOrder location?: SortOrder lat?: SortOrder lng?: SortOrder status?: SortOrderInput | SortOrder operating_hours?: SortOrderInput | SortOrder contact_info?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder _count?: perumahan_facilitiesCountOrderByAggregateInput _avg?: perumahan_facilitiesAvgOrderByAggregateInput _max?: perumahan_facilitiesMaxOrderByAggregateInput _min?: perumahan_facilitiesMinOrderByAggregateInput _sum?: perumahan_facilitiesSumOrderByAggregateInput } export type perumahan_facilitiesScalarWhereWithAggregatesInput = { AND?: perumahan_facilitiesScalarWhereWithAggregatesInput | perumahan_facilitiesScalarWhereWithAggregatesInput[] OR?: perumahan_facilitiesScalarWhereWithAggregatesInput[] NOT?: perumahan_facilitiesScalarWhereWithAggregatesInput | perumahan_facilitiesScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"perumahan_facilities"> | number name?: StringWithAggregatesFilter<"perumahan_facilities"> | string type?: StringWithAggregatesFilter<"perumahan_facilities"> | string description?: StringNullableWithAggregatesFilter<"perumahan_facilities"> | string | null location?: StringWithAggregatesFilter<"perumahan_facilities"> | string lat?: DecimalWithAggregatesFilter<"perumahan_facilities"> | Decimal | DecimalJsLike | number | string lng?: DecimalWithAggregatesFilter<"perumahan_facilities"> | Decimal | DecimalJsLike | number | string status?: Enumperumahan_facilities_statusNullableWithAggregatesFilter<"perumahan_facilities"> | $Enums.perumahan_facilities_status | null operating_hours?: JsonNullableWithAggregatesFilter<"perumahan_facilities"> contact_info?: JsonNullableWithAggregatesFilter<"perumahan_facilities"> created_at?: DateTimeNullableWithAggregatesFilter<"perumahan_facilities"> | Date | string | null updated_at?: DateTimeNullableWithAggregatesFilter<"perumahan_facilities"> | Date | string | null } export type perumahan_infoWhereInput = { AND?: perumahan_infoWhereInput | perumahan_infoWhereInput[] OR?: perumahan_infoWhereInput[] NOT?: perumahan_infoWhereInput | perumahan_infoWhereInput[] id?: IntFilter<"perumahan_info"> | number name?: StringFilter<"perumahan_info"> | string total_units?: IntFilter<"perumahan_info"> | number clusters?: JsonFilter<"perumahan_info"> address?: StringNullableFilter<"perumahan_info"> | string | null created_at?: DateTimeNullableFilter<"perumahan_info"> | Date | string | null updated_at?: DateTimeNullableFilter<"perumahan_info"> | Date | string | null } export type perumahan_infoOrderByWithRelationInput = { id?: SortOrder name?: SortOrder total_units?: SortOrder clusters?: SortOrder address?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder _relevance?: perumahan_infoOrderByRelevanceInput } export type perumahan_infoWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: perumahan_infoWhereInput | perumahan_infoWhereInput[] OR?: perumahan_infoWhereInput[] NOT?: perumahan_infoWhereInput | perumahan_infoWhereInput[] name?: StringFilter<"perumahan_info"> | string total_units?: IntFilter<"perumahan_info"> | number clusters?: JsonFilter<"perumahan_info"> address?: StringNullableFilter<"perumahan_info"> | string | null created_at?: DateTimeNullableFilter<"perumahan_info"> | Date | string | null updated_at?: DateTimeNullableFilter<"perumahan_info"> | Date | string | null }, "id"> export type perumahan_infoOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder total_units?: SortOrder clusters?: SortOrder address?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder _count?: perumahan_infoCountOrderByAggregateInput _avg?: perumahan_infoAvgOrderByAggregateInput _max?: perumahan_infoMaxOrderByAggregateInput _min?: perumahan_infoMinOrderByAggregateInput _sum?: perumahan_infoSumOrderByAggregateInput } export type perumahan_infoScalarWhereWithAggregatesInput = { AND?: perumahan_infoScalarWhereWithAggregatesInput | perumahan_infoScalarWhereWithAggregatesInput[] OR?: perumahan_infoScalarWhereWithAggregatesInput[] NOT?: perumahan_infoScalarWhereWithAggregatesInput | perumahan_infoScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"perumahan_info"> | number name?: StringWithAggregatesFilter<"perumahan_info"> | string total_units?: IntWithAggregatesFilter<"perumahan_info"> | number clusters?: JsonWithAggregatesFilter<"perumahan_info"> address?: StringNullableWithAggregatesFilter<"perumahan_info"> | string | null created_at?: DateTimeNullableWithAggregatesFilter<"perumahan_info"> | Date | string | null updated_at?: DateTimeNullableWithAggregatesFilter<"perumahan_info"> | Date | string | null } export type qr_codesWhereInput = { AND?: qr_codesWhereInput | qr_codesWhereInput[] OR?: qr_codesWhereInput[] NOT?: qr_codesWhereInput | qr_codesWhereInput[] id?: StringFilter<"qr_codes"> | string entry_point?: StringFilter<"qr_codes"> | string qr_data?: StringFilter<"qr_codes"> | string location_lat?: DecimalFilter<"qr_codes"> | Decimal | DecimalJsLike | number | string location_lng?: DecimalFilter<"qr_codes"> | Decimal | DecimalJsLike | number | string geofence_radius?: IntFilter<"qr_codes"> | number is_active?: BoolFilter<"qr_codes"> | boolean description?: StringNullableFilter<"qr_codes"> | string | null max_daily_registrations?: IntNullableFilter<"qr_codes"> | number | null operating_hours?: JsonNullableFilter<"qr_codes"> security_level?: Enumqr_codes_security_levelFilter<"qr_codes"> | $Enums.qr_codes_security_level requires_approval?: BoolFilter<"qr_codes"> | boolean auto_approve_roles?: JsonNullableFilter<"qr_codes"> metadata?: JsonNullableFilter<"qr_codes"> last_used_at?: DateTimeNullableFilter<"qr_codes"> | Date | string | null usage_count?: IntFilter<"qr_codes"> | number created_by?: StringNullableFilter<"qr_codes"> | string | null updated_by?: StringNullableFilter<"qr_codes"> | string | null created_at?: DateTimeFilter<"qr_codes"> | Date | string updated_at?: DateTimeFilter<"qr_codes"> | Date | string visitor_registrations?: Visitor_registrationsListRelationFilter } export type qr_codesOrderByWithRelationInput = { id?: SortOrder entry_point?: SortOrder qr_data?: SortOrder location_lat?: SortOrder location_lng?: SortOrder geofence_radius?: SortOrder is_active?: SortOrder description?: SortOrderInput | SortOrder max_daily_registrations?: SortOrderInput | SortOrder operating_hours?: SortOrderInput | SortOrder security_level?: SortOrder requires_approval?: SortOrder auto_approve_roles?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder last_used_at?: SortOrderInput | SortOrder usage_count?: SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder visitor_registrations?: visitor_registrationsOrderByRelationAggregateInput _relevance?: qr_codesOrderByRelevanceInput } export type qr_codesWhereUniqueInput = Prisma.AtLeast<{ id?: string qr_data?: string AND?: qr_codesWhereInput | qr_codesWhereInput[] OR?: qr_codesWhereInput[] NOT?: qr_codesWhereInput | qr_codesWhereInput[] entry_point?: StringFilter<"qr_codes"> | string location_lat?: DecimalFilter<"qr_codes"> | Decimal | DecimalJsLike | number | string location_lng?: DecimalFilter<"qr_codes"> | Decimal | DecimalJsLike | number | string geofence_radius?: IntFilter<"qr_codes"> | number is_active?: BoolFilter<"qr_codes"> | boolean description?: StringNullableFilter<"qr_codes"> | string | null max_daily_registrations?: IntNullableFilter<"qr_codes"> | number | null operating_hours?: JsonNullableFilter<"qr_codes"> security_level?: Enumqr_codes_security_levelFilter<"qr_codes"> | $Enums.qr_codes_security_level requires_approval?: BoolFilter<"qr_codes"> | boolean auto_approve_roles?: JsonNullableFilter<"qr_codes"> metadata?: JsonNullableFilter<"qr_codes"> last_used_at?: DateTimeNullableFilter<"qr_codes"> | Date | string | null usage_count?: IntFilter<"qr_codes"> | number created_by?: StringNullableFilter<"qr_codes"> | string | null updated_by?: StringNullableFilter<"qr_codes"> | string | null created_at?: DateTimeFilter<"qr_codes"> | Date | string updated_at?: DateTimeFilter<"qr_codes"> | Date | string visitor_registrations?: Visitor_registrationsListRelationFilter }, "id" | "qr_data"> export type qr_codesOrderByWithAggregationInput = { id?: SortOrder entry_point?: SortOrder qr_data?: SortOrder location_lat?: SortOrder location_lng?: SortOrder geofence_radius?: SortOrder is_active?: SortOrder description?: SortOrderInput | SortOrder max_daily_registrations?: SortOrderInput | SortOrder operating_hours?: SortOrderInput | SortOrder security_level?: SortOrder requires_approval?: SortOrder auto_approve_roles?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder last_used_at?: SortOrderInput | SortOrder usage_count?: SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: qr_codesCountOrderByAggregateInput _avg?: qr_codesAvgOrderByAggregateInput _max?: qr_codesMaxOrderByAggregateInput _min?: qr_codesMinOrderByAggregateInput _sum?: qr_codesSumOrderByAggregateInput } export type qr_codesScalarWhereWithAggregatesInput = { AND?: qr_codesScalarWhereWithAggregatesInput | qr_codesScalarWhereWithAggregatesInput[] OR?: qr_codesScalarWhereWithAggregatesInput[] NOT?: qr_codesScalarWhereWithAggregatesInput | qr_codesScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"qr_codes"> | string entry_point?: StringWithAggregatesFilter<"qr_codes"> | string qr_data?: StringWithAggregatesFilter<"qr_codes"> | string location_lat?: DecimalWithAggregatesFilter<"qr_codes"> | Decimal | DecimalJsLike | number | string location_lng?: DecimalWithAggregatesFilter<"qr_codes"> | Decimal | DecimalJsLike | number | string geofence_radius?: IntWithAggregatesFilter<"qr_codes"> | number is_active?: BoolWithAggregatesFilter<"qr_codes"> | boolean description?: StringNullableWithAggregatesFilter<"qr_codes"> | string | null max_daily_registrations?: IntNullableWithAggregatesFilter<"qr_codes"> | number | null operating_hours?: JsonNullableWithAggregatesFilter<"qr_codes"> security_level?: Enumqr_codes_security_levelWithAggregatesFilter<"qr_codes"> | $Enums.qr_codes_security_level requires_approval?: BoolWithAggregatesFilter<"qr_codes"> | boolean auto_approve_roles?: JsonNullableWithAggregatesFilter<"qr_codes"> metadata?: JsonNullableWithAggregatesFilter<"qr_codes"> last_used_at?: DateTimeNullableWithAggregatesFilter<"qr_codes"> | Date | string | null usage_count?: IntWithAggregatesFilter<"qr_codes"> | number created_by?: StringNullableWithAggregatesFilter<"qr_codes"> | string | null updated_by?: StringNullableWithAggregatesFilter<"qr_codes"> | string | null created_at?: DateTimeWithAggregatesFilter<"qr_codes"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"qr_codes"> | Date | string } export type security_activitiesWhereInput = { AND?: security_activitiesWhereInput | security_activitiesWhereInput[] OR?: security_activitiesWhereInput[] NOT?: security_activitiesWhereInput | security_activitiesWhereInput[] id?: IntFilter<"security_activities"> | number type?: StringFilter<"security_activities"> | string ref_id?: StringNullableFilter<"security_activities"> | string | null actor?: StringFilter<"security_activities"> | string note?: StringFilter<"security_activities"> | string severity?: Enumsecurity_activities_severityNullableFilter<"security_activities"> | $Enums.security_activities_severity | null timestamp?: DateTimeNullableFilter<"security_activities"> | Date | string | null metadata?: JsonNullableFilter<"security_activities"> source?: StringNullableFilter<"security_activities"> | string | null } export type security_activitiesOrderByWithRelationInput = { id?: SortOrder type?: SortOrder ref_id?: SortOrderInput | SortOrder actor?: SortOrder note?: SortOrder severity?: SortOrderInput | SortOrder timestamp?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder source?: SortOrderInput | SortOrder _relevance?: security_activitiesOrderByRelevanceInput } export type security_activitiesWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: security_activitiesWhereInput | security_activitiesWhereInput[] OR?: security_activitiesWhereInput[] NOT?: security_activitiesWhereInput | security_activitiesWhereInput[] type?: StringFilter<"security_activities"> | string ref_id?: StringNullableFilter<"security_activities"> | string | null actor?: StringFilter<"security_activities"> | string note?: StringFilter<"security_activities"> | string severity?: Enumsecurity_activities_severityNullableFilter<"security_activities"> | $Enums.security_activities_severity | null timestamp?: DateTimeNullableFilter<"security_activities"> | Date | string | null metadata?: JsonNullableFilter<"security_activities"> source?: StringNullableFilter<"security_activities"> | string | null }, "id"> export type security_activitiesOrderByWithAggregationInput = { id?: SortOrder type?: SortOrder ref_id?: SortOrderInput | SortOrder actor?: SortOrder note?: SortOrder severity?: SortOrderInput | SortOrder timestamp?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder source?: SortOrderInput | SortOrder _count?: security_activitiesCountOrderByAggregateInput _avg?: security_activitiesAvgOrderByAggregateInput _max?: security_activitiesMaxOrderByAggregateInput _min?: security_activitiesMinOrderByAggregateInput _sum?: security_activitiesSumOrderByAggregateInput } export type security_activitiesScalarWhereWithAggregatesInput = { AND?: security_activitiesScalarWhereWithAggregatesInput | security_activitiesScalarWhereWithAggregatesInput[] OR?: security_activitiesScalarWhereWithAggregatesInput[] NOT?: security_activitiesScalarWhereWithAggregatesInput | security_activitiesScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"security_activities"> | number type?: StringWithAggregatesFilter<"security_activities"> | string ref_id?: StringNullableWithAggregatesFilter<"security_activities"> | string | null actor?: StringWithAggregatesFilter<"security_activities"> | string note?: StringWithAggregatesFilter<"security_activities"> | string severity?: Enumsecurity_activities_severityNullableWithAggregatesFilter<"security_activities"> | $Enums.security_activities_severity | null timestamp?: DateTimeNullableWithAggregatesFilter<"security_activities"> | Date | string | null metadata?: JsonNullableWithAggregatesFilter<"security_activities"> source?: StringNullableWithAggregatesFilter<"security_activities"> | string | null } export type sequelizemetaWhereInput = { AND?: sequelizemetaWhereInput | sequelizemetaWhereInput[] OR?: sequelizemetaWhereInput[] NOT?: sequelizemetaWhereInput | sequelizemetaWhereInput[] name?: StringFilter<"sequelizemeta"> | string } export type sequelizemetaOrderByWithRelationInput = { name?: SortOrder _relevance?: sequelizemetaOrderByRelevanceInput } export type sequelizemetaWhereUniqueInput = Prisma.AtLeast<{ name?: string AND?: sequelizemetaWhereInput | sequelizemetaWhereInput[] OR?: sequelizemetaWhereInput[] NOT?: sequelizemetaWhereInput | sequelizemetaWhereInput[] }, "name" | "name"> export type sequelizemetaOrderByWithAggregationInput = { name?: SortOrder _count?: sequelizemetaCountOrderByAggregateInput _max?: sequelizemetaMaxOrderByAggregateInput _min?: sequelizemetaMinOrderByAggregateInput } export type sequelizemetaScalarWhereWithAggregatesInput = { AND?: sequelizemetaScalarWhereWithAggregatesInput | sequelizemetaScalarWhereWithAggregatesInput[] OR?: sequelizemetaScalarWhereWithAggregatesInput[] NOT?: sequelizemetaScalarWhereWithAggregatesInput | sequelizemetaScalarWhereWithAggregatesInput[] name?: StringWithAggregatesFilter<"sequelizemeta"> | string } export type team_location_historyWhereInput = { AND?: team_location_historyWhereInput | team_location_historyWhereInput[] OR?: team_location_historyWhereInput[] NOT?: team_location_historyWhereInput | team_location_historyWhereInput[] id?: IntFilter<"team_location_history"> | number member_id?: StringFilter<"team_location_history"> | string location?: StringFilter<"team_location_history"> | string lat?: DecimalNullableFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null lng?: DecimalNullableFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null activity_type?: StringNullableFilter<"team_location_history"> | string | null timestamp?: DateTimeNullableFilter<"team_location_history"> | Date | string | null team_members?: XOR } export type team_location_historyOrderByWithRelationInput = { id?: SortOrder member_id?: SortOrder location?: SortOrder lat?: SortOrderInput | SortOrder lng?: SortOrderInput | SortOrder activity_type?: SortOrderInput | SortOrder timestamp?: SortOrderInput | SortOrder team_members?: team_membersOrderByWithRelationInput _relevance?: team_location_historyOrderByRelevanceInput } export type team_location_historyWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: team_location_historyWhereInput | team_location_historyWhereInput[] OR?: team_location_historyWhereInput[] NOT?: team_location_historyWhereInput | team_location_historyWhereInput[] member_id?: StringFilter<"team_location_history"> | string location?: StringFilter<"team_location_history"> | string lat?: DecimalNullableFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null lng?: DecimalNullableFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null activity_type?: StringNullableFilter<"team_location_history"> | string | null timestamp?: DateTimeNullableFilter<"team_location_history"> | Date | string | null team_members?: XOR }, "id"> export type team_location_historyOrderByWithAggregationInput = { id?: SortOrder member_id?: SortOrder location?: SortOrder lat?: SortOrderInput | SortOrder lng?: SortOrderInput | SortOrder activity_type?: SortOrderInput | SortOrder timestamp?: SortOrderInput | SortOrder _count?: team_location_historyCountOrderByAggregateInput _avg?: team_location_historyAvgOrderByAggregateInput _max?: team_location_historyMaxOrderByAggregateInput _min?: team_location_historyMinOrderByAggregateInput _sum?: team_location_historySumOrderByAggregateInput } export type team_location_historyScalarWhereWithAggregatesInput = { AND?: team_location_historyScalarWhereWithAggregatesInput | team_location_historyScalarWhereWithAggregatesInput[] OR?: team_location_historyScalarWhereWithAggregatesInput[] NOT?: team_location_historyScalarWhereWithAggregatesInput | team_location_historyScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"team_location_history"> | number member_id?: StringWithAggregatesFilter<"team_location_history"> | string location?: StringWithAggregatesFilter<"team_location_history"> | string lat?: DecimalNullableWithAggregatesFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null lng?: DecimalNullableWithAggregatesFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null activity_type?: StringNullableWithAggregatesFilter<"team_location_history"> | string | null timestamp?: DateTimeNullableWithAggregatesFilter<"team_location_history"> | Date | string | null } export type team_membersWhereInput = { AND?: team_membersWhereInput | team_membersWhereInput[] OR?: team_membersWhereInput[] NOT?: team_membersWhereInput | team_membersWhereInput[] id?: StringFilter<"team_members"> | string nama?: StringFilter<"team_members"> | string role?: StringFilter<"team_members"> | string status?: Enumteam_members_statusNullableFilter<"team_members"> | $Enums.team_members_status | null phone?: StringFilter<"team_members"> | string email?: StringNullableFilter<"team_members"> | string | null current_location?: StringNullableFilter<"team_members"> | string | null last_update?: DateTimeNullableFilter<"team_members"> | Date | string | null shift_start?: DateTimeNullableFilter<"team_members"> | Date | string | null shift_end?: DateTimeNullableFilter<"team_members"> | Date | string | null created_at?: DateTimeNullableFilter<"team_members"> | Date | string | null updated_at?: DateTimeNullableFilter<"team_members"> | Date | string | null incidents_incidents_reported_byToteam_members?: IncidentsListRelationFilter incidents_incidents_assigned_toToteam_members?: IncidentsListRelationFilter team_location_history?: Team_location_historyListRelationFilter } export type team_membersOrderByWithRelationInput = { id?: SortOrder nama?: SortOrder role?: SortOrder status?: SortOrderInput | SortOrder phone?: SortOrder email?: SortOrderInput | SortOrder current_location?: SortOrderInput | SortOrder last_update?: SortOrderInput | SortOrder shift_start?: SortOrderInput | SortOrder shift_end?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder incidents_incidents_reported_byToteam_members?: incidentsOrderByRelationAggregateInput incidents_incidents_assigned_toToteam_members?: incidentsOrderByRelationAggregateInput team_location_history?: team_location_historyOrderByRelationAggregateInput _relevance?: team_membersOrderByRelevanceInput } export type team_membersWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: team_membersWhereInput | team_membersWhereInput[] OR?: team_membersWhereInput[] NOT?: team_membersWhereInput | team_membersWhereInput[] nama?: StringFilter<"team_members"> | string role?: StringFilter<"team_members"> | string status?: Enumteam_members_statusNullableFilter<"team_members"> | $Enums.team_members_status | null phone?: StringFilter<"team_members"> | string email?: StringNullableFilter<"team_members"> | string | null current_location?: StringNullableFilter<"team_members"> | string | null last_update?: DateTimeNullableFilter<"team_members"> | Date | string | null shift_start?: DateTimeNullableFilter<"team_members"> | Date | string | null shift_end?: DateTimeNullableFilter<"team_members"> | Date | string | null created_at?: DateTimeNullableFilter<"team_members"> | Date | string | null updated_at?: DateTimeNullableFilter<"team_members"> | Date | string | null incidents_incidents_reported_byToteam_members?: IncidentsListRelationFilter incidents_incidents_assigned_toToteam_members?: IncidentsListRelationFilter team_location_history?: Team_location_historyListRelationFilter }, "id"> export type team_membersOrderByWithAggregationInput = { id?: SortOrder nama?: SortOrder role?: SortOrder status?: SortOrderInput | SortOrder phone?: SortOrder email?: SortOrderInput | SortOrder current_location?: SortOrderInput | SortOrder last_update?: SortOrderInput | SortOrder shift_start?: SortOrderInput | SortOrder shift_end?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder _count?: team_membersCountOrderByAggregateInput _max?: team_membersMaxOrderByAggregateInput _min?: team_membersMinOrderByAggregateInput } export type team_membersScalarWhereWithAggregatesInput = { AND?: team_membersScalarWhereWithAggregatesInput | team_membersScalarWhereWithAggregatesInput[] OR?: team_membersScalarWhereWithAggregatesInput[] NOT?: team_membersScalarWhereWithAggregatesInput | team_membersScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"team_members"> | string nama?: StringWithAggregatesFilter<"team_members"> | string role?: StringWithAggregatesFilter<"team_members"> | string status?: Enumteam_members_statusNullableWithAggregatesFilter<"team_members"> | $Enums.team_members_status | null phone?: StringWithAggregatesFilter<"team_members"> | string email?: StringNullableWithAggregatesFilter<"team_members"> | string | null current_location?: StringNullableWithAggregatesFilter<"team_members"> | string | null last_update?: DateTimeNullableWithAggregatesFilter<"team_members"> | Date | string | null shift_start?: DateTimeNullableWithAggregatesFilter<"team_members"> | Date | string | null shift_end?: DateTimeNullableWithAggregatesFilter<"team_members"> | Date | string | null created_at?: DateTimeNullableWithAggregatesFilter<"team_members"> | Date | string | null updated_at?: DateTimeNullableWithAggregatesFilter<"team_members"> | Date | string | null } export type visitor_ktp_dataWhereInput = { AND?: visitor_ktp_dataWhereInput | visitor_ktp_dataWhereInput[] OR?: visitor_ktp_dataWhereInput[] NOT?: visitor_ktp_dataWhereInput | visitor_ktp_dataWhereInput[] id?: StringFilter<"visitor_ktp_data"> | string visitor_registration_id?: StringFilter<"visitor_ktp_data"> | string ktp_number?: StringNullableFilter<"visitor_ktp_data"> | string | null full_name?: StringNullableFilter<"visitor_ktp_data"> | string | null birth_date?: DateTimeNullableFilter<"visitor_ktp_data"> | Date | string | null birth_place?: StringNullableFilter<"visitor_ktp_data"> | string | null gender?: Enumvisitor_ktp_data_genderNullableFilter<"visitor_ktp_data"> | $Enums.visitor_ktp_data_gender | null address?: StringNullableFilter<"visitor_ktp_data"> | string | null rt_rw?: StringNullableFilter<"visitor_ktp_data"> | string | null kelurahan?: StringNullableFilter<"visitor_ktp_data"> | string | null kecamatan?: StringNullableFilter<"visitor_ktp_data"> | string | null religion?: StringNullableFilter<"visitor_ktp_data"> | string | null marital_status?: StringNullableFilter<"visitor_ktp_data"> | string | null occupation?: StringNullableFilter<"visitor_ktp_data"> | string | null nationality?: StringNullableFilter<"visitor_ktp_data"> | string | null ktp_photo_url?: StringNullableFilter<"visitor_ktp_data"> | string | null ktp_photo_hash?: StringNullableFilter<"visitor_ktp_data"> | string | null validation_status?: Enumvisitor_ktp_data_validation_statusFilter<"visitor_ktp_data"> | $Enums.visitor_ktp_data_validation_status validation_confidence?: DecimalNullableFilter<"visitor_ktp_data"> | Decimal | DecimalJsLike | number | string | null validation_notes?: StringNullableFilter<"visitor_ktp_data"> | string | null validated_by?: StringNullableFilter<"visitor_ktp_data"> | string | null validated_at?: DateTimeNullableFilter<"visitor_ktp_data"> | Date | string | null ocr_raw_data?: JsonNullableFilter<"visitor_ktp_data"> manual_corrections?: JsonNullableFilter<"visitor_ktp_data"> created_at?: DateTimeFilter<"visitor_ktp_data"> | Date | string updated_at?: DateTimeFilter<"visitor_ktp_data"> | Date | string ktp_validation_audit?: Ktp_validation_auditListRelationFilter } export type visitor_ktp_dataOrderByWithRelationInput = { id?: SortOrder visitor_registration_id?: SortOrder ktp_number?: SortOrderInput | SortOrder full_name?: SortOrderInput | SortOrder birth_date?: SortOrderInput | SortOrder birth_place?: SortOrderInput | SortOrder gender?: SortOrderInput | SortOrder address?: SortOrderInput | SortOrder rt_rw?: SortOrderInput | SortOrder kelurahan?: SortOrderInput | SortOrder kecamatan?: SortOrderInput | SortOrder religion?: SortOrderInput | SortOrder marital_status?: SortOrderInput | SortOrder occupation?: SortOrderInput | SortOrder nationality?: SortOrderInput | SortOrder ktp_photo_url?: SortOrderInput | SortOrder ktp_photo_hash?: SortOrderInput | SortOrder validation_status?: SortOrder validation_confidence?: SortOrderInput | SortOrder validation_notes?: SortOrderInput | SortOrder validated_by?: SortOrderInput | SortOrder validated_at?: SortOrderInput | SortOrder ocr_raw_data?: SortOrderInput | SortOrder manual_corrections?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder ktp_validation_audit?: ktp_validation_auditOrderByRelationAggregateInput _relevance?: visitor_ktp_dataOrderByRelevanceInput } export type visitor_ktp_dataWhereUniqueInput = Prisma.AtLeast<{ id?: string ktp_number?: string AND?: visitor_ktp_dataWhereInput | visitor_ktp_dataWhereInput[] OR?: visitor_ktp_dataWhereInput[] NOT?: visitor_ktp_dataWhereInput | visitor_ktp_dataWhereInput[] visitor_registration_id?: StringFilter<"visitor_ktp_data"> | string full_name?: StringNullableFilter<"visitor_ktp_data"> | string | null birth_date?: DateTimeNullableFilter<"visitor_ktp_data"> | Date | string | null birth_place?: StringNullableFilter<"visitor_ktp_data"> | string | null gender?: Enumvisitor_ktp_data_genderNullableFilter<"visitor_ktp_data"> | $Enums.visitor_ktp_data_gender | null address?: StringNullableFilter<"visitor_ktp_data"> | string | null rt_rw?: StringNullableFilter<"visitor_ktp_data"> | string | null kelurahan?: StringNullableFilter<"visitor_ktp_data"> | string | null kecamatan?: StringNullableFilter<"visitor_ktp_data"> | string | null religion?: StringNullableFilter<"visitor_ktp_data"> | string | null marital_status?: StringNullableFilter<"visitor_ktp_data"> | string | null occupation?: StringNullableFilter<"visitor_ktp_data"> | string | null nationality?: StringNullableFilter<"visitor_ktp_data"> | string | null ktp_photo_url?: StringNullableFilter<"visitor_ktp_data"> | string | null ktp_photo_hash?: StringNullableFilter<"visitor_ktp_data"> | string | null validation_status?: Enumvisitor_ktp_data_validation_statusFilter<"visitor_ktp_data"> | $Enums.visitor_ktp_data_validation_status validation_confidence?: DecimalNullableFilter<"visitor_ktp_data"> | Decimal | DecimalJsLike | number | string | null validation_notes?: StringNullableFilter<"visitor_ktp_data"> | string | null validated_by?: StringNullableFilter<"visitor_ktp_data"> | string | null validated_at?: DateTimeNullableFilter<"visitor_ktp_data"> | Date | string | null ocr_raw_data?: JsonNullableFilter<"visitor_ktp_data"> manual_corrections?: JsonNullableFilter<"visitor_ktp_data"> created_at?: DateTimeFilter<"visitor_ktp_data"> | Date | string updated_at?: DateTimeFilter<"visitor_ktp_data"> | Date | string ktp_validation_audit?: Ktp_validation_auditListRelationFilter }, "id" | "ktp_number"> export type visitor_ktp_dataOrderByWithAggregationInput = { id?: SortOrder visitor_registration_id?: SortOrder ktp_number?: SortOrderInput | SortOrder full_name?: SortOrderInput | SortOrder birth_date?: SortOrderInput | SortOrder birth_place?: SortOrderInput | SortOrder gender?: SortOrderInput | SortOrder address?: SortOrderInput | SortOrder rt_rw?: SortOrderInput | SortOrder kelurahan?: SortOrderInput | SortOrder kecamatan?: SortOrderInput | SortOrder religion?: SortOrderInput | SortOrder marital_status?: SortOrderInput | SortOrder occupation?: SortOrderInput | SortOrder nationality?: SortOrderInput | SortOrder ktp_photo_url?: SortOrderInput | SortOrder ktp_photo_hash?: SortOrderInput | SortOrder validation_status?: SortOrder validation_confidence?: SortOrderInput | SortOrder validation_notes?: SortOrderInput | SortOrder validated_by?: SortOrderInput | SortOrder validated_at?: SortOrderInput | SortOrder ocr_raw_data?: SortOrderInput | SortOrder manual_corrections?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: visitor_ktp_dataCountOrderByAggregateInput _avg?: visitor_ktp_dataAvgOrderByAggregateInput _max?: visitor_ktp_dataMaxOrderByAggregateInput _min?: visitor_ktp_dataMinOrderByAggregateInput _sum?: visitor_ktp_dataSumOrderByAggregateInput } export type visitor_ktp_dataScalarWhereWithAggregatesInput = { AND?: visitor_ktp_dataScalarWhereWithAggregatesInput | visitor_ktp_dataScalarWhereWithAggregatesInput[] OR?: visitor_ktp_dataScalarWhereWithAggregatesInput[] NOT?: visitor_ktp_dataScalarWhereWithAggregatesInput | visitor_ktp_dataScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"visitor_ktp_data"> | string visitor_registration_id?: StringWithAggregatesFilter<"visitor_ktp_data"> | string ktp_number?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null full_name?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null birth_date?: DateTimeNullableWithAggregatesFilter<"visitor_ktp_data"> | Date | string | null birth_place?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null gender?: Enumvisitor_ktp_data_genderNullableWithAggregatesFilter<"visitor_ktp_data"> | $Enums.visitor_ktp_data_gender | null address?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null rt_rw?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null kelurahan?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null kecamatan?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null religion?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null marital_status?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null occupation?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null nationality?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null ktp_photo_url?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null ktp_photo_hash?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null validation_status?: Enumvisitor_ktp_data_validation_statusWithAggregatesFilter<"visitor_ktp_data"> | $Enums.visitor_ktp_data_validation_status validation_confidence?: DecimalNullableWithAggregatesFilter<"visitor_ktp_data"> | Decimal | DecimalJsLike | number | string | null validation_notes?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null validated_by?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null validated_at?: DateTimeNullableWithAggregatesFilter<"visitor_ktp_data"> | Date | string | null ocr_raw_data?: JsonNullableWithAggregatesFilter<"visitor_ktp_data"> manual_corrections?: JsonNullableWithAggregatesFilter<"visitor_ktp_data"> created_at?: DateTimeWithAggregatesFilter<"visitor_ktp_data"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"visitor_ktp_data"> | Date | string } export type visitor_registrationsWhereInput = { AND?: visitor_registrationsWhereInput | visitor_registrationsWhereInput[] OR?: visitor_registrationsWhereInput[] NOT?: visitor_registrationsWhereInput | visitor_registrationsWhereInput[] id?: StringFilter<"visitor_registrations"> | string name?: StringFilter<"visitor_registrations"> | string phone?: StringFilter<"visitor_registrations"> | string photo_url?: StringNullableFilter<"visitor_registrations"> | string | null purpose?: StringNullableFilter<"visitor_registrations"> | string | null entry_point?: StringFilter<"visitor_registrations"> | string location_lat?: DecimalNullableFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null location_lng?: DecimalNullableFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null qr_code_id?: StringNullableFilter<"visitor_registrations"> | string | null status?: Enumvisitor_registrations_statusFilter<"visitor_registrations"> | $Enums.visitor_registrations_status approved_by?: StringNullableFilter<"visitor_registrations"> | string | null approved_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null rejected_by?: StringNullableFilter<"visitor_registrations"> | string | null rejected_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null rejection_reason?: StringNullableFilter<"visitor_registrations"> | string | null expires_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null checked_in_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null checked_out_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null metadata?: JsonNullableFilter<"visitor_registrations"> created_by?: StringNullableFilter<"visitor_registrations"> | string | null updated_by?: StringNullableFilter<"visitor_registrations"> | string | null created_at?: DateTimeFilter<"visitor_registrations"> | Date | string updated_at?: DateTimeFilter<"visitor_registrations"> | Date | string location_address?: StringNullableFilter<"visitor_registrations"> | string | null location_updated_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null qr_codes?: XOR | null } export type visitor_registrationsOrderByWithRelationInput = { id?: SortOrder name?: SortOrder phone?: SortOrder photo_url?: SortOrderInput | SortOrder purpose?: SortOrderInput | SortOrder entry_point?: SortOrder location_lat?: SortOrderInput | SortOrder location_lng?: SortOrderInput | SortOrder qr_code_id?: SortOrderInput | SortOrder status?: SortOrder approved_by?: SortOrderInput | SortOrder approved_at?: SortOrderInput | SortOrder rejected_by?: SortOrderInput | SortOrder rejected_at?: SortOrderInput | SortOrder rejection_reason?: SortOrderInput | SortOrder expires_at?: SortOrderInput | SortOrder checked_in_at?: SortOrderInput | SortOrder checked_out_at?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder location_address?: SortOrderInput | SortOrder location_updated_at?: SortOrderInput | SortOrder qr_codes?: qr_codesOrderByWithRelationInput _relevance?: visitor_registrationsOrderByRelevanceInput } export type visitor_registrationsWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: visitor_registrationsWhereInput | visitor_registrationsWhereInput[] OR?: visitor_registrationsWhereInput[] NOT?: visitor_registrationsWhereInput | visitor_registrationsWhereInput[] name?: StringFilter<"visitor_registrations"> | string phone?: StringFilter<"visitor_registrations"> | string photo_url?: StringNullableFilter<"visitor_registrations"> | string | null purpose?: StringNullableFilter<"visitor_registrations"> | string | null entry_point?: StringFilter<"visitor_registrations"> | string location_lat?: DecimalNullableFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null location_lng?: DecimalNullableFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null qr_code_id?: StringNullableFilter<"visitor_registrations"> | string | null status?: Enumvisitor_registrations_statusFilter<"visitor_registrations"> | $Enums.visitor_registrations_status approved_by?: StringNullableFilter<"visitor_registrations"> | string | null approved_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null rejected_by?: StringNullableFilter<"visitor_registrations"> | string | null rejected_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null rejection_reason?: StringNullableFilter<"visitor_registrations"> | string | null expires_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null checked_in_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null checked_out_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null metadata?: JsonNullableFilter<"visitor_registrations"> created_by?: StringNullableFilter<"visitor_registrations"> | string | null updated_by?: StringNullableFilter<"visitor_registrations"> | string | null created_at?: DateTimeFilter<"visitor_registrations"> | Date | string updated_at?: DateTimeFilter<"visitor_registrations"> | Date | string location_address?: StringNullableFilter<"visitor_registrations"> | string | null location_updated_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null qr_codes?: XOR | null }, "id"> export type visitor_registrationsOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder phone?: SortOrder photo_url?: SortOrderInput | SortOrder purpose?: SortOrderInput | SortOrder entry_point?: SortOrder location_lat?: SortOrderInput | SortOrder location_lng?: SortOrderInput | SortOrder qr_code_id?: SortOrderInput | SortOrder status?: SortOrder approved_by?: SortOrderInput | SortOrder approved_at?: SortOrderInput | SortOrder rejected_by?: SortOrderInput | SortOrder rejected_at?: SortOrderInput | SortOrder rejection_reason?: SortOrderInput | SortOrder expires_at?: SortOrderInput | SortOrder checked_in_at?: SortOrderInput | SortOrder checked_out_at?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder created_by?: SortOrderInput | SortOrder updated_by?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder location_address?: SortOrderInput | SortOrder location_updated_at?: SortOrderInput | SortOrder _count?: visitor_registrationsCountOrderByAggregateInput _avg?: visitor_registrationsAvgOrderByAggregateInput _max?: visitor_registrationsMaxOrderByAggregateInput _min?: visitor_registrationsMinOrderByAggregateInput _sum?: visitor_registrationsSumOrderByAggregateInput } export type visitor_registrationsScalarWhereWithAggregatesInput = { AND?: visitor_registrationsScalarWhereWithAggregatesInput | visitor_registrationsScalarWhereWithAggregatesInput[] OR?: visitor_registrationsScalarWhereWithAggregatesInput[] NOT?: visitor_registrationsScalarWhereWithAggregatesInput | visitor_registrationsScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"visitor_registrations"> | string name?: StringWithAggregatesFilter<"visitor_registrations"> | string phone?: StringWithAggregatesFilter<"visitor_registrations"> | string photo_url?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null purpose?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null entry_point?: StringWithAggregatesFilter<"visitor_registrations"> | string location_lat?: DecimalNullableWithAggregatesFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null location_lng?: DecimalNullableWithAggregatesFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null qr_code_id?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null status?: Enumvisitor_registrations_statusWithAggregatesFilter<"visitor_registrations"> | $Enums.visitor_registrations_status approved_by?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null approved_at?: DateTimeNullableWithAggregatesFilter<"visitor_registrations"> | Date | string | null rejected_by?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null rejected_at?: DateTimeNullableWithAggregatesFilter<"visitor_registrations"> | Date | string | null rejection_reason?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null expires_at?: DateTimeNullableWithAggregatesFilter<"visitor_registrations"> | Date | string | null checked_in_at?: DateTimeNullableWithAggregatesFilter<"visitor_registrations"> | Date | string | null checked_out_at?: DateTimeNullableWithAggregatesFilter<"visitor_registrations"> | Date | string | null metadata?: JsonNullableWithAggregatesFilter<"visitor_registrations"> created_by?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null updated_by?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null created_at?: DateTimeWithAggregatesFilter<"visitor_registrations"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"visitor_registrations"> | Date | string location_address?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null location_updated_at?: DateTimeNullableWithAggregatesFilter<"visitor_registrations"> | Date | string | null } export type alert_recipientsCreateInput = { id?: string recipient_type: string recipient_id?: string | null recipient_name?: string | null recipient_contact?: NullableJsonNullValueInput | InputJsonValue channel: string delivery_status?: string | null sent_at?: Date | string | null delivered_at?: Date | string | null acknowledged_at?: Date | string | null failed_at?: Date | string | null delivery_attempts?: number | null last_attempt_at?: Date | string | null failure_reason?: string | null delivery_metadata?: NullableJsonNullValueInput | InputJsonValue response_data?: NullableJsonNullValueInput | InputJsonValue response_time?: number | null created_at?: Date | string | null updated_at?: Date | string | null alerts: alertsCreateNestedOneWithoutAlert_recipientsInput } export type alert_recipientsUncheckedCreateInput = { id?: string alert_id: string recipient_type: string recipient_id?: string | null recipient_name?: string | null recipient_contact?: NullableJsonNullValueInput | InputJsonValue channel: string delivery_status?: string | null sent_at?: Date | string | null delivered_at?: Date | string | null acknowledged_at?: Date | string | null failed_at?: Date | string | null delivery_attempts?: number | null last_attempt_at?: Date | string | null failure_reason?: string | null delivery_metadata?: NullableJsonNullValueInput | InputJsonValue response_data?: NullableJsonNullValueInput | InputJsonValue response_time?: number | null created_at?: Date | string | null updated_at?: Date | string | null } export type alert_recipientsUpdateInput = { id?: StringFieldUpdateOperationsInput | string recipient_type?: StringFieldUpdateOperationsInput | string recipient_id?: NullableStringFieldUpdateOperationsInput | string | null recipient_name?: NullableStringFieldUpdateOperationsInput | string | null recipient_contact?: NullableJsonNullValueInput | InputJsonValue channel?: StringFieldUpdateOperationsInput | string delivery_status?: NullableStringFieldUpdateOperationsInput | string | null sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null delivered_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null failed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null delivery_attempts?: NullableIntFieldUpdateOperationsInput | number | null last_attempt_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null failure_reason?: NullableStringFieldUpdateOperationsInput | string | null delivery_metadata?: NullableJsonNullValueInput | InputJsonValue response_data?: NullableJsonNullValueInput | InputJsonValue response_time?: NullableIntFieldUpdateOperationsInput | number | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null alerts?: alertsUpdateOneRequiredWithoutAlert_recipientsNestedInput } export type alert_recipientsUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string alert_id?: StringFieldUpdateOperationsInput | string recipient_type?: StringFieldUpdateOperationsInput | string recipient_id?: NullableStringFieldUpdateOperationsInput | string | null recipient_name?: NullableStringFieldUpdateOperationsInput | string | null recipient_contact?: NullableJsonNullValueInput | InputJsonValue channel?: StringFieldUpdateOperationsInput | string delivery_status?: NullableStringFieldUpdateOperationsInput | string | null sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null delivered_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null failed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null delivery_attempts?: NullableIntFieldUpdateOperationsInput | number | null last_attempt_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null failure_reason?: NullableStringFieldUpdateOperationsInput | string | null delivery_metadata?: NullableJsonNullValueInput | InputJsonValue response_data?: NullableJsonNullValueInput | InputJsonValue response_time?: NullableIntFieldUpdateOperationsInput | number | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type alert_recipientsCreateManyInput = { id?: string alert_id: string recipient_type: string recipient_id?: string | null recipient_name?: string | null recipient_contact?: NullableJsonNullValueInput | InputJsonValue channel: string delivery_status?: string | null sent_at?: Date | string | null delivered_at?: Date | string | null acknowledged_at?: Date | string | null failed_at?: Date | string | null delivery_attempts?: number | null last_attempt_at?: Date | string | null failure_reason?: string | null delivery_metadata?: NullableJsonNullValueInput | InputJsonValue response_data?: NullableJsonNullValueInput | InputJsonValue response_time?: number | null created_at?: Date | string | null updated_at?: Date | string | null } export type alert_recipientsUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string recipient_type?: StringFieldUpdateOperationsInput | string recipient_id?: NullableStringFieldUpdateOperationsInput | string | null recipient_name?: NullableStringFieldUpdateOperationsInput | string | null recipient_contact?: NullableJsonNullValueInput | InputJsonValue channel?: StringFieldUpdateOperationsInput | string delivery_status?: NullableStringFieldUpdateOperationsInput | string | null sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null delivered_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null failed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null delivery_attempts?: NullableIntFieldUpdateOperationsInput | number | null last_attempt_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null failure_reason?: NullableStringFieldUpdateOperationsInput | string | null delivery_metadata?: NullableJsonNullValueInput | InputJsonValue response_data?: NullableJsonNullValueInput | InputJsonValue response_time?: NullableIntFieldUpdateOperationsInput | number | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type alert_recipientsUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string alert_id?: StringFieldUpdateOperationsInput | string recipient_type?: StringFieldUpdateOperationsInput | string recipient_id?: NullableStringFieldUpdateOperationsInput | string | null recipient_name?: NullableStringFieldUpdateOperationsInput | string | null recipient_contact?: NullableJsonNullValueInput | InputJsonValue channel?: StringFieldUpdateOperationsInput | string delivery_status?: NullableStringFieldUpdateOperationsInput | string | null sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null delivered_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null failed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null delivery_attempts?: NullableIntFieldUpdateOperationsInput | number | null last_attempt_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null failure_reason?: NullableStringFieldUpdateOperationsInput | string | null delivery_metadata?: NullableJsonNullValueInput | InputJsonValue response_data?: NullableJsonNullValueInput | InputJsonValue response_time?: NullableIntFieldUpdateOperationsInput | number | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type alertsCreateInput = { id?: string alert_id: string title: string message: string type: string category?: string | null severity?: string priority?: string status?: string is_emergency?: boolean | null is_broadcast?: boolean | null is_recurring?: boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: Date | string | null starts_at?: Date | string | null ends_at?: Date | string | null expires_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: string | null source_id?: string | null context?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: number | null delivered_count?: number | null acknowledged_count?: number | null failed_count?: number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null alert_recipients?: alert_recipientsCreateNestedManyWithoutAlertsInput incidents?: incidentsCreateNestedOneWithoutAlertsInput } export type alertsUncheckedCreateInput = { id?: string alert_id: string title: string message: string type: string category?: string | null severity?: string priority?: string status?: string is_emergency?: boolean | null is_broadcast?: boolean | null is_recurring?: boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: Date | string | null starts_at?: Date | string | null ends_at?: Date | string | null expires_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: string | null source_id?: string | null context?: NullableJsonNullValueInput | InputJsonValue incident_id?: string | null camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: number | null delivered_count?: number | null acknowledged_count?: number | null failed_count?: number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null alert_recipients?: alert_recipientsUncheckedCreateNestedManyWithoutAlertsInput } export type alertsUpdateInput = { id?: StringFieldUpdateOperationsInput | string alert_id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string message?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string category?: NullableStringFieldUpdateOperationsInput | string | null severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: NullableStringFieldUpdateOperationsInput | string | null source_id?: NullableStringFieldUpdateOperationsInput | string | null context?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: NullableIntFieldUpdateOperationsInput | number | null delivered_count?: NullableIntFieldUpdateOperationsInput | number | null acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null failed_count?: NullableIntFieldUpdateOperationsInput | number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null alert_recipients?: alert_recipientsUpdateManyWithoutAlertsNestedInput incidents?: incidentsUpdateOneWithoutAlertsNestedInput } export type alertsUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string alert_id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string message?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string category?: NullableStringFieldUpdateOperationsInput | string | null severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: NullableStringFieldUpdateOperationsInput | string | null source_id?: NullableStringFieldUpdateOperationsInput | string | null context?: NullableJsonNullValueInput | InputJsonValue incident_id?: NullableStringFieldUpdateOperationsInput | string | null camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: NullableIntFieldUpdateOperationsInput | number | null delivered_count?: NullableIntFieldUpdateOperationsInput | number | null acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null failed_count?: NullableIntFieldUpdateOperationsInput | number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null alert_recipients?: alert_recipientsUncheckedUpdateManyWithoutAlertsNestedInput } export type alertsCreateManyInput = { id?: string alert_id: string title: string message: string type: string category?: string | null severity?: string priority?: string status?: string is_emergency?: boolean | null is_broadcast?: boolean | null is_recurring?: boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: Date | string | null starts_at?: Date | string | null ends_at?: Date | string | null expires_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: string | null source_id?: string | null context?: NullableJsonNullValueInput | InputJsonValue incident_id?: string | null camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: number | null delivered_count?: number | null acknowledged_count?: number | null failed_count?: number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null } export type alertsUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string alert_id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string message?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string category?: NullableStringFieldUpdateOperationsInput | string | null severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: NullableStringFieldUpdateOperationsInput | string | null source_id?: NullableStringFieldUpdateOperationsInput | string | null context?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: NullableIntFieldUpdateOperationsInput | number | null delivered_count?: NullableIntFieldUpdateOperationsInput | number | null acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null failed_count?: NullableIntFieldUpdateOperationsInput | number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null } export type alertsUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string alert_id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string message?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string category?: NullableStringFieldUpdateOperationsInput | string | null severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: NullableStringFieldUpdateOperationsInput | string | null source_id?: NullableStringFieldUpdateOperationsInput | string | null context?: NullableJsonNullValueInput | InputJsonValue incident_id?: NullableStringFieldUpdateOperationsInput | string | null camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: NullableIntFieldUpdateOperationsInput | number | null delivered_count?: NullableIntFieldUpdateOperationsInput | number | null acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null failed_count?: NullableIntFieldUpdateOperationsInput | number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null } export type basemap_configsCreateInput = { id?: string name: string description?: string | null svg_data: string calibration: JsonNullValueInput | InputJsonValue dimensions: JsonNullValueInput | InputJsonValue is_active?: boolean | null is_default?: boolean | null version?: number | null settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue file_size?: number | null checksum?: string | null created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null } export type basemap_configsUncheckedCreateInput = { id?: string name: string description?: string | null svg_data: string calibration: JsonNullValueInput | InputJsonValue dimensions: JsonNullValueInput | InputJsonValue is_active?: boolean | null is_default?: boolean | null version?: number | null settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue file_size?: number | null checksum?: string | null created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null } export type basemap_configsUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null svg_data?: StringFieldUpdateOperationsInput | string calibration?: JsonNullValueInput | InputJsonValue dimensions?: JsonNullValueInput | InputJsonValue is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null is_default?: NullableBoolFieldUpdateOperationsInput | boolean | null version?: NullableIntFieldUpdateOperationsInput | number | null settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue file_size?: NullableIntFieldUpdateOperationsInput | number | null checksum?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null } export type basemap_configsUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null svg_data?: StringFieldUpdateOperationsInput | string calibration?: JsonNullValueInput | InputJsonValue dimensions?: JsonNullValueInput | InputJsonValue is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null is_default?: NullableBoolFieldUpdateOperationsInput | boolean | null version?: NullableIntFieldUpdateOperationsInput | number | null settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue file_size?: NullableIntFieldUpdateOperationsInput | number | null checksum?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null } export type basemap_configsCreateManyInput = { id?: string name: string description?: string | null svg_data: string calibration: JsonNullValueInput | InputJsonValue dimensions: JsonNullValueInput | InputJsonValue is_active?: boolean | null is_default?: boolean | null version?: number | null settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue file_size?: number | null checksum?: string | null created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null } export type basemap_configsUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null svg_data?: StringFieldUpdateOperationsInput | string calibration?: JsonNullValueInput | InputJsonValue dimensions?: JsonNullValueInput | InputJsonValue is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null is_default?: NullableBoolFieldUpdateOperationsInput | boolean | null version?: NullableIntFieldUpdateOperationsInput | number | null settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue file_size?: NullableIntFieldUpdateOperationsInput | number | null checksum?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null } export type basemap_configsUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null svg_data?: StringFieldUpdateOperationsInput | string calibration?: JsonNullValueInput | InputJsonValue dimensions?: JsonNullValueInput | InputJsonValue is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null is_default?: NullableBoolFieldUpdateOperationsInput | boolean | null version?: NullableIntFieldUpdateOperationsInput | number | null settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue file_size?: NullableIntFieldUpdateOperationsInput | number | null checksum?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null } export type camera_health_logCreateInput = { status: string response_time: number health_score: number error_message?: string | null stream_accessible?: boolean | null timestamp?: Date | string | null cameras: camerasCreateNestedOneWithoutCamera_health_logInput } export type camera_health_logUncheckedCreateInput = { id?: number camera_id: string status: string response_time: number health_score: number error_message?: string | null stream_accessible?: boolean | null timestamp?: Date | string | null } export type camera_health_logUpdateInput = { status?: StringFieldUpdateOperationsInput | string response_time?: IntFieldUpdateOperationsInput | number health_score?: IntFieldUpdateOperationsInput | number error_message?: NullableStringFieldUpdateOperationsInput | string | null stream_accessible?: NullableBoolFieldUpdateOperationsInput | boolean | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cameras?: camerasUpdateOneRequiredWithoutCamera_health_logNestedInput } export type camera_health_logUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number camera_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string response_time?: IntFieldUpdateOperationsInput | number health_score?: IntFieldUpdateOperationsInput | number error_message?: NullableStringFieldUpdateOperationsInput | string | null stream_accessible?: NullableBoolFieldUpdateOperationsInput | boolean | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type camera_health_logCreateManyInput = { id?: number camera_id: string status: string response_time: number health_score: number error_message?: string | null stream_accessible?: boolean | null timestamp?: Date | string | null } export type camera_health_logUpdateManyMutationInput = { status?: StringFieldUpdateOperationsInput | string response_time?: IntFieldUpdateOperationsInput | number health_score?: IntFieldUpdateOperationsInput | number error_message?: NullableStringFieldUpdateOperationsInput | string | null stream_accessible?: NullableBoolFieldUpdateOperationsInput | boolean | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type camera_health_logUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number camera_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string response_time?: IntFieldUpdateOperationsInput | number health_score?: IntFieldUpdateOperationsInput | number error_message?: NullableStringFieldUpdateOperationsInput | string | null stream_accessible?: NullableBoolFieldUpdateOperationsInput | boolean | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type camerasCreateInput = { id: string label: string area: string lat: Decimal | DecimalJsLike | number | string lng: Decimal | DecimalJsLike | number | string stream_url: string status?: $Enums.cameras_status | null last_heartbeat?: Date | string | null response_time?: number | null health_score?: number | null error_message?: string | null created_at?: Date | string | null updated_at?: Date | string | null camera_health_log?: camera_health_logCreateNestedManyWithoutCamerasInput } export type camerasUncheckedCreateInput = { id: string label: string area: string lat: Decimal | DecimalJsLike | number | string lng: Decimal | DecimalJsLike | number | string stream_url: string status?: $Enums.cameras_status | null last_heartbeat?: Date | string | null response_time?: number | null health_score?: number | null error_message?: string | null created_at?: Date | string | null updated_at?: Date | string | null camera_health_log?: camera_health_logUncheckedCreateNestedManyWithoutCamerasInput } export type camerasUpdateInput = { id?: StringFieldUpdateOperationsInput | string label?: StringFieldUpdateOperationsInput | string area?: StringFieldUpdateOperationsInput | string lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string stream_url?: StringFieldUpdateOperationsInput | string status?: NullableEnumcameras_statusFieldUpdateOperationsInput | $Enums.cameras_status | null last_heartbeat?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null response_time?: NullableIntFieldUpdateOperationsInput | number | null health_score?: NullableIntFieldUpdateOperationsInput | number | null error_message?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null camera_health_log?: camera_health_logUpdateManyWithoutCamerasNestedInput } export type camerasUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string label?: StringFieldUpdateOperationsInput | string area?: StringFieldUpdateOperationsInput | string lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string stream_url?: StringFieldUpdateOperationsInput | string status?: NullableEnumcameras_statusFieldUpdateOperationsInput | $Enums.cameras_status | null last_heartbeat?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null response_time?: NullableIntFieldUpdateOperationsInput | number | null health_score?: NullableIntFieldUpdateOperationsInput | number | null error_message?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null camera_health_log?: camera_health_logUncheckedUpdateManyWithoutCamerasNestedInput } export type camerasCreateManyInput = { id: string label: string area: string lat: Decimal | DecimalJsLike | number | string lng: Decimal | DecimalJsLike | number | string stream_url: string status?: $Enums.cameras_status | null last_heartbeat?: Date | string | null response_time?: number | null health_score?: number | null error_message?: string | null created_at?: Date | string | null updated_at?: Date | string | null } export type camerasUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string label?: StringFieldUpdateOperationsInput | string area?: StringFieldUpdateOperationsInput | string lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string stream_url?: StringFieldUpdateOperationsInput | string status?: NullableEnumcameras_statusFieldUpdateOperationsInput | $Enums.cameras_status | null last_heartbeat?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null response_time?: NullableIntFieldUpdateOperationsInput | number | null health_score?: NullableIntFieldUpdateOperationsInput | number | null error_message?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type camerasUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string label?: StringFieldUpdateOperationsInput | string area?: StringFieldUpdateOperationsInput | string lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string stream_url?: StringFieldUpdateOperationsInput | string status?: NullableEnumcameras_statusFieldUpdateOperationsInput | $Enums.cameras_status | null last_heartbeat?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null response_time?: NullableIntFieldUpdateOperationsInput | number | null health_score?: NullableIntFieldUpdateOperationsInput | number | null error_message?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type feature_flagsCreateInput = { id?: string key: string name: string description?: string | null is_enabled?: boolean | null type?: string value?: NullableJsonNullValueInput | InputJsonValue default_value?: NullableJsonNullValueInput | InputJsonValue environment?: string | null category?: string | null tags?: NullableJsonNullValueInput | InputJsonValue conditions?: NullableJsonNullValueInput | InputJsonValue rollout_percentage?: Decimal | DecimalJsLike | number | string | null user_segments?: NullableJsonNullValueInput | InputJsonValue is_archived?: boolean | null is_permanent?: boolean | null expires_at?: Date | string | null last_evaluated_at?: Date | string | null evaluation_count?: bigint | number | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null enabled_at?: Date | string | null disabled_at?: Date | string | null } export type feature_flagsUncheckedCreateInput = { id?: string key: string name: string description?: string | null is_enabled?: boolean | null type?: string value?: NullableJsonNullValueInput | InputJsonValue default_value?: NullableJsonNullValueInput | InputJsonValue environment?: string | null category?: string | null tags?: NullableJsonNullValueInput | InputJsonValue conditions?: NullableJsonNullValueInput | InputJsonValue rollout_percentage?: Decimal | DecimalJsLike | number | string | null user_segments?: NullableJsonNullValueInput | InputJsonValue is_archived?: boolean | null is_permanent?: boolean | null expires_at?: Date | string | null last_evaluated_at?: Date | string | null evaluation_count?: bigint | number | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null enabled_at?: Date | string | null disabled_at?: Date | string | null } export type feature_flagsUpdateInput = { id?: StringFieldUpdateOperationsInput | string key?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null is_enabled?: NullableBoolFieldUpdateOperationsInput | boolean | null type?: StringFieldUpdateOperationsInput | string value?: NullableJsonNullValueInput | InputJsonValue default_value?: NullableJsonNullValueInput | InputJsonValue environment?: NullableStringFieldUpdateOperationsInput | string | null category?: NullableStringFieldUpdateOperationsInput | string | null tags?: NullableJsonNullValueInput | InputJsonValue conditions?: NullableJsonNullValueInput | InputJsonValue rollout_percentage?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null user_segments?: NullableJsonNullValueInput | InputJsonValue is_archived?: NullableBoolFieldUpdateOperationsInput | boolean | null is_permanent?: NullableBoolFieldUpdateOperationsInput | boolean | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_evaluated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null evaluation_count?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null enabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null disabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type feature_flagsUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string key?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null is_enabled?: NullableBoolFieldUpdateOperationsInput | boolean | null type?: StringFieldUpdateOperationsInput | string value?: NullableJsonNullValueInput | InputJsonValue default_value?: NullableJsonNullValueInput | InputJsonValue environment?: NullableStringFieldUpdateOperationsInput | string | null category?: NullableStringFieldUpdateOperationsInput | string | null tags?: NullableJsonNullValueInput | InputJsonValue conditions?: NullableJsonNullValueInput | InputJsonValue rollout_percentage?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null user_segments?: NullableJsonNullValueInput | InputJsonValue is_archived?: NullableBoolFieldUpdateOperationsInput | boolean | null is_permanent?: NullableBoolFieldUpdateOperationsInput | boolean | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_evaluated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null evaluation_count?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null enabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null disabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type feature_flagsCreateManyInput = { id?: string key: string name: string description?: string | null is_enabled?: boolean | null type?: string value?: NullableJsonNullValueInput | InputJsonValue default_value?: NullableJsonNullValueInput | InputJsonValue environment?: string | null category?: string | null tags?: NullableJsonNullValueInput | InputJsonValue conditions?: NullableJsonNullValueInput | InputJsonValue rollout_percentage?: Decimal | DecimalJsLike | number | string | null user_segments?: NullableJsonNullValueInput | InputJsonValue is_archived?: boolean | null is_permanent?: boolean | null expires_at?: Date | string | null last_evaluated_at?: Date | string | null evaluation_count?: bigint | number | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null enabled_at?: Date | string | null disabled_at?: Date | string | null } export type feature_flagsUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string key?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null is_enabled?: NullableBoolFieldUpdateOperationsInput | boolean | null type?: StringFieldUpdateOperationsInput | string value?: NullableJsonNullValueInput | InputJsonValue default_value?: NullableJsonNullValueInput | InputJsonValue environment?: NullableStringFieldUpdateOperationsInput | string | null category?: NullableStringFieldUpdateOperationsInput | string | null tags?: NullableJsonNullValueInput | InputJsonValue conditions?: NullableJsonNullValueInput | InputJsonValue rollout_percentage?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null user_segments?: NullableJsonNullValueInput | InputJsonValue is_archived?: NullableBoolFieldUpdateOperationsInput | boolean | null is_permanent?: NullableBoolFieldUpdateOperationsInput | boolean | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_evaluated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null evaluation_count?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null enabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null disabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type feature_flagsUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string key?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null is_enabled?: NullableBoolFieldUpdateOperationsInput | boolean | null type?: StringFieldUpdateOperationsInput | string value?: NullableJsonNullValueInput | InputJsonValue default_value?: NullableJsonNullValueInput | InputJsonValue environment?: NullableStringFieldUpdateOperationsInput | string | null category?: NullableStringFieldUpdateOperationsInput | string | null tags?: NullableJsonNullValueInput | InputJsonValue conditions?: NullableJsonNullValueInput | InputJsonValue rollout_percentage?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null user_segments?: NullableJsonNullValueInput | InputJsonValue is_archived?: NullableBoolFieldUpdateOperationsInput | boolean | null is_permanent?: NullableBoolFieldUpdateOperationsInput | boolean | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_evaluated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null evaluation_count?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null enabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null disabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type geofence_breachesCreateInput = { id?: string team_member_id?: string | null breach_type: string location: JsonNullValueInput | InputJsonValue severity?: string | null is_resolved?: boolean | null resolved_at?: Date | string | null resolved_by?: string | null notes?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null geofences: geofencesCreateNestedOneWithoutGeofence_breachesInput } export type geofence_breachesUncheckedCreateInput = { id?: string geofence_id: string team_member_id?: string | null breach_type: string location: JsonNullValueInput | InputJsonValue severity?: string | null is_resolved?: boolean | null resolved_at?: Date | string | null resolved_by?: string | null notes?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null } export type geofence_breachesUpdateInput = { id?: StringFieldUpdateOperationsInput | string team_member_id?: NullableStringFieldUpdateOperationsInput | string | null breach_type?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue severity?: NullableStringFieldUpdateOperationsInput | string | null is_resolved?: NullableBoolFieldUpdateOperationsInput | boolean | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_by?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null geofences?: geofencesUpdateOneRequiredWithoutGeofence_breachesNestedInput } export type geofence_breachesUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string geofence_id?: StringFieldUpdateOperationsInput | string team_member_id?: NullableStringFieldUpdateOperationsInput | string | null breach_type?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue severity?: NullableStringFieldUpdateOperationsInput | string | null is_resolved?: NullableBoolFieldUpdateOperationsInput | boolean | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_by?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type geofence_breachesCreateManyInput = { id?: string geofence_id: string team_member_id?: string | null breach_type: string location: JsonNullValueInput | InputJsonValue severity?: string | null is_resolved?: boolean | null resolved_at?: Date | string | null resolved_by?: string | null notes?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null } export type geofence_breachesUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string team_member_id?: NullableStringFieldUpdateOperationsInput | string | null breach_type?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue severity?: NullableStringFieldUpdateOperationsInput | string | null is_resolved?: NullableBoolFieldUpdateOperationsInput | boolean | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_by?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type geofence_breachesUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string geofence_id?: StringFieldUpdateOperationsInput | string team_member_id?: NullableStringFieldUpdateOperationsInput | string | null breach_type?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue severity?: NullableStringFieldUpdateOperationsInput | string | null is_resolved?: NullableBoolFieldUpdateOperationsInput | boolean | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_by?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type geofencesCreateInput = { id?: string name: string type: string coordinates: JsonNullValueInput | InputJsonValue description?: string | null is_active?: boolean | null priority?: string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null geofence_breaches?: geofence_breachesCreateNestedManyWithoutGeofencesInput incidents?: incidentsCreateNestedManyWithoutGeofencesInput map_pins?: map_pinsCreateNestedManyWithoutGeofencesInput } export type geofencesUncheckedCreateInput = { id?: string name: string type: string coordinates: JsonNullValueInput | InputJsonValue description?: string | null is_active?: boolean | null priority?: string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null geofence_breaches?: geofence_breachesUncheckedCreateNestedManyWithoutGeofencesInput incidents?: incidentsUncheckedCreateNestedManyWithoutGeofencesInput map_pins?: map_pinsUncheckedCreateNestedManyWithoutGeofencesInput } export type geofencesUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: JsonNullValueInput | InputJsonValue description?: NullableStringFieldUpdateOperationsInput | string | null is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null priority?: NullableStringFieldUpdateOperationsInput | string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null geofence_breaches?: geofence_breachesUpdateManyWithoutGeofencesNestedInput incidents?: incidentsUpdateManyWithoutGeofencesNestedInput map_pins?: map_pinsUpdateManyWithoutGeofencesNestedInput } export type geofencesUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: JsonNullValueInput | InputJsonValue description?: NullableStringFieldUpdateOperationsInput | string | null is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null priority?: NullableStringFieldUpdateOperationsInput | string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null geofence_breaches?: geofence_breachesUncheckedUpdateManyWithoutGeofencesNestedInput incidents?: incidentsUncheckedUpdateManyWithoutGeofencesNestedInput map_pins?: map_pinsUncheckedUpdateManyWithoutGeofencesNestedInput } export type geofencesCreateManyInput = { id?: string name: string type: string coordinates: JsonNullValueInput | InputJsonValue description?: string | null is_active?: boolean | null priority?: string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null } export type geofencesUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: JsonNullValueInput | InputJsonValue description?: NullableStringFieldUpdateOperationsInput | string | null is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null priority?: NullableStringFieldUpdateOperationsInput | string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null } export type geofencesUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: JsonNullValueInput | InputJsonValue description?: NullableStringFieldUpdateOperationsInput | string | null is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null priority?: NullableStringFieldUpdateOperationsInput | string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null } export type housesCreateInput = { id?: string house_number: string block: string street: string owner_name: string owner_phone: string status?: $Enums.houses_status | null perumahan_id?: string | null created_at?: Date | string | null updated_at?: Date | string | null } export type housesUncheckedCreateInput = { id?: string house_number: string block: string street: string owner_name: string owner_phone: string status?: $Enums.houses_status | null perumahan_id?: string | null created_at?: Date | string | null updated_at?: Date | string | null } export type housesUpdateInput = { id?: StringFieldUpdateOperationsInput | string house_number?: StringFieldUpdateOperationsInput | string block?: StringFieldUpdateOperationsInput | string street?: StringFieldUpdateOperationsInput | string owner_name?: StringFieldUpdateOperationsInput | string owner_phone?: StringFieldUpdateOperationsInput | string status?: NullableEnumhouses_statusFieldUpdateOperationsInput | $Enums.houses_status | null perumahan_id?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type housesUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string house_number?: StringFieldUpdateOperationsInput | string block?: StringFieldUpdateOperationsInput | string street?: StringFieldUpdateOperationsInput | string owner_name?: StringFieldUpdateOperationsInput | string owner_phone?: StringFieldUpdateOperationsInput | string status?: NullableEnumhouses_statusFieldUpdateOperationsInput | $Enums.houses_status | null perumahan_id?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type housesCreateManyInput = { id?: string house_number: string block: string street: string owner_name: string owner_phone: string status?: $Enums.houses_status | null perumahan_id?: string | null created_at?: Date | string | null updated_at?: Date | string | null } export type housesUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string house_number?: StringFieldUpdateOperationsInput | string block?: StringFieldUpdateOperationsInput | string street?: StringFieldUpdateOperationsInput | string owner_name?: StringFieldUpdateOperationsInput | string owner_phone?: StringFieldUpdateOperationsInput | string status?: NullableEnumhouses_statusFieldUpdateOperationsInput | $Enums.houses_status | null perumahan_id?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type housesUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string house_number?: StringFieldUpdateOperationsInput | string block?: StringFieldUpdateOperationsInput | string street?: StringFieldUpdateOperationsInput | string owner_name?: StringFieldUpdateOperationsInput | string owner_phone?: StringFieldUpdateOperationsInput | string status?: NullableEnumhouses_statusFieldUpdateOperationsInput | $Enums.houses_status | null perumahan_id?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type incident_updatesCreateInput = { id?: string update_type: string title?: string | null description?: string | null old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue changed_fields?: NullableJsonNullValueInput | InputJsonValue is_internal?: boolean | null is_system_generated?: boolean | null attachments?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null created_by: string notifications_sent?: NullableJsonNullValueInput | InputJsonValue notification_status?: string | null incidents: incidentsCreateNestedOneWithoutIncident_updatesInput } export type incident_updatesUncheckedCreateInput = { id?: string incident_id: string update_type: string title?: string | null description?: string | null old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue changed_fields?: NullableJsonNullValueInput | InputJsonValue is_internal?: boolean | null is_system_generated?: boolean | null attachments?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null created_by: string notifications_sent?: NullableJsonNullValueInput | InputJsonValue notification_status?: string | null } export type incident_updatesUpdateInput = { id?: StringFieldUpdateOperationsInput | string update_type?: StringFieldUpdateOperationsInput | string title?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue changed_fields?: NullableJsonNullValueInput | InputJsonValue is_internal?: NullableBoolFieldUpdateOperationsInput | boolean | null is_system_generated?: NullableBoolFieldUpdateOperationsInput | boolean | null attachments?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: StringFieldUpdateOperationsInput | string notifications_sent?: NullableJsonNullValueInput | InputJsonValue notification_status?: NullableStringFieldUpdateOperationsInput | string | null incidents?: incidentsUpdateOneRequiredWithoutIncident_updatesNestedInput } export type incident_updatesUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string incident_id?: StringFieldUpdateOperationsInput | string update_type?: StringFieldUpdateOperationsInput | string title?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue changed_fields?: NullableJsonNullValueInput | InputJsonValue is_internal?: NullableBoolFieldUpdateOperationsInput | boolean | null is_system_generated?: NullableBoolFieldUpdateOperationsInput | boolean | null attachments?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: StringFieldUpdateOperationsInput | string notifications_sent?: NullableJsonNullValueInput | InputJsonValue notification_status?: NullableStringFieldUpdateOperationsInput | string | null } export type incident_updatesCreateManyInput = { id?: string incident_id: string update_type: string title?: string | null description?: string | null old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue changed_fields?: NullableJsonNullValueInput | InputJsonValue is_internal?: boolean | null is_system_generated?: boolean | null attachments?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null created_by: string notifications_sent?: NullableJsonNullValueInput | InputJsonValue notification_status?: string | null } export type incident_updatesUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string update_type?: StringFieldUpdateOperationsInput | string title?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue changed_fields?: NullableJsonNullValueInput | InputJsonValue is_internal?: NullableBoolFieldUpdateOperationsInput | boolean | null is_system_generated?: NullableBoolFieldUpdateOperationsInput | boolean | null attachments?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: StringFieldUpdateOperationsInput | string notifications_sent?: NullableJsonNullValueInput | InputJsonValue notification_status?: NullableStringFieldUpdateOperationsInput | string | null } export type incident_updatesUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string incident_id?: StringFieldUpdateOperationsInput | string update_type?: StringFieldUpdateOperationsInput | string title?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue changed_fields?: NullableJsonNullValueInput | InputJsonValue is_internal?: NullableBoolFieldUpdateOperationsInput | boolean | null is_system_generated?: NullableBoolFieldUpdateOperationsInput | boolean | null attachments?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: StringFieldUpdateOperationsInput | string notifications_sent?: NullableJsonNullValueInput | InputJsonValue notification_status?: NullableStringFieldUpdateOperationsInput | string | null } export type incidentsCreateInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null alerts?: alertsCreateNestedManyWithoutIncidentsInput incident_updates?: incident_updatesCreateNestedManyWithoutIncidentsInput team_members_incidents_reported_byToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_reported_byToteam_membersInput team_members_incidents_assigned_toToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_assigned_toToteam_membersInput geofences?: geofencesCreateNestedOneWithoutIncidentsInput } export type incidentsUncheckedCreateInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reported_by?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_to?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: string | null alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null alerts?: alertsUncheckedCreateNestedManyWithoutIncidentsInput incident_updates?: incident_updatesUncheckedCreateNestedManyWithoutIncidentsInput } export type incidentsUpdateInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null alerts?: alertsUpdateManyWithoutIncidentsNestedInput incident_updates?: incident_updatesUpdateManyWithoutIncidentsNestedInput team_members_incidents_reported_byToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_reported_byToteam_membersNestedInput team_members_incidents_assigned_toToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_assigned_toToteam_membersNestedInput geofences?: geofencesUpdateOneWithoutIncidentsNestedInput } export type incidentsUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reported_by?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_to?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: NullableStringFieldUpdateOperationsInput | string | null alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null alerts?: alertsUncheckedUpdateManyWithoutIncidentsNestedInput incident_updates?: incident_updatesUncheckedUpdateManyWithoutIncidentsNestedInput } export type incidentsCreateManyInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reported_by?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_to?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: string | null alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null } export type incidentsUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null } export type incidentsUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reported_by?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_to?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: NullableStringFieldUpdateOperationsInput | string | null alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null } export type ktp_validation_auditCreateInput = { id: string action: $Enums.ktp_validation_audit_action old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue performed_by: string ip_address?: string | null user_agent?: string | null reason?: string | null created_at?: Date | string metadata?: NullableJsonNullValueInput | InputJsonValue visitor_ktp_data: visitor_ktp_dataCreateNestedOneWithoutKtp_validation_auditInput } export type ktp_validation_auditUncheckedCreateInput = { id: string ktp_data_id: string action: $Enums.ktp_validation_audit_action old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue performed_by: string ip_address?: string | null user_agent?: string | null reason?: string | null created_at?: Date | string metadata?: NullableJsonNullValueInput | InputJsonValue } export type ktp_validation_auditUpdateInput = { id?: StringFieldUpdateOperationsInput | string action?: Enumktp_validation_audit_actionFieldUpdateOperationsInput | $Enums.ktp_validation_audit_action old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue performed_by?: StringFieldUpdateOperationsInput | string ip_address?: NullableStringFieldUpdateOperationsInput | string | null user_agent?: NullableStringFieldUpdateOperationsInput | string | null reason?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string metadata?: NullableJsonNullValueInput | InputJsonValue visitor_ktp_data?: visitor_ktp_dataUpdateOneRequiredWithoutKtp_validation_auditNestedInput } export type ktp_validation_auditUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string ktp_data_id?: StringFieldUpdateOperationsInput | string action?: Enumktp_validation_audit_actionFieldUpdateOperationsInput | $Enums.ktp_validation_audit_action old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue performed_by?: StringFieldUpdateOperationsInput | string ip_address?: NullableStringFieldUpdateOperationsInput | string | null user_agent?: NullableStringFieldUpdateOperationsInput | string | null reason?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string metadata?: NullableJsonNullValueInput | InputJsonValue } export type ktp_validation_auditCreateManyInput = { id: string ktp_data_id: string action: $Enums.ktp_validation_audit_action old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue performed_by: string ip_address?: string | null user_agent?: string | null reason?: string | null created_at?: Date | string metadata?: NullableJsonNullValueInput | InputJsonValue } export type ktp_validation_auditUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string action?: Enumktp_validation_audit_actionFieldUpdateOperationsInput | $Enums.ktp_validation_audit_action old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue performed_by?: StringFieldUpdateOperationsInput | string ip_address?: NullableStringFieldUpdateOperationsInput | string | null user_agent?: NullableStringFieldUpdateOperationsInput | string | null reason?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string metadata?: NullableJsonNullValueInput | InputJsonValue } export type ktp_validation_auditUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string ktp_data_id?: StringFieldUpdateOperationsInput | string action?: Enumktp_validation_audit_actionFieldUpdateOperationsInput | $Enums.ktp_validation_audit_action old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue performed_by?: StringFieldUpdateOperationsInput | string ip_address?: NullableStringFieldUpdateOperationsInput | string | null user_agent?: NullableStringFieldUpdateOperationsInput | string | null reason?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string metadata?: NullableJsonNullValueInput | InputJsonValue } export type map_pinsCreateInput = { id?: string type: string coordinates?: NullableJsonNullValueInput | InputJsonValue title: string description?: string | null status?: string | null priority?: string | null icon_type?: string | null icon_color?: string | null size?: string | null is_visible?: boolean | null is_clickable?: boolean | null metadata?: NullableJsonNullValueInput | InputJsonValue alert_id?: string | null incident_id?: string | null team_member_id?: string | null camera_id?: string | null created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null geofences?: geofencesCreateNestedOneWithoutMap_pinsInput } export type map_pinsUncheckedCreateInput = { id?: string type: string coordinates?: NullableJsonNullValueInput | InputJsonValue title: string description?: string | null status?: string | null priority?: string | null icon_type?: string | null icon_color?: string | null size?: string | null is_visible?: boolean | null is_clickable?: boolean | null metadata?: NullableJsonNullValueInput | InputJsonValue alert_id?: string | null incident_id?: string | null team_member_id?: string | null camera_id?: string | null geofence_id?: string | null created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null } export type map_pinsUpdateInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: NullableJsonNullValueInput | InputJsonValue title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: NullableStringFieldUpdateOperationsInput | string | null priority?: NullableStringFieldUpdateOperationsInput | string | null icon_type?: NullableStringFieldUpdateOperationsInput | string | null icon_color?: NullableStringFieldUpdateOperationsInput | string | null size?: NullableStringFieldUpdateOperationsInput | string | null is_visible?: NullableBoolFieldUpdateOperationsInput | boolean | null is_clickable?: NullableBoolFieldUpdateOperationsInput | boolean | null metadata?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null incident_id?: NullableStringFieldUpdateOperationsInput | string | null team_member_id?: NullableStringFieldUpdateOperationsInput | string | null camera_id?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null geofences?: geofencesUpdateOneWithoutMap_pinsNestedInput } export type map_pinsUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: NullableJsonNullValueInput | InputJsonValue title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: NullableStringFieldUpdateOperationsInput | string | null priority?: NullableStringFieldUpdateOperationsInput | string | null icon_type?: NullableStringFieldUpdateOperationsInput | string | null icon_color?: NullableStringFieldUpdateOperationsInput | string | null size?: NullableStringFieldUpdateOperationsInput | string | null is_visible?: NullableBoolFieldUpdateOperationsInput | boolean | null is_clickable?: NullableBoolFieldUpdateOperationsInput | boolean | null metadata?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null incident_id?: NullableStringFieldUpdateOperationsInput | string | null team_member_id?: NullableStringFieldUpdateOperationsInput | string | null camera_id?: NullableStringFieldUpdateOperationsInput | string | null geofence_id?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null } export type map_pinsCreateManyInput = { id?: string type: string coordinates?: NullableJsonNullValueInput | InputJsonValue title: string description?: string | null status?: string | null priority?: string | null icon_type?: string | null icon_color?: string | null size?: string | null is_visible?: boolean | null is_clickable?: boolean | null metadata?: NullableJsonNullValueInput | InputJsonValue alert_id?: string | null incident_id?: string | null team_member_id?: string | null camera_id?: string | null geofence_id?: string | null created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null } export type map_pinsUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: NullableJsonNullValueInput | InputJsonValue title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: NullableStringFieldUpdateOperationsInput | string | null priority?: NullableStringFieldUpdateOperationsInput | string | null icon_type?: NullableStringFieldUpdateOperationsInput | string | null icon_color?: NullableStringFieldUpdateOperationsInput | string | null size?: NullableStringFieldUpdateOperationsInput | string | null is_visible?: NullableBoolFieldUpdateOperationsInput | boolean | null is_clickable?: NullableBoolFieldUpdateOperationsInput | boolean | null metadata?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null incident_id?: NullableStringFieldUpdateOperationsInput | string | null team_member_id?: NullableStringFieldUpdateOperationsInput | string | null camera_id?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null } export type map_pinsUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: NullableJsonNullValueInput | InputJsonValue title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: NullableStringFieldUpdateOperationsInput | string | null priority?: NullableStringFieldUpdateOperationsInput | string | null icon_type?: NullableStringFieldUpdateOperationsInput | string | null icon_color?: NullableStringFieldUpdateOperationsInput | string | null size?: NullableStringFieldUpdateOperationsInput | string | null is_visible?: NullableBoolFieldUpdateOperationsInput | boolean | null is_clickable?: NullableBoolFieldUpdateOperationsInput | boolean | null metadata?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null incident_id?: NullableStringFieldUpdateOperationsInput | string | null team_member_id?: NullableStringFieldUpdateOperationsInput | string | null camera_id?: NullableStringFieldUpdateOperationsInput | string | null geofence_id?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null } export type perumahan_facilitiesCreateInput = { name: string type: string description?: string | null location: string lat: Decimal | DecimalJsLike | number | string lng: Decimal | DecimalJsLike | number | string status?: $Enums.perumahan_facilities_status | null operating_hours?: NullableJsonNullValueInput | InputJsonValue contact_info?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null } export type perumahan_facilitiesUncheckedCreateInput = { id?: number name: string type: string description?: string | null location: string lat: Decimal | DecimalJsLike | number | string lng: Decimal | DecimalJsLike | number | string status?: $Enums.perumahan_facilities_status | null operating_hours?: NullableJsonNullValueInput | InputJsonValue contact_info?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null } export type perumahan_facilitiesUpdateInput = { name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null location?: StringFieldUpdateOperationsInput | string lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: NullableEnumperumahan_facilities_statusFieldUpdateOperationsInput | $Enums.perumahan_facilities_status | null operating_hours?: NullableJsonNullValueInput | InputJsonValue contact_info?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type perumahan_facilitiesUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null location?: StringFieldUpdateOperationsInput | string lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: NullableEnumperumahan_facilities_statusFieldUpdateOperationsInput | $Enums.perumahan_facilities_status | null operating_hours?: NullableJsonNullValueInput | InputJsonValue contact_info?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type perumahan_facilitiesCreateManyInput = { id?: number name: string type: string description?: string | null location: string lat: Decimal | DecimalJsLike | number | string lng: Decimal | DecimalJsLike | number | string status?: $Enums.perumahan_facilities_status | null operating_hours?: NullableJsonNullValueInput | InputJsonValue contact_info?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null } export type perumahan_facilitiesUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null location?: StringFieldUpdateOperationsInput | string lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: NullableEnumperumahan_facilities_statusFieldUpdateOperationsInput | $Enums.perumahan_facilities_status | null operating_hours?: NullableJsonNullValueInput | InputJsonValue contact_info?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type perumahan_facilitiesUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null location?: StringFieldUpdateOperationsInput | string lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: NullableEnumperumahan_facilities_statusFieldUpdateOperationsInput | $Enums.perumahan_facilities_status | null operating_hours?: NullableJsonNullValueInput | InputJsonValue contact_info?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type perumahan_infoCreateInput = { name: string total_units: number clusters: JsonNullValueInput | InputJsonValue address?: string | null created_at?: Date | string | null updated_at?: Date | string | null } export type perumahan_infoUncheckedCreateInput = { id?: number name: string total_units: number clusters: JsonNullValueInput | InputJsonValue address?: string | null created_at?: Date | string | null updated_at?: Date | string | null } export type perumahan_infoUpdateInput = { name?: StringFieldUpdateOperationsInput | string total_units?: IntFieldUpdateOperationsInput | number clusters?: JsonNullValueInput | InputJsonValue address?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type perumahan_infoUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string total_units?: IntFieldUpdateOperationsInput | number clusters?: JsonNullValueInput | InputJsonValue address?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type perumahan_infoCreateManyInput = { id?: number name: string total_units: number clusters: JsonNullValueInput | InputJsonValue address?: string | null created_at?: Date | string | null updated_at?: Date | string | null } export type perumahan_infoUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string total_units?: IntFieldUpdateOperationsInput | number clusters?: JsonNullValueInput | InputJsonValue address?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type perumahan_infoUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string total_units?: IntFieldUpdateOperationsInput | number clusters?: JsonNullValueInput | InputJsonValue address?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type qr_codesCreateInput = { id?: string entry_point: string qr_data: string location_lat: Decimal | DecimalJsLike | number | string location_lng: Decimal | DecimalJsLike | number | string geofence_radius?: number is_active?: boolean description?: string | null max_daily_registrations?: number | null operating_hours?: NullableJsonNullValueInput | InputJsonValue security_level?: $Enums.qr_codes_security_level requires_approval?: boolean auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue last_used_at?: Date | string | null usage_count?: number created_by?: string | null updated_by?: string | null created_at?: Date | string updated_at?: Date | string visitor_registrations?: visitor_registrationsCreateNestedManyWithoutQr_codesInput } export type qr_codesUncheckedCreateInput = { id?: string entry_point: string qr_data: string location_lat: Decimal | DecimalJsLike | number | string location_lng: Decimal | DecimalJsLike | number | string geofence_radius?: number is_active?: boolean description?: string | null max_daily_registrations?: number | null operating_hours?: NullableJsonNullValueInput | InputJsonValue security_level?: $Enums.qr_codes_security_level requires_approval?: boolean auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue last_used_at?: Date | string | null usage_count?: number created_by?: string | null updated_by?: string | null created_at?: Date | string updated_at?: Date | string visitor_registrations?: visitor_registrationsUncheckedCreateNestedManyWithoutQr_codesInput } export type qr_codesUpdateInput = { id?: StringFieldUpdateOperationsInput | string entry_point?: StringFieldUpdateOperationsInput | string qr_data?: StringFieldUpdateOperationsInput | string location_lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string location_lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string geofence_radius?: IntFieldUpdateOperationsInput | number is_active?: BoolFieldUpdateOperationsInput | boolean description?: NullableStringFieldUpdateOperationsInput | string | null max_daily_registrations?: NullableIntFieldUpdateOperationsInput | number | null operating_hours?: NullableJsonNullValueInput | InputJsonValue security_level?: Enumqr_codes_security_levelFieldUpdateOperationsInput | $Enums.qr_codes_security_level requires_approval?: BoolFieldUpdateOperationsInput | boolean auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue last_used_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null usage_count?: IntFieldUpdateOperationsInput | number created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string visitor_registrations?: visitor_registrationsUpdateManyWithoutQr_codesNestedInput } export type qr_codesUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string entry_point?: StringFieldUpdateOperationsInput | string qr_data?: StringFieldUpdateOperationsInput | string location_lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string location_lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string geofence_radius?: IntFieldUpdateOperationsInput | number is_active?: BoolFieldUpdateOperationsInput | boolean description?: NullableStringFieldUpdateOperationsInput | string | null max_daily_registrations?: NullableIntFieldUpdateOperationsInput | number | null operating_hours?: NullableJsonNullValueInput | InputJsonValue security_level?: Enumqr_codes_security_levelFieldUpdateOperationsInput | $Enums.qr_codes_security_level requires_approval?: BoolFieldUpdateOperationsInput | boolean auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue last_used_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null usage_count?: IntFieldUpdateOperationsInput | number created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string visitor_registrations?: visitor_registrationsUncheckedUpdateManyWithoutQr_codesNestedInput } export type qr_codesCreateManyInput = { id?: string entry_point: string qr_data: string location_lat: Decimal | DecimalJsLike | number | string location_lng: Decimal | DecimalJsLike | number | string geofence_radius?: number is_active?: boolean description?: string | null max_daily_registrations?: number | null operating_hours?: NullableJsonNullValueInput | InputJsonValue security_level?: $Enums.qr_codes_security_level requires_approval?: boolean auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue last_used_at?: Date | string | null usage_count?: number created_by?: string | null updated_by?: string | null created_at?: Date | string updated_at?: Date | string } export type qr_codesUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string entry_point?: StringFieldUpdateOperationsInput | string qr_data?: StringFieldUpdateOperationsInput | string location_lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string location_lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string geofence_radius?: IntFieldUpdateOperationsInput | number is_active?: BoolFieldUpdateOperationsInput | boolean description?: NullableStringFieldUpdateOperationsInput | string | null max_daily_registrations?: NullableIntFieldUpdateOperationsInput | number | null operating_hours?: NullableJsonNullValueInput | InputJsonValue security_level?: Enumqr_codes_security_levelFieldUpdateOperationsInput | $Enums.qr_codes_security_level requires_approval?: BoolFieldUpdateOperationsInput | boolean auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue last_used_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null usage_count?: IntFieldUpdateOperationsInput | number created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type qr_codesUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string entry_point?: StringFieldUpdateOperationsInput | string qr_data?: StringFieldUpdateOperationsInput | string location_lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string location_lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string geofence_radius?: IntFieldUpdateOperationsInput | number is_active?: BoolFieldUpdateOperationsInput | boolean description?: NullableStringFieldUpdateOperationsInput | string | null max_daily_registrations?: NullableIntFieldUpdateOperationsInput | number | null operating_hours?: NullableJsonNullValueInput | InputJsonValue security_level?: Enumqr_codes_security_levelFieldUpdateOperationsInput | $Enums.qr_codes_security_level requires_approval?: BoolFieldUpdateOperationsInput | boolean auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue last_used_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null usage_count?: IntFieldUpdateOperationsInput | number created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type security_activitiesCreateInput = { type: string ref_id?: string | null actor: string note: string severity?: $Enums.security_activities_severity | null timestamp?: Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue source?: string | null } export type security_activitiesUncheckedCreateInput = { id?: number type: string ref_id?: string | null actor: string note: string severity?: $Enums.security_activities_severity | null timestamp?: Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue source?: string | null } export type security_activitiesUpdateInput = { type?: StringFieldUpdateOperationsInput | string ref_id?: NullableStringFieldUpdateOperationsInput | string | null actor?: StringFieldUpdateOperationsInput | string note?: StringFieldUpdateOperationsInput | string severity?: NullableEnumsecurity_activities_severityFieldUpdateOperationsInput | $Enums.security_activities_severity | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue source?: NullableStringFieldUpdateOperationsInput | string | null } export type security_activitiesUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number type?: StringFieldUpdateOperationsInput | string ref_id?: NullableStringFieldUpdateOperationsInput | string | null actor?: StringFieldUpdateOperationsInput | string note?: StringFieldUpdateOperationsInput | string severity?: NullableEnumsecurity_activities_severityFieldUpdateOperationsInput | $Enums.security_activities_severity | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue source?: NullableStringFieldUpdateOperationsInput | string | null } export type security_activitiesCreateManyInput = { id?: number type: string ref_id?: string | null actor: string note: string severity?: $Enums.security_activities_severity | null timestamp?: Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue source?: string | null } export type security_activitiesUpdateManyMutationInput = { type?: StringFieldUpdateOperationsInput | string ref_id?: NullableStringFieldUpdateOperationsInput | string | null actor?: StringFieldUpdateOperationsInput | string note?: StringFieldUpdateOperationsInput | string severity?: NullableEnumsecurity_activities_severityFieldUpdateOperationsInput | $Enums.security_activities_severity | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue source?: NullableStringFieldUpdateOperationsInput | string | null } export type security_activitiesUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number type?: StringFieldUpdateOperationsInput | string ref_id?: NullableStringFieldUpdateOperationsInput | string | null actor?: StringFieldUpdateOperationsInput | string note?: StringFieldUpdateOperationsInput | string severity?: NullableEnumsecurity_activities_severityFieldUpdateOperationsInput | $Enums.security_activities_severity | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue source?: NullableStringFieldUpdateOperationsInput | string | null } export type sequelizemetaCreateInput = { name: string } export type sequelizemetaUncheckedCreateInput = { name: string } export type sequelizemetaUpdateInput = { name?: StringFieldUpdateOperationsInput | string } export type sequelizemetaUncheckedUpdateInput = { name?: StringFieldUpdateOperationsInput | string } export type sequelizemetaCreateManyInput = { name: string } export type sequelizemetaUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string } export type sequelizemetaUncheckedUpdateManyInput = { name?: StringFieldUpdateOperationsInput | string } export type team_location_historyCreateInput = { location: string lat?: Decimal | DecimalJsLike | number | string | null lng?: Decimal | DecimalJsLike | number | string | null activity_type?: string | null timestamp?: Date | string | null team_members: team_membersCreateNestedOneWithoutTeam_location_historyInput } export type team_location_historyUncheckedCreateInput = { id?: number member_id: string location: string lat?: Decimal | DecimalJsLike | number | string | null lng?: Decimal | DecimalJsLike | number | string | null activity_type?: string | null timestamp?: Date | string | null } export type team_location_historyUpdateInput = { location?: StringFieldUpdateOperationsInput | string lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null activity_type?: NullableStringFieldUpdateOperationsInput | string | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null team_members?: team_membersUpdateOneRequiredWithoutTeam_location_historyNestedInput } export type team_location_historyUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number member_id?: StringFieldUpdateOperationsInput | string location?: StringFieldUpdateOperationsInput | string lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null activity_type?: NullableStringFieldUpdateOperationsInput | string | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type team_location_historyCreateManyInput = { id?: number member_id: string location: string lat?: Decimal | DecimalJsLike | number | string | null lng?: Decimal | DecimalJsLike | number | string | null activity_type?: string | null timestamp?: Date | string | null } export type team_location_historyUpdateManyMutationInput = { location?: StringFieldUpdateOperationsInput | string lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null activity_type?: NullableStringFieldUpdateOperationsInput | string | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type team_location_historyUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number member_id?: StringFieldUpdateOperationsInput | string location?: StringFieldUpdateOperationsInput | string lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null activity_type?: NullableStringFieldUpdateOperationsInput | string | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type team_membersCreateInput = { id: string nama: string role: string status?: $Enums.team_members_status | null phone: string email?: string | null current_location?: string | null last_update?: Date | string | null shift_start?: Date | string | null shift_end?: Date | string | null created_at?: Date | string | null updated_at?: Date | string | null incidents_incidents_reported_byToteam_members?: incidentsCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput incidents_incidents_assigned_toToteam_members?: incidentsCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput team_location_history?: team_location_historyCreateNestedManyWithoutTeam_membersInput } export type team_membersUncheckedCreateInput = { id: string nama: string role: string status?: $Enums.team_members_status | null phone: string email?: string | null current_location?: string | null last_update?: Date | string | null shift_start?: Date | string | null shift_end?: Date | string | null created_at?: Date | string | null updated_at?: Date | string | null incidents_incidents_reported_byToteam_members?: incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput incidents_incidents_assigned_toToteam_members?: incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput team_location_history?: team_location_historyUncheckedCreateNestedManyWithoutTeam_membersInput } export type team_membersUpdateInput = { id?: StringFieldUpdateOperationsInput | string nama?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null current_location?: NullableStringFieldUpdateOperationsInput | string | null last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null incidents_incidents_reported_byToteam_members?: incidentsUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput incidents_incidents_assigned_toToteam_members?: incidentsUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput team_location_history?: team_location_historyUpdateManyWithoutTeam_membersNestedInput } export type team_membersUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string nama?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null current_location?: NullableStringFieldUpdateOperationsInput | string | null last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null incidents_incidents_reported_byToteam_members?: incidentsUncheckedUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput incidents_incidents_assigned_toToteam_members?: incidentsUncheckedUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput team_location_history?: team_location_historyUncheckedUpdateManyWithoutTeam_membersNestedInput } export type team_membersCreateManyInput = { id: string nama: string role: string status?: $Enums.team_members_status | null phone: string email?: string | null current_location?: string | null last_update?: Date | string | null shift_start?: Date | string | null shift_end?: Date | string | null created_at?: Date | string | null updated_at?: Date | string | null } export type team_membersUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string nama?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null current_location?: NullableStringFieldUpdateOperationsInput | string | null last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type team_membersUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string nama?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null current_location?: NullableStringFieldUpdateOperationsInput | string | null last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type visitor_ktp_dataCreateInput = { id: string visitor_registration_id: string ktp_number?: string | null full_name?: string | null birth_date?: Date | string | null birth_place?: string | null gender?: $Enums.visitor_ktp_data_gender | null address?: string | null rt_rw?: string | null kelurahan?: string | null kecamatan?: string | null religion?: string | null marital_status?: string | null occupation?: string | null nationality?: string | null ktp_photo_url?: string | null ktp_photo_hash?: string | null validation_status?: $Enums.visitor_ktp_data_validation_status validation_confidence?: Decimal | DecimalJsLike | number | string | null validation_notes?: string | null validated_by?: string | null validated_at?: Date | string | null ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue manual_corrections?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string updated_at?: Date | string ktp_validation_audit?: ktp_validation_auditCreateNestedManyWithoutVisitor_ktp_dataInput } export type visitor_ktp_dataUncheckedCreateInput = { id: string visitor_registration_id: string ktp_number?: string | null full_name?: string | null birth_date?: Date | string | null birth_place?: string | null gender?: $Enums.visitor_ktp_data_gender | null address?: string | null rt_rw?: string | null kelurahan?: string | null kecamatan?: string | null religion?: string | null marital_status?: string | null occupation?: string | null nationality?: string | null ktp_photo_url?: string | null ktp_photo_hash?: string | null validation_status?: $Enums.visitor_ktp_data_validation_status validation_confidence?: Decimal | DecimalJsLike | number | string | null validation_notes?: string | null validated_by?: string | null validated_at?: Date | string | null ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue manual_corrections?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string updated_at?: Date | string ktp_validation_audit?: ktp_validation_auditUncheckedCreateNestedManyWithoutVisitor_ktp_dataInput } export type visitor_ktp_dataUpdateInput = { id?: StringFieldUpdateOperationsInput | string visitor_registration_id?: StringFieldUpdateOperationsInput | string ktp_number?: NullableStringFieldUpdateOperationsInput | string | null full_name?: NullableStringFieldUpdateOperationsInput | string | null birth_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birth_place?: NullableStringFieldUpdateOperationsInput | string | null gender?: NullableEnumvisitor_ktp_data_genderFieldUpdateOperationsInput | $Enums.visitor_ktp_data_gender | null address?: NullableStringFieldUpdateOperationsInput | string | null rt_rw?: NullableStringFieldUpdateOperationsInput | string | null kelurahan?: NullableStringFieldUpdateOperationsInput | string | null kecamatan?: NullableStringFieldUpdateOperationsInput | string | null religion?: NullableStringFieldUpdateOperationsInput | string | null marital_status?: NullableStringFieldUpdateOperationsInput | string | null occupation?: NullableStringFieldUpdateOperationsInput | string | null nationality?: NullableStringFieldUpdateOperationsInput | string | null ktp_photo_url?: NullableStringFieldUpdateOperationsInput | string | null ktp_photo_hash?: NullableStringFieldUpdateOperationsInput | string | null validation_status?: Enumvisitor_ktp_data_validation_statusFieldUpdateOperationsInput | $Enums.visitor_ktp_data_validation_status validation_confidence?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null validation_notes?: NullableStringFieldUpdateOperationsInput | string | null validated_by?: NullableStringFieldUpdateOperationsInput | string | null validated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue manual_corrections?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string ktp_validation_audit?: ktp_validation_auditUpdateManyWithoutVisitor_ktp_dataNestedInput } export type visitor_ktp_dataUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string visitor_registration_id?: StringFieldUpdateOperationsInput | string ktp_number?: NullableStringFieldUpdateOperationsInput | string | null full_name?: NullableStringFieldUpdateOperationsInput | string | null birth_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birth_place?: NullableStringFieldUpdateOperationsInput | string | null gender?: NullableEnumvisitor_ktp_data_genderFieldUpdateOperationsInput | $Enums.visitor_ktp_data_gender | null address?: NullableStringFieldUpdateOperationsInput | string | null rt_rw?: NullableStringFieldUpdateOperationsInput | string | null kelurahan?: NullableStringFieldUpdateOperationsInput | string | null kecamatan?: NullableStringFieldUpdateOperationsInput | string | null religion?: NullableStringFieldUpdateOperationsInput | string | null marital_status?: NullableStringFieldUpdateOperationsInput | string | null occupation?: NullableStringFieldUpdateOperationsInput | string | null nationality?: NullableStringFieldUpdateOperationsInput | string | null ktp_photo_url?: NullableStringFieldUpdateOperationsInput | string | null ktp_photo_hash?: NullableStringFieldUpdateOperationsInput | string | null validation_status?: Enumvisitor_ktp_data_validation_statusFieldUpdateOperationsInput | $Enums.visitor_ktp_data_validation_status validation_confidence?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null validation_notes?: NullableStringFieldUpdateOperationsInput | string | null validated_by?: NullableStringFieldUpdateOperationsInput | string | null validated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue manual_corrections?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string ktp_validation_audit?: ktp_validation_auditUncheckedUpdateManyWithoutVisitor_ktp_dataNestedInput } export type visitor_ktp_dataCreateManyInput = { id: string visitor_registration_id: string ktp_number?: string | null full_name?: string | null birth_date?: Date | string | null birth_place?: string | null gender?: $Enums.visitor_ktp_data_gender | null address?: string | null rt_rw?: string | null kelurahan?: string | null kecamatan?: string | null religion?: string | null marital_status?: string | null occupation?: string | null nationality?: string | null ktp_photo_url?: string | null ktp_photo_hash?: string | null validation_status?: $Enums.visitor_ktp_data_validation_status validation_confidence?: Decimal | DecimalJsLike | number | string | null validation_notes?: string | null validated_by?: string | null validated_at?: Date | string | null ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue manual_corrections?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string updated_at?: Date | string } export type visitor_ktp_dataUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string visitor_registration_id?: StringFieldUpdateOperationsInput | string ktp_number?: NullableStringFieldUpdateOperationsInput | string | null full_name?: NullableStringFieldUpdateOperationsInput | string | null birth_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birth_place?: NullableStringFieldUpdateOperationsInput | string | null gender?: NullableEnumvisitor_ktp_data_genderFieldUpdateOperationsInput | $Enums.visitor_ktp_data_gender | null address?: NullableStringFieldUpdateOperationsInput | string | null rt_rw?: NullableStringFieldUpdateOperationsInput | string | null kelurahan?: NullableStringFieldUpdateOperationsInput | string | null kecamatan?: NullableStringFieldUpdateOperationsInput | string | null religion?: NullableStringFieldUpdateOperationsInput | string | null marital_status?: NullableStringFieldUpdateOperationsInput | string | null occupation?: NullableStringFieldUpdateOperationsInput | string | null nationality?: NullableStringFieldUpdateOperationsInput | string | null ktp_photo_url?: NullableStringFieldUpdateOperationsInput | string | null ktp_photo_hash?: NullableStringFieldUpdateOperationsInput | string | null validation_status?: Enumvisitor_ktp_data_validation_statusFieldUpdateOperationsInput | $Enums.visitor_ktp_data_validation_status validation_confidence?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null validation_notes?: NullableStringFieldUpdateOperationsInput | string | null validated_by?: NullableStringFieldUpdateOperationsInput | string | null validated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue manual_corrections?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type visitor_ktp_dataUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string visitor_registration_id?: StringFieldUpdateOperationsInput | string ktp_number?: NullableStringFieldUpdateOperationsInput | string | null full_name?: NullableStringFieldUpdateOperationsInput | string | null birth_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birth_place?: NullableStringFieldUpdateOperationsInput | string | null gender?: NullableEnumvisitor_ktp_data_genderFieldUpdateOperationsInput | $Enums.visitor_ktp_data_gender | null address?: NullableStringFieldUpdateOperationsInput | string | null rt_rw?: NullableStringFieldUpdateOperationsInput | string | null kelurahan?: NullableStringFieldUpdateOperationsInput | string | null kecamatan?: NullableStringFieldUpdateOperationsInput | string | null religion?: NullableStringFieldUpdateOperationsInput | string | null marital_status?: NullableStringFieldUpdateOperationsInput | string | null occupation?: NullableStringFieldUpdateOperationsInput | string | null nationality?: NullableStringFieldUpdateOperationsInput | string | null ktp_photo_url?: NullableStringFieldUpdateOperationsInput | string | null ktp_photo_hash?: NullableStringFieldUpdateOperationsInput | string | null validation_status?: Enumvisitor_ktp_data_validation_statusFieldUpdateOperationsInput | $Enums.visitor_ktp_data_validation_status validation_confidence?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null validation_notes?: NullableStringFieldUpdateOperationsInput | string | null validated_by?: NullableStringFieldUpdateOperationsInput | string | null validated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue manual_corrections?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type visitor_registrationsCreateInput = { id?: string name: string phone: string photo_url?: string | null purpose?: string | null entry_point: string location_lat?: Decimal | DecimalJsLike | number | string | null location_lng?: Decimal | DecimalJsLike | number | string | null status?: $Enums.visitor_registrations_status approved_by?: string | null approved_at?: Date | string | null rejected_by?: string | null rejected_at?: Date | string | null rejection_reason?: string | null expires_at?: Date | string | null checked_in_at?: Date | string | null checked_out_at?: Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_by?: string | null updated_by?: string | null created_at?: Date | string updated_at?: Date | string location_address?: string | null location_updated_at?: Date | string | null qr_codes?: qr_codesCreateNestedOneWithoutVisitor_registrationsInput } export type visitor_registrationsUncheckedCreateInput = { id?: string name: string phone: string photo_url?: string | null purpose?: string | null entry_point: string location_lat?: Decimal | DecimalJsLike | number | string | null location_lng?: Decimal | DecimalJsLike | number | string | null qr_code_id?: string | null status?: $Enums.visitor_registrations_status approved_by?: string | null approved_at?: Date | string | null rejected_by?: string | null rejected_at?: Date | string | null rejection_reason?: string | null expires_at?: Date | string | null checked_in_at?: Date | string | null checked_out_at?: Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_by?: string | null updated_by?: string | null created_at?: Date | string updated_at?: Date | string location_address?: string | null location_updated_at?: Date | string | null } export type visitor_registrationsUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string photo_url?: NullableStringFieldUpdateOperationsInput | string | null purpose?: NullableStringFieldUpdateOperationsInput | string | null entry_point?: StringFieldUpdateOperationsInput | string location_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null location_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: Enumvisitor_registrations_statusFieldUpdateOperationsInput | $Enums.visitor_registrations_status approved_by?: NullableStringFieldUpdateOperationsInput | string | null approved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null rejected_by?: NullableStringFieldUpdateOperationsInput | string | null rejected_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null rejection_reason?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null checked_in_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null checked_out_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string location_address?: NullableStringFieldUpdateOperationsInput | string | null location_updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null qr_codes?: qr_codesUpdateOneWithoutVisitor_registrationsNestedInput } export type visitor_registrationsUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string photo_url?: NullableStringFieldUpdateOperationsInput | string | null purpose?: NullableStringFieldUpdateOperationsInput | string | null entry_point?: StringFieldUpdateOperationsInput | string location_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null location_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null qr_code_id?: NullableStringFieldUpdateOperationsInput | string | null status?: Enumvisitor_registrations_statusFieldUpdateOperationsInput | $Enums.visitor_registrations_status approved_by?: NullableStringFieldUpdateOperationsInput | string | null approved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null rejected_by?: NullableStringFieldUpdateOperationsInput | string | null rejected_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null rejection_reason?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null checked_in_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null checked_out_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string location_address?: NullableStringFieldUpdateOperationsInput | string | null location_updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type visitor_registrationsCreateManyInput = { id?: string name: string phone: string photo_url?: string | null purpose?: string | null entry_point: string location_lat?: Decimal | DecimalJsLike | number | string | null location_lng?: Decimal | DecimalJsLike | number | string | null qr_code_id?: string | null status?: $Enums.visitor_registrations_status approved_by?: string | null approved_at?: Date | string | null rejected_by?: string | null rejected_at?: Date | string | null rejection_reason?: string | null expires_at?: Date | string | null checked_in_at?: Date | string | null checked_out_at?: Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_by?: string | null updated_by?: string | null created_at?: Date | string updated_at?: Date | string location_address?: string | null location_updated_at?: Date | string | null } export type visitor_registrationsUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string photo_url?: NullableStringFieldUpdateOperationsInput | string | null purpose?: NullableStringFieldUpdateOperationsInput | string | null entry_point?: StringFieldUpdateOperationsInput | string location_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null location_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: Enumvisitor_registrations_statusFieldUpdateOperationsInput | $Enums.visitor_registrations_status approved_by?: NullableStringFieldUpdateOperationsInput | string | null approved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null rejected_by?: NullableStringFieldUpdateOperationsInput | string | null rejected_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null rejection_reason?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null checked_in_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null checked_out_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string location_address?: NullableStringFieldUpdateOperationsInput | string | null location_updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type visitor_registrationsUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string photo_url?: NullableStringFieldUpdateOperationsInput | string | null purpose?: NullableStringFieldUpdateOperationsInput | string | null entry_point?: StringFieldUpdateOperationsInput | string location_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null location_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null qr_code_id?: NullableStringFieldUpdateOperationsInput | string | null status?: Enumvisitor_registrations_statusFieldUpdateOperationsInput | $Enums.visitor_registrations_status approved_by?: NullableStringFieldUpdateOperationsInput | string | null approved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null rejected_by?: NullableStringFieldUpdateOperationsInput | string | null rejected_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null rejection_reason?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null checked_in_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null checked_out_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string location_address?: NullableStringFieldUpdateOperationsInput | string | null location_updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type StringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] 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> search?: string not?: NestedStringFilter<$PrismaModel> | string } export type StringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | null notIn?: string[] | 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> search?: string not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type JsonNullableFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonNullableFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue lte?: InputJsonValue gt?: InputJsonValue gte?: InputJsonValue not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type DateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | null notIn?: Date[] | string[] | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null } export type IntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type AlertsScalarRelationFilter = { is?: alertsWhereInput isNot?: alertsWhereInput } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type alert_recipientsOrderByRelevanceInput = { fields: alert_recipientsOrderByRelevanceFieldEnum | alert_recipientsOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type alert_recipientsCountOrderByAggregateInput = { id?: SortOrder alert_id?: SortOrder recipient_type?: SortOrder recipient_id?: SortOrder recipient_name?: SortOrder recipient_contact?: SortOrder channel?: SortOrder delivery_status?: SortOrder sent_at?: SortOrder delivered_at?: SortOrder acknowledged_at?: SortOrder failed_at?: SortOrder delivery_attempts?: SortOrder last_attempt_at?: SortOrder failure_reason?: SortOrder delivery_metadata?: SortOrder response_data?: SortOrder response_time?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type alert_recipientsAvgOrderByAggregateInput = { delivery_attempts?: SortOrder response_time?: SortOrder } export type alert_recipientsMaxOrderByAggregateInput = { id?: SortOrder alert_id?: SortOrder recipient_type?: SortOrder recipient_id?: SortOrder recipient_name?: SortOrder channel?: SortOrder delivery_status?: SortOrder sent_at?: SortOrder delivered_at?: SortOrder acknowledged_at?: SortOrder failed_at?: SortOrder delivery_attempts?: SortOrder last_attempt_at?: SortOrder failure_reason?: SortOrder response_time?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type alert_recipientsMinOrderByAggregateInput = { id?: SortOrder alert_id?: SortOrder recipient_type?: SortOrder recipient_id?: SortOrder recipient_name?: SortOrder channel?: SortOrder delivery_status?: SortOrder sent_at?: SortOrder delivered_at?: SortOrder acknowledged_at?: SortOrder failed_at?: SortOrder delivery_attempts?: SortOrder last_attempt_at?: SortOrder failure_reason?: SortOrder response_time?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type alert_recipientsSumOrderByAggregateInput = { delivery_attempts?: SortOrder response_time?: SortOrder } export type StringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] 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> search?: string 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[] | null notIn?: string[] | 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> search?: string not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue lte?: InputJsonValue gt?: InputJsonValue gte?: InputJsonValue not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedJsonNullableFilter<$PrismaModel> _max?: NestedJsonNullableFilter<$PrismaModel> } export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | null notIn?: Date[] | string[] | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedDateTimeNullableFilter<$PrismaModel> _max?: NestedDateTimeNullableFilter<$PrismaModel> } export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type BoolNullableFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null } export type DecimalNullableFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null } export type Alert_recipientsListRelationFilter = { every?: alert_recipientsWhereInput some?: alert_recipientsWhereInput none?: alert_recipientsWhereInput } export type IncidentsNullableScalarRelationFilter = { is?: incidentsWhereInput | null isNot?: incidentsWhereInput | null } export type alert_recipientsOrderByRelationAggregateInput = { _count?: SortOrder } export type alertsOrderByRelevanceInput = { fields: alertsOrderByRelevanceFieldEnum | alertsOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type alertsCountOrderByAggregateInput = { id?: SortOrder alert_id?: SortOrder title?: SortOrder message?: SortOrder type?: SortOrder category?: SortOrder severity?: SortOrder priority?: SortOrder status?: SortOrder is_emergency?: SortOrder is_broadcast?: SortOrder is_recurring?: SortOrder location?: SortOrder coordinates_lat?: SortOrder coordinates_lng?: SortOrder target_zones?: SortOrder target_buildings?: SortOrder target_roles?: SortOrder target_teams?: SortOrder target_users?: SortOrder geofence_ids?: SortOrder scheduled_at?: SortOrder starts_at?: SortOrder ends_at?: SortOrder expires_at?: SortOrder acknowledged_at?: SortOrder resolved_at?: SortOrder recurrence_pattern?: SortOrder next_occurrence?: SortOrder content?: SortOrder attachments?: SortOrder media_urls?: SortOrder action_buttons?: SortOrder channels?: SortOrder delivery_config?: SortOrder source?: SortOrder source_id?: SortOrder context?: SortOrder incident_id?: SortOrder camera_ids?: SortOrder related_alerts?: SortOrder total_recipients?: SortOrder delivered_count?: SortOrder acknowledged_count?: SortOrder failed_count?: SortOrder tags?: SortOrder metadata?: SortOrder custom_fields?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder deleted_at?: SortOrder deleted_by?: SortOrder } export type alertsAvgOrderByAggregateInput = { coordinates_lat?: SortOrder coordinates_lng?: SortOrder total_recipients?: SortOrder delivered_count?: SortOrder acknowledged_count?: SortOrder failed_count?: SortOrder } export type alertsMaxOrderByAggregateInput = { id?: SortOrder alert_id?: SortOrder title?: SortOrder message?: SortOrder type?: SortOrder category?: SortOrder severity?: SortOrder priority?: SortOrder status?: SortOrder is_emergency?: SortOrder is_broadcast?: SortOrder is_recurring?: SortOrder coordinates_lat?: SortOrder coordinates_lng?: SortOrder scheduled_at?: SortOrder starts_at?: SortOrder ends_at?: SortOrder expires_at?: SortOrder acknowledged_at?: SortOrder resolved_at?: SortOrder next_occurrence?: SortOrder source?: SortOrder source_id?: SortOrder incident_id?: SortOrder total_recipients?: SortOrder delivered_count?: SortOrder acknowledged_count?: SortOrder failed_count?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder deleted_at?: SortOrder deleted_by?: SortOrder } export type alertsMinOrderByAggregateInput = { id?: SortOrder alert_id?: SortOrder title?: SortOrder message?: SortOrder type?: SortOrder category?: SortOrder severity?: SortOrder priority?: SortOrder status?: SortOrder is_emergency?: SortOrder is_broadcast?: SortOrder is_recurring?: SortOrder coordinates_lat?: SortOrder coordinates_lng?: SortOrder scheduled_at?: SortOrder starts_at?: SortOrder ends_at?: SortOrder expires_at?: SortOrder acknowledged_at?: SortOrder resolved_at?: SortOrder next_occurrence?: SortOrder source?: SortOrder source_id?: SortOrder incident_id?: SortOrder total_recipients?: SortOrder delivered_count?: SortOrder acknowledged_count?: SortOrder failed_count?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder deleted_at?: SortOrder deleted_by?: SortOrder } export type alertsSumOrderByAggregateInput = { coordinates_lat?: SortOrder coordinates_lng?: SortOrder total_recipients?: SortOrder delivered_count?: SortOrder acknowledged_count?: SortOrder failed_count?: SortOrder } export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedBoolNullableFilter<$PrismaModel> _max?: NestedBoolNullableFilter<$PrismaModel> } export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedDecimalNullableFilter<$PrismaModel> _sum?: NestedDecimalNullableFilter<$PrismaModel> _min?: NestedDecimalNullableFilter<$PrismaModel> _max?: NestedDecimalNullableFilter<$PrismaModel> } export type JsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue lte?: InputJsonValue gt?: InputJsonValue gte?: InputJsonValue not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type basemap_configsOrderByRelevanceInput = { fields: basemap_configsOrderByRelevanceFieldEnum | basemap_configsOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type basemap_configsNameVersionCompoundUniqueInput = { name: string version: number } export type basemap_configsCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder description?: SortOrder svg_data?: SortOrder calibration?: SortOrder dimensions?: SortOrder is_active?: SortOrder is_default?: SortOrder version?: SortOrder settings?: SortOrder metadata?: SortOrder file_size?: SortOrder checksum?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder } export type basemap_configsAvgOrderByAggregateInput = { version?: SortOrder file_size?: SortOrder } export type basemap_configsMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder description?: SortOrder svg_data?: SortOrder is_active?: SortOrder is_default?: SortOrder version?: SortOrder file_size?: SortOrder checksum?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder } export type basemap_configsMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder description?: SortOrder svg_data?: SortOrder is_active?: SortOrder is_default?: SortOrder version?: SortOrder file_size?: SortOrder checksum?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder } export type basemap_configsSumOrderByAggregateInput = { version?: SortOrder file_size?: SortOrder } export type JsonWithAggregatesFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonWithAggregatesFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue lte?: InputJsonValue gt?: InputJsonValue gte?: InputJsonValue not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter _count?: NestedIntFilter<$PrismaModel> _min?: NestedJsonFilter<$PrismaModel> _max?: NestedJsonFilter<$PrismaModel> } export type IntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type CamerasScalarRelationFilter = { is?: camerasWhereInput isNot?: camerasWhereInput } export type camera_health_logOrderByRelevanceInput = { fields: camera_health_logOrderByRelevanceFieldEnum | camera_health_logOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type camera_health_logCountOrderByAggregateInput = { id?: SortOrder camera_id?: SortOrder status?: SortOrder response_time?: SortOrder health_score?: SortOrder error_message?: SortOrder stream_accessible?: SortOrder timestamp?: SortOrder } export type camera_health_logAvgOrderByAggregateInput = { id?: SortOrder response_time?: SortOrder health_score?: SortOrder } export type camera_health_logMaxOrderByAggregateInput = { id?: SortOrder camera_id?: SortOrder status?: SortOrder response_time?: SortOrder health_score?: SortOrder error_message?: SortOrder stream_accessible?: SortOrder timestamp?: SortOrder } export type camera_health_logMinOrderByAggregateInput = { id?: SortOrder camera_id?: SortOrder status?: SortOrder response_time?: SortOrder health_score?: SortOrder error_message?: SortOrder stream_accessible?: SortOrder timestamp?: SortOrder } export type camera_health_logSumOrderByAggregateInput = { id?: SortOrder response_time?: SortOrder health_score?: SortOrder } export type IntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] 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 DecimalFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string } export type Enumcameras_statusNullableFilter<$PrismaModel = never> = { equals?: $Enums.cameras_status | Enumcameras_statusFieldRefInput<$PrismaModel> | null in?: $Enums.cameras_status[] | null notIn?: $Enums.cameras_status[] | null not?: NestedEnumcameras_statusNullableFilter<$PrismaModel> | $Enums.cameras_status | null } export type Camera_health_logListRelationFilter = { every?: camera_health_logWhereInput some?: camera_health_logWhereInput none?: camera_health_logWhereInput } export type camera_health_logOrderByRelationAggregateInput = { _count?: SortOrder } export type camerasOrderByRelevanceInput = { fields: camerasOrderByRelevanceFieldEnum | camerasOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type camerasCountOrderByAggregateInput = { id?: SortOrder label?: SortOrder area?: SortOrder lat?: SortOrder lng?: SortOrder stream_url?: SortOrder status?: SortOrder last_heartbeat?: SortOrder response_time?: SortOrder health_score?: SortOrder error_message?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type camerasAvgOrderByAggregateInput = { lat?: SortOrder lng?: SortOrder response_time?: SortOrder health_score?: SortOrder } export type camerasMaxOrderByAggregateInput = { id?: SortOrder label?: SortOrder area?: SortOrder lat?: SortOrder lng?: SortOrder stream_url?: SortOrder status?: SortOrder last_heartbeat?: SortOrder response_time?: SortOrder health_score?: SortOrder error_message?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type camerasMinOrderByAggregateInput = { id?: SortOrder label?: SortOrder area?: SortOrder lat?: SortOrder lng?: SortOrder stream_url?: SortOrder status?: SortOrder last_heartbeat?: SortOrder response_time?: SortOrder health_score?: SortOrder error_message?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type camerasSumOrderByAggregateInput = { lat?: SortOrder lng?: SortOrder response_time?: SortOrder health_score?: SortOrder } export type DecimalWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string _count?: NestedIntFilter<$PrismaModel> _avg?: NestedDecimalFilter<$PrismaModel> _sum?: NestedDecimalFilter<$PrismaModel> _min?: NestedDecimalFilter<$PrismaModel> _max?: NestedDecimalFilter<$PrismaModel> } export type Enumcameras_statusNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.cameras_status | Enumcameras_statusFieldRefInput<$PrismaModel> | null in?: $Enums.cameras_status[] | null notIn?: $Enums.cameras_status[] | null not?: NestedEnumcameras_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.cameras_status | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedEnumcameras_statusNullableFilter<$PrismaModel> _max?: NestedEnumcameras_statusNullableFilter<$PrismaModel> } export type BigIntNullableFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null in?: bigint[] | number[] | null notIn?: bigint[] | number[] | null lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null } export type feature_flagsOrderByRelevanceInput = { fields: feature_flagsOrderByRelevanceFieldEnum | feature_flagsOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type feature_flagsCountOrderByAggregateInput = { id?: SortOrder key?: SortOrder name?: SortOrder description?: SortOrder is_enabled?: SortOrder type?: SortOrder value?: SortOrder default_value?: SortOrder environment?: SortOrder category?: SortOrder tags?: SortOrder conditions?: SortOrder rollout_percentage?: SortOrder user_segments?: SortOrder is_archived?: SortOrder is_permanent?: SortOrder expires_at?: SortOrder last_evaluated_at?: SortOrder evaluation_count?: SortOrder metadata?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder enabled_at?: SortOrder disabled_at?: SortOrder } export type feature_flagsAvgOrderByAggregateInput = { rollout_percentage?: SortOrder evaluation_count?: SortOrder } export type feature_flagsMaxOrderByAggregateInput = { id?: SortOrder key?: SortOrder name?: SortOrder description?: SortOrder is_enabled?: SortOrder type?: SortOrder environment?: SortOrder category?: SortOrder rollout_percentage?: SortOrder is_archived?: SortOrder is_permanent?: SortOrder expires_at?: SortOrder last_evaluated_at?: SortOrder evaluation_count?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder enabled_at?: SortOrder disabled_at?: SortOrder } export type feature_flagsMinOrderByAggregateInput = { id?: SortOrder key?: SortOrder name?: SortOrder description?: SortOrder is_enabled?: SortOrder type?: SortOrder environment?: SortOrder category?: SortOrder rollout_percentage?: SortOrder is_archived?: SortOrder is_permanent?: SortOrder expires_at?: SortOrder last_evaluated_at?: SortOrder evaluation_count?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder enabled_at?: SortOrder disabled_at?: SortOrder } export type feature_flagsSumOrderByAggregateInput = { rollout_percentage?: SortOrder evaluation_count?: SortOrder } export type BigIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null in?: bigint[] | number[] | null notIn?: bigint[] | number[] | null lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedBigIntNullableFilter<$PrismaModel> _min?: NestedBigIntNullableFilter<$PrismaModel> _max?: NestedBigIntNullableFilter<$PrismaModel> } export type GeofencesScalarRelationFilter = { is?: geofencesWhereInput isNot?: geofencesWhereInput } export type geofence_breachesOrderByRelevanceInput = { fields: geofence_breachesOrderByRelevanceFieldEnum | geofence_breachesOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type geofence_breachesCountOrderByAggregateInput = { id?: SortOrder geofence_id?: SortOrder team_member_id?: SortOrder breach_type?: SortOrder location?: SortOrder severity?: SortOrder is_resolved?: SortOrder resolved_at?: SortOrder resolved_by?: SortOrder notes?: SortOrder metadata?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type geofence_breachesMaxOrderByAggregateInput = { id?: SortOrder geofence_id?: SortOrder team_member_id?: SortOrder breach_type?: SortOrder severity?: SortOrder is_resolved?: SortOrder resolved_at?: SortOrder resolved_by?: SortOrder notes?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type geofence_breachesMinOrderByAggregateInput = { id?: SortOrder geofence_id?: SortOrder team_member_id?: SortOrder breach_type?: SortOrder severity?: SortOrder is_resolved?: SortOrder resolved_at?: SortOrder resolved_by?: SortOrder notes?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type Geofence_breachesListRelationFilter = { every?: geofence_breachesWhereInput some?: geofence_breachesWhereInput none?: geofence_breachesWhereInput } export type IncidentsListRelationFilter = { every?: incidentsWhereInput some?: incidentsWhereInput none?: incidentsWhereInput } export type Map_pinsListRelationFilter = { every?: map_pinsWhereInput some?: map_pinsWhereInput none?: map_pinsWhereInput } export type geofence_breachesOrderByRelationAggregateInput = { _count?: SortOrder } export type incidentsOrderByRelationAggregateInput = { _count?: SortOrder } export type map_pinsOrderByRelationAggregateInput = { _count?: SortOrder } export type geofencesOrderByRelevanceInput = { fields: geofencesOrderByRelevanceFieldEnum | geofencesOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type geofencesCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder type?: SortOrder coordinates?: SortOrder description?: SortOrder is_active?: SortOrder priority?: SortOrder notification_settings?: SortOrder metadata?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder } export type geofencesMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder type?: SortOrder description?: SortOrder is_active?: SortOrder priority?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder } export type geofencesMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder type?: SortOrder description?: SortOrder is_active?: SortOrder priority?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder } export type Enumhouses_statusNullableFilter<$PrismaModel = never> = { equals?: $Enums.houses_status | Enumhouses_statusFieldRefInput<$PrismaModel> | null in?: $Enums.houses_status[] | null notIn?: $Enums.houses_status[] | null not?: NestedEnumhouses_statusNullableFilter<$PrismaModel> | $Enums.houses_status | null } export type housesOrderByRelevanceInput = { fields: housesOrderByRelevanceFieldEnum | housesOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type housesHouse_numberBlockCompoundUniqueInput = { house_number: string block: string } export type housesCountOrderByAggregateInput = { id?: SortOrder house_number?: SortOrder block?: SortOrder street?: SortOrder owner_name?: SortOrder owner_phone?: SortOrder status?: SortOrder perumahan_id?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type housesMaxOrderByAggregateInput = { id?: SortOrder house_number?: SortOrder block?: SortOrder street?: SortOrder owner_name?: SortOrder owner_phone?: SortOrder status?: SortOrder perumahan_id?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type housesMinOrderByAggregateInput = { id?: SortOrder house_number?: SortOrder block?: SortOrder street?: SortOrder owner_name?: SortOrder owner_phone?: SortOrder status?: SortOrder perumahan_id?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type Enumhouses_statusNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.houses_status | Enumhouses_statusFieldRefInput<$PrismaModel> | null in?: $Enums.houses_status[] | null notIn?: $Enums.houses_status[] | null not?: NestedEnumhouses_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.houses_status | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedEnumhouses_statusNullableFilter<$PrismaModel> _max?: NestedEnumhouses_statusNullableFilter<$PrismaModel> } export type IncidentsScalarRelationFilter = { is?: incidentsWhereInput isNot?: incidentsWhereInput } export type incident_updatesOrderByRelevanceInput = { fields: incident_updatesOrderByRelevanceFieldEnum | incident_updatesOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type incident_updatesCountOrderByAggregateInput = { id?: SortOrder incident_id?: SortOrder update_type?: SortOrder title?: SortOrder description?: SortOrder old_values?: SortOrder new_values?: SortOrder changed_fields?: SortOrder is_internal?: SortOrder is_system_generated?: SortOrder attachments?: SortOrder created_at?: SortOrder created_by?: SortOrder notifications_sent?: SortOrder notification_status?: SortOrder } export type incident_updatesMaxOrderByAggregateInput = { id?: SortOrder incident_id?: SortOrder update_type?: SortOrder title?: SortOrder description?: SortOrder is_internal?: SortOrder is_system_generated?: SortOrder created_at?: SortOrder created_by?: SortOrder notification_status?: SortOrder } export type incident_updatesMinOrderByAggregateInput = { id?: SortOrder incident_id?: SortOrder update_type?: SortOrder title?: SortOrder description?: SortOrder is_internal?: SortOrder is_system_generated?: SortOrder created_at?: SortOrder created_by?: SortOrder notification_status?: SortOrder } export type DateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] notIn?: Date[] | string[] 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 AlertsListRelationFilter = { every?: alertsWhereInput some?: alertsWhereInput none?: alertsWhereInput } export type Incident_updatesListRelationFilter = { every?: incident_updatesWhereInput some?: incident_updatesWhereInput none?: incident_updatesWhereInput } export type Team_membersNullableScalarRelationFilter = { is?: team_membersWhereInput | null isNot?: team_membersWhereInput | null } export type GeofencesNullableScalarRelationFilter = { is?: geofencesWhereInput | null isNot?: geofencesWhereInput | null } export type alertsOrderByRelationAggregateInput = { _count?: SortOrder } export type incident_updatesOrderByRelationAggregateInput = { _count?: SortOrder } export type incidentsOrderByRelevanceInput = { fields: incidentsOrderByRelevanceFieldEnum | incidentsOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type incidentsCountOrderByAggregateInput = { id?: SortOrder incident_number?: SortOrder title?: SortOrder description?: SortOrder type?: SortOrder severity?: SortOrder priority?: SortOrder status?: SortOrder location?: SortOrder coordinates_lat?: SortOrder coordinates_lng?: SortOrder address?: SortOrder zone?: SortOrder building?: SortOrder floor?: SortOrder room?: SortOrder reported_by?: SortOrder reporter_name?: SortOrder reporter_contact?: SortOrder reporter_type?: SortOrder assigned_to?: SortOrder assigned_team?: SortOrder assigned_at?: SortOrder occurred_at?: SortOrder reported_at?: SortOrder acknowledged_at?: SortOrder resolved_at?: SortOrder closed_at?: SortOrder due_date?: SortOrder tags?: SortOrder attachments?: SortOrder evidence?: SortOrder witnesses?: SortOrder related_incidents?: SortOrder camera_ids?: SortOrder geofence_id?: SortOrder alert_id?: SortOrder metadata?: SortOrder custom_fields?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder deleted_at?: SortOrder deleted_by?: SortOrder } export type incidentsAvgOrderByAggregateInput = { coordinates_lat?: SortOrder coordinates_lng?: SortOrder } export type incidentsMaxOrderByAggregateInput = { id?: SortOrder incident_number?: SortOrder title?: SortOrder description?: SortOrder type?: SortOrder severity?: SortOrder priority?: SortOrder status?: SortOrder coordinates_lat?: SortOrder coordinates_lng?: SortOrder address?: SortOrder zone?: SortOrder building?: SortOrder floor?: SortOrder room?: SortOrder reported_by?: SortOrder reporter_name?: SortOrder reporter_contact?: SortOrder reporter_type?: SortOrder assigned_to?: SortOrder assigned_team?: SortOrder assigned_at?: SortOrder occurred_at?: SortOrder reported_at?: SortOrder acknowledged_at?: SortOrder resolved_at?: SortOrder closed_at?: SortOrder due_date?: SortOrder geofence_id?: SortOrder alert_id?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder deleted_at?: SortOrder deleted_by?: SortOrder } export type incidentsMinOrderByAggregateInput = { id?: SortOrder incident_number?: SortOrder title?: SortOrder description?: SortOrder type?: SortOrder severity?: SortOrder priority?: SortOrder status?: SortOrder coordinates_lat?: SortOrder coordinates_lng?: SortOrder address?: SortOrder zone?: SortOrder building?: SortOrder floor?: SortOrder room?: SortOrder reported_by?: SortOrder reporter_name?: SortOrder reporter_contact?: SortOrder reporter_type?: SortOrder assigned_to?: SortOrder assigned_team?: SortOrder assigned_at?: SortOrder occurred_at?: SortOrder reported_at?: SortOrder acknowledged_at?: SortOrder resolved_at?: SortOrder closed_at?: SortOrder due_date?: SortOrder geofence_id?: SortOrder alert_id?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder deleted_at?: SortOrder deleted_by?: SortOrder } export type incidentsSumOrderByAggregateInput = { coordinates_lat?: SortOrder coordinates_lng?: SortOrder } export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] notIn?: Date[] | string[] 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 Enumktp_validation_audit_actionFilter<$PrismaModel = never> = { equals?: $Enums.ktp_validation_audit_action | Enumktp_validation_audit_actionFieldRefInput<$PrismaModel> in?: $Enums.ktp_validation_audit_action[] notIn?: $Enums.ktp_validation_audit_action[] not?: NestedEnumktp_validation_audit_actionFilter<$PrismaModel> | $Enums.ktp_validation_audit_action } export type Visitor_ktp_dataScalarRelationFilter = { is?: visitor_ktp_dataWhereInput isNot?: visitor_ktp_dataWhereInput } export type ktp_validation_auditOrderByRelevanceInput = { fields: ktp_validation_auditOrderByRelevanceFieldEnum | ktp_validation_auditOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type ktp_validation_auditCountOrderByAggregateInput = { id?: SortOrder ktp_data_id?: SortOrder action?: SortOrder old_values?: SortOrder new_values?: SortOrder performed_by?: SortOrder ip_address?: SortOrder user_agent?: SortOrder reason?: SortOrder created_at?: SortOrder metadata?: SortOrder } export type ktp_validation_auditMaxOrderByAggregateInput = { id?: SortOrder ktp_data_id?: SortOrder action?: SortOrder performed_by?: SortOrder ip_address?: SortOrder user_agent?: SortOrder reason?: SortOrder created_at?: SortOrder } export type ktp_validation_auditMinOrderByAggregateInput = { id?: SortOrder ktp_data_id?: SortOrder action?: SortOrder performed_by?: SortOrder ip_address?: SortOrder user_agent?: SortOrder reason?: SortOrder created_at?: SortOrder } export type Enumktp_validation_audit_actionWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ktp_validation_audit_action | Enumktp_validation_audit_actionFieldRefInput<$PrismaModel> in?: $Enums.ktp_validation_audit_action[] notIn?: $Enums.ktp_validation_audit_action[] not?: NestedEnumktp_validation_audit_actionWithAggregatesFilter<$PrismaModel> | $Enums.ktp_validation_audit_action _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumktp_validation_audit_actionFilter<$PrismaModel> _max?: NestedEnumktp_validation_audit_actionFilter<$PrismaModel> } export type map_pinsOrderByRelevanceInput = { fields: map_pinsOrderByRelevanceFieldEnum | map_pinsOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type map_pinsCountOrderByAggregateInput = { id?: SortOrder type?: SortOrder coordinates?: SortOrder title?: SortOrder description?: SortOrder status?: SortOrder priority?: SortOrder icon_type?: SortOrder icon_color?: SortOrder size?: SortOrder is_visible?: SortOrder is_clickable?: SortOrder metadata?: SortOrder alert_id?: SortOrder incident_id?: SortOrder team_member_id?: SortOrder camera_id?: SortOrder geofence_id?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder } export type map_pinsMaxOrderByAggregateInput = { id?: SortOrder type?: SortOrder title?: SortOrder description?: SortOrder status?: SortOrder priority?: SortOrder icon_type?: SortOrder icon_color?: SortOrder size?: SortOrder is_visible?: SortOrder is_clickable?: SortOrder alert_id?: SortOrder incident_id?: SortOrder team_member_id?: SortOrder camera_id?: SortOrder geofence_id?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder } export type map_pinsMinOrderByAggregateInput = { id?: SortOrder type?: SortOrder title?: SortOrder description?: SortOrder status?: SortOrder priority?: SortOrder icon_type?: SortOrder icon_color?: SortOrder size?: SortOrder is_visible?: SortOrder is_clickable?: SortOrder alert_id?: SortOrder incident_id?: SortOrder team_member_id?: SortOrder camera_id?: SortOrder geofence_id?: SortOrder created_at?: SortOrder updated_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder } export type Enumperumahan_facilities_statusNullableFilter<$PrismaModel = never> = { equals?: $Enums.perumahan_facilities_status | Enumperumahan_facilities_statusFieldRefInput<$PrismaModel> | null in?: $Enums.perumahan_facilities_status[] | null notIn?: $Enums.perumahan_facilities_status[] | null not?: NestedEnumperumahan_facilities_statusNullableFilter<$PrismaModel> | $Enums.perumahan_facilities_status | null } export type perumahan_facilitiesOrderByRelevanceInput = { fields: perumahan_facilitiesOrderByRelevanceFieldEnum | perumahan_facilitiesOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type perumahan_facilitiesCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder type?: SortOrder description?: SortOrder location?: SortOrder lat?: SortOrder lng?: SortOrder status?: SortOrder operating_hours?: SortOrder contact_info?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type perumahan_facilitiesAvgOrderByAggregateInput = { id?: SortOrder lat?: SortOrder lng?: SortOrder } export type perumahan_facilitiesMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder type?: SortOrder description?: SortOrder location?: SortOrder lat?: SortOrder lng?: SortOrder status?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type perumahan_facilitiesMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder type?: SortOrder description?: SortOrder location?: SortOrder lat?: SortOrder lng?: SortOrder status?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type perumahan_facilitiesSumOrderByAggregateInput = { id?: SortOrder lat?: SortOrder lng?: SortOrder } export type Enumperumahan_facilities_statusNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.perumahan_facilities_status | Enumperumahan_facilities_statusFieldRefInput<$PrismaModel> | null in?: $Enums.perumahan_facilities_status[] | null notIn?: $Enums.perumahan_facilities_status[] | null not?: NestedEnumperumahan_facilities_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.perumahan_facilities_status | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedEnumperumahan_facilities_statusNullableFilter<$PrismaModel> _max?: NestedEnumperumahan_facilities_statusNullableFilter<$PrismaModel> } export type perumahan_infoOrderByRelevanceInput = { fields: perumahan_infoOrderByRelevanceFieldEnum | perumahan_infoOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type perumahan_infoCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder total_units?: SortOrder clusters?: SortOrder address?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type perumahan_infoAvgOrderByAggregateInput = { id?: SortOrder total_units?: SortOrder } export type perumahan_infoMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder total_units?: SortOrder address?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type perumahan_infoMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder total_units?: SortOrder address?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type perumahan_infoSumOrderByAggregateInput = { id?: SortOrder total_units?: SortOrder } export type BoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type Enumqr_codes_security_levelFilter<$PrismaModel = never> = { equals?: $Enums.qr_codes_security_level | Enumqr_codes_security_levelFieldRefInput<$PrismaModel> in?: $Enums.qr_codes_security_level[] notIn?: $Enums.qr_codes_security_level[] not?: NestedEnumqr_codes_security_levelFilter<$PrismaModel> | $Enums.qr_codes_security_level } export type Visitor_registrationsListRelationFilter = { every?: visitor_registrationsWhereInput some?: visitor_registrationsWhereInput none?: visitor_registrationsWhereInput } export type visitor_registrationsOrderByRelationAggregateInput = { _count?: SortOrder } export type qr_codesOrderByRelevanceInput = { fields: qr_codesOrderByRelevanceFieldEnum | qr_codesOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type qr_codesCountOrderByAggregateInput = { id?: SortOrder entry_point?: SortOrder qr_data?: SortOrder location_lat?: SortOrder location_lng?: SortOrder geofence_radius?: SortOrder is_active?: SortOrder description?: SortOrder max_daily_registrations?: SortOrder operating_hours?: SortOrder security_level?: SortOrder requires_approval?: SortOrder auto_approve_roles?: SortOrder metadata?: SortOrder last_used_at?: SortOrder usage_count?: SortOrder created_by?: SortOrder updated_by?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type qr_codesAvgOrderByAggregateInput = { location_lat?: SortOrder location_lng?: SortOrder geofence_radius?: SortOrder max_daily_registrations?: SortOrder usage_count?: SortOrder } export type qr_codesMaxOrderByAggregateInput = { id?: SortOrder entry_point?: SortOrder qr_data?: SortOrder location_lat?: SortOrder location_lng?: SortOrder geofence_radius?: SortOrder is_active?: SortOrder description?: SortOrder max_daily_registrations?: SortOrder security_level?: SortOrder requires_approval?: SortOrder last_used_at?: SortOrder usage_count?: SortOrder created_by?: SortOrder updated_by?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type qr_codesMinOrderByAggregateInput = { id?: SortOrder entry_point?: SortOrder qr_data?: SortOrder location_lat?: SortOrder location_lng?: SortOrder geofence_radius?: SortOrder is_active?: SortOrder description?: SortOrder max_daily_registrations?: SortOrder security_level?: SortOrder requires_approval?: SortOrder last_used_at?: SortOrder usage_count?: SortOrder created_by?: SortOrder updated_by?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type qr_codesSumOrderByAggregateInput = { location_lat?: SortOrder location_lng?: SortOrder geofence_radius?: SortOrder max_daily_registrations?: SortOrder usage_count?: SortOrder } export type BoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type Enumqr_codes_security_levelWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.qr_codes_security_level | Enumqr_codes_security_levelFieldRefInput<$PrismaModel> in?: $Enums.qr_codes_security_level[] notIn?: $Enums.qr_codes_security_level[] not?: NestedEnumqr_codes_security_levelWithAggregatesFilter<$PrismaModel> | $Enums.qr_codes_security_level _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumqr_codes_security_levelFilter<$PrismaModel> _max?: NestedEnumqr_codes_security_levelFilter<$PrismaModel> } export type Enumsecurity_activities_severityNullableFilter<$PrismaModel = never> = { equals?: $Enums.security_activities_severity | Enumsecurity_activities_severityFieldRefInput<$PrismaModel> | null in?: $Enums.security_activities_severity[] | null notIn?: $Enums.security_activities_severity[] | null not?: NestedEnumsecurity_activities_severityNullableFilter<$PrismaModel> | $Enums.security_activities_severity | null } export type security_activitiesOrderByRelevanceInput = { fields: security_activitiesOrderByRelevanceFieldEnum | security_activitiesOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type security_activitiesCountOrderByAggregateInput = { id?: SortOrder type?: SortOrder ref_id?: SortOrder actor?: SortOrder note?: SortOrder severity?: SortOrder timestamp?: SortOrder metadata?: SortOrder source?: SortOrder } export type security_activitiesAvgOrderByAggregateInput = { id?: SortOrder } export type security_activitiesMaxOrderByAggregateInput = { id?: SortOrder type?: SortOrder ref_id?: SortOrder actor?: SortOrder note?: SortOrder severity?: SortOrder timestamp?: SortOrder source?: SortOrder } export type security_activitiesMinOrderByAggregateInput = { id?: SortOrder type?: SortOrder ref_id?: SortOrder actor?: SortOrder note?: SortOrder severity?: SortOrder timestamp?: SortOrder source?: SortOrder } export type security_activitiesSumOrderByAggregateInput = { id?: SortOrder } export type Enumsecurity_activities_severityNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.security_activities_severity | Enumsecurity_activities_severityFieldRefInput<$PrismaModel> | null in?: $Enums.security_activities_severity[] | null notIn?: $Enums.security_activities_severity[] | null not?: NestedEnumsecurity_activities_severityNullableWithAggregatesFilter<$PrismaModel> | $Enums.security_activities_severity | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedEnumsecurity_activities_severityNullableFilter<$PrismaModel> _max?: NestedEnumsecurity_activities_severityNullableFilter<$PrismaModel> } export type sequelizemetaOrderByRelevanceInput = { fields: sequelizemetaOrderByRelevanceFieldEnum | sequelizemetaOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type sequelizemetaCountOrderByAggregateInput = { name?: SortOrder } export type sequelizemetaMaxOrderByAggregateInput = { name?: SortOrder } export type sequelizemetaMinOrderByAggregateInput = { name?: SortOrder } export type Team_membersScalarRelationFilter = { is?: team_membersWhereInput isNot?: team_membersWhereInput } export type team_location_historyOrderByRelevanceInput = { fields: team_location_historyOrderByRelevanceFieldEnum | team_location_historyOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type team_location_historyCountOrderByAggregateInput = { id?: SortOrder member_id?: SortOrder location?: SortOrder lat?: SortOrder lng?: SortOrder activity_type?: SortOrder timestamp?: SortOrder } export type team_location_historyAvgOrderByAggregateInput = { id?: SortOrder lat?: SortOrder lng?: SortOrder } export type team_location_historyMaxOrderByAggregateInput = { id?: SortOrder member_id?: SortOrder location?: SortOrder lat?: SortOrder lng?: SortOrder activity_type?: SortOrder timestamp?: SortOrder } export type team_location_historyMinOrderByAggregateInput = { id?: SortOrder member_id?: SortOrder location?: SortOrder lat?: SortOrder lng?: SortOrder activity_type?: SortOrder timestamp?: SortOrder } export type team_location_historySumOrderByAggregateInput = { id?: SortOrder lat?: SortOrder lng?: SortOrder } export type Enumteam_members_statusNullableFilter<$PrismaModel = never> = { equals?: $Enums.team_members_status | Enumteam_members_statusFieldRefInput<$PrismaModel> | null in?: $Enums.team_members_status[] | null notIn?: $Enums.team_members_status[] | null not?: NestedEnumteam_members_statusNullableFilter<$PrismaModel> | $Enums.team_members_status | null } export type Team_location_historyListRelationFilter = { every?: team_location_historyWhereInput some?: team_location_historyWhereInput none?: team_location_historyWhereInput } export type team_location_historyOrderByRelationAggregateInput = { _count?: SortOrder } export type team_membersOrderByRelevanceInput = { fields: team_membersOrderByRelevanceFieldEnum | team_membersOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type team_membersCountOrderByAggregateInput = { id?: SortOrder nama?: SortOrder role?: SortOrder status?: SortOrder phone?: SortOrder email?: SortOrder current_location?: SortOrder last_update?: SortOrder shift_start?: SortOrder shift_end?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type team_membersMaxOrderByAggregateInput = { id?: SortOrder nama?: SortOrder role?: SortOrder status?: SortOrder phone?: SortOrder email?: SortOrder current_location?: SortOrder last_update?: SortOrder shift_start?: SortOrder shift_end?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type team_membersMinOrderByAggregateInput = { id?: SortOrder nama?: SortOrder role?: SortOrder status?: SortOrder phone?: SortOrder email?: SortOrder current_location?: SortOrder last_update?: SortOrder shift_start?: SortOrder shift_end?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type Enumteam_members_statusNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.team_members_status | Enumteam_members_statusFieldRefInput<$PrismaModel> | null in?: $Enums.team_members_status[] | null notIn?: $Enums.team_members_status[] | null not?: NestedEnumteam_members_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.team_members_status | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedEnumteam_members_statusNullableFilter<$PrismaModel> _max?: NestedEnumteam_members_statusNullableFilter<$PrismaModel> } export type Enumvisitor_ktp_data_genderNullableFilter<$PrismaModel = never> = { equals?: $Enums.visitor_ktp_data_gender | Enumvisitor_ktp_data_genderFieldRefInput<$PrismaModel> | null in?: $Enums.visitor_ktp_data_gender[] | null notIn?: $Enums.visitor_ktp_data_gender[] | null not?: NestedEnumvisitor_ktp_data_genderNullableFilter<$PrismaModel> | $Enums.visitor_ktp_data_gender | null } export type Enumvisitor_ktp_data_validation_statusFilter<$PrismaModel = never> = { equals?: $Enums.visitor_ktp_data_validation_status | Enumvisitor_ktp_data_validation_statusFieldRefInput<$PrismaModel> in?: $Enums.visitor_ktp_data_validation_status[] notIn?: $Enums.visitor_ktp_data_validation_status[] not?: NestedEnumvisitor_ktp_data_validation_statusFilter<$PrismaModel> | $Enums.visitor_ktp_data_validation_status } export type Ktp_validation_auditListRelationFilter = { every?: ktp_validation_auditWhereInput some?: ktp_validation_auditWhereInput none?: ktp_validation_auditWhereInput } export type ktp_validation_auditOrderByRelationAggregateInput = { _count?: SortOrder } export type visitor_ktp_dataOrderByRelevanceInput = { fields: visitor_ktp_dataOrderByRelevanceFieldEnum | visitor_ktp_dataOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type visitor_ktp_dataCountOrderByAggregateInput = { id?: SortOrder visitor_registration_id?: SortOrder ktp_number?: SortOrder full_name?: SortOrder birth_date?: SortOrder birth_place?: SortOrder gender?: SortOrder address?: SortOrder rt_rw?: SortOrder kelurahan?: SortOrder kecamatan?: SortOrder religion?: SortOrder marital_status?: SortOrder occupation?: SortOrder nationality?: SortOrder ktp_photo_url?: SortOrder ktp_photo_hash?: SortOrder validation_status?: SortOrder validation_confidence?: SortOrder validation_notes?: SortOrder validated_by?: SortOrder validated_at?: SortOrder ocr_raw_data?: SortOrder manual_corrections?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type visitor_ktp_dataAvgOrderByAggregateInput = { validation_confidence?: SortOrder } export type visitor_ktp_dataMaxOrderByAggregateInput = { id?: SortOrder visitor_registration_id?: SortOrder ktp_number?: SortOrder full_name?: SortOrder birth_date?: SortOrder birth_place?: SortOrder gender?: SortOrder address?: SortOrder rt_rw?: SortOrder kelurahan?: SortOrder kecamatan?: SortOrder religion?: SortOrder marital_status?: SortOrder occupation?: SortOrder nationality?: SortOrder ktp_photo_url?: SortOrder ktp_photo_hash?: SortOrder validation_status?: SortOrder validation_confidence?: SortOrder validation_notes?: SortOrder validated_by?: SortOrder validated_at?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type visitor_ktp_dataMinOrderByAggregateInput = { id?: SortOrder visitor_registration_id?: SortOrder ktp_number?: SortOrder full_name?: SortOrder birth_date?: SortOrder birth_place?: SortOrder gender?: SortOrder address?: SortOrder rt_rw?: SortOrder kelurahan?: SortOrder kecamatan?: SortOrder religion?: SortOrder marital_status?: SortOrder occupation?: SortOrder nationality?: SortOrder ktp_photo_url?: SortOrder ktp_photo_hash?: SortOrder validation_status?: SortOrder validation_confidence?: SortOrder validation_notes?: SortOrder validated_by?: SortOrder validated_at?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type visitor_ktp_dataSumOrderByAggregateInput = { validation_confidence?: SortOrder } export type Enumvisitor_ktp_data_genderNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.visitor_ktp_data_gender | Enumvisitor_ktp_data_genderFieldRefInput<$PrismaModel> | null in?: $Enums.visitor_ktp_data_gender[] | null notIn?: $Enums.visitor_ktp_data_gender[] | null not?: NestedEnumvisitor_ktp_data_genderNullableWithAggregatesFilter<$PrismaModel> | $Enums.visitor_ktp_data_gender | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedEnumvisitor_ktp_data_genderNullableFilter<$PrismaModel> _max?: NestedEnumvisitor_ktp_data_genderNullableFilter<$PrismaModel> } export type Enumvisitor_ktp_data_validation_statusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.visitor_ktp_data_validation_status | Enumvisitor_ktp_data_validation_statusFieldRefInput<$PrismaModel> in?: $Enums.visitor_ktp_data_validation_status[] notIn?: $Enums.visitor_ktp_data_validation_status[] not?: NestedEnumvisitor_ktp_data_validation_statusWithAggregatesFilter<$PrismaModel> | $Enums.visitor_ktp_data_validation_status _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumvisitor_ktp_data_validation_statusFilter<$PrismaModel> _max?: NestedEnumvisitor_ktp_data_validation_statusFilter<$PrismaModel> } export type Enumvisitor_registrations_statusFilter<$PrismaModel = never> = { equals?: $Enums.visitor_registrations_status | Enumvisitor_registrations_statusFieldRefInput<$PrismaModel> in?: $Enums.visitor_registrations_status[] notIn?: $Enums.visitor_registrations_status[] not?: NestedEnumvisitor_registrations_statusFilter<$PrismaModel> | $Enums.visitor_registrations_status } export type Qr_codesNullableScalarRelationFilter = { is?: qr_codesWhereInput | null isNot?: qr_codesWhereInput | null } export type visitor_registrationsOrderByRelevanceInput = { fields: visitor_registrationsOrderByRelevanceFieldEnum | visitor_registrationsOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type visitor_registrationsCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder phone?: SortOrder photo_url?: SortOrder purpose?: SortOrder entry_point?: SortOrder location_lat?: SortOrder location_lng?: SortOrder qr_code_id?: SortOrder status?: SortOrder approved_by?: SortOrder approved_at?: SortOrder rejected_by?: SortOrder rejected_at?: SortOrder rejection_reason?: SortOrder expires_at?: SortOrder checked_in_at?: SortOrder checked_out_at?: SortOrder metadata?: SortOrder created_by?: SortOrder updated_by?: SortOrder created_at?: SortOrder updated_at?: SortOrder location_address?: SortOrder location_updated_at?: SortOrder } export type visitor_registrationsAvgOrderByAggregateInput = { location_lat?: SortOrder location_lng?: SortOrder } export type visitor_registrationsMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder phone?: SortOrder photo_url?: SortOrder purpose?: SortOrder entry_point?: SortOrder location_lat?: SortOrder location_lng?: SortOrder qr_code_id?: SortOrder status?: SortOrder approved_by?: SortOrder approved_at?: SortOrder rejected_by?: SortOrder rejected_at?: SortOrder rejection_reason?: SortOrder expires_at?: SortOrder checked_in_at?: SortOrder checked_out_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder created_at?: SortOrder updated_at?: SortOrder location_address?: SortOrder location_updated_at?: SortOrder } export type visitor_registrationsMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder phone?: SortOrder photo_url?: SortOrder purpose?: SortOrder entry_point?: SortOrder location_lat?: SortOrder location_lng?: SortOrder qr_code_id?: SortOrder status?: SortOrder approved_by?: SortOrder approved_at?: SortOrder rejected_by?: SortOrder rejected_at?: SortOrder rejection_reason?: SortOrder expires_at?: SortOrder checked_in_at?: SortOrder checked_out_at?: SortOrder created_by?: SortOrder updated_by?: SortOrder created_at?: SortOrder updated_at?: SortOrder location_address?: SortOrder location_updated_at?: SortOrder } export type visitor_registrationsSumOrderByAggregateInput = { location_lat?: SortOrder location_lng?: SortOrder } export type Enumvisitor_registrations_statusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.visitor_registrations_status | Enumvisitor_registrations_statusFieldRefInput<$PrismaModel> in?: $Enums.visitor_registrations_status[] notIn?: $Enums.visitor_registrations_status[] not?: NestedEnumvisitor_registrations_statusWithAggregatesFilter<$PrismaModel> | $Enums.visitor_registrations_status _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumvisitor_registrations_statusFilter<$PrismaModel> _max?: NestedEnumvisitor_registrations_statusFilter<$PrismaModel> } export type alertsCreateNestedOneWithoutAlert_recipientsInput = { create?: XOR connectOrCreate?: alertsCreateOrConnectWithoutAlert_recipientsInput connect?: alertsWhereUniqueInput } export type StringFieldUpdateOperationsInput = { set?: string } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type NullableIntFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type alertsUpdateOneRequiredWithoutAlert_recipientsNestedInput = { create?: XOR connectOrCreate?: alertsCreateOrConnectWithoutAlert_recipientsInput upsert?: alertsUpsertWithoutAlert_recipientsInput connect?: alertsWhereUniqueInput update?: XOR, alertsUncheckedUpdateWithoutAlert_recipientsInput> } export type alert_recipientsCreateNestedManyWithoutAlertsInput = { create?: XOR | alert_recipientsCreateWithoutAlertsInput[] | alert_recipientsUncheckedCreateWithoutAlertsInput[] connectOrCreate?: alert_recipientsCreateOrConnectWithoutAlertsInput | alert_recipientsCreateOrConnectWithoutAlertsInput[] createMany?: alert_recipientsCreateManyAlertsInputEnvelope connect?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[] } export type incidentsCreateNestedOneWithoutAlertsInput = { create?: XOR connectOrCreate?: incidentsCreateOrConnectWithoutAlertsInput connect?: incidentsWhereUniqueInput } export type alert_recipientsUncheckedCreateNestedManyWithoutAlertsInput = { create?: XOR | alert_recipientsCreateWithoutAlertsInput[] | alert_recipientsUncheckedCreateWithoutAlertsInput[] connectOrCreate?: alert_recipientsCreateOrConnectWithoutAlertsInput | alert_recipientsCreateOrConnectWithoutAlertsInput[] createMany?: alert_recipientsCreateManyAlertsInputEnvelope connect?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[] } export type NullableBoolFieldUpdateOperationsInput = { set?: boolean | null } export type NullableDecimalFieldUpdateOperationsInput = { set?: Decimal | DecimalJsLike | number | string | null increment?: Decimal | DecimalJsLike | number | string decrement?: Decimal | DecimalJsLike | number | string multiply?: Decimal | DecimalJsLike | number | string divide?: Decimal | DecimalJsLike | number | string } export type alert_recipientsUpdateManyWithoutAlertsNestedInput = { create?: XOR | alert_recipientsCreateWithoutAlertsInput[] | alert_recipientsUncheckedCreateWithoutAlertsInput[] connectOrCreate?: alert_recipientsCreateOrConnectWithoutAlertsInput | alert_recipientsCreateOrConnectWithoutAlertsInput[] upsert?: alert_recipientsUpsertWithWhereUniqueWithoutAlertsInput | alert_recipientsUpsertWithWhereUniqueWithoutAlertsInput[] createMany?: alert_recipientsCreateManyAlertsInputEnvelope set?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[] disconnect?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[] delete?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[] connect?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[] update?: alert_recipientsUpdateWithWhereUniqueWithoutAlertsInput | alert_recipientsUpdateWithWhereUniqueWithoutAlertsInput[] updateMany?: alert_recipientsUpdateManyWithWhereWithoutAlertsInput | alert_recipientsUpdateManyWithWhereWithoutAlertsInput[] deleteMany?: alert_recipientsScalarWhereInput | alert_recipientsScalarWhereInput[] } export type incidentsUpdateOneWithoutAlertsNestedInput = { create?: XOR connectOrCreate?: incidentsCreateOrConnectWithoutAlertsInput upsert?: incidentsUpsertWithoutAlertsInput disconnect?: incidentsWhereInput | boolean delete?: incidentsWhereInput | boolean connect?: incidentsWhereUniqueInput update?: XOR, incidentsUncheckedUpdateWithoutAlertsInput> } export type alert_recipientsUncheckedUpdateManyWithoutAlertsNestedInput = { create?: XOR | alert_recipientsCreateWithoutAlertsInput[] | alert_recipientsUncheckedCreateWithoutAlertsInput[] connectOrCreate?: alert_recipientsCreateOrConnectWithoutAlertsInput | alert_recipientsCreateOrConnectWithoutAlertsInput[] upsert?: alert_recipientsUpsertWithWhereUniqueWithoutAlertsInput | alert_recipientsUpsertWithWhereUniqueWithoutAlertsInput[] createMany?: alert_recipientsCreateManyAlertsInputEnvelope set?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[] disconnect?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[] delete?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[] connect?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[] update?: alert_recipientsUpdateWithWhereUniqueWithoutAlertsInput | alert_recipientsUpdateWithWhereUniqueWithoutAlertsInput[] updateMany?: alert_recipientsUpdateManyWithWhereWithoutAlertsInput | alert_recipientsUpdateManyWithWhereWithoutAlertsInput[] deleteMany?: alert_recipientsScalarWhereInput | alert_recipientsScalarWhereInput[] } export type camerasCreateNestedOneWithoutCamera_health_logInput = { create?: XOR connectOrCreate?: camerasCreateOrConnectWithoutCamera_health_logInput connect?: camerasWhereUniqueInput } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type camerasUpdateOneRequiredWithoutCamera_health_logNestedInput = { create?: XOR connectOrCreate?: camerasCreateOrConnectWithoutCamera_health_logInput upsert?: camerasUpsertWithoutCamera_health_logInput connect?: camerasWhereUniqueInput update?: XOR, camerasUncheckedUpdateWithoutCamera_health_logInput> } export type camera_health_logCreateNestedManyWithoutCamerasInput = { create?: XOR | camera_health_logCreateWithoutCamerasInput[] | camera_health_logUncheckedCreateWithoutCamerasInput[] connectOrCreate?: camera_health_logCreateOrConnectWithoutCamerasInput | camera_health_logCreateOrConnectWithoutCamerasInput[] createMany?: camera_health_logCreateManyCamerasInputEnvelope connect?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[] } export type camera_health_logUncheckedCreateNestedManyWithoutCamerasInput = { create?: XOR | camera_health_logCreateWithoutCamerasInput[] | camera_health_logUncheckedCreateWithoutCamerasInput[] connectOrCreate?: camera_health_logCreateOrConnectWithoutCamerasInput | camera_health_logCreateOrConnectWithoutCamerasInput[] createMany?: camera_health_logCreateManyCamerasInputEnvelope connect?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[] } export type DecimalFieldUpdateOperationsInput = { set?: Decimal | DecimalJsLike | number | string increment?: Decimal | DecimalJsLike | number | string decrement?: Decimal | DecimalJsLike | number | string multiply?: Decimal | DecimalJsLike | number | string divide?: Decimal | DecimalJsLike | number | string } export type NullableEnumcameras_statusFieldUpdateOperationsInput = { set?: $Enums.cameras_status | null } export type camera_health_logUpdateManyWithoutCamerasNestedInput = { create?: XOR | camera_health_logCreateWithoutCamerasInput[] | camera_health_logUncheckedCreateWithoutCamerasInput[] connectOrCreate?: camera_health_logCreateOrConnectWithoutCamerasInput | camera_health_logCreateOrConnectWithoutCamerasInput[] upsert?: camera_health_logUpsertWithWhereUniqueWithoutCamerasInput | camera_health_logUpsertWithWhereUniqueWithoutCamerasInput[] createMany?: camera_health_logCreateManyCamerasInputEnvelope set?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[] disconnect?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[] delete?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[] connect?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[] update?: camera_health_logUpdateWithWhereUniqueWithoutCamerasInput | camera_health_logUpdateWithWhereUniqueWithoutCamerasInput[] updateMany?: camera_health_logUpdateManyWithWhereWithoutCamerasInput | camera_health_logUpdateManyWithWhereWithoutCamerasInput[] deleteMany?: camera_health_logScalarWhereInput | camera_health_logScalarWhereInput[] } export type camera_health_logUncheckedUpdateManyWithoutCamerasNestedInput = { create?: XOR | camera_health_logCreateWithoutCamerasInput[] | camera_health_logUncheckedCreateWithoutCamerasInput[] connectOrCreate?: camera_health_logCreateOrConnectWithoutCamerasInput | camera_health_logCreateOrConnectWithoutCamerasInput[] upsert?: camera_health_logUpsertWithWhereUniqueWithoutCamerasInput | camera_health_logUpsertWithWhereUniqueWithoutCamerasInput[] createMany?: camera_health_logCreateManyCamerasInputEnvelope set?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[] disconnect?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[] delete?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[] connect?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[] update?: camera_health_logUpdateWithWhereUniqueWithoutCamerasInput | camera_health_logUpdateWithWhereUniqueWithoutCamerasInput[] updateMany?: camera_health_logUpdateManyWithWhereWithoutCamerasInput | camera_health_logUpdateManyWithWhereWithoutCamerasInput[] deleteMany?: camera_health_logScalarWhereInput | camera_health_logScalarWhereInput[] } export type NullableBigIntFieldUpdateOperationsInput = { set?: bigint | number | null increment?: bigint | number decrement?: bigint | number multiply?: bigint | number divide?: bigint | number } export type geofencesCreateNestedOneWithoutGeofence_breachesInput = { create?: XOR connectOrCreate?: geofencesCreateOrConnectWithoutGeofence_breachesInput connect?: geofencesWhereUniqueInput } export type geofencesUpdateOneRequiredWithoutGeofence_breachesNestedInput = { create?: XOR connectOrCreate?: geofencesCreateOrConnectWithoutGeofence_breachesInput upsert?: geofencesUpsertWithoutGeofence_breachesInput connect?: geofencesWhereUniqueInput update?: XOR, geofencesUncheckedUpdateWithoutGeofence_breachesInput> } export type geofence_breachesCreateNestedManyWithoutGeofencesInput = { create?: XOR | geofence_breachesCreateWithoutGeofencesInput[] | geofence_breachesUncheckedCreateWithoutGeofencesInput[] connectOrCreate?: geofence_breachesCreateOrConnectWithoutGeofencesInput | geofence_breachesCreateOrConnectWithoutGeofencesInput[] createMany?: geofence_breachesCreateManyGeofencesInputEnvelope connect?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[] } export type incidentsCreateNestedManyWithoutGeofencesInput = { create?: XOR | incidentsCreateWithoutGeofencesInput[] | incidentsUncheckedCreateWithoutGeofencesInput[] connectOrCreate?: incidentsCreateOrConnectWithoutGeofencesInput | incidentsCreateOrConnectWithoutGeofencesInput[] createMany?: incidentsCreateManyGeofencesInputEnvelope connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] } export type map_pinsCreateNestedManyWithoutGeofencesInput = { create?: XOR | map_pinsCreateWithoutGeofencesInput[] | map_pinsUncheckedCreateWithoutGeofencesInput[] connectOrCreate?: map_pinsCreateOrConnectWithoutGeofencesInput | map_pinsCreateOrConnectWithoutGeofencesInput[] createMany?: map_pinsCreateManyGeofencesInputEnvelope connect?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[] } export type geofence_breachesUncheckedCreateNestedManyWithoutGeofencesInput = { create?: XOR | geofence_breachesCreateWithoutGeofencesInput[] | geofence_breachesUncheckedCreateWithoutGeofencesInput[] connectOrCreate?: geofence_breachesCreateOrConnectWithoutGeofencesInput | geofence_breachesCreateOrConnectWithoutGeofencesInput[] createMany?: geofence_breachesCreateManyGeofencesInputEnvelope connect?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[] } export type incidentsUncheckedCreateNestedManyWithoutGeofencesInput = { create?: XOR | incidentsCreateWithoutGeofencesInput[] | incidentsUncheckedCreateWithoutGeofencesInput[] connectOrCreate?: incidentsCreateOrConnectWithoutGeofencesInput | incidentsCreateOrConnectWithoutGeofencesInput[] createMany?: incidentsCreateManyGeofencesInputEnvelope connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] } export type map_pinsUncheckedCreateNestedManyWithoutGeofencesInput = { create?: XOR | map_pinsCreateWithoutGeofencesInput[] | map_pinsUncheckedCreateWithoutGeofencesInput[] connectOrCreate?: map_pinsCreateOrConnectWithoutGeofencesInput | map_pinsCreateOrConnectWithoutGeofencesInput[] createMany?: map_pinsCreateManyGeofencesInputEnvelope connect?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[] } export type geofence_breachesUpdateManyWithoutGeofencesNestedInput = { create?: XOR | geofence_breachesCreateWithoutGeofencesInput[] | geofence_breachesUncheckedCreateWithoutGeofencesInput[] connectOrCreate?: geofence_breachesCreateOrConnectWithoutGeofencesInput | geofence_breachesCreateOrConnectWithoutGeofencesInput[] upsert?: geofence_breachesUpsertWithWhereUniqueWithoutGeofencesInput | geofence_breachesUpsertWithWhereUniqueWithoutGeofencesInput[] createMany?: geofence_breachesCreateManyGeofencesInputEnvelope set?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[] disconnect?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[] delete?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[] connect?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[] update?: geofence_breachesUpdateWithWhereUniqueWithoutGeofencesInput | geofence_breachesUpdateWithWhereUniqueWithoutGeofencesInput[] updateMany?: geofence_breachesUpdateManyWithWhereWithoutGeofencesInput | geofence_breachesUpdateManyWithWhereWithoutGeofencesInput[] deleteMany?: geofence_breachesScalarWhereInput | geofence_breachesScalarWhereInput[] } export type incidentsUpdateManyWithoutGeofencesNestedInput = { create?: XOR | incidentsCreateWithoutGeofencesInput[] | incidentsUncheckedCreateWithoutGeofencesInput[] connectOrCreate?: incidentsCreateOrConnectWithoutGeofencesInput | incidentsCreateOrConnectWithoutGeofencesInput[] upsert?: incidentsUpsertWithWhereUniqueWithoutGeofencesInput | incidentsUpsertWithWhereUniqueWithoutGeofencesInput[] createMany?: incidentsCreateManyGeofencesInputEnvelope set?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] disconnect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] delete?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] update?: incidentsUpdateWithWhereUniqueWithoutGeofencesInput | incidentsUpdateWithWhereUniqueWithoutGeofencesInput[] updateMany?: incidentsUpdateManyWithWhereWithoutGeofencesInput | incidentsUpdateManyWithWhereWithoutGeofencesInput[] deleteMany?: incidentsScalarWhereInput | incidentsScalarWhereInput[] } export type map_pinsUpdateManyWithoutGeofencesNestedInput = { create?: XOR | map_pinsCreateWithoutGeofencesInput[] | map_pinsUncheckedCreateWithoutGeofencesInput[] connectOrCreate?: map_pinsCreateOrConnectWithoutGeofencesInput | map_pinsCreateOrConnectWithoutGeofencesInput[] upsert?: map_pinsUpsertWithWhereUniqueWithoutGeofencesInput | map_pinsUpsertWithWhereUniqueWithoutGeofencesInput[] createMany?: map_pinsCreateManyGeofencesInputEnvelope set?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[] disconnect?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[] delete?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[] connect?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[] update?: map_pinsUpdateWithWhereUniqueWithoutGeofencesInput | map_pinsUpdateWithWhereUniqueWithoutGeofencesInput[] updateMany?: map_pinsUpdateManyWithWhereWithoutGeofencesInput | map_pinsUpdateManyWithWhereWithoutGeofencesInput[] deleteMany?: map_pinsScalarWhereInput | map_pinsScalarWhereInput[] } export type geofence_breachesUncheckedUpdateManyWithoutGeofencesNestedInput = { create?: XOR | geofence_breachesCreateWithoutGeofencesInput[] | geofence_breachesUncheckedCreateWithoutGeofencesInput[] connectOrCreate?: geofence_breachesCreateOrConnectWithoutGeofencesInput | geofence_breachesCreateOrConnectWithoutGeofencesInput[] upsert?: geofence_breachesUpsertWithWhereUniqueWithoutGeofencesInput | geofence_breachesUpsertWithWhereUniqueWithoutGeofencesInput[] createMany?: geofence_breachesCreateManyGeofencesInputEnvelope set?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[] disconnect?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[] delete?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[] connect?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[] update?: geofence_breachesUpdateWithWhereUniqueWithoutGeofencesInput | geofence_breachesUpdateWithWhereUniqueWithoutGeofencesInput[] updateMany?: geofence_breachesUpdateManyWithWhereWithoutGeofencesInput | geofence_breachesUpdateManyWithWhereWithoutGeofencesInput[] deleteMany?: geofence_breachesScalarWhereInput | geofence_breachesScalarWhereInput[] } export type incidentsUncheckedUpdateManyWithoutGeofencesNestedInput = { create?: XOR | incidentsCreateWithoutGeofencesInput[] | incidentsUncheckedCreateWithoutGeofencesInput[] connectOrCreate?: incidentsCreateOrConnectWithoutGeofencesInput | incidentsCreateOrConnectWithoutGeofencesInput[] upsert?: incidentsUpsertWithWhereUniqueWithoutGeofencesInput | incidentsUpsertWithWhereUniqueWithoutGeofencesInput[] createMany?: incidentsCreateManyGeofencesInputEnvelope set?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] disconnect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] delete?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] update?: incidentsUpdateWithWhereUniqueWithoutGeofencesInput | incidentsUpdateWithWhereUniqueWithoutGeofencesInput[] updateMany?: incidentsUpdateManyWithWhereWithoutGeofencesInput | incidentsUpdateManyWithWhereWithoutGeofencesInput[] deleteMany?: incidentsScalarWhereInput | incidentsScalarWhereInput[] } export type map_pinsUncheckedUpdateManyWithoutGeofencesNestedInput = { create?: XOR | map_pinsCreateWithoutGeofencesInput[] | map_pinsUncheckedCreateWithoutGeofencesInput[] connectOrCreate?: map_pinsCreateOrConnectWithoutGeofencesInput | map_pinsCreateOrConnectWithoutGeofencesInput[] upsert?: map_pinsUpsertWithWhereUniqueWithoutGeofencesInput | map_pinsUpsertWithWhereUniqueWithoutGeofencesInput[] createMany?: map_pinsCreateManyGeofencesInputEnvelope set?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[] disconnect?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[] delete?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[] connect?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[] update?: map_pinsUpdateWithWhereUniqueWithoutGeofencesInput | map_pinsUpdateWithWhereUniqueWithoutGeofencesInput[] updateMany?: map_pinsUpdateManyWithWhereWithoutGeofencesInput | map_pinsUpdateManyWithWhereWithoutGeofencesInput[] deleteMany?: map_pinsScalarWhereInput | map_pinsScalarWhereInput[] } export type NullableEnumhouses_statusFieldUpdateOperationsInput = { set?: $Enums.houses_status | null } export type incidentsCreateNestedOneWithoutIncident_updatesInput = { create?: XOR connectOrCreate?: incidentsCreateOrConnectWithoutIncident_updatesInput connect?: incidentsWhereUniqueInput } export type incidentsUpdateOneRequiredWithoutIncident_updatesNestedInput = { create?: XOR connectOrCreate?: incidentsCreateOrConnectWithoutIncident_updatesInput upsert?: incidentsUpsertWithoutIncident_updatesInput connect?: incidentsWhereUniqueInput update?: XOR, incidentsUncheckedUpdateWithoutIncident_updatesInput> } export type alertsCreateNestedManyWithoutIncidentsInput = { create?: XOR | alertsCreateWithoutIncidentsInput[] | alertsUncheckedCreateWithoutIncidentsInput[] connectOrCreate?: alertsCreateOrConnectWithoutIncidentsInput | alertsCreateOrConnectWithoutIncidentsInput[] createMany?: alertsCreateManyIncidentsInputEnvelope connect?: alertsWhereUniqueInput | alertsWhereUniqueInput[] } export type incident_updatesCreateNestedManyWithoutIncidentsInput = { create?: XOR | incident_updatesCreateWithoutIncidentsInput[] | incident_updatesUncheckedCreateWithoutIncidentsInput[] connectOrCreate?: incident_updatesCreateOrConnectWithoutIncidentsInput | incident_updatesCreateOrConnectWithoutIncidentsInput[] createMany?: incident_updatesCreateManyIncidentsInputEnvelope connect?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[] } export type team_membersCreateNestedOneWithoutIncidents_incidents_reported_byToteam_membersInput = { create?: XOR connectOrCreate?: team_membersCreateOrConnectWithoutIncidents_incidents_reported_byToteam_membersInput connect?: team_membersWhereUniqueInput } export type team_membersCreateNestedOneWithoutIncidents_incidents_assigned_toToteam_membersInput = { create?: XOR connectOrCreate?: team_membersCreateOrConnectWithoutIncidents_incidents_assigned_toToteam_membersInput connect?: team_membersWhereUniqueInput } export type geofencesCreateNestedOneWithoutIncidentsInput = { create?: XOR connectOrCreate?: geofencesCreateOrConnectWithoutIncidentsInput connect?: geofencesWhereUniqueInput } export type alertsUncheckedCreateNestedManyWithoutIncidentsInput = { create?: XOR | alertsCreateWithoutIncidentsInput[] | alertsUncheckedCreateWithoutIncidentsInput[] connectOrCreate?: alertsCreateOrConnectWithoutIncidentsInput | alertsCreateOrConnectWithoutIncidentsInput[] createMany?: alertsCreateManyIncidentsInputEnvelope connect?: alertsWhereUniqueInput | alertsWhereUniqueInput[] } export type incident_updatesUncheckedCreateNestedManyWithoutIncidentsInput = { create?: XOR | incident_updatesCreateWithoutIncidentsInput[] | incident_updatesUncheckedCreateWithoutIncidentsInput[] connectOrCreate?: incident_updatesCreateOrConnectWithoutIncidentsInput | incident_updatesCreateOrConnectWithoutIncidentsInput[] createMany?: incident_updatesCreateManyIncidentsInputEnvelope connect?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[] } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type alertsUpdateManyWithoutIncidentsNestedInput = { create?: XOR | alertsCreateWithoutIncidentsInput[] | alertsUncheckedCreateWithoutIncidentsInput[] connectOrCreate?: alertsCreateOrConnectWithoutIncidentsInput | alertsCreateOrConnectWithoutIncidentsInput[] upsert?: alertsUpsertWithWhereUniqueWithoutIncidentsInput | alertsUpsertWithWhereUniqueWithoutIncidentsInput[] createMany?: alertsCreateManyIncidentsInputEnvelope set?: alertsWhereUniqueInput | alertsWhereUniqueInput[] disconnect?: alertsWhereUniqueInput | alertsWhereUniqueInput[] delete?: alertsWhereUniqueInput | alertsWhereUniqueInput[] connect?: alertsWhereUniqueInput | alertsWhereUniqueInput[] update?: alertsUpdateWithWhereUniqueWithoutIncidentsInput | alertsUpdateWithWhereUniqueWithoutIncidentsInput[] updateMany?: alertsUpdateManyWithWhereWithoutIncidentsInput | alertsUpdateManyWithWhereWithoutIncidentsInput[] deleteMany?: alertsScalarWhereInput | alertsScalarWhereInput[] } export type incident_updatesUpdateManyWithoutIncidentsNestedInput = { create?: XOR | incident_updatesCreateWithoutIncidentsInput[] | incident_updatesUncheckedCreateWithoutIncidentsInput[] connectOrCreate?: incident_updatesCreateOrConnectWithoutIncidentsInput | incident_updatesCreateOrConnectWithoutIncidentsInput[] upsert?: incident_updatesUpsertWithWhereUniqueWithoutIncidentsInput | incident_updatesUpsertWithWhereUniqueWithoutIncidentsInput[] createMany?: incident_updatesCreateManyIncidentsInputEnvelope set?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[] disconnect?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[] delete?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[] connect?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[] update?: incident_updatesUpdateWithWhereUniqueWithoutIncidentsInput | incident_updatesUpdateWithWhereUniqueWithoutIncidentsInput[] updateMany?: incident_updatesUpdateManyWithWhereWithoutIncidentsInput | incident_updatesUpdateManyWithWhereWithoutIncidentsInput[] deleteMany?: incident_updatesScalarWhereInput | incident_updatesScalarWhereInput[] } export type team_membersUpdateOneWithoutIncidents_incidents_reported_byToteam_membersNestedInput = { create?: XOR connectOrCreate?: team_membersCreateOrConnectWithoutIncidents_incidents_reported_byToteam_membersInput upsert?: team_membersUpsertWithoutIncidents_incidents_reported_byToteam_membersInput disconnect?: team_membersWhereInput | boolean delete?: team_membersWhereInput | boolean connect?: team_membersWhereUniqueInput update?: XOR, team_membersUncheckedUpdateWithoutIncidents_incidents_reported_byToteam_membersInput> } export type team_membersUpdateOneWithoutIncidents_incidents_assigned_toToteam_membersNestedInput = { create?: XOR connectOrCreate?: team_membersCreateOrConnectWithoutIncidents_incidents_assigned_toToteam_membersInput upsert?: team_membersUpsertWithoutIncidents_incidents_assigned_toToteam_membersInput disconnect?: team_membersWhereInput | boolean delete?: team_membersWhereInput | boolean connect?: team_membersWhereUniqueInput update?: XOR, team_membersUncheckedUpdateWithoutIncidents_incidents_assigned_toToteam_membersInput> } export type geofencesUpdateOneWithoutIncidentsNestedInput = { create?: XOR connectOrCreate?: geofencesCreateOrConnectWithoutIncidentsInput upsert?: geofencesUpsertWithoutIncidentsInput disconnect?: geofencesWhereInput | boolean delete?: geofencesWhereInput | boolean connect?: geofencesWhereUniqueInput update?: XOR, geofencesUncheckedUpdateWithoutIncidentsInput> } export type alertsUncheckedUpdateManyWithoutIncidentsNestedInput = { create?: XOR | alertsCreateWithoutIncidentsInput[] | alertsUncheckedCreateWithoutIncidentsInput[] connectOrCreate?: alertsCreateOrConnectWithoutIncidentsInput | alertsCreateOrConnectWithoutIncidentsInput[] upsert?: alertsUpsertWithWhereUniqueWithoutIncidentsInput | alertsUpsertWithWhereUniqueWithoutIncidentsInput[] createMany?: alertsCreateManyIncidentsInputEnvelope set?: alertsWhereUniqueInput | alertsWhereUniqueInput[] disconnect?: alertsWhereUniqueInput | alertsWhereUniqueInput[] delete?: alertsWhereUniqueInput | alertsWhereUniqueInput[] connect?: alertsWhereUniqueInput | alertsWhereUniqueInput[] update?: alertsUpdateWithWhereUniqueWithoutIncidentsInput | alertsUpdateWithWhereUniqueWithoutIncidentsInput[] updateMany?: alertsUpdateManyWithWhereWithoutIncidentsInput | alertsUpdateManyWithWhereWithoutIncidentsInput[] deleteMany?: alertsScalarWhereInput | alertsScalarWhereInput[] } export type incident_updatesUncheckedUpdateManyWithoutIncidentsNestedInput = { create?: XOR | incident_updatesCreateWithoutIncidentsInput[] | incident_updatesUncheckedCreateWithoutIncidentsInput[] connectOrCreate?: incident_updatesCreateOrConnectWithoutIncidentsInput | incident_updatesCreateOrConnectWithoutIncidentsInput[] upsert?: incident_updatesUpsertWithWhereUniqueWithoutIncidentsInput | incident_updatesUpsertWithWhereUniqueWithoutIncidentsInput[] createMany?: incident_updatesCreateManyIncidentsInputEnvelope set?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[] disconnect?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[] delete?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[] connect?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[] update?: incident_updatesUpdateWithWhereUniqueWithoutIncidentsInput | incident_updatesUpdateWithWhereUniqueWithoutIncidentsInput[] updateMany?: incident_updatesUpdateManyWithWhereWithoutIncidentsInput | incident_updatesUpdateManyWithWhereWithoutIncidentsInput[] deleteMany?: incident_updatesScalarWhereInput | incident_updatesScalarWhereInput[] } export type visitor_ktp_dataCreateNestedOneWithoutKtp_validation_auditInput = { create?: XOR connectOrCreate?: visitor_ktp_dataCreateOrConnectWithoutKtp_validation_auditInput connect?: visitor_ktp_dataWhereUniqueInput } export type Enumktp_validation_audit_actionFieldUpdateOperationsInput = { set?: $Enums.ktp_validation_audit_action } export type visitor_ktp_dataUpdateOneRequiredWithoutKtp_validation_auditNestedInput = { create?: XOR connectOrCreate?: visitor_ktp_dataCreateOrConnectWithoutKtp_validation_auditInput upsert?: visitor_ktp_dataUpsertWithoutKtp_validation_auditInput connect?: visitor_ktp_dataWhereUniqueInput update?: XOR, visitor_ktp_dataUncheckedUpdateWithoutKtp_validation_auditInput> } export type geofencesCreateNestedOneWithoutMap_pinsInput = { create?: XOR connectOrCreate?: geofencesCreateOrConnectWithoutMap_pinsInput connect?: geofencesWhereUniqueInput } export type geofencesUpdateOneWithoutMap_pinsNestedInput = { create?: XOR connectOrCreate?: geofencesCreateOrConnectWithoutMap_pinsInput upsert?: geofencesUpsertWithoutMap_pinsInput disconnect?: geofencesWhereInput | boolean delete?: geofencesWhereInput | boolean connect?: geofencesWhereUniqueInput update?: XOR, geofencesUncheckedUpdateWithoutMap_pinsInput> } export type NullableEnumperumahan_facilities_statusFieldUpdateOperationsInput = { set?: $Enums.perumahan_facilities_status | null } export type visitor_registrationsCreateNestedManyWithoutQr_codesInput = { create?: XOR | visitor_registrationsCreateWithoutQr_codesInput[] | visitor_registrationsUncheckedCreateWithoutQr_codesInput[] connectOrCreate?: visitor_registrationsCreateOrConnectWithoutQr_codesInput | visitor_registrationsCreateOrConnectWithoutQr_codesInput[] createMany?: visitor_registrationsCreateManyQr_codesInputEnvelope connect?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[] } export type visitor_registrationsUncheckedCreateNestedManyWithoutQr_codesInput = { create?: XOR | visitor_registrationsCreateWithoutQr_codesInput[] | visitor_registrationsUncheckedCreateWithoutQr_codesInput[] connectOrCreate?: visitor_registrationsCreateOrConnectWithoutQr_codesInput | visitor_registrationsCreateOrConnectWithoutQr_codesInput[] createMany?: visitor_registrationsCreateManyQr_codesInputEnvelope connect?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[] } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type Enumqr_codes_security_levelFieldUpdateOperationsInput = { set?: $Enums.qr_codes_security_level } export type visitor_registrationsUpdateManyWithoutQr_codesNestedInput = { create?: XOR | visitor_registrationsCreateWithoutQr_codesInput[] | visitor_registrationsUncheckedCreateWithoutQr_codesInput[] connectOrCreate?: visitor_registrationsCreateOrConnectWithoutQr_codesInput | visitor_registrationsCreateOrConnectWithoutQr_codesInput[] upsert?: visitor_registrationsUpsertWithWhereUniqueWithoutQr_codesInput | visitor_registrationsUpsertWithWhereUniqueWithoutQr_codesInput[] createMany?: visitor_registrationsCreateManyQr_codesInputEnvelope set?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[] disconnect?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[] delete?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[] connect?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[] update?: visitor_registrationsUpdateWithWhereUniqueWithoutQr_codesInput | visitor_registrationsUpdateWithWhereUniqueWithoutQr_codesInput[] updateMany?: visitor_registrationsUpdateManyWithWhereWithoutQr_codesInput | visitor_registrationsUpdateManyWithWhereWithoutQr_codesInput[] deleteMany?: visitor_registrationsScalarWhereInput | visitor_registrationsScalarWhereInput[] } export type visitor_registrationsUncheckedUpdateManyWithoutQr_codesNestedInput = { create?: XOR | visitor_registrationsCreateWithoutQr_codesInput[] | visitor_registrationsUncheckedCreateWithoutQr_codesInput[] connectOrCreate?: visitor_registrationsCreateOrConnectWithoutQr_codesInput | visitor_registrationsCreateOrConnectWithoutQr_codesInput[] upsert?: visitor_registrationsUpsertWithWhereUniqueWithoutQr_codesInput | visitor_registrationsUpsertWithWhereUniqueWithoutQr_codesInput[] createMany?: visitor_registrationsCreateManyQr_codesInputEnvelope set?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[] disconnect?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[] delete?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[] connect?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[] update?: visitor_registrationsUpdateWithWhereUniqueWithoutQr_codesInput | visitor_registrationsUpdateWithWhereUniqueWithoutQr_codesInput[] updateMany?: visitor_registrationsUpdateManyWithWhereWithoutQr_codesInput | visitor_registrationsUpdateManyWithWhereWithoutQr_codesInput[] deleteMany?: visitor_registrationsScalarWhereInput | visitor_registrationsScalarWhereInput[] } export type NullableEnumsecurity_activities_severityFieldUpdateOperationsInput = { set?: $Enums.security_activities_severity | null } export type team_membersCreateNestedOneWithoutTeam_location_historyInput = { create?: XOR connectOrCreate?: team_membersCreateOrConnectWithoutTeam_location_historyInput connect?: team_membersWhereUniqueInput } export type team_membersUpdateOneRequiredWithoutTeam_location_historyNestedInput = { create?: XOR connectOrCreate?: team_membersCreateOrConnectWithoutTeam_location_historyInput upsert?: team_membersUpsertWithoutTeam_location_historyInput connect?: team_membersWhereUniqueInput update?: XOR, team_membersUncheckedUpdateWithoutTeam_location_historyInput> } export type incidentsCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput = { create?: XOR | incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[] connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput[] createMany?: incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInputEnvelope connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] } export type incidentsCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput = { create?: XOR | incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[] connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput[] createMany?: incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInputEnvelope connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] } export type team_location_historyCreateNestedManyWithoutTeam_membersInput = { create?: XOR | team_location_historyCreateWithoutTeam_membersInput[] | team_location_historyUncheckedCreateWithoutTeam_membersInput[] connectOrCreate?: team_location_historyCreateOrConnectWithoutTeam_membersInput | team_location_historyCreateOrConnectWithoutTeam_membersInput[] createMany?: team_location_historyCreateManyTeam_membersInputEnvelope connect?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[] } export type incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput = { create?: XOR | incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[] connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput[] createMany?: incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInputEnvelope connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] } export type incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput = { create?: XOR | incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[] connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput[] createMany?: incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInputEnvelope connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] } export type team_location_historyUncheckedCreateNestedManyWithoutTeam_membersInput = { create?: XOR | team_location_historyCreateWithoutTeam_membersInput[] | team_location_historyUncheckedCreateWithoutTeam_membersInput[] connectOrCreate?: team_location_historyCreateOrConnectWithoutTeam_membersInput | team_location_historyCreateOrConnectWithoutTeam_membersInput[] createMany?: team_location_historyCreateManyTeam_membersInputEnvelope connect?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[] } export type NullableEnumteam_members_statusFieldUpdateOperationsInput = { set?: $Enums.team_members_status | null } export type incidentsUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput = { create?: XOR | incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[] connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput[] upsert?: incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput[] createMany?: incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInputEnvelope set?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] disconnect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] delete?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] update?: incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput[] updateMany?: incidentsUpdateManyWithWhereWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsUpdateManyWithWhereWithoutTeam_members_incidents_reported_byToteam_membersInput[] deleteMany?: incidentsScalarWhereInput | incidentsScalarWhereInput[] } export type incidentsUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput = { create?: XOR | incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[] connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput[] upsert?: incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput[] createMany?: incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInputEnvelope set?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] disconnect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] delete?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] update?: incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput[] updateMany?: incidentsUpdateManyWithWhereWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsUpdateManyWithWhereWithoutTeam_members_incidents_assigned_toToteam_membersInput[] deleteMany?: incidentsScalarWhereInput | incidentsScalarWhereInput[] } export type team_location_historyUpdateManyWithoutTeam_membersNestedInput = { create?: XOR | team_location_historyCreateWithoutTeam_membersInput[] | team_location_historyUncheckedCreateWithoutTeam_membersInput[] connectOrCreate?: team_location_historyCreateOrConnectWithoutTeam_membersInput | team_location_historyCreateOrConnectWithoutTeam_membersInput[] upsert?: team_location_historyUpsertWithWhereUniqueWithoutTeam_membersInput | team_location_historyUpsertWithWhereUniqueWithoutTeam_membersInput[] createMany?: team_location_historyCreateManyTeam_membersInputEnvelope set?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[] disconnect?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[] delete?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[] connect?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[] update?: team_location_historyUpdateWithWhereUniqueWithoutTeam_membersInput | team_location_historyUpdateWithWhereUniqueWithoutTeam_membersInput[] updateMany?: team_location_historyUpdateManyWithWhereWithoutTeam_membersInput | team_location_historyUpdateManyWithWhereWithoutTeam_membersInput[] deleteMany?: team_location_historyScalarWhereInput | team_location_historyScalarWhereInput[] } export type incidentsUncheckedUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput = { create?: XOR | incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[] connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput[] upsert?: incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput[] createMany?: incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInputEnvelope set?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] disconnect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] delete?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] update?: incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput[] updateMany?: incidentsUpdateManyWithWhereWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsUpdateManyWithWhereWithoutTeam_members_incidents_reported_byToteam_membersInput[] deleteMany?: incidentsScalarWhereInput | incidentsScalarWhereInput[] } export type incidentsUncheckedUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput = { create?: XOR | incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[] connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput[] upsert?: incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput[] createMany?: incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInputEnvelope set?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] disconnect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] delete?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[] update?: incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput[] updateMany?: incidentsUpdateManyWithWhereWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsUpdateManyWithWhereWithoutTeam_members_incidents_assigned_toToteam_membersInput[] deleteMany?: incidentsScalarWhereInput | incidentsScalarWhereInput[] } export type team_location_historyUncheckedUpdateManyWithoutTeam_membersNestedInput = { create?: XOR | team_location_historyCreateWithoutTeam_membersInput[] | team_location_historyUncheckedCreateWithoutTeam_membersInput[] connectOrCreate?: team_location_historyCreateOrConnectWithoutTeam_membersInput | team_location_historyCreateOrConnectWithoutTeam_membersInput[] upsert?: team_location_historyUpsertWithWhereUniqueWithoutTeam_membersInput | team_location_historyUpsertWithWhereUniqueWithoutTeam_membersInput[] createMany?: team_location_historyCreateManyTeam_membersInputEnvelope set?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[] disconnect?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[] delete?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[] connect?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[] update?: team_location_historyUpdateWithWhereUniqueWithoutTeam_membersInput | team_location_historyUpdateWithWhereUniqueWithoutTeam_membersInput[] updateMany?: team_location_historyUpdateManyWithWhereWithoutTeam_membersInput | team_location_historyUpdateManyWithWhereWithoutTeam_membersInput[] deleteMany?: team_location_historyScalarWhereInput | team_location_historyScalarWhereInput[] } export type ktp_validation_auditCreateNestedManyWithoutVisitor_ktp_dataInput = { create?: XOR | ktp_validation_auditCreateWithoutVisitor_ktp_dataInput[] | ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput[] connectOrCreate?: ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput | ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput[] createMany?: ktp_validation_auditCreateManyVisitor_ktp_dataInputEnvelope connect?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[] } export type ktp_validation_auditUncheckedCreateNestedManyWithoutVisitor_ktp_dataInput = { create?: XOR | ktp_validation_auditCreateWithoutVisitor_ktp_dataInput[] | ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput[] connectOrCreate?: ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput | ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput[] createMany?: ktp_validation_auditCreateManyVisitor_ktp_dataInputEnvelope connect?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[] } export type NullableEnumvisitor_ktp_data_genderFieldUpdateOperationsInput = { set?: $Enums.visitor_ktp_data_gender | null } export type Enumvisitor_ktp_data_validation_statusFieldUpdateOperationsInput = { set?: $Enums.visitor_ktp_data_validation_status } export type ktp_validation_auditUpdateManyWithoutVisitor_ktp_dataNestedInput = { create?: XOR | ktp_validation_auditCreateWithoutVisitor_ktp_dataInput[] | ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput[] connectOrCreate?: ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput | ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput[] upsert?: ktp_validation_auditUpsertWithWhereUniqueWithoutVisitor_ktp_dataInput | ktp_validation_auditUpsertWithWhereUniqueWithoutVisitor_ktp_dataInput[] createMany?: ktp_validation_auditCreateManyVisitor_ktp_dataInputEnvelope set?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[] disconnect?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[] delete?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[] connect?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[] update?: ktp_validation_auditUpdateWithWhereUniqueWithoutVisitor_ktp_dataInput | ktp_validation_auditUpdateWithWhereUniqueWithoutVisitor_ktp_dataInput[] updateMany?: ktp_validation_auditUpdateManyWithWhereWithoutVisitor_ktp_dataInput | ktp_validation_auditUpdateManyWithWhereWithoutVisitor_ktp_dataInput[] deleteMany?: ktp_validation_auditScalarWhereInput | ktp_validation_auditScalarWhereInput[] } export type ktp_validation_auditUncheckedUpdateManyWithoutVisitor_ktp_dataNestedInput = { create?: XOR | ktp_validation_auditCreateWithoutVisitor_ktp_dataInput[] | ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput[] connectOrCreate?: ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput | ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput[] upsert?: ktp_validation_auditUpsertWithWhereUniqueWithoutVisitor_ktp_dataInput | ktp_validation_auditUpsertWithWhereUniqueWithoutVisitor_ktp_dataInput[] createMany?: ktp_validation_auditCreateManyVisitor_ktp_dataInputEnvelope set?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[] disconnect?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[] delete?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[] connect?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[] update?: ktp_validation_auditUpdateWithWhereUniqueWithoutVisitor_ktp_dataInput | ktp_validation_auditUpdateWithWhereUniqueWithoutVisitor_ktp_dataInput[] updateMany?: ktp_validation_auditUpdateManyWithWhereWithoutVisitor_ktp_dataInput | ktp_validation_auditUpdateManyWithWhereWithoutVisitor_ktp_dataInput[] deleteMany?: ktp_validation_auditScalarWhereInput | ktp_validation_auditScalarWhereInput[] } export type qr_codesCreateNestedOneWithoutVisitor_registrationsInput = { create?: XOR connectOrCreate?: qr_codesCreateOrConnectWithoutVisitor_registrationsInput connect?: qr_codesWhereUniqueInput } export type Enumvisitor_registrations_statusFieldUpdateOperationsInput = { set?: $Enums.visitor_registrations_status } export type qr_codesUpdateOneWithoutVisitor_registrationsNestedInput = { create?: XOR connectOrCreate?: qr_codesCreateOrConnectWithoutVisitor_registrationsInput upsert?: qr_codesUpsertWithoutVisitor_registrationsInput disconnect?: qr_codesWhereInput | boolean delete?: qr_codesWhereInput | boolean connect?: qr_codesWhereUniqueInput update?: XOR, qr_codesUncheckedUpdateWithoutVisitor_registrationsInput> } export type NestedStringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] 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> search?: string not?: NestedStringFilter<$PrismaModel> | string } export type NestedStringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | null notIn?: string[] | 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> search?: string not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type NestedDateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | null notIn?: Date[] | string[] | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null } export type NestedIntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] 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> search?: string not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type NestedIntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] 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[] | null notIn?: string[] | 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> search?: string not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type NestedJsonNullableFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type NestedJsonNullableFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue lte?: InputJsonValue gt?: InputJsonValue gte?: InputJsonValue not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | null notIn?: Date[] | string[] | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedDateTimeNullableFilter<$PrismaModel> _max?: NestedDateTimeNullableFilter<$PrismaModel> } export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type NestedFloatNullableFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableFilter<$PrismaModel> | number | null } export type NestedBoolNullableFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null } export type NestedDecimalNullableFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null } export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedBoolNullableFilter<$PrismaModel> _max?: NestedBoolNullableFilter<$PrismaModel> } export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedDecimalNullableFilter<$PrismaModel> _sum?: NestedDecimalNullableFilter<$PrismaModel> _min?: NestedDecimalNullableFilter<$PrismaModel> _max?: NestedDecimalNullableFilter<$PrismaModel> } export type NestedJsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type NestedJsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue lte?: InputJsonValue gt?: InputJsonValue gte?: InputJsonValue not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type NestedFloatFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatFilter<$PrismaModel> | number } export type NestedDecimalFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string } export type NestedEnumcameras_statusNullableFilter<$PrismaModel = never> = { equals?: $Enums.cameras_status | Enumcameras_statusFieldRefInput<$PrismaModel> | null in?: $Enums.cameras_status[] | null notIn?: $Enums.cameras_status[] | null not?: NestedEnumcameras_statusNullableFilter<$PrismaModel> | $Enums.cameras_status | null } export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string _count?: NestedIntFilter<$PrismaModel> _avg?: NestedDecimalFilter<$PrismaModel> _sum?: NestedDecimalFilter<$PrismaModel> _min?: NestedDecimalFilter<$PrismaModel> _max?: NestedDecimalFilter<$PrismaModel> } export type NestedEnumcameras_statusNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.cameras_status | Enumcameras_statusFieldRefInput<$PrismaModel> | null in?: $Enums.cameras_status[] | null notIn?: $Enums.cameras_status[] | null not?: NestedEnumcameras_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.cameras_status | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedEnumcameras_statusNullableFilter<$PrismaModel> _max?: NestedEnumcameras_statusNullableFilter<$PrismaModel> } export type NestedBigIntNullableFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null in?: bigint[] | number[] | null notIn?: bigint[] | number[] | null lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null } export type NestedBigIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null in?: bigint[] | number[] | null notIn?: bigint[] | number[] | null lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedBigIntNullableFilter<$PrismaModel> _min?: NestedBigIntNullableFilter<$PrismaModel> _max?: NestedBigIntNullableFilter<$PrismaModel> } export type NestedEnumhouses_statusNullableFilter<$PrismaModel = never> = { equals?: $Enums.houses_status | Enumhouses_statusFieldRefInput<$PrismaModel> | null in?: $Enums.houses_status[] | null notIn?: $Enums.houses_status[] | null not?: NestedEnumhouses_statusNullableFilter<$PrismaModel> | $Enums.houses_status | null } export type NestedEnumhouses_statusNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.houses_status | Enumhouses_statusFieldRefInput<$PrismaModel> | null in?: $Enums.houses_status[] | null notIn?: $Enums.houses_status[] | null not?: NestedEnumhouses_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.houses_status | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedEnumhouses_statusNullableFilter<$PrismaModel> _max?: NestedEnumhouses_statusNullableFilter<$PrismaModel> } export type NestedDateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] notIn?: Date[] | string[] 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 NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] notIn?: Date[] | string[] 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 NestedEnumktp_validation_audit_actionFilter<$PrismaModel = never> = { equals?: $Enums.ktp_validation_audit_action | Enumktp_validation_audit_actionFieldRefInput<$PrismaModel> in?: $Enums.ktp_validation_audit_action[] notIn?: $Enums.ktp_validation_audit_action[] not?: NestedEnumktp_validation_audit_actionFilter<$PrismaModel> | $Enums.ktp_validation_audit_action } export type NestedEnumktp_validation_audit_actionWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ktp_validation_audit_action | Enumktp_validation_audit_actionFieldRefInput<$PrismaModel> in?: $Enums.ktp_validation_audit_action[] notIn?: $Enums.ktp_validation_audit_action[] not?: NestedEnumktp_validation_audit_actionWithAggregatesFilter<$PrismaModel> | $Enums.ktp_validation_audit_action _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumktp_validation_audit_actionFilter<$PrismaModel> _max?: NestedEnumktp_validation_audit_actionFilter<$PrismaModel> } export type NestedEnumperumahan_facilities_statusNullableFilter<$PrismaModel = never> = { equals?: $Enums.perumahan_facilities_status | Enumperumahan_facilities_statusFieldRefInput<$PrismaModel> | null in?: $Enums.perumahan_facilities_status[] | null notIn?: $Enums.perumahan_facilities_status[] | null not?: NestedEnumperumahan_facilities_statusNullableFilter<$PrismaModel> | $Enums.perumahan_facilities_status | null } export type NestedEnumperumahan_facilities_statusNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.perumahan_facilities_status | Enumperumahan_facilities_statusFieldRefInput<$PrismaModel> | null in?: $Enums.perumahan_facilities_status[] | null notIn?: $Enums.perumahan_facilities_status[] | null not?: NestedEnumperumahan_facilities_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.perumahan_facilities_status | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedEnumperumahan_facilities_statusNullableFilter<$PrismaModel> _max?: NestedEnumperumahan_facilities_statusNullableFilter<$PrismaModel> } export type NestedBoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type NestedEnumqr_codes_security_levelFilter<$PrismaModel = never> = { equals?: $Enums.qr_codes_security_level | Enumqr_codes_security_levelFieldRefInput<$PrismaModel> in?: $Enums.qr_codes_security_level[] notIn?: $Enums.qr_codes_security_level[] not?: NestedEnumqr_codes_security_levelFilter<$PrismaModel> | $Enums.qr_codes_security_level } export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type NestedEnumqr_codes_security_levelWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.qr_codes_security_level | Enumqr_codes_security_levelFieldRefInput<$PrismaModel> in?: $Enums.qr_codes_security_level[] notIn?: $Enums.qr_codes_security_level[] not?: NestedEnumqr_codes_security_levelWithAggregatesFilter<$PrismaModel> | $Enums.qr_codes_security_level _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumqr_codes_security_levelFilter<$PrismaModel> _max?: NestedEnumqr_codes_security_levelFilter<$PrismaModel> } export type NestedEnumsecurity_activities_severityNullableFilter<$PrismaModel = never> = { equals?: $Enums.security_activities_severity | Enumsecurity_activities_severityFieldRefInput<$PrismaModel> | null in?: $Enums.security_activities_severity[] | null notIn?: $Enums.security_activities_severity[] | null not?: NestedEnumsecurity_activities_severityNullableFilter<$PrismaModel> | $Enums.security_activities_severity | null } export type NestedEnumsecurity_activities_severityNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.security_activities_severity | Enumsecurity_activities_severityFieldRefInput<$PrismaModel> | null in?: $Enums.security_activities_severity[] | null notIn?: $Enums.security_activities_severity[] | null not?: NestedEnumsecurity_activities_severityNullableWithAggregatesFilter<$PrismaModel> | $Enums.security_activities_severity | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedEnumsecurity_activities_severityNullableFilter<$PrismaModel> _max?: NestedEnumsecurity_activities_severityNullableFilter<$PrismaModel> } export type NestedEnumteam_members_statusNullableFilter<$PrismaModel = never> = { equals?: $Enums.team_members_status | Enumteam_members_statusFieldRefInput<$PrismaModel> | null in?: $Enums.team_members_status[] | null notIn?: $Enums.team_members_status[] | null not?: NestedEnumteam_members_statusNullableFilter<$PrismaModel> | $Enums.team_members_status | null } export type NestedEnumteam_members_statusNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.team_members_status | Enumteam_members_statusFieldRefInput<$PrismaModel> | null in?: $Enums.team_members_status[] | null notIn?: $Enums.team_members_status[] | null not?: NestedEnumteam_members_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.team_members_status | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedEnumteam_members_statusNullableFilter<$PrismaModel> _max?: NestedEnumteam_members_statusNullableFilter<$PrismaModel> } export type NestedEnumvisitor_ktp_data_genderNullableFilter<$PrismaModel = never> = { equals?: $Enums.visitor_ktp_data_gender | Enumvisitor_ktp_data_genderFieldRefInput<$PrismaModel> | null in?: $Enums.visitor_ktp_data_gender[] | null notIn?: $Enums.visitor_ktp_data_gender[] | null not?: NestedEnumvisitor_ktp_data_genderNullableFilter<$PrismaModel> | $Enums.visitor_ktp_data_gender | null } export type NestedEnumvisitor_ktp_data_validation_statusFilter<$PrismaModel = never> = { equals?: $Enums.visitor_ktp_data_validation_status | Enumvisitor_ktp_data_validation_statusFieldRefInput<$PrismaModel> in?: $Enums.visitor_ktp_data_validation_status[] notIn?: $Enums.visitor_ktp_data_validation_status[] not?: NestedEnumvisitor_ktp_data_validation_statusFilter<$PrismaModel> | $Enums.visitor_ktp_data_validation_status } export type NestedEnumvisitor_ktp_data_genderNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.visitor_ktp_data_gender | Enumvisitor_ktp_data_genderFieldRefInput<$PrismaModel> | null in?: $Enums.visitor_ktp_data_gender[] | null notIn?: $Enums.visitor_ktp_data_gender[] | null not?: NestedEnumvisitor_ktp_data_genderNullableWithAggregatesFilter<$PrismaModel> | $Enums.visitor_ktp_data_gender | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedEnumvisitor_ktp_data_genderNullableFilter<$PrismaModel> _max?: NestedEnumvisitor_ktp_data_genderNullableFilter<$PrismaModel> } export type NestedEnumvisitor_ktp_data_validation_statusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.visitor_ktp_data_validation_status | Enumvisitor_ktp_data_validation_statusFieldRefInput<$PrismaModel> in?: $Enums.visitor_ktp_data_validation_status[] notIn?: $Enums.visitor_ktp_data_validation_status[] not?: NestedEnumvisitor_ktp_data_validation_statusWithAggregatesFilter<$PrismaModel> | $Enums.visitor_ktp_data_validation_status _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumvisitor_ktp_data_validation_statusFilter<$PrismaModel> _max?: NestedEnumvisitor_ktp_data_validation_statusFilter<$PrismaModel> } export type NestedEnumvisitor_registrations_statusFilter<$PrismaModel = never> = { equals?: $Enums.visitor_registrations_status | Enumvisitor_registrations_statusFieldRefInput<$PrismaModel> in?: $Enums.visitor_registrations_status[] notIn?: $Enums.visitor_registrations_status[] not?: NestedEnumvisitor_registrations_statusFilter<$PrismaModel> | $Enums.visitor_registrations_status } export type NestedEnumvisitor_registrations_statusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.visitor_registrations_status | Enumvisitor_registrations_statusFieldRefInput<$PrismaModel> in?: $Enums.visitor_registrations_status[] notIn?: $Enums.visitor_registrations_status[] not?: NestedEnumvisitor_registrations_statusWithAggregatesFilter<$PrismaModel> | $Enums.visitor_registrations_status _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumvisitor_registrations_statusFilter<$PrismaModel> _max?: NestedEnumvisitor_registrations_statusFilter<$PrismaModel> } export type alertsCreateWithoutAlert_recipientsInput = { id?: string alert_id: string title: string message: string type: string category?: string | null severity?: string priority?: string status?: string is_emergency?: boolean | null is_broadcast?: boolean | null is_recurring?: boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: Date | string | null starts_at?: Date | string | null ends_at?: Date | string | null expires_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: string | null source_id?: string | null context?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: number | null delivered_count?: number | null acknowledged_count?: number | null failed_count?: number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null incidents?: incidentsCreateNestedOneWithoutAlertsInput } export type alertsUncheckedCreateWithoutAlert_recipientsInput = { id?: string alert_id: string title: string message: string type: string category?: string | null severity?: string priority?: string status?: string is_emergency?: boolean | null is_broadcast?: boolean | null is_recurring?: boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: Date | string | null starts_at?: Date | string | null ends_at?: Date | string | null expires_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: string | null source_id?: string | null context?: NullableJsonNullValueInput | InputJsonValue incident_id?: string | null camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: number | null delivered_count?: number | null acknowledged_count?: number | null failed_count?: number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null } export type alertsCreateOrConnectWithoutAlert_recipientsInput = { where: alertsWhereUniqueInput create: XOR } export type alertsUpsertWithoutAlert_recipientsInput = { update: XOR create: XOR where?: alertsWhereInput } export type alertsUpdateToOneWithWhereWithoutAlert_recipientsInput = { where?: alertsWhereInput data: XOR } export type alertsUpdateWithoutAlert_recipientsInput = { id?: StringFieldUpdateOperationsInput | string alert_id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string message?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string category?: NullableStringFieldUpdateOperationsInput | string | null severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: NullableStringFieldUpdateOperationsInput | string | null source_id?: NullableStringFieldUpdateOperationsInput | string | null context?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: NullableIntFieldUpdateOperationsInput | number | null delivered_count?: NullableIntFieldUpdateOperationsInput | number | null acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null failed_count?: NullableIntFieldUpdateOperationsInput | number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null incidents?: incidentsUpdateOneWithoutAlertsNestedInput } export type alertsUncheckedUpdateWithoutAlert_recipientsInput = { id?: StringFieldUpdateOperationsInput | string alert_id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string message?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string category?: NullableStringFieldUpdateOperationsInput | string | null severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: NullableStringFieldUpdateOperationsInput | string | null source_id?: NullableStringFieldUpdateOperationsInput | string | null context?: NullableJsonNullValueInput | InputJsonValue incident_id?: NullableStringFieldUpdateOperationsInput | string | null camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: NullableIntFieldUpdateOperationsInput | number | null delivered_count?: NullableIntFieldUpdateOperationsInput | number | null acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null failed_count?: NullableIntFieldUpdateOperationsInput | number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null } export type alert_recipientsCreateWithoutAlertsInput = { id?: string recipient_type: string recipient_id?: string | null recipient_name?: string | null recipient_contact?: NullableJsonNullValueInput | InputJsonValue channel: string delivery_status?: string | null sent_at?: Date | string | null delivered_at?: Date | string | null acknowledged_at?: Date | string | null failed_at?: Date | string | null delivery_attempts?: number | null last_attempt_at?: Date | string | null failure_reason?: string | null delivery_metadata?: NullableJsonNullValueInput | InputJsonValue response_data?: NullableJsonNullValueInput | InputJsonValue response_time?: number | null created_at?: Date | string | null updated_at?: Date | string | null } export type alert_recipientsUncheckedCreateWithoutAlertsInput = { id?: string recipient_type: string recipient_id?: string | null recipient_name?: string | null recipient_contact?: NullableJsonNullValueInput | InputJsonValue channel: string delivery_status?: string | null sent_at?: Date | string | null delivered_at?: Date | string | null acknowledged_at?: Date | string | null failed_at?: Date | string | null delivery_attempts?: number | null last_attempt_at?: Date | string | null failure_reason?: string | null delivery_metadata?: NullableJsonNullValueInput | InputJsonValue response_data?: NullableJsonNullValueInput | InputJsonValue response_time?: number | null created_at?: Date | string | null updated_at?: Date | string | null } export type alert_recipientsCreateOrConnectWithoutAlertsInput = { where: alert_recipientsWhereUniqueInput create: XOR } export type alert_recipientsCreateManyAlertsInputEnvelope = { data: alert_recipientsCreateManyAlertsInput | alert_recipientsCreateManyAlertsInput[] skipDuplicates?: boolean } export type incidentsCreateWithoutAlertsInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null incident_updates?: incident_updatesCreateNestedManyWithoutIncidentsInput team_members_incidents_reported_byToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_reported_byToteam_membersInput team_members_incidents_assigned_toToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_assigned_toToteam_membersInput geofences?: geofencesCreateNestedOneWithoutIncidentsInput } export type incidentsUncheckedCreateWithoutAlertsInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reported_by?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_to?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: string | null alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null incident_updates?: incident_updatesUncheckedCreateNestedManyWithoutIncidentsInput } export type incidentsCreateOrConnectWithoutAlertsInput = { where: incidentsWhereUniqueInput create: XOR } export type alert_recipientsUpsertWithWhereUniqueWithoutAlertsInput = { where: alert_recipientsWhereUniqueInput update: XOR create: XOR } export type alert_recipientsUpdateWithWhereUniqueWithoutAlertsInput = { where: alert_recipientsWhereUniqueInput data: XOR } export type alert_recipientsUpdateManyWithWhereWithoutAlertsInput = { where: alert_recipientsScalarWhereInput data: XOR } export type alert_recipientsScalarWhereInput = { AND?: alert_recipientsScalarWhereInput | alert_recipientsScalarWhereInput[] OR?: alert_recipientsScalarWhereInput[] NOT?: alert_recipientsScalarWhereInput | alert_recipientsScalarWhereInput[] id?: StringFilter<"alert_recipients"> | string alert_id?: StringFilter<"alert_recipients"> | string recipient_type?: StringFilter<"alert_recipients"> | string recipient_id?: StringNullableFilter<"alert_recipients"> | string | null recipient_name?: StringNullableFilter<"alert_recipients"> | string | null recipient_contact?: JsonNullableFilter<"alert_recipients"> channel?: StringFilter<"alert_recipients"> | string delivery_status?: StringNullableFilter<"alert_recipients"> | string | null sent_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null delivered_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null acknowledged_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null failed_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null delivery_attempts?: IntNullableFilter<"alert_recipients"> | number | null last_attempt_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null failure_reason?: StringNullableFilter<"alert_recipients"> | string | null delivery_metadata?: JsonNullableFilter<"alert_recipients"> response_data?: JsonNullableFilter<"alert_recipients"> response_time?: IntNullableFilter<"alert_recipients"> | number | null created_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null updated_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null } export type incidentsUpsertWithoutAlertsInput = { update: XOR create: XOR where?: incidentsWhereInput } export type incidentsUpdateToOneWithWhereWithoutAlertsInput = { where?: incidentsWhereInput data: XOR } export type incidentsUpdateWithoutAlertsInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null incident_updates?: incident_updatesUpdateManyWithoutIncidentsNestedInput team_members_incidents_reported_byToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_reported_byToteam_membersNestedInput team_members_incidents_assigned_toToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_assigned_toToteam_membersNestedInput geofences?: geofencesUpdateOneWithoutIncidentsNestedInput } export type incidentsUncheckedUpdateWithoutAlertsInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reported_by?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_to?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: NullableStringFieldUpdateOperationsInput | string | null alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null incident_updates?: incident_updatesUncheckedUpdateManyWithoutIncidentsNestedInput } export type camerasCreateWithoutCamera_health_logInput = { id: string label: string area: string lat: Decimal | DecimalJsLike | number | string lng: Decimal | DecimalJsLike | number | string stream_url: string status?: $Enums.cameras_status | null last_heartbeat?: Date | string | null response_time?: number | null health_score?: number | null error_message?: string | null created_at?: Date | string | null updated_at?: Date | string | null } export type camerasUncheckedCreateWithoutCamera_health_logInput = { id: string label: string area: string lat: Decimal | DecimalJsLike | number | string lng: Decimal | DecimalJsLike | number | string stream_url: string status?: $Enums.cameras_status | null last_heartbeat?: Date | string | null response_time?: number | null health_score?: number | null error_message?: string | null created_at?: Date | string | null updated_at?: Date | string | null } export type camerasCreateOrConnectWithoutCamera_health_logInput = { where: camerasWhereUniqueInput create: XOR } export type camerasUpsertWithoutCamera_health_logInput = { update: XOR create: XOR where?: camerasWhereInput } export type camerasUpdateToOneWithWhereWithoutCamera_health_logInput = { where?: camerasWhereInput data: XOR } export type camerasUpdateWithoutCamera_health_logInput = { id?: StringFieldUpdateOperationsInput | string label?: StringFieldUpdateOperationsInput | string area?: StringFieldUpdateOperationsInput | string lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string stream_url?: StringFieldUpdateOperationsInput | string status?: NullableEnumcameras_statusFieldUpdateOperationsInput | $Enums.cameras_status | null last_heartbeat?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null response_time?: NullableIntFieldUpdateOperationsInput | number | null health_score?: NullableIntFieldUpdateOperationsInput | number | null error_message?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type camerasUncheckedUpdateWithoutCamera_health_logInput = { id?: StringFieldUpdateOperationsInput | string label?: StringFieldUpdateOperationsInput | string area?: StringFieldUpdateOperationsInput | string lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string stream_url?: StringFieldUpdateOperationsInput | string status?: NullableEnumcameras_statusFieldUpdateOperationsInput | $Enums.cameras_status | null last_heartbeat?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null response_time?: NullableIntFieldUpdateOperationsInput | number | null health_score?: NullableIntFieldUpdateOperationsInput | number | null error_message?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type camera_health_logCreateWithoutCamerasInput = { status: string response_time: number health_score: number error_message?: string | null stream_accessible?: boolean | null timestamp?: Date | string | null } export type camera_health_logUncheckedCreateWithoutCamerasInput = { id?: number status: string response_time: number health_score: number error_message?: string | null stream_accessible?: boolean | null timestamp?: Date | string | null } export type camera_health_logCreateOrConnectWithoutCamerasInput = { where: camera_health_logWhereUniqueInput create: XOR } export type camera_health_logCreateManyCamerasInputEnvelope = { data: camera_health_logCreateManyCamerasInput | camera_health_logCreateManyCamerasInput[] skipDuplicates?: boolean } export type camera_health_logUpsertWithWhereUniqueWithoutCamerasInput = { where: camera_health_logWhereUniqueInput update: XOR create: XOR } export type camera_health_logUpdateWithWhereUniqueWithoutCamerasInput = { where: camera_health_logWhereUniqueInput data: XOR } export type camera_health_logUpdateManyWithWhereWithoutCamerasInput = { where: camera_health_logScalarWhereInput data: XOR } export type camera_health_logScalarWhereInput = { AND?: camera_health_logScalarWhereInput | camera_health_logScalarWhereInput[] OR?: camera_health_logScalarWhereInput[] NOT?: camera_health_logScalarWhereInput | camera_health_logScalarWhereInput[] id?: IntFilter<"camera_health_log"> | number camera_id?: StringFilter<"camera_health_log"> | string status?: StringFilter<"camera_health_log"> | string response_time?: IntFilter<"camera_health_log"> | number health_score?: IntFilter<"camera_health_log"> | number error_message?: StringNullableFilter<"camera_health_log"> | string | null stream_accessible?: BoolNullableFilter<"camera_health_log"> | boolean | null timestamp?: DateTimeNullableFilter<"camera_health_log"> | Date | string | null } export type geofencesCreateWithoutGeofence_breachesInput = { id?: string name: string type: string coordinates: JsonNullValueInput | InputJsonValue description?: string | null is_active?: boolean | null priority?: string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null incidents?: incidentsCreateNestedManyWithoutGeofencesInput map_pins?: map_pinsCreateNestedManyWithoutGeofencesInput } export type geofencesUncheckedCreateWithoutGeofence_breachesInput = { id?: string name: string type: string coordinates: JsonNullValueInput | InputJsonValue description?: string | null is_active?: boolean | null priority?: string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null incidents?: incidentsUncheckedCreateNestedManyWithoutGeofencesInput map_pins?: map_pinsUncheckedCreateNestedManyWithoutGeofencesInput } export type geofencesCreateOrConnectWithoutGeofence_breachesInput = { where: geofencesWhereUniqueInput create: XOR } export type geofencesUpsertWithoutGeofence_breachesInput = { update: XOR create: XOR where?: geofencesWhereInput } export type geofencesUpdateToOneWithWhereWithoutGeofence_breachesInput = { where?: geofencesWhereInput data: XOR } export type geofencesUpdateWithoutGeofence_breachesInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: JsonNullValueInput | InputJsonValue description?: NullableStringFieldUpdateOperationsInput | string | null is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null priority?: NullableStringFieldUpdateOperationsInput | string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null incidents?: incidentsUpdateManyWithoutGeofencesNestedInput map_pins?: map_pinsUpdateManyWithoutGeofencesNestedInput } export type geofencesUncheckedUpdateWithoutGeofence_breachesInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: JsonNullValueInput | InputJsonValue description?: NullableStringFieldUpdateOperationsInput | string | null is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null priority?: NullableStringFieldUpdateOperationsInput | string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null incidents?: incidentsUncheckedUpdateManyWithoutGeofencesNestedInput map_pins?: map_pinsUncheckedUpdateManyWithoutGeofencesNestedInput } export type geofence_breachesCreateWithoutGeofencesInput = { id?: string team_member_id?: string | null breach_type: string location: JsonNullValueInput | InputJsonValue severity?: string | null is_resolved?: boolean | null resolved_at?: Date | string | null resolved_by?: string | null notes?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null } export type geofence_breachesUncheckedCreateWithoutGeofencesInput = { id?: string team_member_id?: string | null breach_type: string location: JsonNullValueInput | InputJsonValue severity?: string | null is_resolved?: boolean | null resolved_at?: Date | string | null resolved_by?: string | null notes?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null } export type geofence_breachesCreateOrConnectWithoutGeofencesInput = { where: geofence_breachesWhereUniqueInput create: XOR } export type geofence_breachesCreateManyGeofencesInputEnvelope = { data: geofence_breachesCreateManyGeofencesInput | geofence_breachesCreateManyGeofencesInput[] skipDuplicates?: boolean } export type incidentsCreateWithoutGeofencesInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null alerts?: alertsCreateNestedManyWithoutIncidentsInput incident_updates?: incident_updatesCreateNestedManyWithoutIncidentsInput team_members_incidents_reported_byToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_reported_byToteam_membersInput team_members_incidents_assigned_toToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_assigned_toToteam_membersInput } export type incidentsUncheckedCreateWithoutGeofencesInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reported_by?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_to?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null alerts?: alertsUncheckedCreateNestedManyWithoutIncidentsInput incident_updates?: incident_updatesUncheckedCreateNestedManyWithoutIncidentsInput } export type incidentsCreateOrConnectWithoutGeofencesInput = { where: incidentsWhereUniqueInput create: XOR } export type incidentsCreateManyGeofencesInputEnvelope = { data: incidentsCreateManyGeofencesInput | incidentsCreateManyGeofencesInput[] skipDuplicates?: boolean } export type map_pinsCreateWithoutGeofencesInput = { id?: string type: string coordinates?: NullableJsonNullValueInput | InputJsonValue title: string description?: string | null status?: string | null priority?: string | null icon_type?: string | null icon_color?: string | null size?: string | null is_visible?: boolean | null is_clickable?: boolean | null metadata?: NullableJsonNullValueInput | InputJsonValue alert_id?: string | null incident_id?: string | null team_member_id?: string | null camera_id?: string | null created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null } export type map_pinsUncheckedCreateWithoutGeofencesInput = { id?: string type: string coordinates?: NullableJsonNullValueInput | InputJsonValue title: string description?: string | null status?: string | null priority?: string | null icon_type?: string | null icon_color?: string | null size?: string | null is_visible?: boolean | null is_clickable?: boolean | null metadata?: NullableJsonNullValueInput | InputJsonValue alert_id?: string | null incident_id?: string | null team_member_id?: string | null camera_id?: string | null created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null } export type map_pinsCreateOrConnectWithoutGeofencesInput = { where: map_pinsWhereUniqueInput create: XOR } export type map_pinsCreateManyGeofencesInputEnvelope = { data: map_pinsCreateManyGeofencesInput | map_pinsCreateManyGeofencesInput[] skipDuplicates?: boolean } export type geofence_breachesUpsertWithWhereUniqueWithoutGeofencesInput = { where: geofence_breachesWhereUniqueInput update: XOR create: XOR } export type geofence_breachesUpdateWithWhereUniqueWithoutGeofencesInput = { where: geofence_breachesWhereUniqueInput data: XOR } export type geofence_breachesUpdateManyWithWhereWithoutGeofencesInput = { where: geofence_breachesScalarWhereInput data: XOR } export type geofence_breachesScalarWhereInput = { AND?: geofence_breachesScalarWhereInput | geofence_breachesScalarWhereInput[] OR?: geofence_breachesScalarWhereInput[] NOT?: geofence_breachesScalarWhereInput | geofence_breachesScalarWhereInput[] id?: StringFilter<"geofence_breaches"> | string geofence_id?: StringFilter<"geofence_breaches"> | string team_member_id?: StringNullableFilter<"geofence_breaches"> | string | null breach_type?: StringFilter<"geofence_breaches"> | string location?: JsonFilter<"geofence_breaches"> severity?: StringNullableFilter<"geofence_breaches"> | string | null is_resolved?: BoolNullableFilter<"geofence_breaches"> | boolean | null resolved_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null resolved_by?: StringNullableFilter<"geofence_breaches"> | string | null notes?: StringNullableFilter<"geofence_breaches"> | string | null metadata?: JsonNullableFilter<"geofence_breaches"> created_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null updated_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null } export type incidentsUpsertWithWhereUniqueWithoutGeofencesInput = { where: incidentsWhereUniqueInput update: XOR create: XOR } export type incidentsUpdateWithWhereUniqueWithoutGeofencesInput = { where: incidentsWhereUniqueInput data: XOR } export type incidentsUpdateManyWithWhereWithoutGeofencesInput = { where: incidentsScalarWhereInput data: XOR } export type incidentsScalarWhereInput = { AND?: incidentsScalarWhereInput | incidentsScalarWhereInput[] OR?: incidentsScalarWhereInput[] NOT?: incidentsScalarWhereInput | incidentsScalarWhereInput[] id?: StringFilter<"incidents"> | string incident_number?: StringFilter<"incidents"> | string title?: StringFilter<"incidents"> | string description?: StringNullableFilter<"incidents"> | string | null type?: StringFilter<"incidents"> | string severity?: StringFilter<"incidents"> | string priority?: StringFilter<"incidents"> | string status?: StringFilter<"incidents"> | string location?: JsonFilter<"incidents"> coordinates_lat?: DecimalNullableFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null coordinates_lng?: DecimalNullableFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null address?: StringNullableFilter<"incidents"> | string | null zone?: StringNullableFilter<"incidents"> | string | null building?: StringNullableFilter<"incidents"> | string | null floor?: StringNullableFilter<"incidents"> | string | null room?: StringNullableFilter<"incidents"> | string | null reported_by?: StringNullableFilter<"incidents"> | string | null reporter_name?: StringNullableFilter<"incidents"> | string | null reporter_contact?: StringNullableFilter<"incidents"> | string | null reporter_type?: StringNullableFilter<"incidents"> | string | null assigned_to?: StringNullableFilter<"incidents"> | string | null assigned_team?: StringNullableFilter<"incidents"> | string | null assigned_at?: DateTimeNullableFilter<"incidents"> | Date | string | null occurred_at?: DateTimeFilter<"incidents"> | Date | string reported_at?: DateTimeNullableFilter<"incidents"> | Date | string | null acknowledged_at?: DateTimeNullableFilter<"incidents"> | Date | string | null resolved_at?: DateTimeNullableFilter<"incidents"> | Date | string | null closed_at?: DateTimeNullableFilter<"incidents"> | Date | string | null due_date?: DateTimeNullableFilter<"incidents"> | Date | string | null tags?: JsonNullableFilter<"incidents"> attachments?: JsonNullableFilter<"incidents"> evidence?: JsonNullableFilter<"incidents"> witnesses?: JsonNullableFilter<"incidents"> related_incidents?: JsonNullableFilter<"incidents"> camera_ids?: JsonNullableFilter<"incidents"> geofence_id?: StringNullableFilter<"incidents"> | string | null alert_id?: StringNullableFilter<"incidents"> | string | null metadata?: JsonNullableFilter<"incidents"> custom_fields?: JsonNullableFilter<"incidents"> created_at?: DateTimeNullableFilter<"incidents"> | Date | string | null updated_at?: DateTimeNullableFilter<"incidents"> | Date | string | null created_by?: StringNullableFilter<"incidents"> | string | null updated_by?: StringNullableFilter<"incidents"> | string | null deleted_at?: DateTimeNullableFilter<"incidents"> | Date | string | null deleted_by?: StringNullableFilter<"incidents"> | string | null } export type map_pinsUpsertWithWhereUniqueWithoutGeofencesInput = { where: map_pinsWhereUniqueInput update: XOR create: XOR } export type map_pinsUpdateWithWhereUniqueWithoutGeofencesInput = { where: map_pinsWhereUniqueInput data: XOR } export type map_pinsUpdateManyWithWhereWithoutGeofencesInput = { where: map_pinsScalarWhereInput data: XOR } export type map_pinsScalarWhereInput = { AND?: map_pinsScalarWhereInput | map_pinsScalarWhereInput[] OR?: map_pinsScalarWhereInput[] NOT?: map_pinsScalarWhereInput | map_pinsScalarWhereInput[] id?: StringFilter<"map_pins"> | string type?: StringFilter<"map_pins"> | string coordinates?: JsonNullableFilter<"map_pins"> title?: StringFilter<"map_pins"> | string description?: StringNullableFilter<"map_pins"> | string | null status?: StringNullableFilter<"map_pins"> | string | null priority?: StringNullableFilter<"map_pins"> | string | null icon_type?: StringNullableFilter<"map_pins"> | string | null icon_color?: StringNullableFilter<"map_pins"> | string | null size?: StringNullableFilter<"map_pins"> | string | null is_visible?: BoolNullableFilter<"map_pins"> | boolean | null is_clickable?: BoolNullableFilter<"map_pins"> | boolean | null metadata?: JsonNullableFilter<"map_pins"> alert_id?: StringNullableFilter<"map_pins"> | string | null incident_id?: StringNullableFilter<"map_pins"> | string | null team_member_id?: StringNullableFilter<"map_pins"> | string | null camera_id?: StringNullableFilter<"map_pins"> | string | null geofence_id?: StringNullableFilter<"map_pins"> | string | null created_at?: DateTimeNullableFilter<"map_pins"> | Date | string | null updated_at?: DateTimeNullableFilter<"map_pins"> | Date | string | null created_by?: StringNullableFilter<"map_pins"> | string | null updated_by?: StringNullableFilter<"map_pins"> | string | null } export type incidentsCreateWithoutIncident_updatesInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null alerts?: alertsCreateNestedManyWithoutIncidentsInput team_members_incidents_reported_byToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_reported_byToteam_membersInput team_members_incidents_assigned_toToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_assigned_toToteam_membersInput geofences?: geofencesCreateNestedOneWithoutIncidentsInput } export type incidentsUncheckedCreateWithoutIncident_updatesInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reported_by?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_to?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: string | null alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null alerts?: alertsUncheckedCreateNestedManyWithoutIncidentsInput } export type incidentsCreateOrConnectWithoutIncident_updatesInput = { where: incidentsWhereUniqueInput create: XOR } export type incidentsUpsertWithoutIncident_updatesInput = { update: XOR create: XOR where?: incidentsWhereInput } export type incidentsUpdateToOneWithWhereWithoutIncident_updatesInput = { where?: incidentsWhereInput data: XOR } export type incidentsUpdateWithoutIncident_updatesInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null alerts?: alertsUpdateManyWithoutIncidentsNestedInput team_members_incidents_reported_byToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_reported_byToteam_membersNestedInput team_members_incidents_assigned_toToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_assigned_toToteam_membersNestedInput geofences?: geofencesUpdateOneWithoutIncidentsNestedInput } export type incidentsUncheckedUpdateWithoutIncident_updatesInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reported_by?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_to?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: NullableStringFieldUpdateOperationsInput | string | null alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null alerts?: alertsUncheckedUpdateManyWithoutIncidentsNestedInput } export type alertsCreateWithoutIncidentsInput = { id?: string alert_id: string title: string message: string type: string category?: string | null severity?: string priority?: string status?: string is_emergency?: boolean | null is_broadcast?: boolean | null is_recurring?: boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: Date | string | null starts_at?: Date | string | null ends_at?: Date | string | null expires_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: string | null source_id?: string | null context?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: number | null delivered_count?: number | null acknowledged_count?: number | null failed_count?: number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null alert_recipients?: alert_recipientsCreateNestedManyWithoutAlertsInput } export type alertsUncheckedCreateWithoutIncidentsInput = { id?: string alert_id: string title: string message: string type: string category?: string | null severity?: string priority?: string status?: string is_emergency?: boolean | null is_broadcast?: boolean | null is_recurring?: boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: Date | string | null starts_at?: Date | string | null ends_at?: Date | string | null expires_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: string | null source_id?: string | null context?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: number | null delivered_count?: number | null acknowledged_count?: number | null failed_count?: number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null alert_recipients?: alert_recipientsUncheckedCreateNestedManyWithoutAlertsInput } export type alertsCreateOrConnectWithoutIncidentsInput = { where: alertsWhereUniqueInput create: XOR } export type alertsCreateManyIncidentsInputEnvelope = { data: alertsCreateManyIncidentsInput | alertsCreateManyIncidentsInput[] skipDuplicates?: boolean } export type incident_updatesCreateWithoutIncidentsInput = { id?: string update_type: string title?: string | null description?: string | null old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue changed_fields?: NullableJsonNullValueInput | InputJsonValue is_internal?: boolean | null is_system_generated?: boolean | null attachments?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null created_by: string notifications_sent?: NullableJsonNullValueInput | InputJsonValue notification_status?: string | null } export type incident_updatesUncheckedCreateWithoutIncidentsInput = { id?: string update_type: string title?: string | null description?: string | null old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue changed_fields?: NullableJsonNullValueInput | InputJsonValue is_internal?: boolean | null is_system_generated?: boolean | null attachments?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null created_by: string notifications_sent?: NullableJsonNullValueInput | InputJsonValue notification_status?: string | null } export type incident_updatesCreateOrConnectWithoutIncidentsInput = { where: incident_updatesWhereUniqueInput create: XOR } export type incident_updatesCreateManyIncidentsInputEnvelope = { data: incident_updatesCreateManyIncidentsInput | incident_updatesCreateManyIncidentsInput[] skipDuplicates?: boolean } export type team_membersCreateWithoutIncidents_incidents_reported_byToteam_membersInput = { id: string nama: string role: string status?: $Enums.team_members_status | null phone: string email?: string | null current_location?: string | null last_update?: Date | string | null shift_start?: Date | string | null shift_end?: Date | string | null created_at?: Date | string | null updated_at?: Date | string | null incidents_incidents_assigned_toToteam_members?: incidentsCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput team_location_history?: team_location_historyCreateNestedManyWithoutTeam_membersInput } export type team_membersUncheckedCreateWithoutIncidents_incidents_reported_byToteam_membersInput = { id: string nama: string role: string status?: $Enums.team_members_status | null phone: string email?: string | null current_location?: string | null last_update?: Date | string | null shift_start?: Date | string | null shift_end?: Date | string | null created_at?: Date | string | null updated_at?: Date | string | null incidents_incidents_assigned_toToteam_members?: incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput team_location_history?: team_location_historyUncheckedCreateNestedManyWithoutTeam_membersInput } export type team_membersCreateOrConnectWithoutIncidents_incidents_reported_byToteam_membersInput = { where: team_membersWhereUniqueInput create: XOR } export type team_membersCreateWithoutIncidents_incidents_assigned_toToteam_membersInput = { id: string nama: string role: string status?: $Enums.team_members_status | null phone: string email?: string | null current_location?: string | null last_update?: Date | string | null shift_start?: Date | string | null shift_end?: Date | string | null created_at?: Date | string | null updated_at?: Date | string | null incidents_incidents_reported_byToteam_members?: incidentsCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput team_location_history?: team_location_historyCreateNestedManyWithoutTeam_membersInput } export type team_membersUncheckedCreateWithoutIncidents_incidents_assigned_toToteam_membersInput = { id: string nama: string role: string status?: $Enums.team_members_status | null phone: string email?: string | null current_location?: string | null last_update?: Date | string | null shift_start?: Date | string | null shift_end?: Date | string | null created_at?: Date | string | null updated_at?: Date | string | null incidents_incidents_reported_byToteam_members?: incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput team_location_history?: team_location_historyUncheckedCreateNestedManyWithoutTeam_membersInput } export type team_membersCreateOrConnectWithoutIncidents_incidents_assigned_toToteam_membersInput = { where: team_membersWhereUniqueInput create: XOR } export type geofencesCreateWithoutIncidentsInput = { id?: string name: string type: string coordinates: JsonNullValueInput | InputJsonValue description?: string | null is_active?: boolean | null priority?: string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null geofence_breaches?: geofence_breachesCreateNestedManyWithoutGeofencesInput map_pins?: map_pinsCreateNestedManyWithoutGeofencesInput } export type geofencesUncheckedCreateWithoutIncidentsInput = { id?: string name: string type: string coordinates: JsonNullValueInput | InputJsonValue description?: string | null is_active?: boolean | null priority?: string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null geofence_breaches?: geofence_breachesUncheckedCreateNestedManyWithoutGeofencesInput map_pins?: map_pinsUncheckedCreateNestedManyWithoutGeofencesInput } export type geofencesCreateOrConnectWithoutIncidentsInput = { where: geofencesWhereUniqueInput create: XOR } export type alertsUpsertWithWhereUniqueWithoutIncidentsInput = { where: alertsWhereUniqueInput update: XOR create: XOR } export type alertsUpdateWithWhereUniqueWithoutIncidentsInput = { where: alertsWhereUniqueInput data: XOR } export type alertsUpdateManyWithWhereWithoutIncidentsInput = { where: alertsScalarWhereInput data: XOR } export type alertsScalarWhereInput = { AND?: alertsScalarWhereInput | alertsScalarWhereInput[] OR?: alertsScalarWhereInput[] NOT?: alertsScalarWhereInput | alertsScalarWhereInput[] id?: StringFilter<"alerts"> | string alert_id?: StringFilter<"alerts"> | string title?: StringFilter<"alerts"> | string message?: StringFilter<"alerts"> | string type?: StringFilter<"alerts"> | string category?: StringNullableFilter<"alerts"> | string | null severity?: StringFilter<"alerts"> | string priority?: StringFilter<"alerts"> | string status?: StringFilter<"alerts"> | string is_emergency?: BoolNullableFilter<"alerts"> | boolean | null is_broadcast?: BoolNullableFilter<"alerts"> | boolean | null is_recurring?: BoolNullableFilter<"alerts"> | boolean | null location?: JsonNullableFilter<"alerts"> coordinates_lat?: DecimalNullableFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null coordinates_lng?: DecimalNullableFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null target_zones?: JsonNullableFilter<"alerts"> target_buildings?: JsonNullableFilter<"alerts"> target_roles?: JsonNullableFilter<"alerts"> target_teams?: JsonNullableFilter<"alerts"> target_users?: JsonNullableFilter<"alerts"> geofence_ids?: JsonNullableFilter<"alerts"> scheduled_at?: DateTimeNullableFilter<"alerts"> | Date | string | null starts_at?: DateTimeNullableFilter<"alerts"> | Date | string | null ends_at?: DateTimeNullableFilter<"alerts"> | Date | string | null expires_at?: DateTimeNullableFilter<"alerts"> | Date | string | null acknowledged_at?: DateTimeNullableFilter<"alerts"> | Date | string | null resolved_at?: DateTimeNullableFilter<"alerts"> | Date | string | null recurrence_pattern?: JsonNullableFilter<"alerts"> next_occurrence?: DateTimeNullableFilter<"alerts"> | Date | string | null content?: JsonNullableFilter<"alerts"> attachments?: JsonNullableFilter<"alerts"> media_urls?: JsonNullableFilter<"alerts"> action_buttons?: JsonNullableFilter<"alerts"> channels?: JsonNullableFilter<"alerts"> delivery_config?: JsonNullableFilter<"alerts"> source?: StringNullableFilter<"alerts"> | string | null source_id?: StringNullableFilter<"alerts"> | string | null context?: JsonNullableFilter<"alerts"> incident_id?: StringNullableFilter<"alerts"> | string | null camera_ids?: JsonNullableFilter<"alerts"> related_alerts?: JsonNullableFilter<"alerts"> total_recipients?: IntNullableFilter<"alerts"> | number | null delivered_count?: IntNullableFilter<"alerts"> | number | null acknowledged_count?: IntNullableFilter<"alerts"> | number | null failed_count?: IntNullableFilter<"alerts"> | number | null tags?: JsonNullableFilter<"alerts"> metadata?: JsonNullableFilter<"alerts"> custom_fields?: JsonNullableFilter<"alerts"> created_at?: DateTimeNullableFilter<"alerts"> | Date | string | null updated_at?: DateTimeNullableFilter<"alerts"> | Date | string | null created_by?: StringNullableFilter<"alerts"> | string | null updated_by?: StringNullableFilter<"alerts"> | string | null deleted_at?: DateTimeNullableFilter<"alerts"> | Date | string | null deleted_by?: StringNullableFilter<"alerts"> | string | null } export type incident_updatesUpsertWithWhereUniqueWithoutIncidentsInput = { where: incident_updatesWhereUniqueInput update: XOR create: XOR } export type incident_updatesUpdateWithWhereUniqueWithoutIncidentsInput = { where: incident_updatesWhereUniqueInput data: XOR } export type incident_updatesUpdateManyWithWhereWithoutIncidentsInput = { where: incident_updatesScalarWhereInput data: XOR } export type incident_updatesScalarWhereInput = { AND?: incident_updatesScalarWhereInput | incident_updatesScalarWhereInput[] OR?: incident_updatesScalarWhereInput[] NOT?: incident_updatesScalarWhereInput | incident_updatesScalarWhereInput[] id?: StringFilter<"incident_updates"> | string incident_id?: StringFilter<"incident_updates"> | string update_type?: StringFilter<"incident_updates"> | string title?: StringNullableFilter<"incident_updates"> | string | null description?: StringNullableFilter<"incident_updates"> | string | null old_values?: JsonNullableFilter<"incident_updates"> new_values?: JsonNullableFilter<"incident_updates"> changed_fields?: JsonNullableFilter<"incident_updates"> is_internal?: BoolNullableFilter<"incident_updates"> | boolean | null is_system_generated?: BoolNullableFilter<"incident_updates"> | boolean | null attachments?: JsonNullableFilter<"incident_updates"> created_at?: DateTimeNullableFilter<"incident_updates"> | Date | string | null created_by?: StringFilter<"incident_updates"> | string notifications_sent?: JsonNullableFilter<"incident_updates"> notification_status?: StringNullableFilter<"incident_updates"> | string | null } export type team_membersUpsertWithoutIncidents_incidents_reported_byToteam_membersInput = { update: XOR create: XOR where?: team_membersWhereInput } export type team_membersUpdateToOneWithWhereWithoutIncidents_incidents_reported_byToteam_membersInput = { where?: team_membersWhereInput data: XOR } export type team_membersUpdateWithoutIncidents_incidents_reported_byToteam_membersInput = { id?: StringFieldUpdateOperationsInput | string nama?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null current_location?: NullableStringFieldUpdateOperationsInput | string | null last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null incidents_incidents_assigned_toToteam_members?: incidentsUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput team_location_history?: team_location_historyUpdateManyWithoutTeam_membersNestedInput } export type team_membersUncheckedUpdateWithoutIncidents_incidents_reported_byToteam_membersInput = { id?: StringFieldUpdateOperationsInput | string nama?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null current_location?: NullableStringFieldUpdateOperationsInput | string | null last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null incidents_incidents_assigned_toToteam_members?: incidentsUncheckedUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput team_location_history?: team_location_historyUncheckedUpdateManyWithoutTeam_membersNestedInput } export type team_membersUpsertWithoutIncidents_incidents_assigned_toToteam_membersInput = { update: XOR create: XOR where?: team_membersWhereInput } export type team_membersUpdateToOneWithWhereWithoutIncidents_incidents_assigned_toToteam_membersInput = { where?: team_membersWhereInput data: XOR } export type team_membersUpdateWithoutIncidents_incidents_assigned_toToteam_membersInput = { id?: StringFieldUpdateOperationsInput | string nama?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null current_location?: NullableStringFieldUpdateOperationsInput | string | null last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null incidents_incidents_reported_byToteam_members?: incidentsUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput team_location_history?: team_location_historyUpdateManyWithoutTeam_membersNestedInput } export type team_membersUncheckedUpdateWithoutIncidents_incidents_assigned_toToteam_membersInput = { id?: StringFieldUpdateOperationsInput | string nama?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null current_location?: NullableStringFieldUpdateOperationsInput | string | null last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null incidents_incidents_reported_byToteam_members?: incidentsUncheckedUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput team_location_history?: team_location_historyUncheckedUpdateManyWithoutTeam_membersNestedInput } export type geofencesUpsertWithoutIncidentsInput = { update: XOR create: XOR where?: geofencesWhereInput } export type geofencesUpdateToOneWithWhereWithoutIncidentsInput = { where?: geofencesWhereInput data: XOR } export type geofencesUpdateWithoutIncidentsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: JsonNullValueInput | InputJsonValue description?: NullableStringFieldUpdateOperationsInput | string | null is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null priority?: NullableStringFieldUpdateOperationsInput | string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null geofence_breaches?: geofence_breachesUpdateManyWithoutGeofencesNestedInput map_pins?: map_pinsUpdateManyWithoutGeofencesNestedInput } export type geofencesUncheckedUpdateWithoutIncidentsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: JsonNullValueInput | InputJsonValue description?: NullableStringFieldUpdateOperationsInput | string | null is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null priority?: NullableStringFieldUpdateOperationsInput | string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null geofence_breaches?: geofence_breachesUncheckedUpdateManyWithoutGeofencesNestedInput map_pins?: map_pinsUncheckedUpdateManyWithoutGeofencesNestedInput } export type visitor_ktp_dataCreateWithoutKtp_validation_auditInput = { id: string visitor_registration_id: string ktp_number?: string | null full_name?: string | null birth_date?: Date | string | null birth_place?: string | null gender?: $Enums.visitor_ktp_data_gender | null address?: string | null rt_rw?: string | null kelurahan?: string | null kecamatan?: string | null religion?: string | null marital_status?: string | null occupation?: string | null nationality?: string | null ktp_photo_url?: string | null ktp_photo_hash?: string | null validation_status?: $Enums.visitor_ktp_data_validation_status validation_confidence?: Decimal | DecimalJsLike | number | string | null validation_notes?: string | null validated_by?: string | null validated_at?: Date | string | null ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue manual_corrections?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string updated_at?: Date | string } export type visitor_ktp_dataUncheckedCreateWithoutKtp_validation_auditInput = { id: string visitor_registration_id: string ktp_number?: string | null full_name?: string | null birth_date?: Date | string | null birth_place?: string | null gender?: $Enums.visitor_ktp_data_gender | null address?: string | null rt_rw?: string | null kelurahan?: string | null kecamatan?: string | null religion?: string | null marital_status?: string | null occupation?: string | null nationality?: string | null ktp_photo_url?: string | null ktp_photo_hash?: string | null validation_status?: $Enums.visitor_ktp_data_validation_status validation_confidence?: Decimal | DecimalJsLike | number | string | null validation_notes?: string | null validated_by?: string | null validated_at?: Date | string | null ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue manual_corrections?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string updated_at?: Date | string } export type visitor_ktp_dataCreateOrConnectWithoutKtp_validation_auditInput = { where: visitor_ktp_dataWhereUniqueInput create: XOR } export type visitor_ktp_dataUpsertWithoutKtp_validation_auditInput = { update: XOR create: XOR where?: visitor_ktp_dataWhereInput } export type visitor_ktp_dataUpdateToOneWithWhereWithoutKtp_validation_auditInput = { where?: visitor_ktp_dataWhereInput data: XOR } export type visitor_ktp_dataUpdateWithoutKtp_validation_auditInput = { id?: StringFieldUpdateOperationsInput | string visitor_registration_id?: StringFieldUpdateOperationsInput | string ktp_number?: NullableStringFieldUpdateOperationsInput | string | null full_name?: NullableStringFieldUpdateOperationsInput | string | null birth_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birth_place?: NullableStringFieldUpdateOperationsInput | string | null gender?: NullableEnumvisitor_ktp_data_genderFieldUpdateOperationsInput | $Enums.visitor_ktp_data_gender | null address?: NullableStringFieldUpdateOperationsInput | string | null rt_rw?: NullableStringFieldUpdateOperationsInput | string | null kelurahan?: NullableStringFieldUpdateOperationsInput | string | null kecamatan?: NullableStringFieldUpdateOperationsInput | string | null religion?: NullableStringFieldUpdateOperationsInput | string | null marital_status?: NullableStringFieldUpdateOperationsInput | string | null occupation?: NullableStringFieldUpdateOperationsInput | string | null nationality?: NullableStringFieldUpdateOperationsInput | string | null ktp_photo_url?: NullableStringFieldUpdateOperationsInput | string | null ktp_photo_hash?: NullableStringFieldUpdateOperationsInput | string | null validation_status?: Enumvisitor_ktp_data_validation_statusFieldUpdateOperationsInput | $Enums.visitor_ktp_data_validation_status validation_confidence?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null validation_notes?: NullableStringFieldUpdateOperationsInput | string | null validated_by?: NullableStringFieldUpdateOperationsInput | string | null validated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue manual_corrections?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type visitor_ktp_dataUncheckedUpdateWithoutKtp_validation_auditInput = { id?: StringFieldUpdateOperationsInput | string visitor_registration_id?: StringFieldUpdateOperationsInput | string ktp_number?: NullableStringFieldUpdateOperationsInput | string | null full_name?: NullableStringFieldUpdateOperationsInput | string | null birth_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birth_place?: NullableStringFieldUpdateOperationsInput | string | null gender?: NullableEnumvisitor_ktp_data_genderFieldUpdateOperationsInput | $Enums.visitor_ktp_data_gender | null address?: NullableStringFieldUpdateOperationsInput | string | null rt_rw?: NullableStringFieldUpdateOperationsInput | string | null kelurahan?: NullableStringFieldUpdateOperationsInput | string | null kecamatan?: NullableStringFieldUpdateOperationsInput | string | null religion?: NullableStringFieldUpdateOperationsInput | string | null marital_status?: NullableStringFieldUpdateOperationsInput | string | null occupation?: NullableStringFieldUpdateOperationsInput | string | null nationality?: NullableStringFieldUpdateOperationsInput | string | null ktp_photo_url?: NullableStringFieldUpdateOperationsInput | string | null ktp_photo_hash?: NullableStringFieldUpdateOperationsInput | string | null validation_status?: Enumvisitor_ktp_data_validation_statusFieldUpdateOperationsInput | $Enums.visitor_ktp_data_validation_status validation_confidence?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null validation_notes?: NullableStringFieldUpdateOperationsInput | string | null validated_by?: NullableStringFieldUpdateOperationsInput | string | null validated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue manual_corrections?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type geofencesCreateWithoutMap_pinsInput = { id?: string name: string type: string coordinates: JsonNullValueInput | InputJsonValue description?: string | null is_active?: boolean | null priority?: string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null geofence_breaches?: geofence_breachesCreateNestedManyWithoutGeofencesInput incidents?: incidentsCreateNestedManyWithoutGeofencesInput } export type geofencesUncheckedCreateWithoutMap_pinsInput = { id?: string name: string type: string coordinates: JsonNullValueInput | InputJsonValue description?: string | null is_active?: boolean | null priority?: string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null geofence_breaches?: geofence_breachesUncheckedCreateNestedManyWithoutGeofencesInput incidents?: incidentsUncheckedCreateNestedManyWithoutGeofencesInput } export type geofencesCreateOrConnectWithoutMap_pinsInput = { where: geofencesWhereUniqueInput create: XOR } export type geofencesUpsertWithoutMap_pinsInput = { update: XOR create: XOR where?: geofencesWhereInput } export type geofencesUpdateToOneWithWhereWithoutMap_pinsInput = { where?: geofencesWhereInput data: XOR } export type geofencesUpdateWithoutMap_pinsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: JsonNullValueInput | InputJsonValue description?: NullableStringFieldUpdateOperationsInput | string | null is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null priority?: NullableStringFieldUpdateOperationsInput | string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null geofence_breaches?: geofence_breachesUpdateManyWithoutGeofencesNestedInput incidents?: incidentsUpdateManyWithoutGeofencesNestedInput } export type geofencesUncheckedUpdateWithoutMap_pinsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: JsonNullValueInput | InputJsonValue description?: NullableStringFieldUpdateOperationsInput | string | null is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null priority?: NullableStringFieldUpdateOperationsInput | string | null notification_settings?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null geofence_breaches?: geofence_breachesUncheckedUpdateManyWithoutGeofencesNestedInput incidents?: incidentsUncheckedUpdateManyWithoutGeofencesNestedInput } export type visitor_registrationsCreateWithoutQr_codesInput = { id?: string name: string phone: string photo_url?: string | null purpose?: string | null entry_point: string location_lat?: Decimal | DecimalJsLike | number | string | null location_lng?: Decimal | DecimalJsLike | number | string | null status?: $Enums.visitor_registrations_status approved_by?: string | null approved_at?: Date | string | null rejected_by?: string | null rejected_at?: Date | string | null rejection_reason?: string | null expires_at?: Date | string | null checked_in_at?: Date | string | null checked_out_at?: Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_by?: string | null updated_by?: string | null created_at?: Date | string updated_at?: Date | string location_address?: string | null location_updated_at?: Date | string | null } export type visitor_registrationsUncheckedCreateWithoutQr_codesInput = { id?: string name: string phone: string photo_url?: string | null purpose?: string | null entry_point: string location_lat?: Decimal | DecimalJsLike | number | string | null location_lng?: Decimal | DecimalJsLike | number | string | null status?: $Enums.visitor_registrations_status approved_by?: string | null approved_at?: Date | string | null rejected_by?: string | null rejected_at?: Date | string | null rejection_reason?: string | null expires_at?: Date | string | null checked_in_at?: Date | string | null checked_out_at?: Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_by?: string | null updated_by?: string | null created_at?: Date | string updated_at?: Date | string location_address?: string | null location_updated_at?: Date | string | null } export type visitor_registrationsCreateOrConnectWithoutQr_codesInput = { where: visitor_registrationsWhereUniqueInput create: XOR } export type visitor_registrationsCreateManyQr_codesInputEnvelope = { data: visitor_registrationsCreateManyQr_codesInput | visitor_registrationsCreateManyQr_codesInput[] skipDuplicates?: boolean } export type visitor_registrationsUpsertWithWhereUniqueWithoutQr_codesInput = { where: visitor_registrationsWhereUniqueInput update: XOR create: XOR } export type visitor_registrationsUpdateWithWhereUniqueWithoutQr_codesInput = { where: visitor_registrationsWhereUniqueInput data: XOR } export type visitor_registrationsUpdateManyWithWhereWithoutQr_codesInput = { where: visitor_registrationsScalarWhereInput data: XOR } export type visitor_registrationsScalarWhereInput = { AND?: visitor_registrationsScalarWhereInput | visitor_registrationsScalarWhereInput[] OR?: visitor_registrationsScalarWhereInput[] NOT?: visitor_registrationsScalarWhereInput | visitor_registrationsScalarWhereInput[] id?: StringFilter<"visitor_registrations"> | string name?: StringFilter<"visitor_registrations"> | string phone?: StringFilter<"visitor_registrations"> | string photo_url?: StringNullableFilter<"visitor_registrations"> | string | null purpose?: StringNullableFilter<"visitor_registrations"> | string | null entry_point?: StringFilter<"visitor_registrations"> | string location_lat?: DecimalNullableFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null location_lng?: DecimalNullableFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null qr_code_id?: StringNullableFilter<"visitor_registrations"> | string | null status?: Enumvisitor_registrations_statusFilter<"visitor_registrations"> | $Enums.visitor_registrations_status approved_by?: StringNullableFilter<"visitor_registrations"> | string | null approved_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null rejected_by?: StringNullableFilter<"visitor_registrations"> | string | null rejected_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null rejection_reason?: StringNullableFilter<"visitor_registrations"> | string | null expires_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null checked_in_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null checked_out_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null metadata?: JsonNullableFilter<"visitor_registrations"> created_by?: StringNullableFilter<"visitor_registrations"> | string | null updated_by?: StringNullableFilter<"visitor_registrations"> | string | null created_at?: DateTimeFilter<"visitor_registrations"> | Date | string updated_at?: DateTimeFilter<"visitor_registrations"> | Date | string location_address?: StringNullableFilter<"visitor_registrations"> | string | null location_updated_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null } export type team_membersCreateWithoutTeam_location_historyInput = { id: string nama: string role: string status?: $Enums.team_members_status | null phone: string email?: string | null current_location?: string | null last_update?: Date | string | null shift_start?: Date | string | null shift_end?: Date | string | null created_at?: Date | string | null updated_at?: Date | string | null incidents_incidents_reported_byToteam_members?: incidentsCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput incidents_incidents_assigned_toToteam_members?: incidentsCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput } export type team_membersUncheckedCreateWithoutTeam_location_historyInput = { id: string nama: string role: string status?: $Enums.team_members_status | null phone: string email?: string | null current_location?: string | null last_update?: Date | string | null shift_start?: Date | string | null shift_end?: Date | string | null created_at?: Date | string | null updated_at?: Date | string | null incidents_incidents_reported_byToteam_members?: incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput incidents_incidents_assigned_toToteam_members?: incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput } export type team_membersCreateOrConnectWithoutTeam_location_historyInput = { where: team_membersWhereUniqueInput create: XOR } export type team_membersUpsertWithoutTeam_location_historyInput = { update: XOR create: XOR where?: team_membersWhereInput } export type team_membersUpdateToOneWithWhereWithoutTeam_location_historyInput = { where?: team_membersWhereInput data: XOR } export type team_membersUpdateWithoutTeam_location_historyInput = { id?: StringFieldUpdateOperationsInput | string nama?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null current_location?: NullableStringFieldUpdateOperationsInput | string | null last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null incidents_incidents_reported_byToteam_members?: incidentsUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput incidents_incidents_assigned_toToteam_members?: incidentsUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput } export type team_membersUncheckedUpdateWithoutTeam_location_historyInput = { id?: StringFieldUpdateOperationsInput | string nama?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null current_location?: NullableStringFieldUpdateOperationsInput | string | null last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null incidents_incidents_reported_byToteam_members?: incidentsUncheckedUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput incidents_incidents_assigned_toToteam_members?: incidentsUncheckedUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput } export type incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null alerts?: alertsCreateNestedManyWithoutIncidentsInput incident_updates?: incident_updatesCreateNestedManyWithoutIncidentsInput team_members_incidents_assigned_toToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_assigned_toToteam_membersInput geofences?: geofencesCreateNestedOneWithoutIncidentsInput } export type incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_to?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: string | null alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null alerts?: alertsUncheckedCreateNestedManyWithoutIncidentsInput incident_updates?: incident_updatesUncheckedCreateNestedManyWithoutIncidentsInput } export type incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput = { where: incidentsWhereUniqueInput create: XOR } export type incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInputEnvelope = { data: incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInput | incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInput[] skipDuplicates?: boolean } export type incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null alerts?: alertsCreateNestedManyWithoutIncidentsInput incident_updates?: incident_updatesCreateNestedManyWithoutIncidentsInput team_members_incidents_reported_byToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_reported_byToteam_membersInput geofences?: geofencesCreateNestedOneWithoutIncidentsInput } export type incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reported_by?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: string | null alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null alerts?: alertsUncheckedCreateNestedManyWithoutIncidentsInput incident_updates?: incident_updatesUncheckedCreateNestedManyWithoutIncidentsInput } export type incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput = { where: incidentsWhereUniqueInput create: XOR } export type incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInputEnvelope = { data: incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInput | incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInput[] skipDuplicates?: boolean } export type team_location_historyCreateWithoutTeam_membersInput = { location: string lat?: Decimal | DecimalJsLike | number | string | null lng?: Decimal | DecimalJsLike | number | string | null activity_type?: string | null timestamp?: Date | string | null } export type team_location_historyUncheckedCreateWithoutTeam_membersInput = { id?: number location: string lat?: Decimal | DecimalJsLike | number | string | null lng?: Decimal | DecimalJsLike | number | string | null activity_type?: string | null timestamp?: Date | string | null } export type team_location_historyCreateOrConnectWithoutTeam_membersInput = { where: team_location_historyWhereUniqueInput create: XOR } export type team_location_historyCreateManyTeam_membersInputEnvelope = { data: team_location_historyCreateManyTeam_membersInput | team_location_historyCreateManyTeam_membersInput[] skipDuplicates?: boolean } export type incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput = { where: incidentsWhereUniqueInput update: XOR create: XOR } export type incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput = { where: incidentsWhereUniqueInput data: XOR } export type incidentsUpdateManyWithWhereWithoutTeam_members_incidents_reported_byToteam_membersInput = { where: incidentsScalarWhereInput data: XOR } export type incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput = { where: incidentsWhereUniqueInput update: XOR create: XOR } export type incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput = { where: incidentsWhereUniqueInput data: XOR } export type incidentsUpdateManyWithWhereWithoutTeam_members_incidents_assigned_toToteam_membersInput = { where: incidentsScalarWhereInput data: XOR } export type team_location_historyUpsertWithWhereUniqueWithoutTeam_membersInput = { where: team_location_historyWhereUniqueInput update: XOR create: XOR } export type team_location_historyUpdateWithWhereUniqueWithoutTeam_membersInput = { where: team_location_historyWhereUniqueInput data: XOR } export type team_location_historyUpdateManyWithWhereWithoutTeam_membersInput = { where: team_location_historyScalarWhereInput data: XOR } export type team_location_historyScalarWhereInput = { AND?: team_location_historyScalarWhereInput | team_location_historyScalarWhereInput[] OR?: team_location_historyScalarWhereInput[] NOT?: team_location_historyScalarWhereInput | team_location_historyScalarWhereInput[] id?: IntFilter<"team_location_history"> | number member_id?: StringFilter<"team_location_history"> | string location?: StringFilter<"team_location_history"> | string lat?: DecimalNullableFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null lng?: DecimalNullableFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null activity_type?: StringNullableFilter<"team_location_history"> | string | null timestamp?: DateTimeNullableFilter<"team_location_history"> | Date | string | null } export type ktp_validation_auditCreateWithoutVisitor_ktp_dataInput = { id: string action: $Enums.ktp_validation_audit_action old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue performed_by: string ip_address?: string | null user_agent?: string | null reason?: string | null created_at?: Date | string metadata?: NullableJsonNullValueInput | InputJsonValue } export type ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput = { id: string action: $Enums.ktp_validation_audit_action old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue performed_by: string ip_address?: string | null user_agent?: string | null reason?: string | null created_at?: Date | string metadata?: NullableJsonNullValueInput | InputJsonValue } export type ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput = { where: ktp_validation_auditWhereUniqueInput create: XOR } export type ktp_validation_auditCreateManyVisitor_ktp_dataInputEnvelope = { data: ktp_validation_auditCreateManyVisitor_ktp_dataInput | ktp_validation_auditCreateManyVisitor_ktp_dataInput[] skipDuplicates?: boolean } export type ktp_validation_auditUpsertWithWhereUniqueWithoutVisitor_ktp_dataInput = { where: ktp_validation_auditWhereUniqueInput update: XOR create: XOR } export type ktp_validation_auditUpdateWithWhereUniqueWithoutVisitor_ktp_dataInput = { where: ktp_validation_auditWhereUniqueInput data: XOR } export type ktp_validation_auditUpdateManyWithWhereWithoutVisitor_ktp_dataInput = { where: ktp_validation_auditScalarWhereInput data: XOR } export type ktp_validation_auditScalarWhereInput = { AND?: ktp_validation_auditScalarWhereInput | ktp_validation_auditScalarWhereInput[] OR?: ktp_validation_auditScalarWhereInput[] NOT?: ktp_validation_auditScalarWhereInput | ktp_validation_auditScalarWhereInput[] id?: StringFilter<"ktp_validation_audit"> | string ktp_data_id?: StringFilter<"ktp_validation_audit"> | string action?: Enumktp_validation_audit_actionFilter<"ktp_validation_audit"> | $Enums.ktp_validation_audit_action old_values?: JsonNullableFilter<"ktp_validation_audit"> new_values?: JsonNullableFilter<"ktp_validation_audit"> performed_by?: StringFilter<"ktp_validation_audit"> | string ip_address?: StringNullableFilter<"ktp_validation_audit"> | string | null user_agent?: StringNullableFilter<"ktp_validation_audit"> | string | null reason?: StringNullableFilter<"ktp_validation_audit"> | string | null created_at?: DateTimeFilter<"ktp_validation_audit"> | Date | string metadata?: JsonNullableFilter<"ktp_validation_audit"> } export type qr_codesCreateWithoutVisitor_registrationsInput = { id?: string entry_point: string qr_data: string location_lat: Decimal | DecimalJsLike | number | string location_lng: Decimal | DecimalJsLike | number | string geofence_radius?: number is_active?: boolean description?: string | null max_daily_registrations?: number | null operating_hours?: NullableJsonNullValueInput | InputJsonValue security_level?: $Enums.qr_codes_security_level requires_approval?: boolean auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue last_used_at?: Date | string | null usage_count?: number created_by?: string | null updated_by?: string | null created_at?: Date | string updated_at?: Date | string } export type qr_codesUncheckedCreateWithoutVisitor_registrationsInput = { id?: string entry_point: string qr_data: string location_lat: Decimal | DecimalJsLike | number | string location_lng: Decimal | DecimalJsLike | number | string geofence_radius?: number is_active?: boolean description?: string | null max_daily_registrations?: number | null operating_hours?: NullableJsonNullValueInput | InputJsonValue security_level?: $Enums.qr_codes_security_level requires_approval?: boolean auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue last_used_at?: Date | string | null usage_count?: number created_by?: string | null updated_by?: string | null created_at?: Date | string updated_at?: Date | string } export type qr_codesCreateOrConnectWithoutVisitor_registrationsInput = { where: qr_codesWhereUniqueInput create: XOR } export type qr_codesUpsertWithoutVisitor_registrationsInput = { update: XOR create: XOR where?: qr_codesWhereInput } export type qr_codesUpdateToOneWithWhereWithoutVisitor_registrationsInput = { where?: qr_codesWhereInput data: XOR } export type qr_codesUpdateWithoutVisitor_registrationsInput = { id?: StringFieldUpdateOperationsInput | string entry_point?: StringFieldUpdateOperationsInput | string qr_data?: StringFieldUpdateOperationsInput | string location_lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string location_lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string geofence_radius?: IntFieldUpdateOperationsInput | number is_active?: BoolFieldUpdateOperationsInput | boolean description?: NullableStringFieldUpdateOperationsInput | string | null max_daily_registrations?: NullableIntFieldUpdateOperationsInput | number | null operating_hours?: NullableJsonNullValueInput | InputJsonValue security_level?: Enumqr_codes_security_levelFieldUpdateOperationsInput | $Enums.qr_codes_security_level requires_approval?: BoolFieldUpdateOperationsInput | boolean auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue last_used_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null usage_count?: IntFieldUpdateOperationsInput | number created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type qr_codesUncheckedUpdateWithoutVisitor_registrationsInput = { id?: StringFieldUpdateOperationsInput | string entry_point?: StringFieldUpdateOperationsInput | string qr_data?: StringFieldUpdateOperationsInput | string location_lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string location_lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string geofence_radius?: IntFieldUpdateOperationsInput | number is_active?: BoolFieldUpdateOperationsInput | boolean description?: NullableStringFieldUpdateOperationsInput | string | null max_daily_registrations?: NullableIntFieldUpdateOperationsInput | number | null operating_hours?: NullableJsonNullValueInput | InputJsonValue security_level?: Enumqr_codes_security_levelFieldUpdateOperationsInput | $Enums.qr_codes_security_level requires_approval?: BoolFieldUpdateOperationsInput | boolean auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue last_used_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null usage_count?: IntFieldUpdateOperationsInput | number created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type alert_recipientsCreateManyAlertsInput = { id?: string recipient_type: string recipient_id?: string | null recipient_name?: string | null recipient_contact?: NullableJsonNullValueInput | InputJsonValue channel: string delivery_status?: string | null sent_at?: Date | string | null delivered_at?: Date | string | null acknowledged_at?: Date | string | null failed_at?: Date | string | null delivery_attempts?: number | null last_attempt_at?: Date | string | null failure_reason?: string | null delivery_metadata?: NullableJsonNullValueInput | InputJsonValue response_data?: NullableJsonNullValueInput | InputJsonValue response_time?: number | null created_at?: Date | string | null updated_at?: Date | string | null } export type alert_recipientsUpdateWithoutAlertsInput = { id?: StringFieldUpdateOperationsInput | string recipient_type?: StringFieldUpdateOperationsInput | string recipient_id?: NullableStringFieldUpdateOperationsInput | string | null recipient_name?: NullableStringFieldUpdateOperationsInput | string | null recipient_contact?: NullableJsonNullValueInput | InputJsonValue channel?: StringFieldUpdateOperationsInput | string delivery_status?: NullableStringFieldUpdateOperationsInput | string | null sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null delivered_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null failed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null delivery_attempts?: NullableIntFieldUpdateOperationsInput | number | null last_attempt_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null failure_reason?: NullableStringFieldUpdateOperationsInput | string | null delivery_metadata?: NullableJsonNullValueInput | InputJsonValue response_data?: NullableJsonNullValueInput | InputJsonValue response_time?: NullableIntFieldUpdateOperationsInput | number | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type alert_recipientsUncheckedUpdateWithoutAlertsInput = { id?: StringFieldUpdateOperationsInput | string recipient_type?: StringFieldUpdateOperationsInput | string recipient_id?: NullableStringFieldUpdateOperationsInput | string | null recipient_name?: NullableStringFieldUpdateOperationsInput | string | null recipient_contact?: NullableJsonNullValueInput | InputJsonValue channel?: StringFieldUpdateOperationsInput | string delivery_status?: NullableStringFieldUpdateOperationsInput | string | null sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null delivered_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null failed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null delivery_attempts?: NullableIntFieldUpdateOperationsInput | number | null last_attempt_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null failure_reason?: NullableStringFieldUpdateOperationsInput | string | null delivery_metadata?: NullableJsonNullValueInput | InputJsonValue response_data?: NullableJsonNullValueInput | InputJsonValue response_time?: NullableIntFieldUpdateOperationsInput | number | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type alert_recipientsUncheckedUpdateManyWithoutAlertsInput = { id?: StringFieldUpdateOperationsInput | string recipient_type?: StringFieldUpdateOperationsInput | string recipient_id?: NullableStringFieldUpdateOperationsInput | string | null recipient_name?: NullableStringFieldUpdateOperationsInput | string | null recipient_contact?: NullableJsonNullValueInput | InputJsonValue channel?: StringFieldUpdateOperationsInput | string delivery_status?: NullableStringFieldUpdateOperationsInput | string | null sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null delivered_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null failed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null delivery_attempts?: NullableIntFieldUpdateOperationsInput | number | null last_attempt_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null failure_reason?: NullableStringFieldUpdateOperationsInput | string | null delivery_metadata?: NullableJsonNullValueInput | InputJsonValue response_data?: NullableJsonNullValueInput | InputJsonValue response_time?: NullableIntFieldUpdateOperationsInput | number | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type camera_health_logCreateManyCamerasInput = { id?: number status: string response_time: number health_score: number error_message?: string | null stream_accessible?: boolean | null timestamp?: Date | string | null } export type camera_health_logUpdateWithoutCamerasInput = { status?: StringFieldUpdateOperationsInput | string response_time?: IntFieldUpdateOperationsInput | number health_score?: IntFieldUpdateOperationsInput | number error_message?: NullableStringFieldUpdateOperationsInput | string | null stream_accessible?: NullableBoolFieldUpdateOperationsInput | boolean | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type camera_health_logUncheckedUpdateWithoutCamerasInput = { id?: IntFieldUpdateOperationsInput | number status?: StringFieldUpdateOperationsInput | string response_time?: IntFieldUpdateOperationsInput | number health_score?: IntFieldUpdateOperationsInput | number error_message?: NullableStringFieldUpdateOperationsInput | string | null stream_accessible?: NullableBoolFieldUpdateOperationsInput | boolean | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type camera_health_logUncheckedUpdateManyWithoutCamerasInput = { id?: IntFieldUpdateOperationsInput | number status?: StringFieldUpdateOperationsInput | string response_time?: IntFieldUpdateOperationsInput | number health_score?: IntFieldUpdateOperationsInput | number error_message?: NullableStringFieldUpdateOperationsInput | string | null stream_accessible?: NullableBoolFieldUpdateOperationsInput | boolean | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type geofence_breachesCreateManyGeofencesInput = { id?: string team_member_id?: string | null breach_type: string location: JsonNullValueInput | InputJsonValue severity?: string | null is_resolved?: boolean | null resolved_at?: Date | string | null resolved_by?: string | null notes?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null } export type incidentsCreateManyGeofencesInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reported_by?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_to?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null } export type map_pinsCreateManyGeofencesInput = { id?: string type: string coordinates?: NullableJsonNullValueInput | InputJsonValue title: string description?: string | null status?: string | null priority?: string | null icon_type?: string | null icon_color?: string | null size?: string | null is_visible?: boolean | null is_clickable?: boolean | null metadata?: NullableJsonNullValueInput | InputJsonValue alert_id?: string | null incident_id?: string | null team_member_id?: string | null camera_id?: string | null created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null } export type geofence_breachesUpdateWithoutGeofencesInput = { id?: StringFieldUpdateOperationsInput | string team_member_id?: NullableStringFieldUpdateOperationsInput | string | null breach_type?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue severity?: NullableStringFieldUpdateOperationsInput | string | null is_resolved?: NullableBoolFieldUpdateOperationsInput | boolean | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_by?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type geofence_breachesUncheckedUpdateWithoutGeofencesInput = { id?: StringFieldUpdateOperationsInput | string team_member_id?: NullableStringFieldUpdateOperationsInput | string | null breach_type?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue severity?: NullableStringFieldUpdateOperationsInput | string | null is_resolved?: NullableBoolFieldUpdateOperationsInput | boolean | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_by?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type geofence_breachesUncheckedUpdateManyWithoutGeofencesInput = { id?: StringFieldUpdateOperationsInput | string team_member_id?: NullableStringFieldUpdateOperationsInput | string | null breach_type?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue severity?: NullableStringFieldUpdateOperationsInput | string | null is_resolved?: NullableBoolFieldUpdateOperationsInput | boolean | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_by?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type incidentsUpdateWithoutGeofencesInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null alerts?: alertsUpdateManyWithoutIncidentsNestedInput incident_updates?: incident_updatesUpdateManyWithoutIncidentsNestedInput team_members_incidents_reported_byToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_reported_byToteam_membersNestedInput team_members_incidents_assigned_toToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_assigned_toToteam_membersNestedInput } export type incidentsUncheckedUpdateWithoutGeofencesInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reported_by?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_to?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null alerts?: alertsUncheckedUpdateManyWithoutIncidentsNestedInput incident_updates?: incident_updatesUncheckedUpdateManyWithoutIncidentsNestedInput } export type incidentsUncheckedUpdateManyWithoutGeofencesInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reported_by?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_to?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null } export type map_pinsUpdateWithoutGeofencesInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: NullableJsonNullValueInput | InputJsonValue title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: NullableStringFieldUpdateOperationsInput | string | null priority?: NullableStringFieldUpdateOperationsInput | string | null icon_type?: NullableStringFieldUpdateOperationsInput | string | null icon_color?: NullableStringFieldUpdateOperationsInput | string | null size?: NullableStringFieldUpdateOperationsInput | string | null is_visible?: NullableBoolFieldUpdateOperationsInput | boolean | null is_clickable?: NullableBoolFieldUpdateOperationsInput | boolean | null metadata?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null incident_id?: NullableStringFieldUpdateOperationsInput | string | null team_member_id?: NullableStringFieldUpdateOperationsInput | string | null camera_id?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null } export type map_pinsUncheckedUpdateWithoutGeofencesInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: NullableJsonNullValueInput | InputJsonValue title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: NullableStringFieldUpdateOperationsInput | string | null priority?: NullableStringFieldUpdateOperationsInput | string | null icon_type?: NullableStringFieldUpdateOperationsInput | string | null icon_color?: NullableStringFieldUpdateOperationsInput | string | null size?: NullableStringFieldUpdateOperationsInput | string | null is_visible?: NullableBoolFieldUpdateOperationsInput | boolean | null is_clickable?: NullableBoolFieldUpdateOperationsInput | boolean | null metadata?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null incident_id?: NullableStringFieldUpdateOperationsInput | string | null team_member_id?: NullableStringFieldUpdateOperationsInput | string | null camera_id?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null } export type map_pinsUncheckedUpdateManyWithoutGeofencesInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string coordinates?: NullableJsonNullValueInput | InputJsonValue title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: NullableStringFieldUpdateOperationsInput | string | null priority?: NullableStringFieldUpdateOperationsInput | string | null icon_type?: NullableStringFieldUpdateOperationsInput | string | null icon_color?: NullableStringFieldUpdateOperationsInput | string | null size?: NullableStringFieldUpdateOperationsInput | string | null is_visible?: NullableBoolFieldUpdateOperationsInput | boolean | null is_clickable?: NullableBoolFieldUpdateOperationsInput | boolean | null metadata?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null incident_id?: NullableStringFieldUpdateOperationsInput | string | null team_member_id?: NullableStringFieldUpdateOperationsInput | string | null camera_id?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null } export type alertsCreateManyIncidentsInput = { id?: string alert_id: string title: string message: string type: string category?: string | null severity?: string priority?: string status?: string is_emergency?: boolean | null is_broadcast?: boolean | null is_recurring?: boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: Date | string | null starts_at?: Date | string | null ends_at?: Date | string | null expires_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: string | null source_id?: string | null context?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: number | null delivered_count?: number | null acknowledged_count?: number | null failed_count?: number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null } export type incident_updatesCreateManyIncidentsInput = { id?: string update_type: string title?: string | null description?: string | null old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue changed_fields?: NullableJsonNullValueInput | InputJsonValue is_internal?: boolean | null is_system_generated?: boolean | null attachments?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null created_by: string notifications_sent?: NullableJsonNullValueInput | InputJsonValue notification_status?: string | null } export type alertsUpdateWithoutIncidentsInput = { id?: StringFieldUpdateOperationsInput | string alert_id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string message?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string category?: NullableStringFieldUpdateOperationsInput | string | null severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: NullableStringFieldUpdateOperationsInput | string | null source_id?: NullableStringFieldUpdateOperationsInput | string | null context?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: NullableIntFieldUpdateOperationsInput | number | null delivered_count?: NullableIntFieldUpdateOperationsInput | number | null acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null failed_count?: NullableIntFieldUpdateOperationsInput | number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null alert_recipients?: alert_recipientsUpdateManyWithoutAlertsNestedInput } export type alertsUncheckedUpdateWithoutIncidentsInput = { id?: StringFieldUpdateOperationsInput | string alert_id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string message?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string category?: NullableStringFieldUpdateOperationsInput | string | null severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: NullableStringFieldUpdateOperationsInput | string | null source_id?: NullableStringFieldUpdateOperationsInput | string | null context?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: NullableIntFieldUpdateOperationsInput | number | null delivered_count?: NullableIntFieldUpdateOperationsInput | number | null acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null failed_count?: NullableIntFieldUpdateOperationsInput | number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null alert_recipients?: alert_recipientsUncheckedUpdateManyWithoutAlertsNestedInput } export type alertsUncheckedUpdateManyWithoutIncidentsInput = { id?: StringFieldUpdateOperationsInput | string alert_id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string message?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string category?: NullableStringFieldUpdateOperationsInput | string | null severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null location?: NullableJsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null target_zones?: NullableJsonNullValueInput | InputJsonValue target_buildings?: NullableJsonNullValueInput | InputJsonValue target_roles?: NullableJsonNullValueInput | InputJsonValue target_teams?: NullableJsonNullValueInput | InputJsonValue target_users?: NullableJsonNullValueInput | InputJsonValue geofence_ids?: NullableJsonNullValueInput | InputJsonValue scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null content?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue media_urls?: NullableJsonNullValueInput | InputJsonValue action_buttons?: NullableJsonNullValueInput | InputJsonValue channels?: NullableJsonNullValueInput | InputJsonValue delivery_config?: NullableJsonNullValueInput | InputJsonValue source?: NullableStringFieldUpdateOperationsInput | string | null source_id?: NullableStringFieldUpdateOperationsInput | string | null context?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue related_alerts?: NullableJsonNullValueInput | InputJsonValue total_recipients?: NullableIntFieldUpdateOperationsInput | number | null delivered_count?: NullableIntFieldUpdateOperationsInput | number | null acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null failed_count?: NullableIntFieldUpdateOperationsInput | number | null tags?: NullableJsonNullValueInput | InputJsonValue metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null } export type incident_updatesUpdateWithoutIncidentsInput = { id?: StringFieldUpdateOperationsInput | string update_type?: StringFieldUpdateOperationsInput | string title?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue changed_fields?: NullableJsonNullValueInput | InputJsonValue is_internal?: NullableBoolFieldUpdateOperationsInput | boolean | null is_system_generated?: NullableBoolFieldUpdateOperationsInput | boolean | null attachments?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: StringFieldUpdateOperationsInput | string notifications_sent?: NullableJsonNullValueInput | InputJsonValue notification_status?: NullableStringFieldUpdateOperationsInput | string | null } export type incident_updatesUncheckedUpdateWithoutIncidentsInput = { id?: StringFieldUpdateOperationsInput | string update_type?: StringFieldUpdateOperationsInput | string title?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue changed_fields?: NullableJsonNullValueInput | InputJsonValue is_internal?: NullableBoolFieldUpdateOperationsInput | boolean | null is_system_generated?: NullableBoolFieldUpdateOperationsInput | boolean | null attachments?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: StringFieldUpdateOperationsInput | string notifications_sent?: NullableJsonNullValueInput | InputJsonValue notification_status?: NullableStringFieldUpdateOperationsInput | string | null } export type incident_updatesUncheckedUpdateManyWithoutIncidentsInput = { id?: StringFieldUpdateOperationsInput | string update_type?: StringFieldUpdateOperationsInput | string title?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue changed_fields?: NullableJsonNullValueInput | InputJsonValue is_internal?: NullableBoolFieldUpdateOperationsInput | boolean | null is_system_generated?: NullableBoolFieldUpdateOperationsInput | boolean | null attachments?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: StringFieldUpdateOperationsInput | string notifications_sent?: NullableJsonNullValueInput | InputJsonValue notification_status?: NullableStringFieldUpdateOperationsInput | string | null } export type visitor_registrationsCreateManyQr_codesInput = { id?: string name: string phone: string photo_url?: string | null purpose?: string | null entry_point: string location_lat?: Decimal | DecimalJsLike | number | string | null location_lng?: Decimal | DecimalJsLike | number | string | null status?: $Enums.visitor_registrations_status approved_by?: string | null approved_at?: Date | string | null rejected_by?: string | null rejected_at?: Date | string | null rejection_reason?: string | null expires_at?: Date | string | null checked_in_at?: Date | string | null checked_out_at?: Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_by?: string | null updated_by?: string | null created_at?: Date | string updated_at?: Date | string location_address?: string | null location_updated_at?: Date | string | null } export type visitor_registrationsUpdateWithoutQr_codesInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string photo_url?: NullableStringFieldUpdateOperationsInput | string | null purpose?: NullableStringFieldUpdateOperationsInput | string | null entry_point?: StringFieldUpdateOperationsInput | string location_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null location_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: Enumvisitor_registrations_statusFieldUpdateOperationsInput | $Enums.visitor_registrations_status approved_by?: NullableStringFieldUpdateOperationsInput | string | null approved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null rejected_by?: NullableStringFieldUpdateOperationsInput | string | null rejected_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null rejection_reason?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null checked_in_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null checked_out_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string location_address?: NullableStringFieldUpdateOperationsInput | string | null location_updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type visitor_registrationsUncheckedUpdateWithoutQr_codesInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string photo_url?: NullableStringFieldUpdateOperationsInput | string | null purpose?: NullableStringFieldUpdateOperationsInput | string | null entry_point?: StringFieldUpdateOperationsInput | string location_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null location_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: Enumvisitor_registrations_statusFieldUpdateOperationsInput | $Enums.visitor_registrations_status approved_by?: NullableStringFieldUpdateOperationsInput | string | null approved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null rejected_by?: NullableStringFieldUpdateOperationsInput | string | null rejected_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null rejection_reason?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null checked_in_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null checked_out_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string location_address?: NullableStringFieldUpdateOperationsInput | string | null location_updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type visitor_registrationsUncheckedUpdateManyWithoutQr_codesInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string photo_url?: NullableStringFieldUpdateOperationsInput | string | null purpose?: NullableStringFieldUpdateOperationsInput | string | null entry_point?: StringFieldUpdateOperationsInput | string location_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null location_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: Enumvisitor_registrations_statusFieldUpdateOperationsInput | $Enums.visitor_registrations_status approved_by?: NullableStringFieldUpdateOperationsInput | string | null approved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null rejected_by?: NullableStringFieldUpdateOperationsInput | string | null rejected_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null rejection_reason?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null checked_in_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null checked_out_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metadata?: NullableJsonNullValueInput | InputJsonValue created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string location_address?: NullableStringFieldUpdateOperationsInput | string | null location_updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_to?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: string | null alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null } export type incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInput = { id?: string incident_number: string title: string description?: string | null type: string severity?: string priority?: string status?: string location: JsonNullValueInput | InputJsonValue coordinates_lat?: Decimal | DecimalJsLike | number | string | null coordinates_lng?: Decimal | DecimalJsLike | number | string | null address?: string | null zone?: string | null building?: string | null floor?: string | null room?: string | null reported_by?: string | null reporter_name?: string | null reporter_contact?: string | null reporter_type?: string | null assigned_team?: string | null assigned_at?: Date | string | null occurred_at: Date | string reported_at?: Date | string | null acknowledged_at?: Date | string | null resolved_at?: Date | string | null closed_at?: Date | string | null due_date?: Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: string | null alert_id?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null created_by?: string | null updated_by?: string | null deleted_at?: Date | string | null deleted_by?: string | null } export type team_location_historyCreateManyTeam_membersInput = { id?: number location: string lat?: Decimal | DecimalJsLike | number | string | null lng?: Decimal | DecimalJsLike | number | string | null activity_type?: string | null timestamp?: Date | string | null } export type incidentsUpdateWithoutTeam_members_incidents_reported_byToteam_membersInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null alerts?: alertsUpdateManyWithoutIncidentsNestedInput incident_updates?: incident_updatesUpdateManyWithoutIncidentsNestedInput team_members_incidents_assigned_toToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_assigned_toToteam_membersNestedInput geofences?: geofencesUpdateOneWithoutIncidentsNestedInput } export type incidentsUncheckedUpdateWithoutTeam_members_incidents_reported_byToteam_membersInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_to?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: NullableStringFieldUpdateOperationsInput | string | null alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null alerts?: alertsUncheckedUpdateManyWithoutIncidentsNestedInput incident_updates?: incident_updatesUncheckedUpdateManyWithoutIncidentsNestedInput } export type incidentsUncheckedUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_to?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: NullableStringFieldUpdateOperationsInput | string | null alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null } export type incidentsUpdateWithoutTeam_members_incidents_assigned_toToteam_membersInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null alerts?: alertsUpdateManyWithoutIncidentsNestedInput incident_updates?: incident_updatesUpdateManyWithoutIncidentsNestedInput team_members_incidents_reported_byToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_reported_byToteam_membersNestedInput geofences?: geofencesUpdateOneWithoutIncidentsNestedInput } export type incidentsUncheckedUpdateWithoutTeam_members_incidents_assigned_toToteam_membersInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reported_by?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: NullableStringFieldUpdateOperationsInput | string | null alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null alerts?: alertsUncheckedUpdateManyWithoutIncidentsNestedInput incident_updates?: incident_updatesUncheckedUpdateManyWithoutIncidentsNestedInput } export type incidentsUncheckedUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersInput = { id?: StringFieldUpdateOperationsInput | string incident_number?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string severity?: StringFieldUpdateOperationsInput | string priority?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string location?: JsonNullValueInput | InputJsonValue coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null address?: NullableStringFieldUpdateOperationsInput | string | null zone?: NullableStringFieldUpdateOperationsInput | string | null building?: NullableStringFieldUpdateOperationsInput | string | null floor?: NullableStringFieldUpdateOperationsInput | string | null room?: NullableStringFieldUpdateOperationsInput | string | null reported_by?: NullableStringFieldUpdateOperationsInput | string | null reporter_name?: NullableStringFieldUpdateOperationsInput | string | null reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null reporter_type?: NullableStringFieldUpdateOperationsInput | string | null assigned_team?: NullableStringFieldUpdateOperationsInput | string | null assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null tags?: NullableJsonNullValueInput | InputJsonValue attachments?: NullableJsonNullValueInput | InputJsonValue evidence?: NullableJsonNullValueInput | InputJsonValue witnesses?: NullableJsonNullValueInput | InputJsonValue related_incidents?: NullableJsonNullValueInput | InputJsonValue camera_ids?: NullableJsonNullValueInput | InputJsonValue geofence_id?: NullableStringFieldUpdateOperationsInput | string | null alert_id?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue custom_fields?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_by?: NullableStringFieldUpdateOperationsInput | string | null updated_by?: NullableStringFieldUpdateOperationsInput | string | null deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null deleted_by?: NullableStringFieldUpdateOperationsInput | string | null } export type team_location_historyUpdateWithoutTeam_membersInput = { location?: StringFieldUpdateOperationsInput | string lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null activity_type?: NullableStringFieldUpdateOperationsInput | string | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type team_location_historyUncheckedUpdateWithoutTeam_membersInput = { id?: IntFieldUpdateOperationsInput | number location?: StringFieldUpdateOperationsInput | string lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null activity_type?: NullableStringFieldUpdateOperationsInput | string | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type team_location_historyUncheckedUpdateManyWithoutTeam_membersInput = { id?: IntFieldUpdateOperationsInput | number location?: StringFieldUpdateOperationsInput | string lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null activity_type?: NullableStringFieldUpdateOperationsInput | string | null timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type ktp_validation_auditCreateManyVisitor_ktp_dataInput = { id: string action: $Enums.ktp_validation_audit_action old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue performed_by: string ip_address?: string | null user_agent?: string | null reason?: string | null created_at?: Date | string metadata?: NullableJsonNullValueInput | InputJsonValue } export type ktp_validation_auditUpdateWithoutVisitor_ktp_dataInput = { id?: StringFieldUpdateOperationsInput | string action?: Enumktp_validation_audit_actionFieldUpdateOperationsInput | $Enums.ktp_validation_audit_action old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue performed_by?: StringFieldUpdateOperationsInput | string ip_address?: NullableStringFieldUpdateOperationsInput | string | null user_agent?: NullableStringFieldUpdateOperationsInput | string | null reason?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string metadata?: NullableJsonNullValueInput | InputJsonValue } export type ktp_validation_auditUncheckedUpdateWithoutVisitor_ktp_dataInput = { id?: StringFieldUpdateOperationsInput | string action?: Enumktp_validation_audit_actionFieldUpdateOperationsInput | $Enums.ktp_validation_audit_action old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue performed_by?: StringFieldUpdateOperationsInput | string ip_address?: NullableStringFieldUpdateOperationsInput | string | null user_agent?: NullableStringFieldUpdateOperationsInput | string | null reason?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string metadata?: NullableJsonNullValueInput | InputJsonValue } export type ktp_validation_auditUncheckedUpdateManyWithoutVisitor_ktp_dataInput = { id?: StringFieldUpdateOperationsInput | string action?: Enumktp_validation_audit_actionFieldUpdateOperationsInput | $Enums.ktp_validation_audit_action old_values?: NullableJsonNullValueInput | InputJsonValue new_values?: NullableJsonNullValueInput | InputJsonValue performed_by?: StringFieldUpdateOperationsInput | string ip_address?: NullableStringFieldUpdateOperationsInput | string | null user_agent?: NullableStringFieldUpdateOperationsInput | string | null reason?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string metadata?: NullableJsonNullValueInput | InputJsonValue } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }