/** * Client **/ import * as runtime from './runtime/client.js'; import $Types = runtime.Types // general types import $Public = runtime.Types.Public import $Utils = runtime.Types.Utils import $Extensions = runtime.Types.Extensions import $Result = runtime.Types.Result export type PrismaPromise = $Public.PrismaPromise /** * Model User * */ export type User = $Result.DefaultSelection /** * Model Patient * */ export type Patient = $Result.DefaultSelection /** * Model Appointment * */ export type Appointment = $Result.DefaultSelection /** * Model Staff * */ export type Staff = $Result.DefaultSelection /** * Model NpiProvider * */ export type NpiProvider = $Result.DefaultSelection /** * Model AppointmentProcedure * */ export type AppointmentProcedure = $Result.DefaultSelection /** * Model Claim * */ export type Claim = $Result.DefaultSelection /** * Model ServiceLine * */ export type ServiceLine = $Result.DefaultSelection /** * Model ClaimFile * */ export type ClaimFile = $Result.DefaultSelection /** * Model InsuranceCredential * */ export type InsuranceCredential = $Result.DefaultSelection /** * Model PdfGroup * */ export type PdfGroup = $Result.DefaultSelection /** * Model PdfFile * */ export type PdfFile = $Result.DefaultSelection /** * Model Payment * */ export type Payment = $Result.DefaultSelection /** * Model ServiceLineTransaction * */ export type ServiceLineTransaction = $Result.DefaultSelection /** * Model DatabaseBackup * */ export type DatabaseBackup = $Result.DefaultSelection /** * Model BackupDestination * */ export type BackupDestination = $Result.DefaultSelection /** * Model Notification * */ export type Notification = $Result.DefaultSelection /** * Model CloudFolder * */ export type CloudFolder = $Result.DefaultSelection /** * Model CloudFile * */ export type CloudFile = $Result.DefaultSelection /** * Model CloudFileChunk * */ export type CloudFileChunk = $Result.DefaultSelection /** * Model Communication * */ export type Communication = $Result.DefaultSelection /** * Model PatientDocument * */ export type PatientDocument = $Result.DefaultSelection /** * Enums */ export namespace $Enums { export const PatientStatus: { ACTIVE: 'ACTIVE', INACTIVE: 'INACTIVE', UNKNOWN: 'UNKNOWN' }; export type PatientStatus = (typeof PatientStatus)[keyof typeof PatientStatus] export const ProcedureSource: { COMBO: 'COMBO', MANUAL: 'MANUAL' }; export type ProcedureSource = (typeof ProcedureSource)[keyof typeof ProcedureSource] export const ClaimStatus: { PENDING: 'PENDING', APPROVED: 'APPROVED', CANCELLED: 'CANCELLED', REVIEW: 'REVIEW', VOID: 'VOID' }; export type ClaimStatus = (typeof ClaimStatus)[keyof typeof ClaimStatus] export const MissingTeethStatus: { No_missing: 'No_missing', endentulous: 'endentulous', Yes_missing: 'Yes_missing' }; export type MissingTeethStatus = (typeof MissingTeethStatus)[keyof typeof MissingTeethStatus] export const ServiceLineStatus: { PENDING: 'PENDING', PARTIALLY_PAID: 'PARTIALLY_PAID', PAID: 'PAID', UNPAID: 'UNPAID', ADJUSTED: 'ADJUSTED', OVERPAID: 'OVERPAID', DENIED: 'DENIED' }; export type ServiceLineStatus = (typeof ServiceLineStatus)[keyof typeof ServiceLineStatus] export const PdfTitleKey: { INSURANCE_CLAIM: 'INSURANCE_CLAIM', INSURANCE_CLAIM_PREAUTH: 'INSURANCE_CLAIM_PREAUTH', ELIGIBILITY_STATUS: 'ELIGIBILITY_STATUS', CLAIM_STATUS: 'CLAIM_STATUS', OTHER: 'OTHER' }; export type PdfTitleKey = (typeof PdfTitleKey)[keyof typeof PdfTitleKey] export const PaymentStatus: { PENDING: 'PENDING', PARTIALLY_PAID: 'PARTIALLY_PAID', PAID: 'PAID', OVERPAID: 'OVERPAID', DENIED: 'DENIED', VOID: 'VOID' }; export type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus] export const PaymentMethod: { EFT: 'EFT', CHECK: 'CHECK', CASH: 'CASH', CARD: 'CARD', OTHER: 'OTHER' }; export type PaymentMethod = (typeof PaymentMethod)[keyof typeof PaymentMethod] export const NotificationTypes: { BACKUP: 'BACKUP', CLAIM: 'CLAIM', PAYMENT: 'PAYMENT', ETC: 'ETC' }; export type NotificationTypes = (typeof NotificationTypes)[keyof typeof NotificationTypes] export const CommunicationChannel: { sms: 'sms', voice: 'voice' }; export type CommunicationChannel = (typeof CommunicationChannel)[keyof typeof CommunicationChannel] export const CommunicationDirection: { outbound: 'outbound', inbound: 'inbound' }; export type CommunicationDirection = (typeof CommunicationDirection)[keyof typeof CommunicationDirection] export const CommunicationStatus: { queued: 'queued', sent: 'sent', delivered: 'delivered', failed: 'failed', completed: 'completed', busy: 'busy', no_answer: 'no_answer' }; export type CommunicationStatus = (typeof CommunicationStatus)[keyof typeof CommunicationStatus] } export type PatientStatus = $Enums.PatientStatus export const PatientStatus: typeof $Enums.PatientStatus export type ProcedureSource = $Enums.ProcedureSource export const ProcedureSource: typeof $Enums.ProcedureSource export type ClaimStatus = $Enums.ClaimStatus export const ClaimStatus: typeof $Enums.ClaimStatus export type MissingTeethStatus = $Enums.MissingTeethStatus export const MissingTeethStatus: typeof $Enums.MissingTeethStatus export type ServiceLineStatus = $Enums.ServiceLineStatus export const ServiceLineStatus: typeof $Enums.ServiceLineStatus export type PdfTitleKey = $Enums.PdfTitleKey export const PdfTitleKey: typeof $Enums.PdfTitleKey export type PaymentStatus = $Enums.PaymentStatus export const PaymentStatus: typeof $Enums.PaymentStatus export type PaymentMethod = $Enums.PaymentMethod export const PaymentMethod: typeof $Enums.PaymentMethod export type NotificationTypes = $Enums.NotificationTypes export const NotificationTypes: typeof $Enums.NotificationTypes export type CommunicationChannel = $Enums.CommunicationChannel export const CommunicationChannel: typeof $Enums.CommunicationChannel export type CommunicationDirection = $Enums.CommunicationDirection export const CommunicationDirection: typeof $Enums.CommunicationDirection export type CommunicationStatus = $Enums.CommunicationStatus export const CommunicationStatus: typeof $Enums.CommunicationStatus /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` * * * Read more in our [docs](https://pris.ly/d/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 Users * const users = await prisma.user.findMany() * ``` * * * Read more in our [docs](https://pris.ly/d/client). */ constructor(optionsArg ?: Prisma.Subset); $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; /** * Connect with the database */ $connect(): $Utils.JsPromise; /** * Disconnect from the database */ $disconnect(): $Utils.JsPromise; /** * Executes a prepared raw query and returns the number of affected rows. * @example * ``` * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` * ``` * * Read more in our [docs](https://pris.ly/d/raw-queries). */ $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://pris.ly/d/raw-queries). */ $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://pris.ly/d/raw-queries). */ $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://pris.ly/d/raw-queries). */ $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/orm/prisma-client/queries/transactions). */ $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise> $transaction(fn: (prisma: Omit) => $Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, $Utils.Call, { extArgs: ExtArgs }>> /** * `prisma.user`: Exposes CRUD operations for the **User** model. * Example usage: * ```ts * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` */ get user(): Prisma.UserDelegate; /** * `prisma.patient`: Exposes CRUD operations for the **Patient** model. * Example usage: * ```ts * // Fetch zero or more Patients * const patients = await prisma.patient.findMany() * ``` */ get patient(): Prisma.PatientDelegate; /** * `prisma.appointment`: Exposes CRUD operations for the **Appointment** model. * Example usage: * ```ts * // Fetch zero or more Appointments * const appointments = await prisma.appointment.findMany() * ``` */ get appointment(): Prisma.AppointmentDelegate; /** * `prisma.staff`: Exposes CRUD operations for the **Staff** model. * Example usage: * ```ts * // Fetch zero or more Staff * const staff = await prisma.staff.findMany() * ``` */ get staff(): Prisma.StaffDelegate; /** * `prisma.npiProvider`: Exposes CRUD operations for the **NpiProvider** model. * Example usage: * ```ts * // Fetch zero or more NpiProviders * const npiProviders = await prisma.npiProvider.findMany() * ``` */ get npiProvider(): Prisma.NpiProviderDelegate; /** * `prisma.appointmentProcedure`: Exposes CRUD operations for the **AppointmentProcedure** model. * Example usage: * ```ts * // Fetch zero or more AppointmentProcedures * const appointmentProcedures = await prisma.appointmentProcedure.findMany() * ``` */ get appointmentProcedure(): Prisma.AppointmentProcedureDelegate; /** * `prisma.claim`: Exposes CRUD operations for the **Claim** model. * Example usage: * ```ts * // Fetch zero or more Claims * const claims = await prisma.claim.findMany() * ``` */ get claim(): Prisma.ClaimDelegate; /** * `prisma.serviceLine`: Exposes CRUD operations for the **ServiceLine** model. * Example usage: * ```ts * // Fetch zero or more ServiceLines * const serviceLines = await prisma.serviceLine.findMany() * ``` */ get serviceLine(): Prisma.ServiceLineDelegate; /** * `prisma.claimFile`: Exposes CRUD operations for the **ClaimFile** model. * Example usage: * ```ts * // Fetch zero or more ClaimFiles * const claimFiles = await prisma.claimFile.findMany() * ``` */ get claimFile(): Prisma.ClaimFileDelegate; /** * `prisma.insuranceCredential`: Exposes CRUD operations for the **InsuranceCredential** model. * Example usage: * ```ts * // Fetch zero or more InsuranceCredentials * const insuranceCredentials = await prisma.insuranceCredential.findMany() * ``` */ get insuranceCredential(): Prisma.InsuranceCredentialDelegate; /** * `prisma.pdfGroup`: Exposes CRUD operations for the **PdfGroup** model. * Example usage: * ```ts * // Fetch zero or more PdfGroups * const pdfGroups = await prisma.pdfGroup.findMany() * ``` */ get pdfGroup(): Prisma.PdfGroupDelegate; /** * `prisma.pdfFile`: Exposes CRUD operations for the **PdfFile** model. * Example usage: * ```ts * // Fetch zero or more PdfFiles * const pdfFiles = await prisma.pdfFile.findMany() * ``` */ get pdfFile(): Prisma.PdfFileDelegate; /** * `prisma.payment`: Exposes CRUD operations for the **Payment** model. * Example usage: * ```ts * // Fetch zero or more Payments * const payments = await prisma.payment.findMany() * ``` */ get payment(): Prisma.PaymentDelegate; /** * `prisma.serviceLineTransaction`: Exposes CRUD operations for the **ServiceLineTransaction** model. * Example usage: * ```ts * // Fetch zero or more ServiceLineTransactions * const serviceLineTransactions = await prisma.serviceLineTransaction.findMany() * ``` */ get serviceLineTransaction(): Prisma.ServiceLineTransactionDelegate; /** * `prisma.databaseBackup`: Exposes CRUD operations for the **DatabaseBackup** model. * Example usage: * ```ts * // Fetch zero or more DatabaseBackups * const databaseBackups = await prisma.databaseBackup.findMany() * ``` */ get databaseBackup(): Prisma.DatabaseBackupDelegate; /** * `prisma.backupDestination`: Exposes CRUD operations for the **BackupDestination** model. * Example usage: * ```ts * // Fetch zero or more BackupDestinations * const backupDestinations = await prisma.backupDestination.findMany() * ``` */ get backupDestination(): Prisma.BackupDestinationDelegate; /** * `prisma.notification`: Exposes CRUD operations for the **Notification** model. * Example usage: * ```ts * // Fetch zero or more Notifications * const notifications = await prisma.notification.findMany() * ``` */ get notification(): Prisma.NotificationDelegate; /** * `prisma.cloudFolder`: Exposes CRUD operations for the **CloudFolder** model. * Example usage: * ```ts * // Fetch zero or more CloudFolders * const cloudFolders = await prisma.cloudFolder.findMany() * ``` */ get cloudFolder(): Prisma.CloudFolderDelegate; /** * `prisma.cloudFile`: Exposes CRUD operations for the **CloudFile** model. * Example usage: * ```ts * // Fetch zero or more CloudFiles * const cloudFiles = await prisma.cloudFile.findMany() * ``` */ get cloudFile(): Prisma.CloudFileDelegate; /** * `prisma.cloudFileChunk`: Exposes CRUD operations for the **CloudFileChunk** model. * Example usage: * ```ts * // Fetch zero or more CloudFileChunks * const cloudFileChunks = await prisma.cloudFileChunk.findMany() * ``` */ get cloudFileChunk(): Prisma.CloudFileChunkDelegate; /** * `prisma.communication`: Exposes CRUD operations for the **Communication** model. * Example usage: * ```ts * // Fetch zero or more Communications * const communications = await prisma.communication.findMany() * ``` */ get communication(): Prisma.CommunicationDelegate; /** * `prisma.patientDocument`: Exposes CRUD operations for the **PatientDocument** model. * Example usage: * ```ts * // Fetch zero or more PatientDocuments * const patientDocuments = await prisma.patientDocument.findMany() * ``` */ get patientDocument(): Prisma.PatientDocumentDelegate; } 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 /** * 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: 7.4.1 * Query Engine version: 55ae170b1ced7fc6ed07a15f110549408c501bb3 */ export type PrismaVersion = { client: string engine: string } export const prismaVersion: PrismaVersion /** * Utility Types */ export import Bytes = runtime.Bytes export import JsonObject = runtime.JsonObject export import JsonArray = runtime.JsonArray export import JsonValue = runtime.JsonValue export import InputJsonObject = runtime.InputJsonObject export import InputJsonArray = runtime.InputJsonArray export import InputJsonValue = runtime.InputJsonValue /** * Types of the values used to represent different kinds of `null` values when working with JSON fields. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ namespace NullTypes { /** * Type of `Prisma.DbNull`. * * You cannot use other instances of this class. Please use the `Prisma.DbNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class DbNull { private DbNull: never private constructor() } /** * Type of `Prisma.JsonNull`. * * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class JsonNull { private JsonNull: never private constructor() } /** * Type of `Prisma.AnyNull`. * * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class AnyNull { private AnyNull: never private constructor() } } /** * Helper for filtering JSON entries that have `null` on the database (empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const DbNull: NullTypes.DbNull /** * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const JsonNull: NullTypes.JsonNull /** * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const AnyNull: NullTypes.AnyNull type SelectAndInclude = { select: any include: any } type SelectAndOmit = { select: any omit: any } /** * Get the type of the value, that the Promise holds. */ export type PromiseType> = T extends PromiseLike ? U : T; /** * Get the return type of a function which returns a Promise. */ export type PromiseReturnType $Utils.JsPromise> = PromiseType> /** * From T, pick a set of properties whose keys are in the union K */ type Prisma__Pick = { [P in K]: T[P]; }; export type Enumerable = T | Array; export type RequiredKeys = { [K in keyof T]-?: {} extends Prisma__Pick ? never : K }[keyof T] export type TruthyKeys = keyof { [K in keyof T as T[K] extends false | undefined | null ? never : K]: K } export type TrueKeys = TruthyKeys>> /** * Subset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection */ export type Subset = { [key in keyof T]: key extends keyof U ? T[key] : never; }; /** * SelectSubset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. * Additionally, it validates, if both select and include are present. If the case, it errors. */ export type SelectSubset = { [key in keyof T]: key extends keyof U ? T[key] : never } & (T extends SelectAndInclude ? 'Please either choose `select` or `include`.' : T extends SelectAndOmit ? 'Please either choose `select` or `omit`.' : {}) /** * Subset + Intersection * @desc From `T` pick properties that exist in `U` and intersect `K` */ export type SubsetIntersection = { [key in keyof T]: key extends keyof U ? T[key] : never } & K type Without = { [P in Exclude]?: never }; /** * XOR is needed to have a real mutually exclusive union type * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types */ type XOR = T extends object ? U extends object ? (Without & U) | (Without & T) : U : T /** * Is T a Record? */ type IsObject = T extends Array ? False : T extends Date ? False : T extends Uint8Array ? False : T extends BigInt ? False : T extends object ? True : False /** * If it's T[], return T */ export type UnEnumerate = T extends Array ? U : T /** * From ts-toolbelt */ type __Either = Omit & { // Merge all but K [P in K]: Prisma__Pick // With K possibilities }[K] type EitherStrict = Strict<__Either> type EitherLoose = ComputeRaw<__Either> type _Either< O extends object, K extends Key, strict extends Boolean > = { 1: EitherStrict 0: EitherLoose }[strict] type Either< O extends object, K extends Key, strict extends Boolean = 1 > = O extends unknown ? _Either : never export type Union = any type PatchUndefined = { [K in keyof O]: O[K] extends undefined ? At : O[K] } & {} /** Helper Types for "Merge" **/ export type IntersectOf = ( U extends unknown ? (k: U) => void : never ) extends (k: infer I) => void ? I : never export type Overwrite = { [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; } & {}; type _Merge = IntersectOf; }>>; type Key = string | number | symbol; type AtBasic = K extends keyof O ? O[K] : never; type AtStrict = O[K & keyof O]; type AtLoose = O extends unknown ? AtStrict : never; export type At = { 1: AtStrict; 0: AtLoose; }[strict]; export type ComputeRaw = A extends Function ? A : { [K in keyof A]: A[K]; } & {}; export type OptionalFlat = { [K in keyof O]?: O[K]; } & {}; type _Record = { [P in K]: T; }; // cause typescript not to expand types and preserve names type NoExpand = T extends unknown ? T : never; // this type assumes the passed object is entirely optional type AtLeast = NoExpand< O extends unknown ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O : never>; type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; export type Strict = ComputeRaw<_Strict>; /** End Helper Types for "Merge" **/ export type Merge = ComputeRaw<_Merge>>; /** A [[Boolean]] */ export type Boolean = True | False // /** // 1 // */ export type True = 1 /** 0 */ export type False = 0 export type Not = { 0: 1 1: 0 }[B] export type Extends = [A1] extends [never] ? 0 // anything `never` is false : A1 extends A2 ? 1 : 0 export type Has = Not< Extends, U1> > export type Or = { 0: { 0: 0 1: 1 } 1: { 0: 1 1: 1 } }[B1][B2] export type Keys = U extends unknown ? keyof U : never type Cast = A extends B ? A : B; export const type: unique symbol; /** * Used by group by */ export type GetScalarType = O extends object ? { [P in keyof T]: P extends keyof O ? O[P] : never } : never type FieldPaths< T, U = Omit > = IsObject extends True ? U : T type GetHavingFields = { [K in keyof T]: Or< Or, Extends<'AND', K>>, Extends<'NOT', K> > extends True ? // infer is only needed to not hit TS limit // based on the brilliant idea of Pierre-Antoine Mills // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 T[K] extends infer TK ? GetHavingFields extends object ? Merge> : never> : never : {} extends FieldPaths ? never : K }[keyof T] /** * Convert tuple to union */ type _TupleToUnion = T extends (infer E)[] ? E : never type TupleToUnion = _TupleToUnion type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T /** * Like `Pick`, but additionally can also accept an array of keys */ type PickEnumerable | keyof T> = Prisma__Pick> /** * Exclude all keys with underscores */ type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T export type FieldRef = runtime.FieldRef type FieldRefInputType = Model extends never ? never : FieldRef export const ModelName: { User: 'User', Patient: 'Patient', Appointment: 'Appointment', Staff: 'Staff', NpiProvider: 'NpiProvider', AppointmentProcedure: 'AppointmentProcedure', Claim: 'Claim', ServiceLine: 'ServiceLine', ClaimFile: 'ClaimFile', InsuranceCredential: 'InsuranceCredential', PdfGroup: 'PdfGroup', PdfFile: 'PdfFile', Payment: 'Payment', ServiceLineTransaction: 'ServiceLineTransaction', DatabaseBackup: 'DatabaseBackup', BackupDestination: 'BackupDestination', Notification: 'Notification', CloudFolder: 'CloudFolder', CloudFile: 'CloudFile', CloudFileChunk: 'CloudFileChunk', Communication: 'Communication', PatientDocument: 'PatientDocument' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record> { returns: Prisma.TypeMap } export type TypeMap = { globalOmitOptions: { omit: GlobalOmitOptions } meta: { modelProps: "user" | "patient" | "appointment" | "staff" | "npiProvider" | "appointmentProcedure" | "claim" | "serviceLine" | "claimFile" | "insuranceCredential" | "pdfGroup" | "pdfFile" | "payment" | "serviceLineTransaction" | "databaseBackup" | "backupDestination" | "notification" | "cloudFolder" | "cloudFile" | "cloudFileChunk" | "communication" | "patientDocument" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { User: { payload: Prisma.$UserPayload fields: Prisma.UserFieldRefs operations: { findUnique: { args: Prisma.UserFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UserFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UserFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UserFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UserFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UserCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UserCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.UserCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.UserDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UserUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UserDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UserUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.UserUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.UserUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UserAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UserGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UserCountArgs result: $Utils.Optional | number } } } Patient: { payload: Prisma.$PatientPayload fields: Prisma.PatientFieldRefs operations: { findUnique: { args: Prisma.PatientFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PatientFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PatientFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PatientFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PatientFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PatientCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PatientCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PatientCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PatientDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PatientUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PatientDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PatientUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.PatientUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.PatientUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PatientAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PatientGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PatientCountArgs result: $Utils.Optional | number } } } Appointment: { payload: Prisma.$AppointmentPayload fields: Prisma.AppointmentFieldRefs operations: { findUnique: { args: Prisma.AppointmentFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AppointmentFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AppointmentFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AppointmentFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AppointmentFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AppointmentCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AppointmentCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AppointmentCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AppointmentDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AppointmentUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AppointmentDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AppointmentUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AppointmentUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AppointmentUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AppointmentAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AppointmentGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AppointmentCountArgs result: $Utils.Optional | number } } } Staff: { payload: Prisma.$StaffPayload fields: Prisma.StaffFieldRefs operations: { findUnique: { args: Prisma.StaffFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.StaffFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.StaffFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.StaffFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.StaffFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.StaffCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.StaffCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.StaffCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.StaffDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.StaffUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.StaffDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.StaffUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.StaffUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.StaffUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.StaffAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.StaffGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.StaffCountArgs result: $Utils.Optional | number } } } NpiProvider: { payload: Prisma.$NpiProviderPayload fields: Prisma.NpiProviderFieldRefs operations: { findUnique: { args: Prisma.NpiProviderFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.NpiProviderFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.NpiProviderFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.NpiProviderFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.NpiProviderFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.NpiProviderCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.NpiProviderCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.NpiProviderCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.NpiProviderDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.NpiProviderUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.NpiProviderDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.NpiProviderUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.NpiProviderUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.NpiProviderUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.NpiProviderAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.NpiProviderGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.NpiProviderCountArgs result: $Utils.Optional | number } } } AppointmentProcedure: { payload: Prisma.$AppointmentProcedurePayload fields: Prisma.AppointmentProcedureFieldRefs operations: { findUnique: { args: Prisma.AppointmentProcedureFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AppointmentProcedureFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AppointmentProcedureFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AppointmentProcedureFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AppointmentProcedureFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AppointmentProcedureCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AppointmentProcedureCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AppointmentProcedureCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AppointmentProcedureDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AppointmentProcedureUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AppointmentProcedureDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AppointmentProcedureUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AppointmentProcedureUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AppointmentProcedureUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AppointmentProcedureAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AppointmentProcedureGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AppointmentProcedureCountArgs result: $Utils.Optional | number } } } Claim: { payload: Prisma.$ClaimPayload fields: Prisma.ClaimFieldRefs operations: { findUnique: { args: Prisma.ClaimFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ClaimFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ClaimFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ClaimFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ClaimFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ClaimCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ClaimCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ClaimCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ClaimDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ClaimUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ClaimDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ClaimUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ClaimUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ClaimUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ClaimAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ClaimGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ClaimCountArgs result: $Utils.Optional | number } } } ServiceLine: { payload: Prisma.$ServiceLinePayload fields: Prisma.ServiceLineFieldRefs operations: { findUnique: { args: Prisma.ServiceLineFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ServiceLineFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ServiceLineFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ServiceLineFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ServiceLineFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ServiceLineCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ServiceLineCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ServiceLineCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ServiceLineDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ServiceLineUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ServiceLineDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ServiceLineUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ServiceLineUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ServiceLineUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ServiceLineAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ServiceLineGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ServiceLineCountArgs result: $Utils.Optional | number } } } ClaimFile: { payload: Prisma.$ClaimFilePayload fields: Prisma.ClaimFileFieldRefs operations: { findUnique: { args: Prisma.ClaimFileFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ClaimFileFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ClaimFileFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ClaimFileFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ClaimFileFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ClaimFileCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ClaimFileCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ClaimFileCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ClaimFileDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ClaimFileUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ClaimFileDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ClaimFileUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ClaimFileUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ClaimFileUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ClaimFileAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ClaimFileGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ClaimFileCountArgs result: $Utils.Optional | number } } } InsuranceCredential: { payload: Prisma.$InsuranceCredentialPayload fields: Prisma.InsuranceCredentialFieldRefs operations: { findUnique: { args: Prisma.InsuranceCredentialFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.InsuranceCredentialFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.InsuranceCredentialFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.InsuranceCredentialFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.InsuranceCredentialFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.InsuranceCredentialCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.InsuranceCredentialCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.InsuranceCredentialCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.InsuranceCredentialDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.InsuranceCredentialUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.InsuranceCredentialDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.InsuranceCredentialUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.InsuranceCredentialUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.InsuranceCredentialUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.InsuranceCredentialAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.InsuranceCredentialGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.InsuranceCredentialCountArgs result: $Utils.Optional | number } } } PdfGroup: { payload: Prisma.$PdfGroupPayload fields: Prisma.PdfGroupFieldRefs operations: { findUnique: { args: Prisma.PdfGroupFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PdfGroupFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PdfGroupFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PdfGroupFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PdfGroupFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PdfGroupCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PdfGroupCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PdfGroupCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PdfGroupDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PdfGroupUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PdfGroupDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PdfGroupUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.PdfGroupUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.PdfGroupUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PdfGroupAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PdfGroupGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PdfGroupCountArgs result: $Utils.Optional | number } } } PdfFile: { payload: Prisma.$PdfFilePayload fields: Prisma.PdfFileFieldRefs operations: { findUnique: { args: Prisma.PdfFileFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PdfFileFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PdfFileFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PdfFileFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PdfFileFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PdfFileCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PdfFileCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PdfFileCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PdfFileDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PdfFileUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PdfFileDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PdfFileUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.PdfFileUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.PdfFileUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PdfFileAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PdfFileGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PdfFileCountArgs result: $Utils.Optional | number } } } Payment: { payload: Prisma.$PaymentPayload fields: Prisma.PaymentFieldRefs operations: { findUnique: { args: Prisma.PaymentFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PaymentFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PaymentFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PaymentFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PaymentFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PaymentCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PaymentCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PaymentCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PaymentDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PaymentUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PaymentDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PaymentUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.PaymentUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.PaymentUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PaymentAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PaymentGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PaymentCountArgs result: $Utils.Optional | number } } } ServiceLineTransaction: { payload: Prisma.$ServiceLineTransactionPayload fields: Prisma.ServiceLineTransactionFieldRefs operations: { findUnique: { args: Prisma.ServiceLineTransactionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ServiceLineTransactionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ServiceLineTransactionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ServiceLineTransactionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ServiceLineTransactionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ServiceLineTransactionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ServiceLineTransactionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ServiceLineTransactionCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ServiceLineTransactionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ServiceLineTransactionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ServiceLineTransactionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ServiceLineTransactionUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ServiceLineTransactionUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ServiceLineTransactionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ServiceLineTransactionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ServiceLineTransactionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ServiceLineTransactionCountArgs result: $Utils.Optional | number } } } DatabaseBackup: { payload: Prisma.$DatabaseBackupPayload fields: Prisma.DatabaseBackupFieldRefs operations: { findUnique: { args: Prisma.DatabaseBackupFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.DatabaseBackupFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.DatabaseBackupFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.DatabaseBackupFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.DatabaseBackupFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.DatabaseBackupCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.DatabaseBackupCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.DatabaseBackupCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.DatabaseBackupDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.DatabaseBackupUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.DatabaseBackupDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.DatabaseBackupUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.DatabaseBackupUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.DatabaseBackupUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.DatabaseBackupAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.DatabaseBackupGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.DatabaseBackupCountArgs result: $Utils.Optional | number } } } BackupDestination: { payload: Prisma.$BackupDestinationPayload fields: Prisma.BackupDestinationFieldRefs operations: { findUnique: { args: Prisma.BackupDestinationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.BackupDestinationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.BackupDestinationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.BackupDestinationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.BackupDestinationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.BackupDestinationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.BackupDestinationCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.BackupDestinationCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.BackupDestinationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.BackupDestinationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.BackupDestinationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.BackupDestinationUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.BackupDestinationUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.BackupDestinationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.BackupDestinationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.BackupDestinationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.BackupDestinationCountArgs result: $Utils.Optional | number } } } Notification: { payload: Prisma.$NotificationPayload fields: Prisma.NotificationFieldRefs operations: { findUnique: { args: Prisma.NotificationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.NotificationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.NotificationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.NotificationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.NotificationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.NotificationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.NotificationCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.NotificationCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.NotificationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.NotificationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.NotificationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.NotificationUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.NotificationUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.NotificationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.NotificationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.NotificationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.NotificationCountArgs result: $Utils.Optional | number } } } CloudFolder: { payload: Prisma.$CloudFolderPayload fields: Prisma.CloudFolderFieldRefs operations: { findUnique: { args: Prisma.CloudFolderFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CloudFolderFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CloudFolderFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CloudFolderFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CloudFolderFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CloudFolderCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CloudFolderCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.CloudFolderCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.CloudFolderDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CloudFolderUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CloudFolderDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CloudFolderUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.CloudFolderUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.CloudFolderUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CloudFolderAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CloudFolderGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CloudFolderCountArgs result: $Utils.Optional | number } } } CloudFile: { payload: Prisma.$CloudFilePayload fields: Prisma.CloudFileFieldRefs operations: { findUnique: { args: Prisma.CloudFileFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CloudFileFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CloudFileFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CloudFileFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CloudFileFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CloudFileCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CloudFileCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.CloudFileCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.CloudFileDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CloudFileUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CloudFileDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CloudFileUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.CloudFileUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.CloudFileUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CloudFileAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CloudFileGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CloudFileCountArgs result: $Utils.Optional | number } } } CloudFileChunk: { payload: Prisma.$CloudFileChunkPayload fields: Prisma.CloudFileChunkFieldRefs operations: { findUnique: { args: Prisma.CloudFileChunkFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CloudFileChunkFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CloudFileChunkFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CloudFileChunkFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CloudFileChunkFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CloudFileChunkCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CloudFileChunkCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.CloudFileChunkCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.CloudFileChunkDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CloudFileChunkUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CloudFileChunkDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CloudFileChunkUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.CloudFileChunkUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.CloudFileChunkUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CloudFileChunkAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CloudFileChunkGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CloudFileChunkCountArgs result: $Utils.Optional | number } } } Communication: { payload: Prisma.$CommunicationPayload fields: Prisma.CommunicationFieldRefs operations: { findUnique: { args: Prisma.CommunicationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CommunicationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CommunicationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CommunicationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CommunicationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CommunicationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CommunicationCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.CommunicationCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.CommunicationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CommunicationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CommunicationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CommunicationUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.CommunicationUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.CommunicationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CommunicationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CommunicationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CommunicationCountArgs result: $Utils.Optional | number } } } PatientDocument: { payload: Prisma.$PatientDocumentPayload fields: Prisma.PatientDocumentFieldRefs operations: { findUnique: { args: Prisma.PatientDocumentFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PatientDocumentFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PatientDocumentFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PatientDocumentFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PatientDocumentFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PatientDocumentCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PatientDocumentCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PatientDocumentCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PatientDocumentDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PatientDocumentUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PatientDocumentDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PatientDocumentUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.PatientDocumentUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.PatientDocumentUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PatientDocumentAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PatientDocumentGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PatientDocumentCountArgs 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 { /** * @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://pris.ly/d/logging). */ log?: (LogLevel | LogDefinition)[] /** * The default values for transactionOptions * maxWait ?= 2000 * timeout ?= 5000 */ transactionOptions?: { maxWait?: number timeout?: number isolationLevel?: Prisma.TransactionIsolationLevel } /** * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale` */ adapter?: runtime.SqlDriverAdapterFactory /** * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database. */ accelerateUrl?: string /** * Global configuration for omitting model fields by default. * * @example * ``` * const prisma = new PrismaClient({ * omit: { * user: { * password: true * } * } * }) * ``` */ omit?: Prisma.GlobalOmitConfig /** * SQL commenter plugins that add metadata to SQL queries as comments. * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/ * * @example * ``` * const prisma = new PrismaClient({ * adapter, * comments: [ * traceContext(), * queryInsights(), * ], * }) * ``` */ comments?: runtime.SqlCommenterPlugin[] } export type GlobalOmitConfig = { user?: UserOmit patient?: PatientOmit appointment?: AppointmentOmit staff?: StaffOmit npiProvider?: NpiProviderOmit appointmentProcedure?: AppointmentProcedureOmit claim?: ClaimOmit serviceLine?: ServiceLineOmit claimFile?: ClaimFileOmit insuranceCredential?: InsuranceCredentialOmit pdfGroup?: PdfGroupOmit pdfFile?: PdfFileOmit payment?: PaymentOmit serviceLineTransaction?: ServiceLineTransactionOmit databaseBackup?: DatabaseBackupOmit backupDestination?: BackupDestinationOmit notification?: NotificationOmit cloudFolder?: CloudFolderOmit cloudFile?: CloudFileOmit cloudFileChunk?: CloudFileChunkOmit communication?: CommunicationOmit patientDocument?: PatientDocumentOmit } /* Types for Logging */ export type LogLevel = 'info' | 'query' | 'warn' | 'error' export type LogDefinition = { level: LogLevel emit: 'stdout' | 'event' } export type CheckIsLogLevel = T extends LogLevel ? T : never; export type GetLogType = CheckIsLogLevel< T extends LogDefinition ? T['level'] : T >; export type GetEvents = T extends Array ? GetLogType : never; export type QueryEvent = { timestamp: Date query: string params: string duration: number target: string } export type LogEvent = { timestamp: Date message: string target: string } /* End Types for Logging */ export type PrismaAction = | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy' // tested in getLogLevel.test.ts export function getLogLevel(log: Array): LogLevel | undefined; /** * `PrismaClient` proxy available in interactive transactions. */ export type TransactionClient = Omit export type Datasource = { url?: string } /** * Count Types */ /** * Count Type UserCountOutputType */ export type UserCountOutputType = { patients: number appointments: number staff: number npiProviders: number claims: number insuranceCredentials: number updatedPayments: number backups: number backupDestinations: number notifications: number cloudFolders: number cloudFiles: number communications: number } export type UserCountOutputTypeSelect = { patients?: boolean | UserCountOutputTypeCountPatientsArgs appointments?: boolean | UserCountOutputTypeCountAppointmentsArgs staff?: boolean | UserCountOutputTypeCountStaffArgs npiProviders?: boolean | UserCountOutputTypeCountNpiProvidersArgs claims?: boolean | UserCountOutputTypeCountClaimsArgs insuranceCredentials?: boolean | UserCountOutputTypeCountInsuranceCredentialsArgs updatedPayments?: boolean | UserCountOutputTypeCountUpdatedPaymentsArgs backups?: boolean | UserCountOutputTypeCountBackupsArgs backupDestinations?: boolean | UserCountOutputTypeCountBackupDestinationsArgs notifications?: boolean | UserCountOutputTypeCountNotificationsArgs cloudFolders?: boolean | UserCountOutputTypeCountCloudFoldersArgs cloudFiles?: boolean | UserCountOutputTypeCountCloudFilesArgs communications?: boolean | UserCountOutputTypeCountCommunicationsArgs } // Custom InputTypes /** * UserCountOutputType without action */ export type UserCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the UserCountOutputType */ select?: UserCountOutputTypeSelect | null } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountPatientsArgs = { where?: PatientWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountAppointmentsArgs = { where?: AppointmentWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountStaffArgs = { where?: StaffWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountNpiProvidersArgs = { where?: NpiProviderWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountClaimsArgs = { where?: ClaimWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountInsuranceCredentialsArgs = { where?: InsuranceCredentialWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountUpdatedPaymentsArgs = { where?: PaymentWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountBackupsArgs = { where?: DatabaseBackupWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountBackupDestinationsArgs = { where?: BackupDestinationWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountNotificationsArgs = { where?: NotificationWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountCloudFoldersArgs = { where?: CloudFolderWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountCloudFilesArgs = { where?: CloudFileWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountCommunicationsArgs = { where?: CommunicationWhereInput } /** * Count Type PatientCountOutputType */ export type PatientCountOutputType = { appointments: number procedures: number claims: number groups: number payment: number communications: number documents: number } export type PatientCountOutputTypeSelect = { appointments?: boolean | PatientCountOutputTypeCountAppointmentsArgs procedures?: boolean | PatientCountOutputTypeCountProceduresArgs claims?: boolean | PatientCountOutputTypeCountClaimsArgs groups?: boolean | PatientCountOutputTypeCountGroupsArgs payment?: boolean | PatientCountOutputTypeCountPaymentArgs communications?: boolean | PatientCountOutputTypeCountCommunicationsArgs documents?: boolean | PatientCountOutputTypeCountDocumentsArgs } // Custom InputTypes /** * PatientCountOutputType without action */ export type PatientCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the PatientCountOutputType */ select?: PatientCountOutputTypeSelect | null } /** * PatientCountOutputType without action */ export type PatientCountOutputTypeCountAppointmentsArgs = { where?: AppointmentWhereInput } /** * PatientCountOutputType without action */ export type PatientCountOutputTypeCountProceduresArgs = { where?: AppointmentProcedureWhereInput } /** * PatientCountOutputType without action */ export type PatientCountOutputTypeCountClaimsArgs = { where?: ClaimWhereInput } /** * PatientCountOutputType without action */ export type PatientCountOutputTypeCountGroupsArgs = { where?: PdfGroupWhereInput } /** * PatientCountOutputType without action */ export type PatientCountOutputTypeCountPaymentArgs = { where?: PaymentWhereInput } /** * PatientCountOutputType without action */ export type PatientCountOutputTypeCountCommunicationsArgs = { where?: CommunicationWhereInput } /** * PatientCountOutputType without action */ export type PatientCountOutputTypeCountDocumentsArgs = { where?: PatientDocumentWhereInput } /** * Count Type AppointmentCountOutputType */ export type AppointmentCountOutputType = { procedures: number claims: number } export type AppointmentCountOutputTypeSelect = { procedures?: boolean | AppointmentCountOutputTypeCountProceduresArgs claims?: boolean | AppointmentCountOutputTypeCountClaimsArgs } // Custom InputTypes /** * AppointmentCountOutputType without action */ export type AppointmentCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the AppointmentCountOutputType */ select?: AppointmentCountOutputTypeSelect | null } /** * AppointmentCountOutputType without action */ export type AppointmentCountOutputTypeCountProceduresArgs = { where?: AppointmentProcedureWhereInput } /** * AppointmentCountOutputType without action */ export type AppointmentCountOutputTypeCountClaimsArgs = { where?: ClaimWhereInput } /** * Count Type StaffCountOutputType */ export type StaffCountOutputType = { appointments: number claims: number } export type StaffCountOutputTypeSelect = { appointments?: boolean | StaffCountOutputTypeCountAppointmentsArgs claims?: boolean | StaffCountOutputTypeCountClaimsArgs } // Custom InputTypes /** * StaffCountOutputType without action */ export type StaffCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the StaffCountOutputType */ select?: StaffCountOutputTypeSelect | null } /** * StaffCountOutputType without action */ export type StaffCountOutputTypeCountAppointmentsArgs = { where?: AppointmentWhereInput } /** * StaffCountOutputType without action */ export type StaffCountOutputTypeCountClaimsArgs = { where?: ClaimWhereInput } /** * Count Type ClaimCountOutputType */ export type ClaimCountOutputType = { serviceLines: number claimFiles: number } export type ClaimCountOutputTypeSelect = { serviceLines?: boolean | ClaimCountOutputTypeCountServiceLinesArgs claimFiles?: boolean | ClaimCountOutputTypeCountClaimFilesArgs } // Custom InputTypes /** * ClaimCountOutputType without action */ export type ClaimCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ClaimCountOutputType */ select?: ClaimCountOutputTypeSelect | null } /** * ClaimCountOutputType without action */ export type ClaimCountOutputTypeCountServiceLinesArgs = { where?: ServiceLineWhereInput } /** * ClaimCountOutputType without action */ export type ClaimCountOutputTypeCountClaimFilesArgs = { where?: ClaimFileWhereInput } /** * Count Type ServiceLineCountOutputType */ export type ServiceLineCountOutputType = { serviceLineTransactions: number } export type ServiceLineCountOutputTypeSelect = { serviceLineTransactions?: boolean | ServiceLineCountOutputTypeCountServiceLineTransactionsArgs } // Custom InputTypes /** * ServiceLineCountOutputType without action */ export type ServiceLineCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ServiceLineCountOutputType */ select?: ServiceLineCountOutputTypeSelect | null } /** * ServiceLineCountOutputType without action */ export type ServiceLineCountOutputTypeCountServiceLineTransactionsArgs = { where?: ServiceLineTransactionWhereInput } /** * Count Type PdfGroupCountOutputType */ export type PdfGroupCountOutputType = { pdfs: number } export type PdfGroupCountOutputTypeSelect = { pdfs?: boolean | PdfGroupCountOutputTypeCountPdfsArgs } // Custom InputTypes /** * PdfGroupCountOutputType without action */ export type PdfGroupCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the PdfGroupCountOutputType */ select?: PdfGroupCountOutputTypeSelect | null } /** * PdfGroupCountOutputType without action */ export type PdfGroupCountOutputTypeCountPdfsArgs = { where?: PdfFileWhereInput } /** * Count Type PaymentCountOutputType */ export type PaymentCountOutputType = { serviceLineTransactions: number serviceLines: number } export type PaymentCountOutputTypeSelect = { serviceLineTransactions?: boolean | PaymentCountOutputTypeCountServiceLineTransactionsArgs serviceLines?: boolean | PaymentCountOutputTypeCountServiceLinesArgs } // Custom InputTypes /** * PaymentCountOutputType without action */ export type PaymentCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the PaymentCountOutputType */ select?: PaymentCountOutputTypeSelect | null } /** * PaymentCountOutputType without action */ export type PaymentCountOutputTypeCountServiceLineTransactionsArgs = { where?: ServiceLineTransactionWhereInput } /** * PaymentCountOutputType without action */ export type PaymentCountOutputTypeCountServiceLinesArgs = { where?: ServiceLineWhereInput } /** * Count Type CloudFolderCountOutputType */ export type CloudFolderCountOutputType = { children: number files: number } export type CloudFolderCountOutputTypeSelect = { children?: boolean | CloudFolderCountOutputTypeCountChildrenArgs files?: boolean | CloudFolderCountOutputTypeCountFilesArgs } // Custom InputTypes /** * CloudFolderCountOutputType without action */ export type CloudFolderCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CloudFolderCountOutputType */ select?: CloudFolderCountOutputTypeSelect | null } /** * CloudFolderCountOutputType without action */ export type CloudFolderCountOutputTypeCountChildrenArgs = { where?: CloudFolderWhereInput } /** * CloudFolderCountOutputType without action */ export type CloudFolderCountOutputTypeCountFilesArgs = { where?: CloudFileWhereInput } /** * Count Type CloudFileCountOutputType */ export type CloudFileCountOutputType = { chunks: number } export type CloudFileCountOutputTypeSelect = { chunks?: boolean | CloudFileCountOutputTypeCountChunksArgs } // Custom InputTypes /** * CloudFileCountOutputType without action */ export type CloudFileCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CloudFileCountOutputType */ select?: CloudFileCountOutputTypeSelect | null } /** * CloudFileCountOutputType without action */ export type CloudFileCountOutputTypeCountChunksArgs = { where?: CloudFileChunkWhereInput } /** * Models */ /** * Model User */ export type AggregateUser = { _count: UserCountAggregateOutputType | null _avg: UserAvgAggregateOutputType | null _sum: UserSumAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } export type UserAvgAggregateOutputType = { id: number | null } export type UserSumAggregateOutputType = { id: number | null } export type UserMinAggregateOutputType = { id: number | null username: string | null password: string | null } export type UserMaxAggregateOutputType = { id: number | null username: string | null password: string | null } export type UserCountAggregateOutputType = { id: number username: number password: number _all: number } export type UserAvgAggregateInputType = { id?: true } export type UserSumAggregateInputType = { id?: true } export type UserMinAggregateInputType = { id?: true username?: true password?: true } export type UserMaxAggregateInputType = { id?: true username?: true password?: true } export type UserCountAggregateInputType = { id?: true username?: true password?: true _all?: true } export type UserAggregateArgs = { /** * Filter which User to aggregate. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Users **/ _count?: true | UserCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: UserAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: UserSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserMaxAggregateInputType } export type GetUserAggregateType = { [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type UserGroupByArgs = { where?: UserWhereInput orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[] by: UserScalarFieldEnum[] | UserScalarFieldEnum having?: UserScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserCountAggregateInputType | true _avg?: UserAvgAggregateInputType _sum?: UserSumAggregateInputType _min?: UserMinAggregateInputType _max?: UserMaxAggregateInputType } export type UserGroupByOutputType = { id: number username: string password: string _count: UserCountAggregateOutputType | null _avg: UserAvgAggregateOutputType | null _sum: UserSumAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } type GetUserGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UserSelect = $Extensions.GetSelect<{ id?: boolean username?: boolean password?: boolean patients?: boolean | User$patientsArgs appointments?: boolean | User$appointmentsArgs staff?: boolean | User$staffArgs npiProviders?: boolean | User$npiProvidersArgs claims?: boolean | User$claimsArgs insuranceCredentials?: boolean | User$insuranceCredentialsArgs updatedPayments?: boolean | User$updatedPaymentsArgs backups?: boolean | User$backupsArgs backupDestinations?: boolean | User$backupDestinationsArgs notifications?: boolean | User$notificationsArgs cloudFolders?: boolean | User$cloudFoldersArgs cloudFiles?: boolean | User$cloudFilesArgs communications?: boolean | User$communicationsArgs _count?: boolean | UserCountOutputTypeDefaultArgs }, ExtArgs["result"]["user"]> export type UserSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean username?: boolean password?: boolean }, ExtArgs["result"]["user"]> export type UserSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean username?: boolean password?: boolean }, ExtArgs["result"]["user"]> export type UserSelectScalar = { id?: boolean username?: boolean password?: boolean } export type UserOmit = $Extensions.GetOmit<"id" | "username" | "password", ExtArgs["result"]["user"]> export type UserInclude = { patients?: boolean | User$patientsArgs appointments?: boolean | User$appointmentsArgs staff?: boolean | User$staffArgs npiProviders?: boolean | User$npiProvidersArgs claims?: boolean | User$claimsArgs insuranceCredentials?: boolean | User$insuranceCredentialsArgs updatedPayments?: boolean | User$updatedPaymentsArgs backups?: boolean | User$backupsArgs backupDestinations?: boolean | User$backupDestinationsArgs notifications?: boolean | User$notificationsArgs cloudFolders?: boolean | User$cloudFoldersArgs cloudFiles?: boolean | User$cloudFilesArgs communications?: boolean | User$communicationsArgs _count?: boolean | UserCountOutputTypeDefaultArgs } export type UserIncludeCreateManyAndReturn = {} export type UserIncludeUpdateManyAndReturn = {} export type $UserPayload = { name: "User" objects: { patients: Prisma.$PatientPayload[] appointments: Prisma.$AppointmentPayload[] staff: Prisma.$StaffPayload[] npiProviders: Prisma.$NpiProviderPayload[] claims: Prisma.$ClaimPayload[] insuranceCredentials: Prisma.$InsuranceCredentialPayload[] updatedPayments: Prisma.$PaymentPayload[] backups: Prisma.$DatabaseBackupPayload[] backupDestinations: Prisma.$BackupDestinationPayload[] notifications: Prisma.$NotificationPayload[] cloudFolders: Prisma.$CloudFolderPayload[] cloudFiles: Prisma.$CloudFilePayload[] communications: Prisma.$CommunicationPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number username: string password: string }, ExtArgs["result"]["user"]> composites: {} } type UserGetPayload = $Result.GetResult type UserCountArgs = Omit & { select?: UserCountAggregateInputType | true } export interface UserDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } /** * Find zero or one User that matches the filter. * @param {UserFindUniqueArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one User that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first User that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFindFirstArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first User that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Users that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Users * const users = await prisma.user.findMany() * * // Get first 10 Users * const users = await prisma.user.findMany({ take: 10 }) * * // Only select the `id` * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a User. * @param {UserCreateArgs} args - Arguments to create a User. * @example * // Create one User * const User = await prisma.user.create({ * data: { * // ... data to create a User * } * }) * */ create(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Users. * @param {UserCreateManyArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Users and returns the data saved in the database. * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Users and only return the `id` * const userWithIdOnly = await prisma.user.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a User. * @param {UserDeleteArgs} args - Arguments to delete one User. * @example * // Delete one User * const User = await prisma.user.delete({ * where: { * // ... filter to delete one User * } * }) * */ delete(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one User. * @param {UserUpdateArgs} args - Arguments to update one User. * @example * // Update one User * const user = await prisma.user.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Users. * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. * @example * // Delete a few Users * const { count } = await prisma.user.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Users * const user = await prisma.user.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Users and returns the data updated in the database. * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users. * @example * // Update many Users * const user = await prisma.user.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Users and only return the `id` * const userWithIdOnly = await prisma.user.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one User. * @param {UserUpsertArgs} args - Arguments to update or create a User. * @example * // Update or create a User * const user = await prisma.user.upsert({ * create: { * // ... data to create a User * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the User we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserCountArgs} args - Arguments to filter Users to count. * @example * // Count the number of Users * const count = await prisma.user.count({ * where: { * // ... the filter for the Users we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends UserGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UserGroupByArgs['orderBy'] } : { orderBy?: UserGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise /** * Fields of the User model */ readonly fields: UserFieldRefs; } /** * The delegate class that acts as a "Promise-like" for User. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__UserClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" patients = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> appointments = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> staff = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> npiProviders = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> claims = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> insuranceCredentials = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> updatedPayments = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> backups = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> backupDestinations = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> notifications = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> cloudFolders = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> cloudFiles = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> communications = {}>(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 User model */ interface UserFieldRefs { readonly id: FieldRef<"User", 'Int'> readonly username: FieldRef<"User", 'String'> readonly password: FieldRef<"User", 'String'> } // Custom InputTypes /** * User findUnique */ export type UserFindUniqueArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findUniqueOrThrow */ export type UserFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findFirst */ export type UserFindFirstArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findFirstOrThrow */ export type UserFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findMany */ export type UserFindManyArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which Users to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User create */ export type UserCreateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to create a User. */ data: XOR } /** * User createMany */ export type UserCreateManyArgs = { /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User createManyAndReturn */ export type UserCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectCreateManyAndReturn | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User update */ export type UserUpdateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to update a User. */ data: XOR /** * Choose, which User to update. */ where: UserWhereUniqueInput } /** * User updateMany */ export type UserUpdateManyArgs = { /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User updateManyAndReturn */ export type UserUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectUpdateManyAndReturn | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User upsert */ export type UserUpsertArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The filter to search for the User to update in case it exists. */ where: UserWhereUniqueInput /** * In case the User found by the `where` argument doesn't exist, create a new User with this data. */ create: XOR /** * In case the User was found with the provided `where` argument, update it with this data. */ update: XOR } /** * User delete */ export type UserDeleteArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter which User to delete. */ where: UserWhereUniqueInput } /** * User deleteMany */ export type UserDeleteManyArgs = { /** * Filter which Users to delete */ where?: UserWhereInput /** * Limit how many Users to delete. */ limit?: number } /** * User.patients */ export type User$patientsArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null where?: PatientWhereInput orderBy?: PatientOrderByWithRelationInput | PatientOrderByWithRelationInput[] cursor?: PatientWhereUniqueInput take?: number skip?: number distinct?: PatientScalarFieldEnum | PatientScalarFieldEnum[] } /** * User.appointments */ export type User$appointmentsArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null where?: AppointmentWhereInput orderBy?: AppointmentOrderByWithRelationInput | AppointmentOrderByWithRelationInput[] cursor?: AppointmentWhereUniqueInput take?: number skip?: number distinct?: AppointmentScalarFieldEnum | AppointmentScalarFieldEnum[] } /** * User.staff */ export type User$staffArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null where?: StaffWhereInput orderBy?: StaffOrderByWithRelationInput | StaffOrderByWithRelationInput[] cursor?: StaffWhereUniqueInput take?: number skip?: number distinct?: StaffScalarFieldEnum | StaffScalarFieldEnum[] } /** * User.npiProviders */ export type User$npiProvidersArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null where?: NpiProviderWhereInput orderBy?: NpiProviderOrderByWithRelationInput | NpiProviderOrderByWithRelationInput[] cursor?: NpiProviderWhereUniqueInput take?: number skip?: number distinct?: NpiProviderScalarFieldEnum | NpiProviderScalarFieldEnum[] } /** * User.claims */ export type User$claimsArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null where?: ClaimWhereInput orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] cursor?: ClaimWhereUniqueInput take?: number skip?: number distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * User.insuranceCredentials */ export type User$insuranceCredentialsArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null where?: InsuranceCredentialWhereInput orderBy?: InsuranceCredentialOrderByWithRelationInput | InsuranceCredentialOrderByWithRelationInput[] cursor?: InsuranceCredentialWhereUniqueInput take?: number skip?: number distinct?: InsuranceCredentialScalarFieldEnum | InsuranceCredentialScalarFieldEnum[] } /** * User.updatedPayments */ export type User$updatedPaymentsArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null where?: PaymentWhereInput orderBy?: PaymentOrderByWithRelationInput | PaymentOrderByWithRelationInput[] cursor?: PaymentWhereUniqueInput take?: number skip?: number distinct?: PaymentScalarFieldEnum | PaymentScalarFieldEnum[] } /** * User.backups */ export type User$backupsArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null where?: DatabaseBackupWhereInput orderBy?: DatabaseBackupOrderByWithRelationInput | DatabaseBackupOrderByWithRelationInput[] cursor?: DatabaseBackupWhereUniqueInput take?: number skip?: number distinct?: DatabaseBackupScalarFieldEnum | DatabaseBackupScalarFieldEnum[] } /** * User.backupDestinations */ export type User$backupDestinationsArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null where?: BackupDestinationWhereInput orderBy?: BackupDestinationOrderByWithRelationInput | BackupDestinationOrderByWithRelationInput[] cursor?: BackupDestinationWhereUniqueInput take?: number skip?: number distinct?: BackupDestinationScalarFieldEnum | BackupDestinationScalarFieldEnum[] } /** * User.notifications */ export type User$notificationsArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null where?: NotificationWhereInput orderBy?: NotificationOrderByWithRelationInput | NotificationOrderByWithRelationInput[] cursor?: NotificationWhereUniqueInput take?: number skip?: number distinct?: NotificationScalarFieldEnum | NotificationScalarFieldEnum[] } /** * User.cloudFolders */ export type User$cloudFoldersArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null where?: CloudFolderWhereInput orderBy?: CloudFolderOrderByWithRelationInput | CloudFolderOrderByWithRelationInput[] cursor?: CloudFolderWhereUniqueInput take?: number skip?: number distinct?: CloudFolderScalarFieldEnum | CloudFolderScalarFieldEnum[] } /** * User.cloudFiles */ export type User$cloudFilesArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null where?: CloudFileWhereInput orderBy?: CloudFileOrderByWithRelationInput | CloudFileOrderByWithRelationInput[] cursor?: CloudFileWhereUniqueInput take?: number skip?: number distinct?: CloudFileScalarFieldEnum | CloudFileScalarFieldEnum[] } /** * User.communications */ export type User$communicationsArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null where?: CommunicationWhereInput orderBy?: CommunicationOrderByWithRelationInput | CommunicationOrderByWithRelationInput[] cursor?: CommunicationWhereUniqueInput take?: number skip?: number distinct?: CommunicationScalarFieldEnum | CommunicationScalarFieldEnum[] } /** * User without action */ export type UserDefaultArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null } /** * Model Patient */ export type AggregatePatient = { _count: PatientCountAggregateOutputType | null _avg: PatientAvgAggregateOutputType | null _sum: PatientSumAggregateOutputType | null _min: PatientMinAggregateOutputType | null _max: PatientMaxAggregateOutputType | null } export type PatientAvgAggregateOutputType = { id: number | null userId: number | null } export type PatientSumAggregateOutputType = { id: number | null userId: number | null } export type PatientMinAggregateOutputType = { id: number | null firstName: string | null lastName: string | null dateOfBirth: Date | null gender: string | null phone: string | null email: string | null address: string | null city: string | null zipCode: string | null insuranceProvider: string | null insuranceId: string | null groupNumber: string | null policyHolder: string | null allergies: string | null medicalConditions: string | null status: $Enums.PatientStatus | null userId: number | null createdAt: Date | null } export type PatientMaxAggregateOutputType = { id: number | null firstName: string | null lastName: string | null dateOfBirth: Date | null gender: string | null phone: string | null email: string | null address: string | null city: string | null zipCode: string | null insuranceProvider: string | null insuranceId: string | null groupNumber: string | null policyHolder: string | null allergies: string | null medicalConditions: string | null status: $Enums.PatientStatus | null userId: number | null createdAt: Date | null } export type PatientCountAggregateOutputType = { id: number firstName: number lastName: number dateOfBirth: number gender: number phone: number email: number address: number city: number zipCode: number insuranceProvider: number insuranceId: number groupNumber: number policyHolder: number allergies: number medicalConditions: number status: number userId: number createdAt: number _all: number } export type PatientAvgAggregateInputType = { id?: true userId?: true } export type PatientSumAggregateInputType = { id?: true userId?: true } export type PatientMinAggregateInputType = { id?: true firstName?: true lastName?: true dateOfBirth?: true gender?: true phone?: true email?: true address?: true city?: true zipCode?: true insuranceProvider?: true insuranceId?: true groupNumber?: true policyHolder?: true allergies?: true medicalConditions?: true status?: true userId?: true createdAt?: true } export type PatientMaxAggregateInputType = { id?: true firstName?: true lastName?: true dateOfBirth?: true gender?: true phone?: true email?: true address?: true city?: true zipCode?: true insuranceProvider?: true insuranceId?: true groupNumber?: true policyHolder?: true allergies?: true medicalConditions?: true status?: true userId?: true createdAt?: true } export type PatientCountAggregateInputType = { id?: true firstName?: true lastName?: true dateOfBirth?: true gender?: true phone?: true email?: true address?: true city?: true zipCode?: true insuranceProvider?: true insuranceId?: true groupNumber?: true policyHolder?: true allergies?: true medicalConditions?: true status?: true userId?: true createdAt?: true _all?: true } export type PatientAggregateArgs = { /** * Filter which Patient to aggregate. */ where?: PatientWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Patients to fetch. */ orderBy?: PatientOrderByWithRelationInput | PatientOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PatientWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Patients 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` Patients. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Patients **/ _count?: true | PatientCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PatientAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PatientSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PatientMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PatientMaxAggregateInputType } export type GetPatientAggregateType = { [P in keyof T & keyof AggregatePatient]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PatientGroupByArgs = { where?: PatientWhereInput orderBy?: PatientOrderByWithAggregationInput | PatientOrderByWithAggregationInput[] by: PatientScalarFieldEnum[] | PatientScalarFieldEnum having?: PatientScalarWhereWithAggregatesInput take?: number skip?: number _count?: PatientCountAggregateInputType | true _avg?: PatientAvgAggregateInputType _sum?: PatientSumAggregateInputType _min?: PatientMinAggregateInputType _max?: PatientMaxAggregateInputType } export type PatientGroupByOutputType = { id: number firstName: string lastName: string dateOfBirth: Date gender: string phone: string email: string | null address: string | null city: string | null zipCode: string | null insuranceProvider: string | null insuranceId: string | null groupNumber: string | null policyHolder: string | null allergies: string | null medicalConditions: string | null status: $Enums.PatientStatus userId: number createdAt: Date _count: PatientCountAggregateOutputType | null _avg: PatientAvgAggregateOutputType | null _sum: PatientSumAggregateOutputType | null _min: PatientMinAggregateOutputType | null _max: PatientMaxAggregateOutputType | null } type GetPatientGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PatientGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PatientSelect = $Extensions.GetSelect<{ id?: boolean firstName?: boolean lastName?: boolean dateOfBirth?: boolean gender?: boolean phone?: boolean email?: boolean address?: boolean city?: boolean zipCode?: boolean insuranceProvider?: boolean insuranceId?: boolean groupNumber?: boolean policyHolder?: boolean allergies?: boolean medicalConditions?: boolean status?: boolean userId?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs appointments?: boolean | Patient$appointmentsArgs procedures?: boolean | Patient$proceduresArgs claims?: boolean | Patient$claimsArgs groups?: boolean | Patient$groupsArgs payment?: boolean | Patient$paymentArgs communications?: boolean | Patient$communicationsArgs documents?: boolean | Patient$documentsArgs _count?: boolean | PatientCountOutputTypeDefaultArgs }, ExtArgs["result"]["patient"]> export type PatientSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean firstName?: boolean lastName?: boolean dateOfBirth?: boolean gender?: boolean phone?: boolean email?: boolean address?: boolean city?: boolean zipCode?: boolean insuranceProvider?: boolean insuranceId?: boolean groupNumber?: boolean policyHolder?: boolean allergies?: boolean medicalConditions?: boolean status?: boolean userId?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["patient"]> export type PatientSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean firstName?: boolean lastName?: boolean dateOfBirth?: boolean gender?: boolean phone?: boolean email?: boolean address?: boolean city?: boolean zipCode?: boolean insuranceProvider?: boolean insuranceId?: boolean groupNumber?: boolean policyHolder?: boolean allergies?: boolean medicalConditions?: boolean status?: boolean userId?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["patient"]> export type PatientSelectScalar = { id?: boolean firstName?: boolean lastName?: boolean dateOfBirth?: boolean gender?: boolean phone?: boolean email?: boolean address?: boolean city?: boolean zipCode?: boolean insuranceProvider?: boolean insuranceId?: boolean groupNumber?: boolean policyHolder?: boolean allergies?: boolean medicalConditions?: boolean status?: boolean userId?: boolean createdAt?: boolean } export type PatientOmit = $Extensions.GetOmit<"id" | "firstName" | "lastName" | "dateOfBirth" | "gender" | "phone" | "email" | "address" | "city" | "zipCode" | "insuranceProvider" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "status" | "userId" | "createdAt", ExtArgs["result"]["patient"]> export type PatientInclude = { user?: boolean | UserDefaultArgs appointments?: boolean | Patient$appointmentsArgs procedures?: boolean | Patient$proceduresArgs claims?: boolean | Patient$claimsArgs groups?: boolean | Patient$groupsArgs payment?: boolean | Patient$paymentArgs communications?: boolean | Patient$communicationsArgs documents?: boolean | Patient$documentsArgs _count?: boolean | PatientCountOutputTypeDefaultArgs } export type PatientIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type PatientIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $PatientPayload = { name: "Patient" objects: { user: Prisma.$UserPayload appointments: Prisma.$AppointmentPayload[] procedures: Prisma.$AppointmentProcedurePayload[] claims: Prisma.$ClaimPayload[] groups: Prisma.$PdfGroupPayload[] payment: Prisma.$PaymentPayload[] communications: Prisma.$CommunicationPayload[] documents: Prisma.$PatientDocumentPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number firstName: string lastName: string dateOfBirth: Date gender: string phone: string email: string | null address: string | null city: string | null zipCode: string | null insuranceProvider: string | null insuranceId: string | null groupNumber: string | null policyHolder: string | null allergies: string | null medicalConditions: string | null status: $Enums.PatientStatus userId: number createdAt: Date }, ExtArgs["result"]["patient"]> composites: {} } type PatientGetPayload = $Result.GetResult type PatientCountArgs = Omit & { select?: PatientCountAggregateInputType | true } export interface PatientDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Patient'], meta: { name: 'Patient' } } /** * Find zero or one Patient that matches the filter. * @param {PatientFindUniqueArgs} args - Arguments to find a Patient * @example * // Get one Patient * const patient = await prisma.patient.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Patient that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PatientFindUniqueOrThrowArgs} args - Arguments to find a Patient * @example * // Get one Patient * const patient = await prisma.patient.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Patient 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 {PatientFindFirstArgs} args - Arguments to find a Patient * @example * // Get one Patient * const patient = await prisma.patient.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Patient 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 {PatientFindFirstOrThrowArgs} args - Arguments to find a Patient * @example * // Get one Patient * const patient = await prisma.patient.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Patients 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 {PatientFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Patients * const patients = await prisma.patient.findMany() * * // Get first 10 Patients * const patients = await prisma.patient.findMany({ take: 10 }) * * // Only select the `id` * const patientWithIdOnly = await prisma.patient.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Patient. * @param {PatientCreateArgs} args - Arguments to create a Patient. * @example * // Create one Patient * const Patient = await prisma.patient.create({ * data: { * // ... data to create a Patient * } * }) * */ create(args: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Patients. * @param {PatientCreateManyArgs} args - Arguments to create many Patients. * @example * // Create many Patients * const patient = await prisma.patient.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Patients and returns the data saved in the database. * @param {PatientCreateManyAndReturnArgs} args - Arguments to create many Patients. * @example * // Create many Patients * const patient = await prisma.patient.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Patients and only return the `id` * const patientWithIdOnly = await prisma.patient.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Patient. * @param {PatientDeleteArgs} args - Arguments to delete one Patient. * @example * // Delete one Patient * const Patient = await prisma.patient.delete({ * where: { * // ... filter to delete one Patient * } * }) * */ delete(args: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Patient. * @param {PatientUpdateArgs} args - Arguments to update one Patient. * @example * // Update one Patient * const patient = await prisma.patient.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Patients. * @param {PatientDeleteManyArgs} args - Arguments to filter Patients to delete. * @example * // Delete a few Patients * const { count } = await prisma.patient.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Patients. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Patients * const patient = await prisma.patient.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Patients and returns the data updated in the database. * @param {PatientUpdateManyAndReturnArgs} args - Arguments to update many Patients. * @example * // Update many Patients * const patient = await prisma.patient.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Patients and only return the `id` * const patientWithIdOnly = await prisma.patient.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Patient. * @param {PatientUpsertArgs} args - Arguments to update or create a Patient. * @example * // Update or create a Patient * const patient = await prisma.patient.upsert({ * create: { * // ... data to create a Patient * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Patient we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Patients. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientCountArgs} args - Arguments to filter Patients to count. * @example * // Count the number of Patients * const count = await prisma.patient.count({ * where: { * // ... the filter for the Patients 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 Patient. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientAggregateArgs} 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 Patient. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientGroupByArgs} 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 PatientGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PatientGroupByArgs['orderBy'] } : { orderBy?: PatientGroupByArgs['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 ? GetPatientGroupByPayload : Prisma.PrismaPromise /** * Fields of the Patient model */ readonly fields: PatientFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Patient. * 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__PatientClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> appointments = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> procedures = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> claims = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> groups = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> payment = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> communications = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> documents = {}>(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 Patient model */ interface PatientFieldRefs { readonly id: FieldRef<"Patient", 'Int'> readonly firstName: FieldRef<"Patient", 'String'> readonly lastName: FieldRef<"Patient", 'String'> readonly dateOfBirth: FieldRef<"Patient", 'DateTime'> readonly gender: FieldRef<"Patient", 'String'> readonly phone: FieldRef<"Patient", 'String'> readonly email: FieldRef<"Patient", 'String'> readonly address: FieldRef<"Patient", 'String'> readonly city: FieldRef<"Patient", 'String'> readonly zipCode: FieldRef<"Patient", 'String'> readonly insuranceProvider: FieldRef<"Patient", 'String'> readonly insuranceId: FieldRef<"Patient", 'String'> readonly groupNumber: FieldRef<"Patient", 'String'> readonly policyHolder: FieldRef<"Patient", 'String'> readonly allergies: FieldRef<"Patient", 'String'> readonly medicalConditions: FieldRef<"Patient", 'String'> readonly status: FieldRef<"Patient", 'PatientStatus'> readonly userId: FieldRef<"Patient", 'Int'> readonly createdAt: FieldRef<"Patient", 'DateTime'> } // Custom InputTypes /** * Patient findUnique */ export type PatientFindUniqueArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * Filter, which Patient to fetch. */ where: PatientWhereUniqueInput } /** * Patient findUniqueOrThrow */ export type PatientFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * Filter, which Patient to fetch. */ where: PatientWhereUniqueInput } /** * Patient findFirst */ export type PatientFindFirstArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * Filter, which Patient to fetch. */ where?: PatientWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Patients to fetch. */ orderBy?: PatientOrderByWithRelationInput | PatientOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Patients. */ cursor?: PatientWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Patients 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` Patients. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Patients. */ distinct?: PatientScalarFieldEnum | PatientScalarFieldEnum[] } /** * Patient findFirstOrThrow */ export type PatientFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * Filter, which Patient to fetch. */ where?: PatientWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Patients to fetch. */ orderBy?: PatientOrderByWithRelationInput | PatientOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Patients. */ cursor?: PatientWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Patients 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` Patients. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Patients. */ distinct?: PatientScalarFieldEnum | PatientScalarFieldEnum[] } /** * Patient findMany */ export type PatientFindManyArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * Filter, which Patients to fetch. */ where?: PatientWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Patients to fetch. */ orderBy?: PatientOrderByWithRelationInput | PatientOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Patients. */ cursor?: PatientWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Patients 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` Patients. */ skip?: number distinct?: PatientScalarFieldEnum | PatientScalarFieldEnum[] } /** * Patient create */ export type PatientCreateArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * The data needed to create a Patient. */ data: XOR } /** * Patient createMany */ export type PatientCreateManyArgs = { /** * The data used to create many Patients. */ data: PatientCreateManyInput | PatientCreateManyInput[] skipDuplicates?: boolean } /** * Patient createManyAndReturn */ export type PatientCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelectCreateManyAndReturn | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * The data used to create many Patients. */ data: PatientCreateManyInput | PatientCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PatientIncludeCreateManyAndReturn | null } /** * Patient update */ export type PatientUpdateArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * The data needed to update a Patient. */ data: XOR /** * Choose, which Patient to update. */ where: PatientWhereUniqueInput } /** * Patient updateMany */ export type PatientUpdateManyArgs = { /** * The data used to update Patients. */ data: XOR /** * Filter which Patients to update */ where?: PatientWhereInput /** * Limit how many Patients to update. */ limit?: number } /** * Patient updateManyAndReturn */ export type PatientUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelectUpdateManyAndReturn | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * The data used to update Patients. */ data: XOR /** * Filter which Patients to update */ where?: PatientWhereInput /** * Limit how many Patients to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: PatientIncludeUpdateManyAndReturn | null } /** * Patient upsert */ export type PatientUpsertArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * The filter to search for the Patient to update in case it exists. */ where: PatientWhereUniqueInput /** * In case the Patient found by the `where` argument doesn't exist, create a new Patient with this data. */ create: XOR /** * In case the Patient was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Patient delete */ export type PatientDeleteArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * Filter which Patient to delete. */ where: PatientWhereUniqueInput } /** * Patient deleteMany */ export type PatientDeleteManyArgs = { /** * Filter which Patients to delete */ where?: PatientWhereInput /** * Limit how many Patients to delete. */ limit?: number } /** * Patient.appointments */ export type Patient$appointmentsArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null where?: AppointmentWhereInput orderBy?: AppointmentOrderByWithRelationInput | AppointmentOrderByWithRelationInput[] cursor?: AppointmentWhereUniqueInput take?: number skip?: number distinct?: AppointmentScalarFieldEnum | AppointmentScalarFieldEnum[] } /** * Patient.procedures */ export type Patient$proceduresArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null where?: AppointmentProcedureWhereInput orderBy?: AppointmentProcedureOrderByWithRelationInput | AppointmentProcedureOrderByWithRelationInput[] cursor?: AppointmentProcedureWhereUniqueInput take?: number skip?: number distinct?: AppointmentProcedureScalarFieldEnum | AppointmentProcedureScalarFieldEnum[] } /** * Patient.claims */ export type Patient$claimsArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null where?: ClaimWhereInput orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] cursor?: ClaimWhereUniqueInput take?: number skip?: number distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Patient.groups */ export type Patient$groupsArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null where?: PdfGroupWhereInput orderBy?: PdfGroupOrderByWithRelationInput | PdfGroupOrderByWithRelationInput[] cursor?: PdfGroupWhereUniqueInput take?: number skip?: number distinct?: PdfGroupScalarFieldEnum | PdfGroupScalarFieldEnum[] } /** * Patient.payment */ export type Patient$paymentArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null where?: PaymentWhereInput orderBy?: PaymentOrderByWithRelationInput | PaymentOrderByWithRelationInput[] cursor?: PaymentWhereUniqueInput take?: number skip?: number distinct?: PaymentScalarFieldEnum | PaymentScalarFieldEnum[] } /** * Patient.communications */ export type Patient$communicationsArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null where?: CommunicationWhereInput orderBy?: CommunicationOrderByWithRelationInput | CommunicationOrderByWithRelationInput[] cursor?: CommunicationWhereUniqueInput take?: number skip?: number distinct?: CommunicationScalarFieldEnum | CommunicationScalarFieldEnum[] } /** * Patient.documents */ export type Patient$documentsArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null where?: PatientDocumentWhereInput orderBy?: PatientDocumentOrderByWithRelationInput | PatientDocumentOrderByWithRelationInput[] cursor?: PatientDocumentWhereUniqueInput take?: number skip?: number distinct?: PatientDocumentScalarFieldEnum | PatientDocumentScalarFieldEnum[] } /** * Patient without action */ export type PatientDefaultArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null } /** * Model Appointment */ export type AggregateAppointment = { _count: AppointmentCountAggregateOutputType | null _avg: AppointmentAvgAggregateOutputType | null _sum: AppointmentSumAggregateOutputType | null _min: AppointmentMinAggregateOutputType | null _max: AppointmentMaxAggregateOutputType | null } export type AppointmentAvgAggregateOutputType = { id: number | null patientId: number | null userId: number | null staffId: number | null } export type AppointmentSumAggregateOutputType = { id: number | null patientId: number | null userId: number | null staffId: number | null } export type AppointmentMinAggregateOutputType = { id: number | null patientId: number | null userId: number | null staffId: number | null title: string | null date: Date | null startTime: string | null endTime: string | null type: string | null notes: string | null procedureCodeNotes: string | null status: string | null createdAt: Date | null eligibilityStatus: $Enums.PatientStatus | null } export type AppointmentMaxAggregateOutputType = { id: number | null patientId: number | null userId: number | null staffId: number | null title: string | null date: Date | null startTime: string | null endTime: string | null type: string | null notes: string | null procedureCodeNotes: string | null status: string | null createdAt: Date | null eligibilityStatus: $Enums.PatientStatus | null } export type AppointmentCountAggregateOutputType = { id: number patientId: number userId: number staffId: number title: number date: number startTime: number endTime: number type: number notes: number procedureCodeNotes: number status: number createdAt: number eligibilityStatus: number _all: number } export type AppointmentAvgAggregateInputType = { id?: true patientId?: true userId?: true staffId?: true } export type AppointmentSumAggregateInputType = { id?: true patientId?: true userId?: true staffId?: true } export type AppointmentMinAggregateInputType = { id?: true patientId?: true userId?: true staffId?: true title?: true date?: true startTime?: true endTime?: true type?: true notes?: true procedureCodeNotes?: true status?: true createdAt?: true eligibilityStatus?: true } export type AppointmentMaxAggregateInputType = { id?: true patientId?: true userId?: true staffId?: true title?: true date?: true startTime?: true endTime?: true type?: true notes?: true procedureCodeNotes?: true status?: true createdAt?: true eligibilityStatus?: true } export type AppointmentCountAggregateInputType = { id?: true patientId?: true userId?: true staffId?: true title?: true date?: true startTime?: true endTime?: true type?: true notes?: true procedureCodeNotes?: true status?: true createdAt?: true eligibilityStatus?: true _all?: true } export type AppointmentAggregateArgs = { /** * Filter which Appointment to aggregate. */ where?: AppointmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Appointments to fetch. */ orderBy?: AppointmentOrderByWithRelationInput | AppointmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AppointmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Appointments 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` Appointments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Appointments **/ _count?: true | AppointmentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AppointmentAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AppointmentSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AppointmentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AppointmentMaxAggregateInputType } export type GetAppointmentAggregateType = { [P in keyof T & keyof AggregateAppointment]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AppointmentGroupByArgs = { where?: AppointmentWhereInput orderBy?: AppointmentOrderByWithAggregationInput | AppointmentOrderByWithAggregationInput[] by: AppointmentScalarFieldEnum[] | AppointmentScalarFieldEnum having?: AppointmentScalarWhereWithAggregatesInput take?: number skip?: number _count?: AppointmentCountAggregateInputType | true _avg?: AppointmentAvgAggregateInputType _sum?: AppointmentSumAggregateInputType _min?: AppointmentMinAggregateInputType _max?: AppointmentMaxAggregateInputType } export type AppointmentGroupByOutputType = { id: number patientId: number userId: number staffId: number title: string date: Date startTime: string endTime: string type: string notes: string | null procedureCodeNotes: string | null status: string createdAt: Date eligibilityStatus: $Enums.PatientStatus _count: AppointmentCountAggregateOutputType | null _avg: AppointmentAvgAggregateOutputType | null _sum: AppointmentSumAggregateOutputType | null _min: AppointmentMinAggregateOutputType | null _max: AppointmentMaxAggregateOutputType | null } type GetAppointmentGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AppointmentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AppointmentSelect = $Extensions.GetSelect<{ id?: boolean patientId?: boolean userId?: boolean staffId?: boolean title?: boolean date?: boolean startTime?: boolean endTime?: boolean type?: boolean notes?: boolean procedureCodeNotes?: boolean status?: boolean createdAt?: boolean eligibilityStatus?: boolean patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs staff?: boolean | Appointment$staffArgs procedures?: boolean | Appointment$proceduresArgs claims?: boolean | Appointment$claimsArgs _count?: boolean | AppointmentCountOutputTypeDefaultArgs }, ExtArgs["result"]["appointment"]> export type AppointmentSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean userId?: boolean staffId?: boolean title?: boolean date?: boolean startTime?: boolean endTime?: boolean type?: boolean notes?: boolean procedureCodeNotes?: boolean status?: boolean createdAt?: boolean eligibilityStatus?: boolean patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs staff?: boolean | Appointment$staffArgs }, ExtArgs["result"]["appointment"]> export type AppointmentSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean userId?: boolean staffId?: boolean title?: boolean date?: boolean startTime?: boolean endTime?: boolean type?: boolean notes?: boolean procedureCodeNotes?: boolean status?: boolean createdAt?: boolean eligibilityStatus?: boolean patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs staff?: boolean | Appointment$staffArgs }, ExtArgs["result"]["appointment"]> export type AppointmentSelectScalar = { id?: boolean patientId?: boolean userId?: boolean staffId?: boolean title?: boolean date?: boolean startTime?: boolean endTime?: boolean type?: boolean notes?: boolean procedureCodeNotes?: boolean status?: boolean createdAt?: boolean eligibilityStatus?: boolean } export type AppointmentOmit = $Extensions.GetOmit<"id" | "patientId" | "userId" | "staffId" | "title" | "date" | "startTime" | "endTime" | "type" | "notes" | "procedureCodeNotes" | "status" | "createdAt" | "eligibilityStatus", ExtArgs["result"]["appointment"]> export type AppointmentInclude = { patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs staff?: boolean | Appointment$staffArgs procedures?: boolean | Appointment$proceduresArgs claims?: boolean | Appointment$claimsArgs _count?: boolean | AppointmentCountOutputTypeDefaultArgs } export type AppointmentIncludeCreateManyAndReturn = { patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs staff?: boolean | Appointment$staffArgs } export type AppointmentIncludeUpdateManyAndReturn = { patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs staff?: boolean | Appointment$staffArgs } export type $AppointmentPayload = { name: "Appointment" objects: { patient: Prisma.$PatientPayload user: Prisma.$UserPayload staff: Prisma.$StaffPayload | null procedures: Prisma.$AppointmentProcedurePayload[] claims: Prisma.$ClaimPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number patientId: number userId: number staffId: number title: string date: Date startTime: string endTime: string type: string notes: string | null procedureCodeNotes: string | null status: string createdAt: Date eligibilityStatus: $Enums.PatientStatus }, ExtArgs["result"]["appointment"]> composites: {} } type AppointmentGetPayload = $Result.GetResult type AppointmentCountArgs = Omit & { select?: AppointmentCountAggregateInputType | true } export interface AppointmentDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Appointment'], meta: { name: 'Appointment' } } /** * Find zero or one Appointment that matches the filter. * @param {AppointmentFindUniqueArgs} args - Arguments to find a Appointment * @example * // Get one Appointment * const appointment = await prisma.appointment.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Appointment that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AppointmentFindUniqueOrThrowArgs} args - Arguments to find a Appointment * @example * // Get one Appointment * const appointment = await prisma.appointment.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Appointment 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 {AppointmentFindFirstArgs} args - Arguments to find a Appointment * @example * // Get one Appointment * const appointment = await prisma.appointment.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Appointment 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 {AppointmentFindFirstOrThrowArgs} args - Arguments to find a Appointment * @example * // Get one Appointment * const appointment = await prisma.appointment.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Appointments 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 {AppointmentFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Appointments * const appointments = await prisma.appointment.findMany() * * // Get first 10 Appointments * const appointments = await prisma.appointment.findMany({ take: 10 }) * * // Only select the `id` * const appointmentWithIdOnly = await prisma.appointment.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Appointment. * @param {AppointmentCreateArgs} args - Arguments to create a Appointment. * @example * // Create one Appointment * const Appointment = await prisma.appointment.create({ * data: { * // ... data to create a Appointment * } * }) * */ create(args: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Appointments. * @param {AppointmentCreateManyArgs} args - Arguments to create many Appointments. * @example * // Create many Appointments * const appointment = await prisma.appointment.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Appointments and returns the data saved in the database. * @param {AppointmentCreateManyAndReturnArgs} args - Arguments to create many Appointments. * @example * // Create many Appointments * const appointment = await prisma.appointment.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Appointments and only return the `id` * const appointmentWithIdOnly = await prisma.appointment.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Appointment. * @param {AppointmentDeleteArgs} args - Arguments to delete one Appointment. * @example * // Delete one Appointment * const Appointment = await prisma.appointment.delete({ * where: { * // ... filter to delete one Appointment * } * }) * */ delete(args: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Appointment. * @param {AppointmentUpdateArgs} args - Arguments to update one Appointment. * @example * // Update one Appointment * const appointment = await prisma.appointment.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Appointments. * @param {AppointmentDeleteManyArgs} args - Arguments to filter Appointments to delete. * @example * // Delete a few Appointments * const { count } = await prisma.appointment.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Appointments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Appointments * const appointment = await prisma.appointment.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Appointments and returns the data updated in the database. * @param {AppointmentUpdateManyAndReturnArgs} args - Arguments to update many Appointments. * @example * // Update many Appointments * const appointment = await prisma.appointment.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Appointments and only return the `id` * const appointmentWithIdOnly = await prisma.appointment.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Appointment. * @param {AppointmentUpsertArgs} args - Arguments to update or create a Appointment. * @example * // Update or create a Appointment * const appointment = await prisma.appointment.upsert({ * create: { * // ... data to create a Appointment * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Appointment we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Appointments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentCountArgs} args - Arguments to filter Appointments to count. * @example * // Count the number of Appointments * const count = await prisma.appointment.count({ * where: { * // ... the filter for the Appointments 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 Appointment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentAggregateArgs} 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 Appointment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentGroupByArgs} 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 AppointmentGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AppointmentGroupByArgs['orderBy'] } : { orderBy?: AppointmentGroupByArgs['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 ? GetAppointmentGroupByPayload : Prisma.PrismaPromise /** * Fields of the Appointment model */ readonly fields: AppointmentFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Appointment. * 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__AppointmentClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" patient = {}>(args?: Subset>): Prisma__PatientClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> staff = {}>(args?: Subset>): Prisma__StaffClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> procedures = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> claims = {}>(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 Appointment model */ interface AppointmentFieldRefs { readonly id: FieldRef<"Appointment", 'Int'> readonly patientId: FieldRef<"Appointment", 'Int'> readonly userId: FieldRef<"Appointment", 'Int'> readonly staffId: FieldRef<"Appointment", 'Int'> readonly title: FieldRef<"Appointment", 'String'> readonly date: FieldRef<"Appointment", 'DateTime'> readonly startTime: FieldRef<"Appointment", 'String'> readonly endTime: FieldRef<"Appointment", 'String'> readonly type: FieldRef<"Appointment", 'String'> readonly notes: FieldRef<"Appointment", 'String'> readonly procedureCodeNotes: FieldRef<"Appointment", 'String'> readonly status: FieldRef<"Appointment", 'String'> readonly createdAt: FieldRef<"Appointment", 'DateTime'> readonly eligibilityStatus: FieldRef<"Appointment", 'PatientStatus'> } // Custom InputTypes /** * Appointment findUnique */ export type AppointmentFindUniqueArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * Filter, which Appointment to fetch. */ where: AppointmentWhereUniqueInput } /** * Appointment findUniqueOrThrow */ export type AppointmentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * Filter, which Appointment to fetch. */ where: AppointmentWhereUniqueInput } /** * Appointment findFirst */ export type AppointmentFindFirstArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * Filter, which Appointment to fetch. */ where?: AppointmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Appointments to fetch. */ orderBy?: AppointmentOrderByWithRelationInput | AppointmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Appointments. */ cursor?: AppointmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Appointments 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` Appointments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Appointments. */ distinct?: AppointmentScalarFieldEnum | AppointmentScalarFieldEnum[] } /** * Appointment findFirstOrThrow */ export type AppointmentFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * Filter, which Appointment to fetch. */ where?: AppointmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Appointments to fetch. */ orderBy?: AppointmentOrderByWithRelationInput | AppointmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Appointments. */ cursor?: AppointmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Appointments 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` Appointments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Appointments. */ distinct?: AppointmentScalarFieldEnum | AppointmentScalarFieldEnum[] } /** * Appointment findMany */ export type AppointmentFindManyArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * Filter, which Appointments to fetch. */ where?: AppointmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Appointments to fetch. */ orderBy?: AppointmentOrderByWithRelationInput | AppointmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Appointments. */ cursor?: AppointmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Appointments 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` Appointments. */ skip?: number distinct?: AppointmentScalarFieldEnum | AppointmentScalarFieldEnum[] } /** * Appointment create */ export type AppointmentCreateArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * The data needed to create a Appointment. */ data: XOR } /** * Appointment createMany */ export type AppointmentCreateManyArgs = { /** * The data used to create many Appointments. */ data: AppointmentCreateManyInput | AppointmentCreateManyInput[] skipDuplicates?: boolean } /** * Appointment createManyAndReturn */ export type AppointmentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelectCreateManyAndReturn | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * The data used to create many Appointments. */ data: AppointmentCreateManyInput | AppointmentCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: AppointmentIncludeCreateManyAndReturn | null } /** * Appointment update */ export type AppointmentUpdateArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * The data needed to update a Appointment. */ data: XOR /** * Choose, which Appointment to update. */ where: AppointmentWhereUniqueInput } /** * Appointment updateMany */ export type AppointmentUpdateManyArgs = { /** * The data used to update Appointments. */ data: XOR /** * Filter which Appointments to update */ where?: AppointmentWhereInput /** * Limit how many Appointments to update. */ limit?: number } /** * Appointment updateManyAndReturn */ export type AppointmentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelectUpdateManyAndReturn | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * The data used to update Appointments. */ data: XOR /** * Filter which Appointments to update */ where?: AppointmentWhereInput /** * Limit how many Appointments to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: AppointmentIncludeUpdateManyAndReturn | null } /** * Appointment upsert */ export type AppointmentUpsertArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * The filter to search for the Appointment to update in case it exists. */ where: AppointmentWhereUniqueInput /** * In case the Appointment found by the `where` argument doesn't exist, create a new Appointment with this data. */ create: XOR /** * In case the Appointment was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Appointment delete */ export type AppointmentDeleteArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * Filter which Appointment to delete. */ where: AppointmentWhereUniqueInput } /** * Appointment deleteMany */ export type AppointmentDeleteManyArgs = { /** * Filter which Appointments to delete */ where?: AppointmentWhereInput /** * Limit how many Appointments to delete. */ limit?: number } /** * Appointment.staff */ export type Appointment$staffArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null where?: StaffWhereInput } /** * Appointment.procedures */ export type Appointment$proceduresArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null where?: AppointmentProcedureWhereInput orderBy?: AppointmentProcedureOrderByWithRelationInput | AppointmentProcedureOrderByWithRelationInput[] cursor?: AppointmentProcedureWhereUniqueInput take?: number skip?: number distinct?: AppointmentProcedureScalarFieldEnum | AppointmentProcedureScalarFieldEnum[] } /** * Appointment.claims */ export type Appointment$claimsArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null where?: ClaimWhereInput orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] cursor?: ClaimWhereUniqueInput take?: number skip?: number distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Appointment without action */ export type AppointmentDefaultArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null } /** * Model Staff */ export type AggregateStaff = { _count: StaffCountAggregateOutputType | null _avg: StaffAvgAggregateOutputType | null _sum: StaffSumAggregateOutputType | null _min: StaffMinAggregateOutputType | null _max: StaffMaxAggregateOutputType | null } export type StaffAvgAggregateOutputType = { id: number | null userId: number | null } export type StaffSumAggregateOutputType = { id: number | null userId: number | null } export type StaffMinAggregateOutputType = { id: number | null userId: number | null name: string | null email: string | null role: string | null phone: string | null createdAt: Date | null } export type StaffMaxAggregateOutputType = { id: number | null userId: number | null name: string | null email: string | null role: string | null phone: string | null createdAt: Date | null } export type StaffCountAggregateOutputType = { id: number userId: number name: number email: number role: number phone: number createdAt: number _all: number } export type StaffAvgAggregateInputType = { id?: true userId?: true } export type StaffSumAggregateInputType = { id?: true userId?: true } export type StaffMinAggregateInputType = { id?: true userId?: true name?: true email?: true role?: true phone?: true createdAt?: true } export type StaffMaxAggregateInputType = { id?: true userId?: true name?: true email?: true role?: true phone?: true createdAt?: true } export type StaffCountAggregateInputType = { id?: true userId?: true name?: true email?: true role?: true phone?: true createdAt?: true _all?: true } export type StaffAggregateArgs = { /** * Filter which Staff to aggregate. */ where?: StaffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Staff to fetch. */ orderBy?: StaffOrderByWithRelationInput | StaffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: StaffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Staff 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` Staff. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Staff **/ _count?: true | StaffCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: StaffAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: StaffSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: StaffMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: StaffMaxAggregateInputType } export type GetStaffAggregateType = { [P in keyof T & keyof AggregateStaff]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type StaffGroupByArgs = { where?: StaffWhereInput orderBy?: StaffOrderByWithAggregationInput | StaffOrderByWithAggregationInput[] by: StaffScalarFieldEnum[] | StaffScalarFieldEnum having?: StaffScalarWhereWithAggregatesInput take?: number skip?: number _count?: StaffCountAggregateInputType | true _avg?: StaffAvgAggregateInputType _sum?: StaffSumAggregateInputType _min?: StaffMinAggregateInputType _max?: StaffMaxAggregateInputType } export type StaffGroupByOutputType = { id: number userId: number name: string email: string | null role: string phone: string | null createdAt: Date _count: StaffCountAggregateOutputType | null _avg: StaffAvgAggregateOutputType | null _sum: StaffSumAggregateOutputType | null _min: StaffMinAggregateOutputType | null _max: StaffMaxAggregateOutputType | null } type GetStaffGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof StaffGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type StaffSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean email?: boolean role?: boolean phone?: boolean createdAt?: boolean user?: boolean | Staff$userArgs appointments?: boolean | Staff$appointmentsArgs claims?: boolean | Staff$claimsArgs _count?: boolean | StaffCountOutputTypeDefaultArgs }, ExtArgs["result"]["staff"]> export type StaffSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean email?: boolean role?: boolean phone?: boolean createdAt?: boolean user?: boolean | Staff$userArgs }, ExtArgs["result"]["staff"]> export type StaffSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean email?: boolean role?: boolean phone?: boolean createdAt?: boolean user?: boolean | Staff$userArgs }, ExtArgs["result"]["staff"]> export type StaffSelectScalar = { id?: boolean userId?: boolean name?: boolean email?: boolean role?: boolean phone?: boolean createdAt?: boolean } export type StaffOmit = $Extensions.GetOmit<"id" | "userId" | "name" | "email" | "role" | "phone" | "createdAt", ExtArgs["result"]["staff"]> export type StaffInclude = { user?: boolean | Staff$userArgs appointments?: boolean | Staff$appointmentsArgs claims?: boolean | Staff$claimsArgs _count?: boolean | StaffCountOutputTypeDefaultArgs } export type StaffIncludeCreateManyAndReturn = { user?: boolean | Staff$userArgs } export type StaffIncludeUpdateManyAndReturn = { user?: boolean | Staff$userArgs } export type $StaffPayload = { name: "Staff" objects: { user: Prisma.$UserPayload | null appointments: Prisma.$AppointmentPayload[] claims: Prisma.$ClaimPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number userId: number name: string email: string | null role: string phone: string | null createdAt: Date }, ExtArgs["result"]["staff"]> composites: {} } type StaffGetPayload = $Result.GetResult type StaffCountArgs = Omit & { select?: StaffCountAggregateInputType | true } export interface StaffDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Staff'], meta: { name: 'Staff' } } /** * Find zero or one Staff that matches the filter. * @param {StaffFindUniqueArgs} args - Arguments to find a Staff * @example * // Get one Staff * const staff = await prisma.staff.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Staff that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {StaffFindUniqueOrThrowArgs} args - Arguments to find a Staff * @example * // Get one Staff * const staff = await prisma.staff.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Staff 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 {StaffFindFirstArgs} args - Arguments to find a Staff * @example * // Get one Staff * const staff = await prisma.staff.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Staff 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 {StaffFindFirstOrThrowArgs} args - Arguments to find a Staff * @example * // Get one Staff * const staff = await prisma.staff.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Staff 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 {StaffFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Staff * const staff = await prisma.staff.findMany() * * // Get first 10 Staff * const staff = await prisma.staff.findMany({ take: 10 }) * * // Only select the `id` * const staffWithIdOnly = await prisma.staff.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Staff. * @param {StaffCreateArgs} args - Arguments to create a Staff. * @example * // Create one Staff * const Staff = await prisma.staff.create({ * data: { * // ... data to create a Staff * } * }) * */ create(args: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Staff. * @param {StaffCreateManyArgs} args - Arguments to create many Staff. * @example * // Create many Staff * const staff = await prisma.staff.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Staff and returns the data saved in the database. * @param {StaffCreateManyAndReturnArgs} args - Arguments to create many Staff. * @example * // Create many Staff * const staff = await prisma.staff.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Staff and only return the `id` * const staffWithIdOnly = await prisma.staff.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Staff. * @param {StaffDeleteArgs} args - Arguments to delete one Staff. * @example * // Delete one Staff * const Staff = await prisma.staff.delete({ * where: { * // ... filter to delete one Staff * } * }) * */ delete(args: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Staff. * @param {StaffUpdateArgs} args - Arguments to update one Staff. * @example * // Update one Staff * const staff = await prisma.staff.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Staff. * @param {StaffDeleteManyArgs} args - Arguments to filter Staff to delete. * @example * // Delete a few Staff * const { count } = await prisma.staff.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Staff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StaffUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Staff * const staff = await prisma.staff.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Staff and returns the data updated in the database. * @param {StaffUpdateManyAndReturnArgs} args - Arguments to update many Staff. * @example * // Update many Staff * const staff = await prisma.staff.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Staff and only return the `id` * const staffWithIdOnly = await prisma.staff.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Staff. * @param {StaffUpsertArgs} args - Arguments to update or create a Staff. * @example * // Update or create a Staff * const staff = await prisma.staff.upsert({ * create: { * // ... data to create a Staff * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Staff we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Staff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StaffCountArgs} args - Arguments to filter Staff to count. * @example * // Count the number of Staff * const count = await prisma.staff.count({ * where: { * // ... the filter for the Staff 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 Staff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StaffAggregateArgs} 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 Staff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StaffGroupByArgs} 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 StaffGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: StaffGroupByArgs['orderBy'] } : { orderBy?: StaffGroupByArgs['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 ? GetStaffGroupByPayload : Prisma.PrismaPromise /** * Fields of the Staff model */ readonly fields: StaffFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Staff. * 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__StaffClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> appointments = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> claims = {}>(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 Staff model */ interface StaffFieldRefs { readonly id: FieldRef<"Staff", 'Int'> readonly userId: FieldRef<"Staff", 'Int'> readonly name: FieldRef<"Staff", 'String'> readonly email: FieldRef<"Staff", 'String'> readonly role: FieldRef<"Staff", 'String'> readonly phone: FieldRef<"Staff", 'String'> readonly createdAt: FieldRef<"Staff", 'DateTime'> } // Custom InputTypes /** * Staff findUnique */ export type StaffFindUniqueArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * Filter, which Staff to fetch. */ where: StaffWhereUniqueInput } /** * Staff findUniqueOrThrow */ export type StaffFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * Filter, which Staff to fetch. */ where: StaffWhereUniqueInput } /** * Staff findFirst */ export type StaffFindFirstArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * Filter, which Staff to fetch. */ where?: StaffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Staff to fetch. */ orderBy?: StaffOrderByWithRelationInput | StaffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Staff. */ cursor?: StaffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Staff 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` Staff. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Staff. */ distinct?: StaffScalarFieldEnum | StaffScalarFieldEnum[] } /** * Staff findFirstOrThrow */ export type StaffFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * Filter, which Staff to fetch. */ where?: StaffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Staff to fetch. */ orderBy?: StaffOrderByWithRelationInput | StaffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Staff. */ cursor?: StaffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Staff 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` Staff. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Staff. */ distinct?: StaffScalarFieldEnum | StaffScalarFieldEnum[] } /** * Staff findMany */ export type StaffFindManyArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * Filter, which Staff to fetch. */ where?: StaffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Staff to fetch. */ orderBy?: StaffOrderByWithRelationInput | StaffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Staff. */ cursor?: StaffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Staff 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` Staff. */ skip?: number distinct?: StaffScalarFieldEnum | StaffScalarFieldEnum[] } /** * Staff create */ export type StaffCreateArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * The data needed to create a Staff. */ data: XOR } /** * Staff createMany */ export type StaffCreateManyArgs = { /** * The data used to create many Staff. */ data: StaffCreateManyInput | StaffCreateManyInput[] skipDuplicates?: boolean } /** * Staff createManyAndReturn */ export type StaffCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelectCreateManyAndReturn | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * The data used to create many Staff. */ data: StaffCreateManyInput | StaffCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: StaffIncludeCreateManyAndReturn | null } /** * Staff update */ export type StaffUpdateArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * The data needed to update a Staff. */ data: XOR /** * Choose, which Staff to update. */ where: StaffWhereUniqueInput } /** * Staff updateMany */ export type StaffUpdateManyArgs = { /** * The data used to update Staff. */ data: XOR /** * Filter which Staff to update */ where?: StaffWhereInput /** * Limit how many Staff to update. */ limit?: number } /** * Staff updateManyAndReturn */ export type StaffUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelectUpdateManyAndReturn | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * The data used to update Staff. */ data: XOR /** * Filter which Staff to update */ where?: StaffWhereInput /** * Limit how many Staff to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: StaffIncludeUpdateManyAndReturn | null } /** * Staff upsert */ export type StaffUpsertArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * The filter to search for the Staff to update in case it exists. */ where: StaffWhereUniqueInput /** * In case the Staff found by the `where` argument doesn't exist, create a new Staff with this data. */ create: XOR /** * In case the Staff was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Staff delete */ export type StaffDeleteArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * Filter which Staff to delete. */ where: StaffWhereUniqueInput } /** * Staff deleteMany */ export type StaffDeleteManyArgs = { /** * Filter which Staff to delete */ where?: StaffWhereInput /** * Limit how many Staff to delete. */ limit?: number } /** * Staff.user */ export type Staff$userArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null where?: UserWhereInput } /** * Staff.appointments */ export type Staff$appointmentsArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null where?: AppointmentWhereInput orderBy?: AppointmentOrderByWithRelationInput | AppointmentOrderByWithRelationInput[] cursor?: AppointmentWhereUniqueInput take?: number skip?: number distinct?: AppointmentScalarFieldEnum | AppointmentScalarFieldEnum[] } /** * Staff.claims */ export type Staff$claimsArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null where?: ClaimWhereInput orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] cursor?: ClaimWhereUniqueInput take?: number skip?: number distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Staff without action */ export type StaffDefaultArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null } /** * Model NpiProvider */ export type AggregateNpiProvider = { _count: NpiProviderCountAggregateOutputType | null _avg: NpiProviderAvgAggregateOutputType | null _sum: NpiProviderSumAggregateOutputType | null _min: NpiProviderMinAggregateOutputType | null _max: NpiProviderMaxAggregateOutputType | null } export type NpiProviderAvgAggregateOutputType = { id: number | null userId: number | null } export type NpiProviderSumAggregateOutputType = { id: number | null userId: number | null } export type NpiProviderMinAggregateOutputType = { id: number | null userId: number | null npiNumber: string | null providerName: string | null createdAt: Date | null } export type NpiProviderMaxAggregateOutputType = { id: number | null userId: number | null npiNumber: string | null providerName: string | null createdAt: Date | null } export type NpiProviderCountAggregateOutputType = { id: number userId: number npiNumber: number providerName: number createdAt: number _all: number } export type NpiProviderAvgAggregateInputType = { id?: true userId?: true } export type NpiProviderSumAggregateInputType = { id?: true userId?: true } export type NpiProviderMinAggregateInputType = { id?: true userId?: true npiNumber?: true providerName?: true createdAt?: true } export type NpiProviderMaxAggregateInputType = { id?: true userId?: true npiNumber?: true providerName?: true createdAt?: true } export type NpiProviderCountAggregateInputType = { id?: true userId?: true npiNumber?: true providerName?: true createdAt?: true _all?: true } export type NpiProviderAggregateArgs = { /** * Filter which NpiProvider to aggregate. */ where?: NpiProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NpiProviders to fetch. */ orderBy?: NpiProviderOrderByWithRelationInput | NpiProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: NpiProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NpiProviders 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` NpiProviders. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned NpiProviders **/ _count?: true | NpiProviderCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: NpiProviderAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: NpiProviderSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: NpiProviderMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: NpiProviderMaxAggregateInputType } export type GetNpiProviderAggregateType = { [P in keyof T & keyof AggregateNpiProvider]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type NpiProviderGroupByArgs = { where?: NpiProviderWhereInput orderBy?: NpiProviderOrderByWithAggregationInput | NpiProviderOrderByWithAggregationInput[] by: NpiProviderScalarFieldEnum[] | NpiProviderScalarFieldEnum having?: NpiProviderScalarWhereWithAggregatesInput take?: number skip?: number _count?: NpiProviderCountAggregateInputType | true _avg?: NpiProviderAvgAggregateInputType _sum?: NpiProviderSumAggregateInputType _min?: NpiProviderMinAggregateInputType _max?: NpiProviderMaxAggregateInputType } export type NpiProviderGroupByOutputType = { id: number userId: number npiNumber: string providerName: string createdAt: Date _count: NpiProviderCountAggregateOutputType | null _avg: NpiProviderAvgAggregateOutputType | null _sum: NpiProviderSumAggregateOutputType | null _min: NpiProviderMinAggregateOutputType | null _max: NpiProviderMaxAggregateOutputType | null } type GetNpiProviderGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof NpiProviderGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type NpiProviderSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean npiNumber?: boolean providerName?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["npiProvider"]> export type NpiProviderSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean npiNumber?: boolean providerName?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["npiProvider"]> export type NpiProviderSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean npiNumber?: boolean providerName?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["npiProvider"]> export type NpiProviderSelectScalar = { id?: boolean userId?: boolean npiNumber?: boolean providerName?: boolean createdAt?: boolean } export type NpiProviderOmit = $Extensions.GetOmit<"id" | "userId" | "npiNumber" | "providerName" | "createdAt", ExtArgs["result"]["npiProvider"]> export type NpiProviderInclude = { user?: boolean | UserDefaultArgs } export type NpiProviderIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type NpiProviderIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $NpiProviderPayload = { name: "NpiProvider" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number npiNumber: string providerName: string createdAt: Date }, ExtArgs["result"]["npiProvider"]> composites: {} } type NpiProviderGetPayload = $Result.GetResult type NpiProviderCountArgs = Omit & { select?: NpiProviderCountAggregateInputType | true } export interface NpiProviderDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['NpiProvider'], meta: { name: 'NpiProvider' } } /** * Find zero or one NpiProvider that matches the filter. * @param {NpiProviderFindUniqueArgs} args - Arguments to find a NpiProvider * @example * // Get one NpiProvider * const npiProvider = await prisma.npiProvider.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one NpiProvider that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {NpiProviderFindUniqueOrThrowArgs} args - Arguments to find a NpiProvider * @example * // Get one NpiProvider * const npiProvider = await prisma.npiProvider.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first NpiProvider 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 {NpiProviderFindFirstArgs} args - Arguments to find a NpiProvider * @example * // Get one NpiProvider * const npiProvider = await prisma.npiProvider.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first NpiProvider 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 {NpiProviderFindFirstOrThrowArgs} args - Arguments to find a NpiProvider * @example * // Get one NpiProvider * const npiProvider = await prisma.npiProvider.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more NpiProviders 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 {NpiProviderFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all NpiProviders * const npiProviders = await prisma.npiProvider.findMany() * * // Get first 10 NpiProviders * const npiProviders = await prisma.npiProvider.findMany({ take: 10 }) * * // Only select the `id` * const npiProviderWithIdOnly = await prisma.npiProvider.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a NpiProvider. * @param {NpiProviderCreateArgs} args - Arguments to create a NpiProvider. * @example * // Create one NpiProvider * const NpiProvider = await prisma.npiProvider.create({ * data: { * // ... data to create a NpiProvider * } * }) * */ create(args: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many NpiProviders. * @param {NpiProviderCreateManyArgs} args - Arguments to create many NpiProviders. * @example * // Create many NpiProviders * const npiProvider = await prisma.npiProvider.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many NpiProviders and returns the data saved in the database. * @param {NpiProviderCreateManyAndReturnArgs} args - Arguments to create many NpiProviders. * @example * // Create many NpiProviders * const npiProvider = await prisma.npiProvider.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many NpiProviders and only return the `id` * const npiProviderWithIdOnly = await prisma.npiProvider.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a NpiProvider. * @param {NpiProviderDeleteArgs} args - Arguments to delete one NpiProvider. * @example * // Delete one NpiProvider * const NpiProvider = await prisma.npiProvider.delete({ * where: { * // ... filter to delete one NpiProvider * } * }) * */ delete(args: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one NpiProvider. * @param {NpiProviderUpdateArgs} args - Arguments to update one NpiProvider. * @example * // Update one NpiProvider * const npiProvider = await prisma.npiProvider.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more NpiProviders. * @param {NpiProviderDeleteManyArgs} args - Arguments to filter NpiProviders to delete. * @example * // Delete a few NpiProviders * const { count } = await prisma.npiProvider.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more NpiProviders. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NpiProviderUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many NpiProviders * const npiProvider = await prisma.npiProvider.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more NpiProviders and returns the data updated in the database. * @param {NpiProviderUpdateManyAndReturnArgs} args - Arguments to update many NpiProviders. * @example * // Update many NpiProviders * const npiProvider = await prisma.npiProvider.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more NpiProviders and only return the `id` * const npiProviderWithIdOnly = await prisma.npiProvider.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one NpiProvider. * @param {NpiProviderUpsertArgs} args - Arguments to update or create a NpiProvider. * @example * // Update or create a NpiProvider * const npiProvider = await prisma.npiProvider.upsert({ * create: { * // ... data to create a NpiProvider * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the NpiProvider we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of NpiProviders. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NpiProviderCountArgs} args - Arguments to filter NpiProviders to count. * @example * // Count the number of NpiProviders * const count = await prisma.npiProvider.count({ * where: { * // ... the filter for the NpiProviders 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 NpiProvider. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NpiProviderAggregateArgs} 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 NpiProvider. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NpiProviderGroupByArgs} 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 NpiProviderGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: NpiProviderGroupByArgs['orderBy'] } : { orderBy?: NpiProviderGroupByArgs['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 ? GetNpiProviderGroupByPayload : Prisma.PrismaPromise /** * Fields of the NpiProvider model */ readonly fields: NpiProviderFieldRefs; } /** * The delegate class that acts as a "Promise-like" for NpiProvider. * 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__NpiProviderClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the NpiProvider model */ interface NpiProviderFieldRefs { readonly id: FieldRef<"NpiProvider", 'Int'> readonly userId: FieldRef<"NpiProvider", 'Int'> readonly npiNumber: FieldRef<"NpiProvider", 'String'> readonly providerName: FieldRef<"NpiProvider", 'String'> readonly createdAt: FieldRef<"NpiProvider", 'DateTime'> } // Custom InputTypes /** * NpiProvider findUnique */ export type NpiProviderFindUniqueArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * Filter, which NpiProvider to fetch. */ where: NpiProviderWhereUniqueInput } /** * NpiProvider findUniqueOrThrow */ export type NpiProviderFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * Filter, which NpiProvider to fetch. */ where: NpiProviderWhereUniqueInput } /** * NpiProvider findFirst */ export type NpiProviderFindFirstArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * Filter, which NpiProvider to fetch. */ where?: NpiProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NpiProviders to fetch. */ orderBy?: NpiProviderOrderByWithRelationInput | NpiProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for NpiProviders. */ cursor?: NpiProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NpiProviders 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` NpiProviders. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of NpiProviders. */ distinct?: NpiProviderScalarFieldEnum | NpiProviderScalarFieldEnum[] } /** * NpiProvider findFirstOrThrow */ export type NpiProviderFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * Filter, which NpiProvider to fetch. */ where?: NpiProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NpiProviders to fetch. */ orderBy?: NpiProviderOrderByWithRelationInput | NpiProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for NpiProviders. */ cursor?: NpiProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NpiProviders 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` NpiProviders. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of NpiProviders. */ distinct?: NpiProviderScalarFieldEnum | NpiProviderScalarFieldEnum[] } /** * NpiProvider findMany */ export type NpiProviderFindManyArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * Filter, which NpiProviders to fetch. */ where?: NpiProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NpiProviders to fetch. */ orderBy?: NpiProviderOrderByWithRelationInput | NpiProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing NpiProviders. */ cursor?: NpiProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NpiProviders 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` NpiProviders. */ skip?: number distinct?: NpiProviderScalarFieldEnum | NpiProviderScalarFieldEnum[] } /** * NpiProvider create */ export type NpiProviderCreateArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * The data needed to create a NpiProvider. */ data: XOR } /** * NpiProvider createMany */ export type NpiProviderCreateManyArgs = { /** * The data used to create many NpiProviders. */ data: NpiProviderCreateManyInput | NpiProviderCreateManyInput[] skipDuplicates?: boolean } /** * NpiProvider createManyAndReturn */ export type NpiProviderCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelectCreateManyAndReturn | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * The data used to create many NpiProviders. */ data: NpiProviderCreateManyInput | NpiProviderCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: NpiProviderIncludeCreateManyAndReturn | null } /** * NpiProvider update */ export type NpiProviderUpdateArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * The data needed to update a NpiProvider. */ data: XOR /** * Choose, which NpiProvider to update. */ where: NpiProviderWhereUniqueInput } /** * NpiProvider updateMany */ export type NpiProviderUpdateManyArgs = { /** * The data used to update NpiProviders. */ data: XOR /** * Filter which NpiProviders to update */ where?: NpiProviderWhereInput /** * Limit how many NpiProviders to update. */ limit?: number } /** * NpiProvider updateManyAndReturn */ export type NpiProviderUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelectUpdateManyAndReturn | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * The data used to update NpiProviders. */ data: XOR /** * Filter which NpiProviders to update */ where?: NpiProviderWhereInput /** * Limit how many NpiProviders to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: NpiProviderIncludeUpdateManyAndReturn | null } /** * NpiProvider upsert */ export type NpiProviderUpsertArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * The filter to search for the NpiProvider to update in case it exists. */ where: NpiProviderWhereUniqueInput /** * In case the NpiProvider found by the `where` argument doesn't exist, create a new NpiProvider with this data. */ create: XOR /** * In case the NpiProvider was found with the provided `where` argument, update it with this data. */ update: XOR } /** * NpiProvider delete */ export type NpiProviderDeleteArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * Filter which NpiProvider to delete. */ where: NpiProviderWhereUniqueInput } /** * NpiProvider deleteMany */ export type NpiProviderDeleteManyArgs = { /** * Filter which NpiProviders to delete */ where?: NpiProviderWhereInput /** * Limit how many NpiProviders to delete. */ limit?: number } /** * NpiProvider without action */ export type NpiProviderDefaultArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null } /** * Model AppointmentProcedure */ export type AggregateAppointmentProcedure = { _count: AppointmentProcedureCountAggregateOutputType | null _avg: AppointmentProcedureAvgAggregateOutputType | null _sum: AppointmentProcedureSumAggregateOutputType | null _min: AppointmentProcedureMinAggregateOutputType | null _max: AppointmentProcedureMaxAggregateOutputType | null } export type AppointmentProcedureAvgAggregateOutputType = { id: number | null appointmentId: number | null patientId: number | null fee: Decimal | null } export type AppointmentProcedureSumAggregateOutputType = { id: number | null appointmentId: number | null patientId: number | null fee: Decimal | null } export type AppointmentProcedureMinAggregateOutputType = { id: number | null appointmentId: number | null patientId: number | null procedureCode: string | null procedureLabel: string | null fee: Decimal | null category: string | null toothNumber: string | null toothSurface: string | null oralCavityArea: string | null source: $Enums.ProcedureSource | null comboKey: string | null createdAt: Date | null } export type AppointmentProcedureMaxAggregateOutputType = { id: number | null appointmentId: number | null patientId: number | null procedureCode: string | null procedureLabel: string | null fee: Decimal | null category: string | null toothNumber: string | null toothSurface: string | null oralCavityArea: string | null source: $Enums.ProcedureSource | null comboKey: string | null createdAt: Date | null } export type AppointmentProcedureCountAggregateOutputType = { id: number appointmentId: number patientId: number procedureCode: number procedureLabel: number fee: number category: number toothNumber: number toothSurface: number oralCavityArea: number source: number comboKey: number createdAt: number _all: number } export type AppointmentProcedureAvgAggregateInputType = { id?: true appointmentId?: true patientId?: true fee?: true } export type AppointmentProcedureSumAggregateInputType = { id?: true appointmentId?: true patientId?: true fee?: true } export type AppointmentProcedureMinAggregateInputType = { id?: true appointmentId?: true patientId?: true procedureCode?: true procedureLabel?: true fee?: true category?: true toothNumber?: true toothSurface?: true oralCavityArea?: true source?: true comboKey?: true createdAt?: true } export type AppointmentProcedureMaxAggregateInputType = { id?: true appointmentId?: true patientId?: true procedureCode?: true procedureLabel?: true fee?: true category?: true toothNumber?: true toothSurface?: true oralCavityArea?: true source?: true comboKey?: true createdAt?: true } export type AppointmentProcedureCountAggregateInputType = { id?: true appointmentId?: true patientId?: true procedureCode?: true procedureLabel?: true fee?: true category?: true toothNumber?: true toothSurface?: true oralCavityArea?: true source?: true comboKey?: true createdAt?: true _all?: true } export type AppointmentProcedureAggregateArgs = { /** * Filter which AppointmentProcedure to aggregate. */ where?: AppointmentProcedureWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppointmentProcedures to fetch. */ orderBy?: AppointmentProcedureOrderByWithRelationInput | AppointmentProcedureOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AppointmentProcedureWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppointmentProcedures 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` AppointmentProcedures. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AppointmentProcedures **/ _count?: true | AppointmentProcedureCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AppointmentProcedureAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AppointmentProcedureSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AppointmentProcedureMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AppointmentProcedureMaxAggregateInputType } export type GetAppointmentProcedureAggregateType = { [P in keyof T & keyof AggregateAppointmentProcedure]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AppointmentProcedureGroupByArgs = { where?: AppointmentProcedureWhereInput orderBy?: AppointmentProcedureOrderByWithAggregationInput | AppointmentProcedureOrderByWithAggregationInput[] by: AppointmentProcedureScalarFieldEnum[] | AppointmentProcedureScalarFieldEnum having?: AppointmentProcedureScalarWhereWithAggregatesInput take?: number skip?: number _count?: AppointmentProcedureCountAggregateInputType | true _avg?: AppointmentProcedureAvgAggregateInputType _sum?: AppointmentProcedureSumAggregateInputType _min?: AppointmentProcedureMinAggregateInputType _max?: AppointmentProcedureMaxAggregateInputType } export type AppointmentProcedureGroupByOutputType = { id: number appointmentId: number patientId: number procedureCode: string procedureLabel: string | null fee: Decimal | null category: string | null toothNumber: string | null toothSurface: string | null oralCavityArea: string | null source: $Enums.ProcedureSource comboKey: string | null createdAt: Date _count: AppointmentProcedureCountAggregateOutputType | null _avg: AppointmentProcedureAvgAggregateOutputType | null _sum: AppointmentProcedureSumAggregateOutputType | null _min: AppointmentProcedureMinAggregateOutputType | null _max: AppointmentProcedureMaxAggregateOutputType | null } type GetAppointmentProcedureGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AppointmentProcedureGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AppointmentProcedureSelect = $Extensions.GetSelect<{ id?: boolean appointmentId?: boolean patientId?: boolean procedureCode?: boolean procedureLabel?: boolean fee?: boolean category?: boolean toothNumber?: boolean toothSurface?: boolean oralCavityArea?: boolean source?: boolean comboKey?: boolean createdAt?: boolean appointment?: boolean | AppointmentDefaultArgs patient?: boolean | PatientDefaultArgs }, ExtArgs["result"]["appointmentProcedure"]> export type AppointmentProcedureSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean appointmentId?: boolean patientId?: boolean procedureCode?: boolean procedureLabel?: boolean fee?: boolean category?: boolean toothNumber?: boolean toothSurface?: boolean oralCavityArea?: boolean source?: boolean comboKey?: boolean createdAt?: boolean appointment?: boolean | AppointmentDefaultArgs patient?: boolean | PatientDefaultArgs }, ExtArgs["result"]["appointmentProcedure"]> export type AppointmentProcedureSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean appointmentId?: boolean patientId?: boolean procedureCode?: boolean procedureLabel?: boolean fee?: boolean category?: boolean toothNumber?: boolean toothSurface?: boolean oralCavityArea?: boolean source?: boolean comboKey?: boolean createdAt?: boolean appointment?: boolean | AppointmentDefaultArgs patient?: boolean | PatientDefaultArgs }, ExtArgs["result"]["appointmentProcedure"]> export type AppointmentProcedureSelectScalar = { id?: boolean appointmentId?: boolean patientId?: boolean procedureCode?: boolean procedureLabel?: boolean fee?: boolean category?: boolean toothNumber?: boolean toothSurface?: boolean oralCavityArea?: boolean source?: boolean comboKey?: boolean createdAt?: boolean } export type AppointmentProcedureOmit = $Extensions.GetOmit<"id" | "appointmentId" | "patientId" | "procedureCode" | "procedureLabel" | "fee" | "category" | "toothNumber" | "toothSurface" | "oralCavityArea" | "source" | "comboKey" | "createdAt", ExtArgs["result"]["appointmentProcedure"]> export type AppointmentProcedureInclude = { appointment?: boolean | AppointmentDefaultArgs patient?: boolean | PatientDefaultArgs } export type AppointmentProcedureIncludeCreateManyAndReturn = { appointment?: boolean | AppointmentDefaultArgs patient?: boolean | PatientDefaultArgs } export type AppointmentProcedureIncludeUpdateManyAndReturn = { appointment?: boolean | AppointmentDefaultArgs patient?: boolean | PatientDefaultArgs } export type $AppointmentProcedurePayload = { name: "AppointmentProcedure" objects: { appointment: Prisma.$AppointmentPayload patient: Prisma.$PatientPayload } scalars: $Extensions.GetPayloadResult<{ id: number appointmentId: number patientId: number procedureCode: string procedureLabel: string | null fee: Prisma.Decimal | null category: string | null toothNumber: string | null toothSurface: string | null oralCavityArea: string | null source: $Enums.ProcedureSource comboKey: string | null createdAt: Date }, ExtArgs["result"]["appointmentProcedure"]> composites: {} } type AppointmentProcedureGetPayload = $Result.GetResult type AppointmentProcedureCountArgs = Omit & { select?: AppointmentProcedureCountAggregateInputType | true } export interface AppointmentProcedureDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AppointmentProcedure'], meta: { name: 'AppointmentProcedure' } } /** * Find zero or one AppointmentProcedure that matches the filter. * @param {AppointmentProcedureFindUniqueArgs} args - Arguments to find a AppointmentProcedure * @example * // Get one AppointmentProcedure * const appointmentProcedure = await prisma.appointmentProcedure.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AppointmentProcedure that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AppointmentProcedureFindUniqueOrThrowArgs} args - Arguments to find a AppointmentProcedure * @example * // Get one AppointmentProcedure * const appointmentProcedure = await prisma.appointmentProcedure.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AppointmentProcedure 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 {AppointmentProcedureFindFirstArgs} args - Arguments to find a AppointmentProcedure * @example * // Get one AppointmentProcedure * const appointmentProcedure = await prisma.appointmentProcedure.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AppointmentProcedure 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 {AppointmentProcedureFindFirstOrThrowArgs} args - Arguments to find a AppointmentProcedure * @example * // Get one AppointmentProcedure * const appointmentProcedure = await prisma.appointmentProcedure.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AppointmentProcedures 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 {AppointmentProcedureFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AppointmentProcedures * const appointmentProcedures = await prisma.appointmentProcedure.findMany() * * // Get first 10 AppointmentProcedures * const appointmentProcedures = await prisma.appointmentProcedure.findMany({ take: 10 }) * * // Only select the `id` * const appointmentProcedureWithIdOnly = await prisma.appointmentProcedure.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a AppointmentProcedure. * @param {AppointmentProcedureCreateArgs} args - Arguments to create a AppointmentProcedure. * @example * // Create one AppointmentProcedure * const AppointmentProcedure = await prisma.appointmentProcedure.create({ * data: { * // ... data to create a AppointmentProcedure * } * }) * */ create(args: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AppointmentProcedures. * @param {AppointmentProcedureCreateManyArgs} args - Arguments to create many AppointmentProcedures. * @example * // Create many AppointmentProcedures * const appointmentProcedure = await prisma.appointmentProcedure.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many AppointmentProcedures and returns the data saved in the database. * @param {AppointmentProcedureCreateManyAndReturnArgs} args - Arguments to create many AppointmentProcedures. * @example * // Create many AppointmentProcedures * const appointmentProcedure = await prisma.appointmentProcedure.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AppointmentProcedures and only return the `id` * const appointmentProcedureWithIdOnly = await prisma.appointmentProcedure.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a AppointmentProcedure. * @param {AppointmentProcedureDeleteArgs} args - Arguments to delete one AppointmentProcedure. * @example * // Delete one AppointmentProcedure * const AppointmentProcedure = await prisma.appointmentProcedure.delete({ * where: { * // ... filter to delete one AppointmentProcedure * } * }) * */ delete(args: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AppointmentProcedure. * @param {AppointmentProcedureUpdateArgs} args - Arguments to update one AppointmentProcedure. * @example * // Update one AppointmentProcedure * const appointmentProcedure = await prisma.appointmentProcedure.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AppointmentProcedures. * @param {AppointmentProcedureDeleteManyArgs} args - Arguments to filter AppointmentProcedures to delete. * @example * // Delete a few AppointmentProcedures * const { count } = await prisma.appointmentProcedure.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AppointmentProcedures. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentProcedureUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AppointmentProcedures * const appointmentProcedure = await prisma.appointmentProcedure.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AppointmentProcedures and returns the data updated in the database. * @param {AppointmentProcedureUpdateManyAndReturnArgs} args - Arguments to update many AppointmentProcedures. * @example * // Update many AppointmentProcedures * const appointmentProcedure = await prisma.appointmentProcedure.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AppointmentProcedures and only return the `id` * const appointmentProcedureWithIdOnly = await prisma.appointmentProcedure.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one AppointmentProcedure. * @param {AppointmentProcedureUpsertArgs} args - Arguments to update or create a AppointmentProcedure. * @example * // Update or create a AppointmentProcedure * const appointmentProcedure = await prisma.appointmentProcedure.upsert({ * create: { * // ... data to create a AppointmentProcedure * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AppointmentProcedure we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AppointmentProcedures. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentProcedureCountArgs} args - Arguments to filter AppointmentProcedures to count. * @example * // Count the number of AppointmentProcedures * const count = await prisma.appointmentProcedure.count({ * where: { * // ... the filter for the AppointmentProcedures 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 AppointmentProcedure. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentProcedureAggregateArgs} 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 AppointmentProcedure. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentProcedureGroupByArgs} 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 AppointmentProcedureGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AppointmentProcedureGroupByArgs['orderBy'] } : { orderBy?: AppointmentProcedureGroupByArgs['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 ? GetAppointmentProcedureGroupByPayload : Prisma.PrismaPromise /** * Fields of the AppointmentProcedure model */ readonly fields: AppointmentProcedureFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AppointmentProcedure. * 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__AppointmentProcedureClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" appointment = {}>(args?: Subset>): Prisma__AppointmentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> patient = {}>(args?: Subset>): Prisma__PatientClient<$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 AppointmentProcedure model */ interface AppointmentProcedureFieldRefs { readonly id: FieldRef<"AppointmentProcedure", 'Int'> readonly appointmentId: FieldRef<"AppointmentProcedure", 'Int'> readonly patientId: FieldRef<"AppointmentProcedure", 'Int'> readonly procedureCode: FieldRef<"AppointmentProcedure", 'String'> readonly procedureLabel: FieldRef<"AppointmentProcedure", 'String'> readonly fee: FieldRef<"AppointmentProcedure", 'Decimal'> readonly category: FieldRef<"AppointmentProcedure", 'String'> readonly toothNumber: FieldRef<"AppointmentProcedure", 'String'> readonly toothSurface: FieldRef<"AppointmentProcedure", 'String'> readonly oralCavityArea: FieldRef<"AppointmentProcedure", 'String'> readonly source: FieldRef<"AppointmentProcedure", 'ProcedureSource'> readonly comboKey: FieldRef<"AppointmentProcedure", 'String'> readonly createdAt: FieldRef<"AppointmentProcedure", 'DateTime'> } // Custom InputTypes /** * AppointmentProcedure findUnique */ export type AppointmentProcedureFindUniqueArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * Filter, which AppointmentProcedure to fetch. */ where: AppointmentProcedureWhereUniqueInput } /** * AppointmentProcedure findUniqueOrThrow */ export type AppointmentProcedureFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * Filter, which AppointmentProcedure to fetch. */ where: AppointmentProcedureWhereUniqueInput } /** * AppointmentProcedure findFirst */ export type AppointmentProcedureFindFirstArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * Filter, which AppointmentProcedure to fetch. */ where?: AppointmentProcedureWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppointmentProcedures to fetch. */ orderBy?: AppointmentProcedureOrderByWithRelationInput | AppointmentProcedureOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AppointmentProcedures. */ cursor?: AppointmentProcedureWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppointmentProcedures 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` AppointmentProcedures. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AppointmentProcedures. */ distinct?: AppointmentProcedureScalarFieldEnum | AppointmentProcedureScalarFieldEnum[] } /** * AppointmentProcedure findFirstOrThrow */ export type AppointmentProcedureFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * Filter, which AppointmentProcedure to fetch. */ where?: AppointmentProcedureWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppointmentProcedures to fetch. */ orderBy?: AppointmentProcedureOrderByWithRelationInput | AppointmentProcedureOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AppointmentProcedures. */ cursor?: AppointmentProcedureWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppointmentProcedures 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` AppointmentProcedures. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AppointmentProcedures. */ distinct?: AppointmentProcedureScalarFieldEnum | AppointmentProcedureScalarFieldEnum[] } /** * AppointmentProcedure findMany */ export type AppointmentProcedureFindManyArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * Filter, which AppointmentProcedures to fetch. */ where?: AppointmentProcedureWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppointmentProcedures to fetch. */ orderBy?: AppointmentProcedureOrderByWithRelationInput | AppointmentProcedureOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AppointmentProcedures. */ cursor?: AppointmentProcedureWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppointmentProcedures 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` AppointmentProcedures. */ skip?: number distinct?: AppointmentProcedureScalarFieldEnum | AppointmentProcedureScalarFieldEnum[] } /** * AppointmentProcedure create */ export type AppointmentProcedureCreateArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * The data needed to create a AppointmentProcedure. */ data: XOR } /** * AppointmentProcedure createMany */ export type AppointmentProcedureCreateManyArgs = { /** * The data used to create many AppointmentProcedures. */ data: AppointmentProcedureCreateManyInput | AppointmentProcedureCreateManyInput[] skipDuplicates?: boolean } /** * AppointmentProcedure createManyAndReturn */ export type AppointmentProcedureCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelectCreateManyAndReturn | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * The data used to create many AppointmentProcedures. */ data: AppointmentProcedureCreateManyInput | AppointmentProcedureCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureIncludeCreateManyAndReturn | null } /** * AppointmentProcedure update */ export type AppointmentProcedureUpdateArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * The data needed to update a AppointmentProcedure. */ data: XOR /** * Choose, which AppointmentProcedure to update. */ where: AppointmentProcedureWhereUniqueInput } /** * AppointmentProcedure updateMany */ export type AppointmentProcedureUpdateManyArgs = { /** * The data used to update AppointmentProcedures. */ data: XOR /** * Filter which AppointmentProcedures to update */ where?: AppointmentProcedureWhereInput /** * Limit how many AppointmentProcedures to update. */ limit?: number } /** * AppointmentProcedure updateManyAndReturn */ export type AppointmentProcedureUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelectUpdateManyAndReturn | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * The data used to update AppointmentProcedures. */ data: XOR /** * Filter which AppointmentProcedures to update */ where?: AppointmentProcedureWhereInput /** * Limit how many AppointmentProcedures to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureIncludeUpdateManyAndReturn | null } /** * AppointmentProcedure upsert */ export type AppointmentProcedureUpsertArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * The filter to search for the AppointmentProcedure to update in case it exists. */ where: AppointmentProcedureWhereUniqueInput /** * In case the AppointmentProcedure found by the `where` argument doesn't exist, create a new AppointmentProcedure with this data. */ create: XOR /** * In case the AppointmentProcedure was found with the provided `where` argument, update it with this data. */ update: XOR } /** * AppointmentProcedure delete */ export type AppointmentProcedureDeleteArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * Filter which AppointmentProcedure to delete. */ where: AppointmentProcedureWhereUniqueInput } /** * AppointmentProcedure deleteMany */ export type AppointmentProcedureDeleteManyArgs = { /** * Filter which AppointmentProcedures to delete */ where?: AppointmentProcedureWhereInput /** * Limit how many AppointmentProcedures to delete. */ limit?: number } /** * AppointmentProcedure without action */ export type AppointmentProcedureDefaultArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null } /** * Model Claim */ export type AggregateClaim = { _count: ClaimCountAggregateOutputType | null _avg: ClaimAvgAggregateOutputType | null _sum: ClaimSumAggregateOutputType | null _min: ClaimMinAggregateOutputType | null _max: ClaimMaxAggregateOutputType | null } export type ClaimAvgAggregateOutputType = { id: number | null patientId: number | null appointmentId: number | null userId: number | null staffId: number | null } export type ClaimSumAggregateOutputType = { id: number | null patientId: number | null appointmentId: number | null userId: number | null staffId: number | null } export type ClaimMinAggregateOutputType = { id: number | null patientId: number | null appointmentId: number | null userId: number | null staffId: number | null patientName: string | null memberId: string | null dateOfBirth: Date | null remarks: string | null missingTeethStatus: $Enums.MissingTeethStatus | null serviceDate: Date | null insuranceProvider: string | null createdAt: Date | null updatedAt: Date | null status: $Enums.ClaimStatus | null claimNumber: string | null } export type ClaimMaxAggregateOutputType = { id: number | null patientId: number | null appointmentId: number | null userId: number | null staffId: number | null patientName: string | null memberId: string | null dateOfBirth: Date | null remarks: string | null missingTeethStatus: $Enums.MissingTeethStatus | null serviceDate: Date | null insuranceProvider: string | null createdAt: Date | null updatedAt: Date | null status: $Enums.ClaimStatus | null claimNumber: string | null } export type ClaimCountAggregateOutputType = { id: number patientId: number appointmentId: number userId: number staffId: number patientName: number memberId: number dateOfBirth: number remarks: number missingTeethStatus: number missingTeeth: number serviceDate: number insuranceProvider: number createdAt: number updatedAt: number status: number claimNumber: number _all: number } export type ClaimAvgAggregateInputType = { id?: true patientId?: true appointmentId?: true userId?: true staffId?: true } export type ClaimSumAggregateInputType = { id?: true patientId?: true appointmentId?: true userId?: true staffId?: true } export type ClaimMinAggregateInputType = { id?: true patientId?: true appointmentId?: true userId?: true staffId?: true patientName?: true memberId?: true dateOfBirth?: true remarks?: true missingTeethStatus?: true serviceDate?: true insuranceProvider?: true createdAt?: true updatedAt?: true status?: true claimNumber?: true } export type ClaimMaxAggregateInputType = { id?: true patientId?: true appointmentId?: true userId?: true staffId?: true patientName?: true memberId?: true dateOfBirth?: true remarks?: true missingTeethStatus?: true serviceDate?: true insuranceProvider?: true createdAt?: true updatedAt?: true status?: true claimNumber?: true } export type ClaimCountAggregateInputType = { id?: true patientId?: true appointmentId?: true userId?: true staffId?: true patientName?: true memberId?: true dateOfBirth?: true remarks?: true missingTeethStatus?: true missingTeeth?: true serviceDate?: true insuranceProvider?: true createdAt?: true updatedAt?: true status?: true claimNumber?: true _all?: true } export type ClaimAggregateArgs = { /** * Filter which Claim to aggregate. */ where?: ClaimWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Claims to fetch. */ orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ClaimWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Claims 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` Claims. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Claims **/ _count?: true | ClaimCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ClaimAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ClaimSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ClaimMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ClaimMaxAggregateInputType } export type GetClaimAggregateType = { [P in keyof T & keyof AggregateClaim]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ClaimGroupByArgs = { where?: ClaimWhereInput orderBy?: ClaimOrderByWithAggregationInput | ClaimOrderByWithAggregationInput[] by: ClaimScalarFieldEnum[] | ClaimScalarFieldEnum having?: ClaimScalarWhereWithAggregatesInput take?: number skip?: number _count?: ClaimCountAggregateInputType | true _avg?: ClaimAvgAggregateInputType _sum?: ClaimSumAggregateInputType _min?: ClaimMinAggregateInputType _max?: ClaimMaxAggregateInputType } export type ClaimGroupByOutputType = { id: number patientId: number appointmentId: number userId: number staffId: number patientName: string memberId: string dateOfBirth: Date remarks: string missingTeethStatus: $Enums.MissingTeethStatus missingTeeth: JsonValue | null serviceDate: Date insuranceProvider: string createdAt: Date updatedAt: Date status: $Enums.ClaimStatus claimNumber: string | null _count: ClaimCountAggregateOutputType | null _avg: ClaimAvgAggregateOutputType | null _sum: ClaimSumAggregateOutputType | null _min: ClaimMinAggregateOutputType | null _max: ClaimMaxAggregateOutputType | null } type GetClaimGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ClaimGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ClaimSelect = $Extensions.GetSelect<{ id?: boolean patientId?: boolean appointmentId?: boolean userId?: boolean staffId?: boolean patientName?: boolean memberId?: boolean dateOfBirth?: boolean remarks?: boolean missingTeethStatus?: boolean missingTeeth?: boolean serviceDate?: boolean insuranceProvider?: boolean createdAt?: boolean updatedAt?: boolean status?: boolean claimNumber?: boolean patient?: boolean | PatientDefaultArgs appointment?: boolean | AppointmentDefaultArgs user?: boolean | Claim$userArgs staff?: boolean | Claim$staffArgs serviceLines?: boolean | Claim$serviceLinesArgs claimFiles?: boolean | Claim$claimFilesArgs payment?: boolean | Claim$paymentArgs _count?: boolean | ClaimCountOutputTypeDefaultArgs }, ExtArgs["result"]["claim"]> export type ClaimSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean appointmentId?: boolean userId?: boolean staffId?: boolean patientName?: boolean memberId?: boolean dateOfBirth?: boolean remarks?: boolean missingTeethStatus?: boolean missingTeeth?: boolean serviceDate?: boolean insuranceProvider?: boolean createdAt?: boolean updatedAt?: boolean status?: boolean claimNumber?: boolean patient?: boolean | PatientDefaultArgs appointment?: boolean | AppointmentDefaultArgs user?: boolean | Claim$userArgs staff?: boolean | Claim$staffArgs }, ExtArgs["result"]["claim"]> export type ClaimSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean appointmentId?: boolean userId?: boolean staffId?: boolean patientName?: boolean memberId?: boolean dateOfBirth?: boolean remarks?: boolean missingTeethStatus?: boolean missingTeeth?: boolean serviceDate?: boolean insuranceProvider?: boolean createdAt?: boolean updatedAt?: boolean status?: boolean claimNumber?: boolean patient?: boolean | PatientDefaultArgs appointment?: boolean | AppointmentDefaultArgs user?: boolean | Claim$userArgs staff?: boolean | Claim$staffArgs }, ExtArgs["result"]["claim"]> export type ClaimSelectScalar = { id?: boolean patientId?: boolean appointmentId?: boolean userId?: boolean staffId?: boolean patientName?: boolean memberId?: boolean dateOfBirth?: boolean remarks?: boolean missingTeethStatus?: boolean missingTeeth?: boolean serviceDate?: boolean insuranceProvider?: boolean createdAt?: boolean updatedAt?: boolean status?: boolean claimNumber?: boolean } export type ClaimOmit = $Extensions.GetOmit<"id" | "patientId" | "appointmentId" | "userId" | "staffId" | "patientName" | "memberId" | "dateOfBirth" | "remarks" | "missingTeethStatus" | "missingTeeth" | "serviceDate" | "insuranceProvider" | "createdAt" | "updatedAt" | "status" | "claimNumber", ExtArgs["result"]["claim"]> export type ClaimInclude = { patient?: boolean | PatientDefaultArgs appointment?: boolean | AppointmentDefaultArgs user?: boolean | Claim$userArgs staff?: boolean | Claim$staffArgs serviceLines?: boolean | Claim$serviceLinesArgs claimFiles?: boolean | Claim$claimFilesArgs payment?: boolean | Claim$paymentArgs _count?: boolean | ClaimCountOutputTypeDefaultArgs } export type ClaimIncludeCreateManyAndReturn = { patient?: boolean | PatientDefaultArgs appointment?: boolean | AppointmentDefaultArgs user?: boolean | Claim$userArgs staff?: boolean | Claim$staffArgs } export type ClaimIncludeUpdateManyAndReturn = { patient?: boolean | PatientDefaultArgs appointment?: boolean | AppointmentDefaultArgs user?: boolean | Claim$userArgs staff?: boolean | Claim$staffArgs } export type $ClaimPayload = { name: "Claim" objects: { patient: Prisma.$PatientPayload appointment: Prisma.$AppointmentPayload user: Prisma.$UserPayload | null staff: Prisma.$StaffPayload | null serviceLines: Prisma.$ServiceLinePayload[] claimFiles: Prisma.$ClaimFilePayload[] payment: Prisma.$PaymentPayload | null } scalars: $Extensions.GetPayloadResult<{ id: number patientId: number appointmentId: number userId: number staffId: number patientName: string memberId: string dateOfBirth: Date remarks: string missingTeethStatus: $Enums.MissingTeethStatus missingTeeth: Prisma.JsonValue | null serviceDate: Date insuranceProvider: string createdAt: Date updatedAt: Date status: $Enums.ClaimStatus claimNumber: string | null }, ExtArgs["result"]["claim"]> composites: {} } type ClaimGetPayload = $Result.GetResult type ClaimCountArgs = Omit & { select?: ClaimCountAggregateInputType | true } export interface ClaimDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Claim'], meta: { name: 'Claim' } } /** * Find zero or one Claim that matches the filter. * @param {ClaimFindUniqueArgs} args - Arguments to find a Claim * @example * // Get one Claim * const claim = await prisma.claim.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Claim that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ClaimFindUniqueOrThrowArgs} args - Arguments to find a Claim * @example * // Get one Claim * const claim = await prisma.claim.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Claim 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 {ClaimFindFirstArgs} args - Arguments to find a Claim * @example * // Get one Claim * const claim = await prisma.claim.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Claim 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 {ClaimFindFirstOrThrowArgs} args - Arguments to find a Claim * @example * // Get one Claim * const claim = await prisma.claim.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Claims 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 {ClaimFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Claims * const claims = await prisma.claim.findMany() * * // Get first 10 Claims * const claims = await prisma.claim.findMany({ take: 10 }) * * // Only select the `id` * const claimWithIdOnly = await prisma.claim.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Claim. * @param {ClaimCreateArgs} args - Arguments to create a Claim. * @example * // Create one Claim * const Claim = await prisma.claim.create({ * data: { * // ... data to create a Claim * } * }) * */ create(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Claims. * @param {ClaimCreateManyArgs} args - Arguments to create many Claims. * @example * // Create many Claims * const claim = await prisma.claim.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Claims and returns the data saved in the database. * @param {ClaimCreateManyAndReturnArgs} args - Arguments to create many Claims. * @example * // Create many Claims * const claim = await prisma.claim.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Claims and only return the `id` * const claimWithIdOnly = await prisma.claim.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Claim. * @param {ClaimDeleteArgs} args - Arguments to delete one Claim. * @example * // Delete one Claim * const Claim = await prisma.claim.delete({ * where: { * // ... filter to delete one Claim * } * }) * */ delete(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Claim. * @param {ClaimUpdateArgs} args - Arguments to update one Claim. * @example * // Update one Claim * const claim = await prisma.claim.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Claims. * @param {ClaimDeleteManyArgs} args - Arguments to filter Claims to delete. * @example * // Delete a few Claims * const { count } = await prisma.claim.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Claims. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Claims * const claim = await prisma.claim.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Claims and returns the data updated in the database. * @param {ClaimUpdateManyAndReturnArgs} args - Arguments to update many Claims. * @example * // Update many Claims * const claim = await prisma.claim.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Claims and only return the `id` * const claimWithIdOnly = await prisma.claim.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Claim. * @param {ClaimUpsertArgs} args - Arguments to update or create a Claim. * @example * // Update or create a Claim * const claim = await prisma.claim.upsert({ * create: { * // ... data to create a Claim * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Claim we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Claims. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimCountArgs} args - Arguments to filter Claims to count. * @example * // Count the number of Claims * const count = await prisma.claim.count({ * where: { * // ... the filter for the Claims 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 Claim. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimAggregateArgs} 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 Claim. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimGroupByArgs} 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 ClaimGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ClaimGroupByArgs['orderBy'] } : { orderBy?: ClaimGroupByArgs['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 ? GetClaimGroupByPayload : Prisma.PrismaPromise /** * Fields of the Claim model */ readonly fields: ClaimFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Claim. * 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__ClaimClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" patient = {}>(args?: Subset>): Prisma__PatientClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> appointment = {}>(args?: Subset>): Prisma__AppointmentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> staff = {}>(args?: Subset>): Prisma__StaffClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> serviceLines = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> claimFiles = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> payment = {}>(args?: Subset>): Prisma__PaymentClient<$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 Claim model */ interface ClaimFieldRefs { readonly id: FieldRef<"Claim", 'Int'> readonly patientId: FieldRef<"Claim", 'Int'> readonly appointmentId: FieldRef<"Claim", 'Int'> readonly userId: FieldRef<"Claim", 'Int'> readonly staffId: FieldRef<"Claim", 'Int'> readonly patientName: FieldRef<"Claim", 'String'> readonly memberId: FieldRef<"Claim", 'String'> readonly dateOfBirth: FieldRef<"Claim", 'DateTime'> readonly remarks: FieldRef<"Claim", 'String'> readonly missingTeethStatus: FieldRef<"Claim", 'MissingTeethStatus'> readonly missingTeeth: FieldRef<"Claim", 'Json'> readonly serviceDate: FieldRef<"Claim", 'DateTime'> readonly insuranceProvider: FieldRef<"Claim", 'String'> readonly createdAt: FieldRef<"Claim", 'DateTime'> readonly updatedAt: FieldRef<"Claim", 'DateTime'> readonly status: FieldRef<"Claim", 'ClaimStatus'> readonly claimNumber: FieldRef<"Claim", 'String'> } // Custom InputTypes /** * Claim findUnique */ export type ClaimFindUniqueArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter, which Claim to fetch. */ where: ClaimWhereUniqueInput } /** * Claim findUniqueOrThrow */ export type ClaimFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter, which Claim to fetch. */ where: ClaimWhereUniqueInput } /** * Claim findFirst */ export type ClaimFindFirstArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter, which Claim to fetch. */ where?: ClaimWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Claims to fetch. */ orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Claims. */ cursor?: ClaimWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Claims 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` Claims. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Claims. */ distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Claim findFirstOrThrow */ export type ClaimFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter, which Claim to fetch. */ where?: ClaimWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Claims to fetch. */ orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Claims. */ cursor?: ClaimWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Claims 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` Claims. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Claims. */ distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Claim findMany */ export type ClaimFindManyArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter, which Claims to fetch. */ where?: ClaimWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Claims to fetch. */ orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Claims. */ cursor?: ClaimWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Claims 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` Claims. */ skip?: number distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Claim create */ export type ClaimCreateArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * The data needed to create a Claim. */ data: XOR } /** * Claim createMany */ export type ClaimCreateManyArgs = { /** * The data used to create many Claims. */ data: ClaimCreateManyInput | ClaimCreateManyInput[] skipDuplicates?: boolean } /** * Claim createManyAndReturn */ export type ClaimCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelectCreateManyAndReturn | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * The data used to create many Claims. */ data: ClaimCreateManyInput | ClaimCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ClaimIncludeCreateManyAndReturn | null } /** * Claim update */ export type ClaimUpdateArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * The data needed to update a Claim. */ data: XOR /** * Choose, which Claim to update. */ where: ClaimWhereUniqueInput } /** * Claim updateMany */ export type ClaimUpdateManyArgs = { /** * The data used to update Claims. */ data: XOR /** * Filter which Claims to update */ where?: ClaimWhereInput /** * Limit how many Claims to update. */ limit?: number } /** * Claim updateManyAndReturn */ export type ClaimUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelectUpdateManyAndReturn | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * The data used to update Claims. */ data: XOR /** * Filter which Claims to update */ where?: ClaimWhereInput /** * Limit how many Claims to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ClaimIncludeUpdateManyAndReturn | null } /** * Claim upsert */ export type ClaimUpsertArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * The filter to search for the Claim to update in case it exists. */ where: ClaimWhereUniqueInput /** * In case the Claim found by the `where` argument doesn't exist, create a new Claim with this data. */ create: XOR /** * In case the Claim was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Claim delete */ export type ClaimDeleteArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter which Claim to delete. */ where: ClaimWhereUniqueInput } /** * Claim deleteMany */ export type ClaimDeleteManyArgs = { /** * Filter which Claims to delete */ where?: ClaimWhereInput /** * Limit how many Claims to delete. */ limit?: number } /** * Claim.user */ export type Claim$userArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null where?: UserWhereInput } /** * Claim.staff */ export type Claim$staffArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null where?: StaffWhereInput } /** * Claim.serviceLines */ export type Claim$serviceLinesArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null where?: ServiceLineWhereInput orderBy?: ServiceLineOrderByWithRelationInput | ServiceLineOrderByWithRelationInput[] cursor?: ServiceLineWhereUniqueInput take?: number skip?: number distinct?: ServiceLineScalarFieldEnum | ServiceLineScalarFieldEnum[] } /** * Claim.claimFiles */ export type Claim$claimFilesArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null where?: ClaimFileWhereInput orderBy?: ClaimFileOrderByWithRelationInput | ClaimFileOrderByWithRelationInput[] cursor?: ClaimFileWhereUniqueInput take?: number skip?: number distinct?: ClaimFileScalarFieldEnum | ClaimFileScalarFieldEnum[] } /** * Claim.payment */ export type Claim$paymentArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null where?: PaymentWhereInput } /** * Claim without action */ export type ClaimDefaultArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null } /** * Model ServiceLine */ export type AggregateServiceLine = { _count: ServiceLineCountAggregateOutputType | null _avg: ServiceLineAvgAggregateOutputType | null _sum: ServiceLineSumAggregateOutputType | null _min: ServiceLineMinAggregateOutputType | null _max: ServiceLineMaxAggregateOutputType | null } export type ServiceLineAvgAggregateOutputType = { id: number | null claimId: number | null paymentId: number | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null } export type ServiceLineSumAggregateOutputType = { id: number | null claimId: number | null paymentId: number | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null } export type ServiceLineMinAggregateOutputType = { id: number | null claimId: number | null paymentId: number | null procedureCode: string | null procedureDate: Date | null quad: string | null arch: string | null toothNumber: string | null toothSurface: string | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null status: $Enums.ServiceLineStatus | null } export type ServiceLineMaxAggregateOutputType = { id: number | null claimId: number | null paymentId: number | null procedureCode: string | null procedureDate: Date | null quad: string | null arch: string | null toothNumber: string | null toothSurface: string | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null status: $Enums.ServiceLineStatus | null } export type ServiceLineCountAggregateOutputType = { id: number claimId: number paymentId: number procedureCode: number procedureDate: number quad: number arch: number toothNumber: number toothSurface: number totalBilled: number totalPaid: number totalAdjusted: number totalDue: number status: number _all: number } export type ServiceLineAvgAggregateInputType = { id?: true claimId?: true paymentId?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true } export type ServiceLineSumAggregateInputType = { id?: true claimId?: true paymentId?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true } export type ServiceLineMinAggregateInputType = { id?: true claimId?: true paymentId?: true procedureCode?: true procedureDate?: true quad?: true arch?: true toothNumber?: true toothSurface?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true status?: true } export type ServiceLineMaxAggregateInputType = { id?: true claimId?: true paymentId?: true procedureCode?: true procedureDate?: true quad?: true arch?: true toothNumber?: true toothSurface?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true status?: true } export type ServiceLineCountAggregateInputType = { id?: true claimId?: true paymentId?: true procedureCode?: true procedureDate?: true quad?: true arch?: true toothNumber?: true toothSurface?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true status?: true _all?: true } export type ServiceLineAggregateArgs = { /** * Filter which ServiceLine to aggregate. */ where?: ServiceLineWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLines to fetch. */ orderBy?: ServiceLineOrderByWithRelationInput | ServiceLineOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ServiceLineWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLines 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` ServiceLines. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ServiceLines **/ _count?: true | ServiceLineCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ServiceLineAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ServiceLineSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ServiceLineMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ServiceLineMaxAggregateInputType } export type GetServiceLineAggregateType = { [P in keyof T & keyof AggregateServiceLine]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ServiceLineGroupByArgs = { where?: ServiceLineWhereInput orderBy?: ServiceLineOrderByWithAggregationInput | ServiceLineOrderByWithAggregationInput[] by: ServiceLineScalarFieldEnum[] | ServiceLineScalarFieldEnum having?: ServiceLineScalarWhereWithAggregatesInput take?: number skip?: number _count?: ServiceLineCountAggregateInputType | true _avg?: ServiceLineAvgAggregateInputType _sum?: ServiceLineSumAggregateInputType _min?: ServiceLineMinAggregateInputType _max?: ServiceLineMaxAggregateInputType } export type ServiceLineGroupByOutputType = { id: number claimId: number | null paymentId: number | null procedureCode: string procedureDate: Date quad: string | null arch: string | null toothNumber: string | null toothSurface: string | null totalBilled: Decimal totalPaid: Decimal totalAdjusted: Decimal totalDue: Decimal status: $Enums.ServiceLineStatus _count: ServiceLineCountAggregateOutputType | null _avg: ServiceLineAvgAggregateOutputType | null _sum: ServiceLineSumAggregateOutputType | null _min: ServiceLineMinAggregateOutputType | null _max: ServiceLineMaxAggregateOutputType | null } type GetServiceLineGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ServiceLineGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ServiceLineSelect = $Extensions.GetSelect<{ id?: boolean claimId?: boolean paymentId?: boolean procedureCode?: boolean procedureDate?: boolean quad?: boolean arch?: boolean toothNumber?: boolean toothSurface?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean status?: boolean claim?: boolean | ServiceLine$claimArgs payment?: boolean | ServiceLine$paymentArgs serviceLineTransactions?: boolean | ServiceLine$serviceLineTransactionsArgs _count?: boolean | ServiceLineCountOutputTypeDefaultArgs }, ExtArgs["result"]["serviceLine"]> export type ServiceLineSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean claimId?: boolean paymentId?: boolean procedureCode?: boolean procedureDate?: boolean quad?: boolean arch?: boolean toothNumber?: boolean toothSurface?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean status?: boolean claim?: boolean | ServiceLine$claimArgs payment?: boolean | ServiceLine$paymentArgs }, ExtArgs["result"]["serviceLine"]> export type ServiceLineSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean claimId?: boolean paymentId?: boolean procedureCode?: boolean procedureDate?: boolean quad?: boolean arch?: boolean toothNumber?: boolean toothSurface?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean status?: boolean claim?: boolean | ServiceLine$claimArgs payment?: boolean | ServiceLine$paymentArgs }, ExtArgs["result"]["serviceLine"]> export type ServiceLineSelectScalar = { id?: boolean claimId?: boolean paymentId?: boolean procedureCode?: boolean procedureDate?: boolean quad?: boolean arch?: boolean toothNumber?: boolean toothSurface?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean status?: boolean } export type ServiceLineOmit = $Extensions.GetOmit<"id" | "claimId" | "paymentId" | "procedureCode" | "procedureDate" | "quad" | "arch" | "toothNumber" | "toothSurface" | "totalBilled" | "totalPaid" | "totalAdjusted" | "totalDue" | "status", ExtArgs["result"]["serviceLine"]> export type ServiceLineInclude = { claim?: boolean | ServiceLine$claimArgs payment?: boolean | ServiceLine$paymentArgs serviceLineTransactions?: boolean | ServiceLine$serviceLineTransactionsArgs _count?: boolean | ServiceLineCountOutputTypeDefaultArgs } export type ServiceLineIncludeCreateManyAndReturn = { claim?: boolean | ServiceLine$claimArgs payment?: boolean | ServiceLine$paymentArgs } export type ServiceLineIncludeUpdateManyAndReturn = { claim?: boolean | ServiceLine$claimArgs payment?: boolean | ServiceLine$paymentArgs } export type $ServiceLinePayload = { name: "ServiceLine" objects: { claim: Prisma.$ClaimPayload | null payment: Prisma.$PaymentPayload | null serviceLineTransactions: Prisma.$ServiceLineTransactionPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number claimId: number | null paymentId: number | null procedureCode: string procedureDate: Date quad: string | null arch: string | null toothNumber: string | null toothSurface: string | null totalBilled: Prisma.Decimal totalPaid: Prisma.Decimal totalAdjusted: Prisma.Decimal totalDue: Prisma.Decimal status: $Enums.ServiceLineStatus }, ExtArgs["result"]["serviceLine"]> composites: {} } type ServiceLineGetPayload = $Result.GetResult type ServiceLineCountArgs = Omit & { select?: ServiceLineCountAggregateInputType | true } export interface ServiceLineDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ServiceLine'], meta: { name: 'ServiceLine' } } /** * Find zero or one ServiceLine that matches the filter. * @param {ServiceLineFindUniqueArgs} args - Arguments to find a ServiceLine * @example * // Get one ServiceLine * const serviceLine = await prisma.serviceLine.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ServiceLine that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ServiceLineFindUniqueOrThrowArgs} args - Arguments to find a ServiceLine * @example * // Get one ServiceLine * const serviceLine = await prisma.serviceLine.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ServiceLine 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 {ServiceLineFindFirstArgs} args - Arguments to find a ServiceLine * @example * // Get one ServiceLine * const serviceLine = await prisma.serviceLine.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ServiceLine 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 {ServiceLineFindFirstOrThrowArgs} args - Arguments to find a ServiceLine * @example * // Get one ServiceLine * const serviceLine = await prisma.serviceLine.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ServiceLines 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 {ServiceLineFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ServiceLines * const serviceLines = await prisma.serviceLine.findMany() * * // Get first 10 ServiceLines * const serviceLines = await prisma.serviceLine.findMany({ take: 10 }) * * // Only select the `id` * const serviceLineWithIdOnly = await prisma.serviceLine.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a ServiceLine. * @param {ServiceLineCreateArgs} args - Arguments to create a ServiceLine. * @example * // Create one ServiceLine * const ServiceLine = await prisma.serviceLine.create({ * data: { * // ... data to create a ServiceLine * } * }) * */ create(args: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ServiceLines. * @param {ServiceLineCreateManyArgs} args - Arguments to create many ServiceLines. * @example * // Create many ServiceLines * const serviceLine = await prisma.serviceLine.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ServiceLines and returns the data saved in the database. * @param {ServiceLineCreateManyAndReturnArgs} args - Arguments to create many ServiceLines. * @example * // Create many ServiceLines * const serviceLine = await prisma.serviceLine.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ServiceLines and only return the `id` * const serviceLineWithIdOnly = await prisma.serviceLine.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a ServiceLine. * @param {ServiceLineDeleteArgs} args - Arguments to delete one ServiceLine. * @example * // Delete one ServiceLine * const ServiceLine = await prisma.serviceLine.delete({ * where: { * // ... filter to delete one ServiceLine * } * }) * */ delete(args: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ServiceLine. * @param {ServiceLineUpdateArgs} args - Arguments to update one ServiceLine. * @example * // Update one ServiceLine * const serviceLine = await prisma.serviceLine.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ServiceLines. * @param {ServiceLineDeleteManyArgs} args - Arguments to filter ServiceLines to delete. * @example * // Delete a few ServiceLines * const { count } = await prisma.serviceLine.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ServiceLines. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ServiceLines * const serviceLine = await prisma.serviceLine.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ServiceLines and returns the data updated in the database. * @param {ServiceLineUpdateManyAndReturnArgs} args - Arguments to update many ServiceLines. * @example * // Update many ServiceLines * const serviceLine = await prisma.serviceLine.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ServiceLines and only return the `id` * const serviceLineWithIdOnly = await prisma.serviceLine.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one ServiceLine. * @param {ServiceLineUpsertArgs} args - Arguments to update or create a ServiceLine. * @example * // Update or create a ServiceLine * const serviceLine = await prisma.serviceLine.upsert({ * create: { * // ... data to create a ServiceLine * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ServiceLine we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ServiceLines. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineCountArgs} args - Arguments to filter ServiceLines to count. * @example * // Count the number of ServiceLines * const count = await prisma.serviceLine.count({ * where: { * // ... the filter for the ServiceLines 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 ServiceLine. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineAggregateArgs} 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 ServiceLine. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineGroupByArgs} 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 ServiceLineGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ServiceLineGroupByArgs['orderBy'] } : { orderBy?: ServiceLineGroupByArgs['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 ? GetServiceLineGroupByPayload : Prisma.PrismaPromise /** * Fields of the ServiceLine model */ readonly fields: ServiceLineFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ServiceLine. * 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__ServiceLineClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" claim = {}>(args?: Subset>): Prisma__ClaimClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> payment = {}>(args?: Subset>): Prisma__PaymentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> serviceLineTransactions = {}>(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 ServiceLine model */ interface ServiceLineFieldRefs { readonly id: FieldRef<"ServiceLine", 'Int'> readonly claimId: FieldRef<"ServiceLine", 'Int'> readonly paymentId: FieldRef<"ServiceLine", 'Int'> readonly procedureCode: FieldRef<"ServiceLine", 'String'> readonly procedureDate: FieldRef<"ServiceLine", 'DateTime'> readonly quad: FieldRef<"ServiceLine", 'String'> readonly arch: FieldRef<"ServiceLine", 'String'> readonly toothNumber: FieldRef<"ServiceLine", 'String'> readonly toothSurface: FieldRef<"ServiceLine", 'String'> readonly totalBilled: FieldRef<"ServiceLine", 'Decimal'> readonly totalPaid: FieldRef<"ServiceLine", 'Decimal'> readonly totalAdjusted: FieldRef<"ServiceLine", 'Decimal'> readonly totalDue: FieldRef<"ServiceLine", 'Decimal'> readonly status: FieldRef<"ServiceLine", 'ServiceLineStatus'> } // Custom InputTypes /** * ServiceLine findUnique */ export type ServiceLineFindUniqueArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * Filter, which ServiceLine to fetch. */ where: ServiceLineWhereUniqueInput } /** * ServiceLine findUniqueOrThrow */ export type ServiceLineFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * Filter, which ServiceLine to fetch. */ where: ServiceLineWhereUniqueInput } /** * ServiceLine findFirst */ export type ServiceLineFindFirstArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * Filter, which ServiceLine to fetch. */ where?: ServiceLineWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLines to fetch. */ orderBy?: ServiceLineOrderByWithRelationInput | ServiceLineOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ServiceLines. */ cursor?: ServiceLineWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLines 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` ServiceLines. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ServiceLines. */ distinct?: ServiceLineScalarFieldEnum | ServiceLineScalarFieldEnum[] } /** * ServiceLine findFirstOrThrow */ export type ServiceLineFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * Filter, which ServiceLine to fetch. */ where?: ServiceLineWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLines to fetch. */ orderBy?: ServiceLineOrderByWithRelationInput | ServiceLineOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ServiceLines. */ cursor?: ServiceLineWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLines 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` ServiceLines. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ServiceLines. */ distinct?: ServiceLineScalarFieldEnum | ServiceLineScalarFieldEnum[] } /** * ServiceLine findMany */ export type ServiceLineFindManyArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * Filter, which ServiceLines to fetch. */ where?: ServiceLineWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLines to fetch. */ orderBy?: ServiceLineOrderByWithRelationInput | ServiceLineOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ServiceLines. */ cursor?: ServiceLineWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLines 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` ServiceLines. */ skip?: number distinct?: ServiceLineScalarFieldEnum | ServiceLineScalarFieldEnum[] } /** * ServiceLine create */ export type ServiceLineCreateArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * The data needed to create a ServiceLine. */ data: XOR } /** * ServiceLine createMany */ export type ServiceLineCreateManyArgs = { /** * The data used to create many ServiceLines. */ data: ServiceLineCreateManyInput | ServiceLineCreateManyInput[] skipDuplicates?: boolean } /** * ServiceLine createManyAndReturn */ export type ServiceLineCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelectCreateManyAndReturn | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * The data used to create many ServiceLines. */ data: ServiceLineCreateManyInput | ServiceLineCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ServiceLineIncludeCreateManyAndReturn | null } /** * ServiceLine update */ export type ServiceLineUpdateArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * The data needed to update a ServiceLine. */ data: XOR /** * Choose, which ServiceLine to update. */ where: ServiceLineWhereUniqueInput } /** * ServiceLine updateMany */ export type ServiceLineUpdateManyArgs = { /** * The data used to update ServiceLines. */ data: XOR /** * Filter which ServiceLines to update */ where?: ServiceLineWhereInput /** * Limit how many ServiceLines to update. */ limit?: number } /** * ServiceLine updateManyAndReturn */ export type ServiceLineUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelectUpdateManyAndReturn | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * The data used to update ServiceLines. */ data: XOR /** * Filter which ServiceLines to update */ where?: ServiceLineWhereInput /** * Limit how many ServiceLines to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ServiceLineIncludeUpdateManyAndReturn | null } /** * ServiceLine upsert */ export type ServiceLineUpsertArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * The filter to search for the ServiceLine to update in case it exists. */ where: ServiceLineWhereUniqueInput /** * In case the ServiceLine found by the `where` argument doesn't exist, create a new ServiceLine with this data. */ create: XOR /** * In case the ServiceLine was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ServiceLine delete */ export type ServiceLineDeleteArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * Filter which ServiceLine to delete. */ where: ServiceLineWhereUniqueInput } /** * ServiceLine deleteMany */ export type ServiceLineDeleteManyArgs = { /** * Filter which ServiceLines to delete */ where?: ServiceLineWhereInput /** * Limit how many ServiceLines to delete. */ limit?: number } /** * ServiceLine.claim */ export type ServiceLine$claimArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null where?: ClaimWhereInput } /** * ServiceLine.payment */ export type ServiceLine$paymentArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null where?: PaymentWhereInput } /** * ServiceLine.serviceLineTransactions */ export type ServiceLine$serviceLineTransactionsArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null where?: ServiceLineTransactionWhereInput orderBy?: ServiceLineTransactionOrderByWithRelationInput | ServiceLineTransactionOrderByWithRelationInput[] cursor?: ServiceLineTransactionWhereUniqueInput take?: number skip?: number distinct?: ServiceLineTransactionScalarFieldEnum | ServiceLineTransactionScalarFieldEnum[] } /** * ServiceLine without action */ export type ServiceLineDefaultArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null } /** * Model ClaimFile */ export type AggregateClaimFile = { _count: ClaimFileCountAggregateOutputType | null _avg: ClaimFileAvgAggregateOutputType | null _sum: ClaimFileSumAggregateOutputType | null _min: ClaimFileMinAggregateOutputType | null _max: ClaimFileMaxAggregateOutputType | null } export type ClaimFileAvgAggregateOutputType = { id: number | null claimId: number | null } export type ClaimFileSumAggregateOutputType = { id: number | null claimId: number | null } export type ClaimFileMinAggregateOutputType = { id: number | null claimId: number | null filename: string | null mimeType: string | null } export type ClaimFileMaxAggregateOutputType = { id: number | null claimId: number | null filename: string | null mimeType: string | null } export type ClaimFileCountAggregateOutputType = { id: number claimId: number filename: number mimeType: number _all: number } export type ClaimFileAvgAggregateInputType = { id?: true claimId?: true } export type ClaimFileSumAggregateInputType = { id?: true claimId?: true } export type ClaimFileMinAggregateInputType = { id?: true claimId?: true filename?: true mimeType?: true } export type ClaimFileMaxAggregateInputType = { id?: true claimId?: true filename?: true mimeType?: true } export type ClaimFileCountAggregateInputType = { id?: true claimId?: true filename?: true mimeType?: true _all?: true } export type ClaimFileAggregateArgs = { /** * Filter which ClaimFile to aggregate. */ where?: ClaimFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ClaimFiles to fetch. */ orderBy?: ClaimFileOrderByWithRelationInput | ClaimFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ClaimFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ClaimFiles 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` ClaimFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ClaimFiles **/ _count?: true | ClaimFileCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ClaimFileAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ClaimFileSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ClaimFileMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ClaimFileMaxAggregateInputType } export type GetClaimFileAggregateType = { [P in keyof T & keyof AggregateClaimFile]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ClaimFileGroupByArgs = { where?: ClaimFileWhereInput orderBy?: ClaimFileOrderByWithAggregationInput | ClaimFileOrderByWithAggregationInput[] by: ClaimFileScalarFieldEnum[] | ClaimFileScalarFieldEnum having?: ClaimFileScalarWhereWithAggregatesInput take?: number skip?: number _count?: ClaimFileCountAggregateInputType | true _avg?: ClaimFileAvgAggregateInputType _sum?: ClaimFileSumAggregateInputType _min?: ClaimFileMinAggregateInputType _max?: ClaimFileMaxAggregateInputType } export type ClaimFileGroupByOutputType = { id: number claimId: number filename: string mimeType: string _count: ClaimFileCountAggregateOutputType | null _avg: ClaimFileAvgAggregateOutputType | null _sum: ClaimFileSumAggregateOutputType | null _min: ClaimFileMinAggregateOutputType | null _max: ClaimFileMaxAggregateOutputType | null } type GetClaimFileGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ClaimFileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ClaimFileSelect = $Extensions.GetSelect<{ id?: boolean claimId?: boolean filename?: boolean mimeType?: boolean claim?: boolean | ClaimDefaultArgs }, ExtArgs["result"]["claimFile"]> export type ClaimFileSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean claimId?: boolean filename?: boolean mimeType?: boolean claim?: boolean | ClaimDefaultArgs }, ExtArgs["result"]["claimFile"]> export type ClaimFileSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean claimId?: boolean filename?: boolean mimeType?: boolean claim?: boolean | ClaimDefaultArgs }, ExtArgs["result"]["claimFile"]> export type ClaimFileSelectScalar = { id?: boolean claimId?: boolean filename?: boolean mimeType?: boolean } export type ClaimFileOmit = $Extensions.GetOmit<"id" | "claimId" | "filename" | "mimeType", ExtArgs["result"]["claimFile"]> export type ClaimFileInclude = { claim?: boolean | ClaimDefaultArgs } export type ClaimFileIncludeCreateManyAndReturn = { claim?: boolean | ClaimDefaultArgs } export type ClaimFileIncludeUpdateManyAndReturn = { claim?: boolean | ClaimDefaultArgs } export type $ClaimFilePayload = { name: "ClaimFile" objects: { claim: Prisma.$ClaimPayload } scalars: $Extensions.GetPayloadResult<{ id: number claimId: number filename: string mimeType: string }, ExtArgs["result"]["claimFile"]> composites: {} } type ClaimFileGetPayload = $Result.GetResult type ClaimFileCountArgs = Omit & { select?: ClaimFileCountAggregateInputType | true } export interface ClaimFileDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ClaimFile'], meta: { name: 'ClaimFile' } } /** * Find zero or one ClaimFile that matches the filter. * @param {ClaimFileFindUniqueArgs} args - Arguments to find a ClaimFile * @example * // Get one ClaimFile * const claimFile = await prisma.claimFile.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ClaimFile that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ClaimFileFindUniqueOrThrowArgs} args - Arguments to find a ClaimFile * @example * // Get one ClaimFile * const claimFile = await prisma.claimFile.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ClaimFile 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 {ClaimFileFindFirstArgs} args - Arguments to find a ClaimFile * @example * // Get one ClaimFile * const claimFile = await prisma.claimFile.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ClaimFile 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 {ClaimFileFindFirstOrThrowArgs} args - Arguments to find a ClaimFile * @example * // Get one ClaimFile * const claimFile = await prisma.claimFile.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ClaimFiles 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 {ClaimFileFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ClaimFiles * const claimFiles = await prisma.claimFile.findMany() * * // Get first 10 ClaimFiles * const claimFiles = await prisma.claimFile.findMany({ take: 10 }) * * // Only select the `id` * const claimFileWithIdOnly = await prisma.claimFile.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a ClaimFile. * @param {ClaimFileCreateArgs} args - Arguments to create a ClaimFile. * @example * // Create one ClaimFile * const ClaimFile = await prisma.claimFile.create({ * data: { * // ... data to create a ClaimFile * } * }) * */ create(args: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ClaimFiles. * @param {ClaimFileCreateManyArgs} args - Arguments to create many ClaimFiles. * @example * // Create many ClaimFiles * const claimFile = await prisma.claimFile.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ClaimFiles and returns the data saved in the database. * @param {ClaimFileCreateManyAndReturnArgs} args - Arguments to create many ClaimFiles. * @example * // Create many ClaimFiles * const claimFile = await prisma.claimFile.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ClaimFiles and only return the `id` * const claimFileWithIdOnly = await prisma.claimFile.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a ClaimFile. * @param {ClaimFileDeleteArgs} args - Arguments to delete one ClaimFile. * @example * // Delete one ClaimFile * const ClaimFile = await prisma.claimFile.delete({ * where: { * // ... filter to delete one ClaimFile * } * }) * */ delete(args: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ClaimFile. * @param {ClaimFileUpdateArgs} args - Arguments to update one ClaimFile. * @example * // Update one ClaimFile * const claimFile = await prisma.claimFile.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ClaimFiles. * @param {ClaimFileDeleteManyArgs} args - Arguments to filter ClaimFiles to delete. * @example * // Delete a few ClaimFiles * const { count } = await prisma.claimFile.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ClaimFiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimFileUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ClaimFiles * const claimFile = await prisma.claimFile.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ClaimFiles and returns the data updated in the database. * @param {ClaimFileUpdateManyAndReturnArgs} args - Arguments to update many ClaimFiles. * @example * // Update many ClaimFiles * const claimFile = await prisma.claimFile.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ClaimFiles and only return the `id` * const claimFileWithIdOnly = await prisma.claimFile.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one ClaimFile. * @param {ClaimFileUpsertArgs} args - Arguments to update or create a ClaimFile. * @example * // Update or create a ClaimFile * const claimFile = await prisma.claimFile.upsert({ * create: { * // ... data to create a ClaimFile * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ClaimFile we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ClaimFiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimFileCountArgs} args - Arguments to filter ClaimFiles to count. * @example * // Count the number of ClaimFiles * const count = await prisma.claimFile.count({ * where: { * // ... the filter for the ClaimFiles 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 ClaimFile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimFileAggregateArgs} 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 ClaimFile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimFileGroupByArgs} 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 ClaimFileGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ClaimFileGroupByArgs['orderBy'] } : { orderBy?: ClaimFileGroupByArgs['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 ? GetClaimFileGroupByPayload : Prisma.PrismaPromise /** * Fields of the ClaimFile model */ readonly fields: ClaimFileFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ClaimFile. * 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__ClaimFileClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" claim = {}>(args?: Subset>): Prisma__ClaimClient<$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 ClaimFile model */ interface ClaimFileFieldRefs { readonly id: FieldRef<"ClaimFile", 'Int'> readonly claimId: FieldRef<"ClaimFile", 'Int'> readonly filename: FieldRef<"ClaimFile", 'String'> readonly mimeType: FieldRef<"ClaimFile", 'String'> } // Custom InputTypes /** * ClaimFile findUnique */ export type ClaimFileFindUniqueArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * Filter, which ClaimFile to fetch. */ where: ClaimFileWhereUniqueInput } /** * ClaimFile findUniqueOrThrow */ export type ClaimFileFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * Filter, which ClaimFile to fetch. */ where: ClaimFileWhereUniqueInput } /** * ClaimFile findFirst */ export type ClaimFileFindFirstArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * Filter, which ClaimFile to fetch. */ where?: ClaimFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ClaimFiles to fetch. */ orderBy?: ClaimFileOrderByWithRelationInput | ClaimFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ClaimFiles. */ cursor?: ClaimFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ClaimFiles 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` ClaimFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ClaimFiles. */ distinct?: ClaimFileScalarFieldEnum | ClaimFileScalarFieldEnum[] } /** * ClaimFile findFirstOrThrow */ export type ClaimFileFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * Filter, which ClaimFile to fetch. */ where?: ClaimFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ClaimFiles to fetch. */ orderBy?: ClaimFileOrderByWithRelationInput | ClaimFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ClaimFiles. */ cursor?: ClaimFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ClaimFiles 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` ClaimFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ClaimFiles. */ distinct?: ClaimFileScalarFieldEnum | ClaimFileScalarFieldEnum[] } /** * ClaimFile findMany */ export type ClaimFileFindManyArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * Filter, which ClaimFiles to fetch. */ where?: ClaimFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ClaimFiles to fetch. */ orderBy?: ClaimFileOrderByWithRelationInput | ClaimFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ClaimFiles. */ cursor?: ClaimFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ClaimFiles 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` ClaimFiles. */ skip?: number distinct?: ClaimFileScalarFieldEnum | ClaimFileScalarFieldEnum[] } /** * ClaimFile create */ export type ClaimFileCreateArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * The data needed to create a ClaimFile. */ data: XOR } /** * ClaimFile createMany */ export type ClaimFileCreateManyArgs = { /** * The data used to create many ClaimFiles. */ data: ClaimFileCreateManyInput | ClaimFileCreateManyInput[] skipDuplicates?: boolean } /** * ClaimFile createManyAndReturn */ export type ClaimFileCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelectCreateManyAndReturn | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * The data used to create many ClaimFiles. */ data: ClaimFileCreateManyInput | ClaimFileCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ClaimFileIncludeCreateManyAndReturn | null } /** * ClaimFile update */ export type ClaimFileUpdateArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * The data needed to update a ClaimFile. */ data: XOR /** * Choose, which ClaimFile to update. */ where: ClaimFileWhereUniqueInput } /** * ClaimFile updateMany */ export type ClaimFileUpdateManyArgs = { /** * The data used to update ClaimFiles. */ data: XOR /** * Filter which ClaimFiles to update */ where?: ClaimFileWhereInput /** * Limit how many ClaimFiles to update. */ limit?: number } /** * ClaimFile updateManyAndReturn */ export type ClaimFileUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelectUpdateManyAndReturn | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * The data used to update ClaimFiles. */ data: XOR /** * Filter which ClaimFiles to update */ where?: ClaimFileWhereInput /** * Limit how many ClaimFiles to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ClaimFileIncludeUpdateManyAndReturn | null } /** * ClaimFile upsert */ export type ClaimFileUpsertArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * The filter to search for the ClaimFile to update in case it exists. */ where: ClaimFileWhereUniqueInput /** * In case the ClaimFile found by the `where` argument doesn't exist, create a new ClaimFile with this data. */ create: XOR /** * In case the ClaimFile was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ClaimFile delete */ export type ClaimFileDeleteArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * Filter which ClaimFile to delete. */ where: ClaimFileWhereUniqueInput } /** * ClaimFile deleteMany */ export type ClaimFileDeleteManyArgs = { /** * Filter which ClaimFiles to delete */ where?: ClaimFileWhereInput /** * Limit how many ClaimFiles to delete. */ limit?: number } /** * ClaimFile without action */ export type ClaimFileDefaultArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null } /** * Model InsuranceCredential */ export type AggregateInsuranceCredential = { _count: InsuranceCredentialCountAggregateOutputType | null _avg: InsuranceCredentialAvgAggregateOutputType | null _sum: InsuranceCredentialSumAggregateOutputType | null _min: InsuranceCredentialMinAggregateOutputType | null _max: InsuranceCredentialMaxAggregateOutputType | null } export type InsuranceCredentialAvgAggregateOutputType = { id: number | null userId: number | null } export type InsuranceCredentialSumAggregateOutputType = { id: number | null userId: number | null } export type InsuranceCredentialMinAggregateOutputType = { id: number | null userId: number | null siteKey: string | null username: string | null password: string | null } export type InsuranceCredentialMaxAggregateOutputType = { id: number | null userId: number | null siteKey: string | null username: string | null password: string | null } export type InsuranceCredentialCountAggregateOutputType = { id: number userId: number siteKey: number username: number password: number _all: number } export type InsuranceCredentialAvgAggregateInputType = { id?: true userId?: true } export type InsuranceCredentialSumAggregateInputType = { id?: true userId?: true } export type InsuranceCredentialMinAggregateInputType = { id?: true userId?: true siteKey?: true username?: true password?: true } export type InsuranceCredentialMaxAggregateInputType = { id?: true userId?: true siteKey?: true username?: true password?: true } export type InsuranceCredentialCountAggregateInputType = { id?: true userId?: true siteKey?: true username?: true password?: true _all?: true } export type InsuranceCredentialAggregateArgs = { /** * Filter which InsuranceCredential to aggregate. */ where?: InsuranceCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InsuranceCredentials to fetch. */ orderBy?: InsuranceCredentialOrderByWithRelationInput | InsuranceCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: InsuranceCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InsuranceCredentials 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` InsuranceCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned InsuranceCredentials **/ _count?: true | InsuranceCredentialCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: InsuranceCredentialAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: InsuranceCredentialSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: InsuranceCredentialMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: InsuranceCredentialMaxAggregateInputType } export type GetInsuranceCredentialAggregateType = { [P in keyof T & keyof AggregateInsuranceCredential]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type InsuranceCredentialGroupByArgs = { where?: InsuranceCredentialWhereInput orderBy?: InsuranceCredentialOrderByWithAggregationInput | InsuranceCredentialOrderByWithAggregationInput[] by: InsuranceCredentialScalarFieldEnum[] | InsuranceCredentialScalarFieldEnum having?: InsuranceCredentialScalarWhereWithAggregatesInput take?: number skip?: number _count?: InsuranceCredentialCountAggregateInputType | true _avg?: InsuranceCredentialAvgAggregateInputType _sum?: InsuranceCredentialSumAggregateInputType _min?: InsuranceCredentialMinAggregateInputType _max?: InsuranceCredentialMaxAggregateInputType } export type InsuranceCredentialGroupByOutputType = { id: number userId: number siteKey: string username: string password: string _count: InsuranceCredentialCountAggregateOutputType | null _avg: InsuranceCredentialAvgAggregateOutputType | null _sum: InsuranceCredentialSumAggregateOutputType | null _min: InsuranceCredentialMinAggregateOutputType | null _max: InsuranceCredentialMaxAggregateOutputType | null } type GetInsuranceCredentialGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof InsuranceCredentialGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type InsuranceCredentialSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean siteKey?: boolean username?: boolean password?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["insuranceCredential"]> export type InsuranceCredentialSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean siteKey?: boolean username?: boolean password?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["insuranceCredential"]> export type InsuranceCredentialSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean siteKey?: boolean username?: boolean password?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["insuranceCredential"]> export type InsuranceCredentialSelectScalar = { id?: boolean userId?: boolean siteKey?: boolean username?: boolean password?: boolean } export type InsuranceCredentialOmit = $Extensions.GetOmit<"id" | "userId" | "siteKey" | "username" | "password", ExtArgs["result"]["insuranceCredential"]> export type InsuranceCredentialInclude = { user?: boolean | UserDefaultArgs } export type InsuranceCredentialIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type InsuranceCredentialIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $InsuranceCredentialPayload = { name: "InsuranceCredential" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number siteKey: string username: string password: string }, ExtArgs["result"]["insuranceCredential"]> composites: {} } type InsuranceCredentialGetPayload = $Result.GetResult type InsuranceCredentialCountArgs = Omit & { select?: InsuranceCredentialCountAggregateInputType | true } export interface InsuranceCredentialDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['InsuranceCredential'], meta: { name: 'InsuranceCredential' } } /** * Find zero or one InsuranceCredential that matches the filter. * @param {InsuranceCredentialFindUniqueArgs} args - Arguments to find a InsuranceCredential * @example * // Get one InsuranceCredential * const insuranceCredential = await prisma.insuranceCredential.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one InsuranceCredential that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {InsuranceCredentialFindUniqueOrThrowArgs} args - Arguments to find a InsuranceCredential * @example * // Get one InsuranceCredential * const insuranceCredential = await prisma.insuranceCredential.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first InsuranceCredential 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 {InsuranceCredentialFindFirstArgs} args - Arguments to find a InsuranceCredential * @example * // Get one InsuranceCredential * const insuranceCredential = await prisma.insuranceCredential.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first InsuranceCredential 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 {InsuranceCredentialFindFirstOrThrowArgs} args - Arguments to find a InsuranceCredential * @example * // Get one InsuranceCredential * const insuranceCredential = await prisma.insuranceCredential.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more InsuranceCredentials 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 {InsuranceCredentialFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all InsuranceCredentials * const insuranceCredentials = await prisma.insuranceCredential.findMany() * * // Get first 10 InsuranceCredentials * const insuranceCredentials = await prisma.insuranceCredential.findMany({ take: 10 }) * * // Only select the `id` * const insuranceCredentialWithIdOnly = await prisma.insuranceCredential.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a InsuranceCredential. * @param {InsuranceCredentialCreateArgs} args - Arguments to create a InsuranceCredential. * @example * // Create one InsuranceCredential * const InsuranceCredential = await prisma.insuranceCredential.create({ * data: { * // ... data to create a InsuranceCredential * } * }) * */ create(args: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many InsuranceCredentials. * @param {InsuranceCredentialCreateManyArgs} args - Arguments to create many InsuranceCredentials. * @example * // Create many InsuranceCredentials * const insuranceCredential = await prisma.insuranceCredential.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many InsuranceCredentials and returns the data saved in the database. * @param {InsuranceCredentialCreateManyAndReturnArgs} args - Arguments to create many InsuranceCredentials. * @example * // Create many InsuranceCredentials * const insuranceCredential = await prisma.insuranceCredential.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many InsuranceCredentials and only return the `id` * const insuranceCredentialWithIdOnly = await prisma.insuranceCredential.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a InsuranceCredential. * @param {InsuranceCredentialDeleteArgs} args - Arguments to delete one InsuranceCredential. * @example * // Delete one InsuranceCredential * const InsuranceCredential = await prisma.insuranceCredential.delete({ * where: { * // ... filter to delete one InsuranceCredential * } * }) * */ delete(args: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one InsuranceCredential. * @param {InsuranceCredentialUpdateArgs} args - Arguments to update one InsuranceCredential. * @example * // Update one InsuranceCredential * const insuranceCredential = await prisma.insuranceCredential.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more InsuranceCredentials. * @param {InsuranceCredentialDeleteManyArgs} args - Arguments to filter InsuranceCredentials to delete. * @example * // Delete a few InsuranceCredentials * const { count } = await prisma.insuranceCredential.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more InsuranceCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InsuranceCredentialUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many InsuranceCredentials * const insuranceCredential = await prisma.insuranceCredential.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more InsuranceCredentials and returns the data updated in the database. * @param {InsuranceCredentialUpdateManyAndReturnArgs} args - Arguments to update many InsuranceCredentials. * @example * // Update many InsuranceCredentials * const insuranceCredential = await prisma.insuranceCredential.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more InsuranceCredentials and only return the `id` * const insuranceCredentialWithIdOnly = await prisma.insuranceCredential.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one InsuranceCredential. * @param {InsuranceCredentialUpsertArgs} args - Arguments to update or create a InsuranceCredential. * @example * // Update or create a InsuranceCredential * const insuranceCredential = await prisma.insuranceCredential.upsert({ * create: { * // ... data to create a InsuranceCredential * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the InsuranceCredential we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of InsuranceCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InsuranceCredentialCountArgs} args - Arguments to filter InsuranceCredentials to count. * @example * // Count the number of InsuranceCredentials * const count = await prisma.insuranceCredential.count({ * where: { * // ... the filter for the InsuranceCredentials 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 InsuranceCredential. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InsuranceCredentialAggregateArgs} 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 InsuranceCredential. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InsuranceCredentialGroupByArgs} 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 InsuranceCredentialGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: InsuranceCredentialGroupByArgs['orderBy'] } : { orderBy?: InsuranceCredentialGroupByArgs['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 ? GetInsuranceCredentialGroupByPayload : Prisma.PrismaPromise /** * Fields of the InsuranceCredential model */ readonly fields: InsuranceCredentialFieldRefs; } /** * The delegate class that acts as a "Promise-like" for InsuranceCredential. * 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__InsuranceCredentialClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the InsuranceCredential model */ interface InsuranceCredentialFieldRefs { readonly id: FieldRef<"InsuranceCredential", 'Int'> readonly userId: FieldRef<"InsuranceCredential", 'Int'> readonly siteKey: FieldRef<"InsuranceCredential", 'String'> readonly username: FieldRef<"InsuranceCredential", 'String'> readonly password: FieldRef<"InsuranceCredential", 'String'> } // Custom InputTypes /** * InsuranceCredential findUnique */ export type InsuranceCredentialFindUniqueArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * Filter, which InsuranceCredential to fetch. */ where: InsuranceCredentialWhereUniqueInput } /** * InsuranceCredential findUniqueOrThrow */ export type InsuranceCredentialFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * Filter, which InsuranceCredential to fetch. */ where: InsuranceCredentialWhereUniqueInput } /** * InsuranceCredential findFirst */ export type InsuranceCredentialFindFirstArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * Filter, which InsuranceCredential to fetch. */ where?: InsuranceCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InsuranceCredentials to fetch. */ orderBy?: InsuranceCredentialOrderByWithRelationInput | InsuranceCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for InsuranceCredentials. */ cursor?: InsuranceCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InsuranceCredentials 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` InsuranceCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of InsuranceCredentials. */ distinct?: InsuranceCredentialScalarFieldEnum | InsuranceCredentialScalarFieldEnum[] } /** * InsuranceCredential findFirstOrThrow */ export type InsuranceCredentialFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * Filter, which InsuranceCredential to fetch. */ where?: InsuranceCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InsuranceCredentials to fetch. */ orderBy?: InsuranceCredentialOrderByWithRelationInput | InsuranceCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for InsuranceCredentials. */ cursor?: InsuranceCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InsuranceCredentials 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` InsuranceCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of InsuranceCredentials. */ distinct?: InsuranceCredentialScalarFieldEnum | InsuranceCredentialScalarFieldEnum[] } /** * InsuranceCredential findMany */ export type InsuranceCredentialFindManyArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * Filter, which InsuranceCredentials to fetch. */ where?: InsuranceCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InsuranceCredentials to fetch. */ orderBy?: InsuranceCredentialOrderByWithRelationInput | InsuranceCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing InsuranceCredentials. */ cursor?: InsuranceCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InsuranceCredentials 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` InsuranceCredentials. */ skip?: number distinct?: InsuranceCredentialScalarFieldEnum | InsuranceCredentialScalarFieldEnum[] } /** * InsuranceCredential create */ export type InsuranceCredentialCreateArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * The data needed to create a InsuranceCredential. */ data: XOR } /** * InsuranceCredential createMany */ export type InsuranceCredentialCreateManyArgs = { /** * The data used to create many InsuranceCredentials. */ data: InsuranceCredentialCreateManyInput | InsuranceCredentialCreateManyInput[] skipDuplicates?: boolean } /** * InsuranceCredential createManyAndReturn */ export type InsuranceCredentialCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelectCreateManyAndReturn | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * The data used to create many InsuranceCredentials. */ data: InsuranceCredentialCreateManyInput | InsuranceCredentialCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialIncludeCreateManyAndReturn | null } /** * InsuranceCredential update */ export type InsuranceCredentialUpdateArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * The data needed to update a InsuranceCredential. */ data: XOR /** * Choose, which InsuranceCredential to update. */ where: InsuranceCredentialWhereUniqueInput } /** * InsuranceCredential updateMany */ export type InsuranceCredentialUpdateManyArgs = { /** * The data used to update InsuranceCredentials. */ data: XOR /** * Filter which InsuranceCredentials to update */ where?: InsuranceCredentialWhereInput /** * Limit how many InsuranceCredentials to update. */ limit?: number } /** * InsuranceCredential updateManyAndReturn */ export type InsuranceCredentialUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelectUpdateManyAndReturn | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * The data used to update InsuranceCredentials. */ data: XOR /** * Filter which InsuranceCredentials to update */ where?: InsuranceCredentialWhereInput /** * Limit how many InsuranceCredentials to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialIncludeUpdateManyAndReturn | null } /** * InsuranceCredential upsert */ export type InsuranceCredentialUpsertArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * The filter to search for the InsuranceCredential to update in case it exists. */ where: InsuranceCredentialWhereUniqueInput /** * In case the InsuranceCredential found by the `where` argument doesn't exist, create a new InsuranceCredential with this data. */ create: XOR /** * In case the InsuranceCredential was found with the provided `where` argument, update it with this data. */ update: XOR } /** * InsuranceCredential delete */ export type InsuranceCredentialDeleteArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * Filter which InsuranceCredential to delete. */ where: InsuranceCredentialWhereUniqueInput } /** * InsuranceCredential deleteMany */ export type InsuranceCredentialDeleteManyArgs = { /** * Filter which InsuranceCredentials to delete */ where?: InsuranceCredentialWhereInput /** * Limit how many InsuranceCredentials to delete. */ limit?: number } /** * InsuranceCredential without action */ export type InsuranceCredentialDefaultArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null } /** * Model PdfGroup */ export type AggregatePdfGroup = { _count: PdfGroupCountAggregateOutputType | null _avg: PdfGroupAvgAggregateOutputType | null _sum: PdfGroupSumAggregateOutputType | null _min: PdfGroupMinAggregateOutputType | null _max: PdfGroupMaxAggregateOutputType | null } export type PdfGroupAvgAggregateOutputType = { id: number | null patientId: number | null } export type PdfGroupSumAggregateOutputType = { id: number | null patientId: number | null } export type PdfGroupMinAggregateOutputType = { id: number | null title: string | null titleKey: $Enums.PdfTitleKey | null createdAt: Date | null patientId: number | null } export type PdfGroupMaxAggregateOutputType = { id: number | null title: string | null titleKey: $Enums.PdfTitleKey | null createdAt: Date | null patientId: number | null } export type PdfGroupCountAggregateOutputType = { id: number title: number titleKey: number createdAt: number patientId: number _all: number } export type PdfGroupAvgAggregateInputType = { id?: true patientId?: true } export type PdfGroupSumAggregateInputType = { id?: true patientId?: true } export type PdfGroupMinAggregateInputType = { id?: true title?: true titleKey?: true createdAt?: true patientId?: true } export type PdfGroupMaxAggregateInputType = { id?: true title?: true titleKey?: true createdAt?: true patientId?: true } export type PdfGroupCountAggregateInputType = { id?: true title?: true titleKey?: true createdAt?: true patientId?: true _all?: true } export type PdfGroupAggregateArgs = { /** * Filter which PdfGroup to aggregate. */ where?: PdfGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfGroups to fetch. */ orderBy?: PdfGroupOrderByWithRelationInput | PdfGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PdfGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfGroups 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` PdfGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PdfGroups **/ _count?: true | PdfGroupCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PdfGroupAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PdfGroupSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PdfGroupMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PdfGroupMaxAggregateInputType } export type GetPdfGroupAggregateType = { [P in keyof T & keyof AggregatePdfGroup]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PdfGroupGroupByArgs = { where?: PdfGroupWhereInput orderBy?: PdfGroupOrderByWithAggregationInput | PdfGroupOrderByWithAggregationInput[] by: PdfGroupScalarFieldEnum[] | PdfGroupScalarFieldEnum having?: PdfGroupScalarWhereWithAggregatesInput take?: number skip?: number _count?: PdfGroupCountAggregateInputType | true _avg?: PdfGroupAvgAggregateInputType _sum?: PdfGroupSumAggregateInputType _min?: PdfGroupMinAggregateInputType _max?: PdfGroupMaxAggregateInputType } export type PdfGroupGroupByOutputType = { id: number title: string titleKey: $Enums.PdfTitleKey createdAt: Date patientId: number _count: PdfGroupCountAggregateOutputType | null _avg: PdfGroupAvgAggregateOutputType | null _sum: PdfGroupSumAggregateOutputType | null _min: PdfGroupMinAggregateOutputType | null _max: PdfGroupMaxAggregateOutputType | null } type GetPdfGroupGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PdfGroupGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PdfGroupSelect = $Extensions.GetSelect<{ id?: boolean title?: boolean titleKey?: boolean createdAt?: boolean patientId?: boolean patient?: boolean | PatientDefaultArgs pdfs?: boolean | PdfGroup$pdfsArgs _count?: boolean | PdfGroupCountOutputTypeDefaultArgs }, ExtArgs["result"]["pdfGroup"]> export type PdfGroupSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean title?: boolean titleKey?: boolean createdAt?: boolean patientId?: boolean patient?: boolean | PatientDefaultArgs }, ExtArgs["result"]["pdfGroup"]> export type PdfGroupSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean title?: boolean titleKey?: boolean createdAt?: boolean patientId?: boolean patient?: boolean | PatientDefaultArgs }, ExtArgs["result"]["pdfGroup"]> export type PdfGroupSelectScalar = { id?: boolean title?: boolean titleKey?: boolean createdAt?: boolean patientId?: boolean } export type PdfGroupOmit = $Extensions.GetOmit<"id" | "title" | "titleKey" | "createdAt" | "patientId", ExtArgs["result"]["pdfGroup"]> export type PdfGroupInclude = { patient?: boolean | PatientDefaultArgs pdfs?: boolean | PdfGroup$pdfsArgs _count?: boolean | PdfGroupCountOutputTypeDefaultArgs } export type PdfGroupIncludeCreateManyAndReturn = { patient?: boolean | PatientDefaultArgs } export type PdfGroupIncludeUpdateManyAndReturn = { patient?: boolean | PatientDefaultArgs } export type $PdfGroupPayload = { name: "PdfGroup" objects: { patient: Prisma.$PatientPayload pdfs: Prisma.$PdfFilePayload[] } scalars: $Extensions.GetPayloadResult<{ id: number title: string titleKey: $Enums.PdfTitleKey createdAt: Date patientId: number }, ExtArgs["result"]["pdfGroup"]> composites: {} } type PdfGroupGetPayload = $Result.GetResult type PdfGroupCountArgs = Omit & { select?: PdfGroupCountAggregateInputType | true } export interface PdfGroupDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PdfGroup'], meta: { name: 'PdfGroup' } } /** * Find zero or one PdfGroup that matches the filter. * @param {PdfGroupFindUniqueArgs} args - Arguments to find a PdfGroup * @example * // Get one PdfGroup * const pdfGroup = await prisma.pdfGroup.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one PdfGroup that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PdfGroupFindUniqueOrThrowArgs} args - Arguments to find a PdfGroup * @example * // Get one PdfGroup * const pdfGroup = await prisma.pdfGroup.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first PdfGroup 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 {PdfGroupFindFirstArgs} args - Arguments to find a PdfGroup * @example * // Get one PdfGroup * const pdfGroup = await prisma.pdfGroup.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first PdfGroup 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 {PdfGroupFindFirstOrThrowArgs} args - Arguments to find a PdfGroup * @example * // Get one PdfGroup * const pdfGroup = await prisma.pdfGroup.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more PdfGroups 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 {PdfGroupFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PdfGroups * const pdfGroups = await prisma.pdfGroup.findMany() * * // Get first 10 PdfGroups * const pdfGroups = await prisma.pdfGroup.findMany({ take: 10 }) * * // Only select the `id` * const pdfGroupWithIdOnly = await prisma.pdfGroup.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a PdfGroup. * @param {PdfGroupCreateArgs} args - Arguments to create a PdfGroup. * @example * // Create one PdfGroup * const PdfGroup = await prisma.pdfGroup.create({ * data: { * // ... data to create a PdfGroup * } * }) * */ create(args: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many PdfGroups. * @param {PdfGroupCreateManyArgs} args - Arguments to create many PdfGroups. * @example * // Create many PdfGroups * const pdfGroup = await prisma.pdfGroup.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many PdfGroups and returns the data saved in the database. * @param {PdfGroupCreateManyAndReturnArgs} args - Arguments to create many PdfGroups. * @example * // Create many PdfGroups * const pdfGroup = await prisma.pdfGroup.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PdfGroups and only return the `id` * const pdfGroupWithIdOnly = await prisma.pdfGroup.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a PdfGroup. * @param {PdfGroupDeleteArgs} args - Arguments to delete one PdfGroup. * @example * // Delete one PdfGroup * const PdfGroup = await prisma.pdfGroup.delete({ * where: { * // ... filter to delete one PdfGroup * } * }) * */ delete(args: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one PdfGroup. * @param {PdfGroupUpdateArgs} args - Arguments to update one PdfGroup. * @example * // Update one PdfGroup * const pdfGroup = await prisma.pdfGroup.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more PdfGroups. * @param {PdfGroupDeleteManyArgs} args - Arguments to filter PdfGroups to delete. * @example * // Delete a few PdfGroups * const { count } = await prisma.pdfGroup.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PdfGroups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfGroupUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PdfGroups * const pdfGroup = await prisma.pdfGroup.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PdfGroups and returns the data updated in the database. * @param {PdfGroupUpdateManyAndReturnArgs} args - Arguments to update many PdfGroups. * @example * // Update many PdfGroups * const pdfGroup = await prisma.pdfGroup.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more PdfGroups and only return the `id` * const pdfGroupWithIdOnly = await prisma.pdfGroup.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one PdfGroup. * @param {PdfGroupUpsertArgs} args - Arguments to update or create a PdfGroup. * @example * // Update or create a PdfGroup * const pdfGroup = await prisma.pdfGroup.upsert({ * create: { * // ... data to create a PdfGroup * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PdfGroup we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of PdfGroups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfGroupCountArgs} args - Arguments to filter PdfGroups to count. * @example * // Count the number of PdfGroups * const count = await prisma.pdfGroup.count({ * where: { * // ... the filter for the PdfGroups 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 PdfGroup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfGroupAggregateArgs} 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 PdfGroup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfGroupGroupByArgs} 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 PdfGroupGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PdfGroupGroupByArgs['orderBy'] } : { orderBy?: PdfGroupGroupByArgs['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 ? GetPdfGroupGroupByPayload : Prisma.PrismaPromise /** * Fields of the PdfGroup model */ readonly fields: PdfGroupFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PdfGroup. * 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__PdfGroupClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" patient = {}>(args?: Subset>): Prisma__PatientClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> pdfs = {}>(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 PdfGroup model */ interface PdfGroupFieldRefs { readonly id: FieldRef<"PdfGroup", 'Int'> readonly title: FieldRef<"PdfGroup", 'String'> readonly titleKey: FieldRef<"PdfGroup", 'PdfTitleKey'> readonly createdAt: FieldRef<"PdfGroup", 'DateTime'> readonly patientId: FieldRef<"PdfGroup", 'Int'> } // Custom InputTypes /** * PdfGroup findUnique */ export type PdfGroupFindUniqueArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * Filter, which PdfGroup to fetch. */ where: PdfGroupWhereUniqueInput } /** * PdfGroup findUniqueOrThrow */ export type PdfGroupFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * Filter, which PdfGroup to fetch. */ where: PdfGroupWhereUniqueInput } /** * PdfGroup findFirst */ export type PdfGroupFindFirstArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * Filter, which PdfGroup to fetch. */ where?: PdfGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfGroups to fetch. */ orderBy?: PdfGroupOrderByWithRelationInput | PdfGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PdfGroups. */ cursor?: PdfGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfGroups 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` PdfGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PdfGroups. */ distinct?: PdfGroupScalarFieldEnum | PdfGroupScalarFieldEnum[] } /** * PdfGroup findFirstOrThrow */ export type PdfGroupFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * Filter, which PdfGroup to fetch. */ where?: PdfGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfGroups to fetch. */ orderBy?: PdfGroupOrderByWithRelationInput | PdfGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PdfGroups. */ cursor?: PdfGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfGroups 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` PdfGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PdfGroups. */ distinct?: PdfGroupScalarFieldEnum | PdfGroupScalarFieldEnum[] } /** * PdfGroup findMany */ export type PdfGroupFindManyArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * Filter, which PdfGroups to fetch. */ where?: PdfGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfGroups to fetch. */ orderBy?: PdfGroupOrderByWithRelationInput | PdfGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PdfGroups. */ cursor?: PdfGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfGroups 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` PdfGroups. */ skip?: number distinct?: PdfGroupScalarFieldEnum | PdfGroupScalarFieldEnum[] } /** * PdfGroup create */ export type PdfGroupCreateArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * The data needed to create a PdfGroup. */ data: XOR } /** * PdfGroup createMany */ export type PdfGroupCreateManyArgs = { /** * The data used to create many PdfGroups. */ data: PdfGroupCreateManyInput | PdfGroupCreateManyInput[] skipDuplicates?: boolean } /** * PdfGroup createManyAndReturn */ export type PdfGroupCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelectCreateManyAndReturn | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * The data used to create many PdfGroups. */ data: PdfGroupCreateManyInput | PdfGroupCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PdfGroupIncludeCreateManyAndReturn | null } /** * PdfGroup update */ export type PdfGroupUpdateArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * The data needed to update a PdfGroup. */ data: XOR /** * Choose, which PdfGroup to update. */ where: PdfGroupWhereUniqueInput } /** * PdfGroup updateMany */ export type PdfGroupUpdateManyArgs = { /** * The data used to update PdfGroups. */ data: XOR /** * Filter which PdfGroups to update */ where?: PdfGroupWhereInput /** * Limit how many PdfGroups to update. */ limit?: number } /** * PdfGroup updateManyAndReturn */ export type PdfGroupUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelectUpdateManyAndReturn | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * The data used to update PdfGroups. */ data: XOR /** * Filter which PdfGroups to update */ where?: PdfGroupWhereInput /** * Limit how many PdfGroups to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: PdfGroupIncludeUpdateManyAndReturn | null } /** * PdfGroup upsert */ export type PdfGroupUpsertArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * The filter to search for the PdfGroup to update in case it exists. */ where: PdfGroupWhereUniqueInput /** * In case the PdfGroup found by the `where` argument doesn't exist, create a new PdfGroup with this data. */ create: XOR /** * In case the PdfGroup was found with the provided `where` argument, update it with this data. */ update: XOR } /** * PdfGroup delete */ export type PdfGroupDeleteArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * Filter which PdfGroup to delete. */ where: PdfGroupWhereUniqueInput } /** * PdfGroup deleteMany */ export type PdfGroupDeleteManyArgs = { /** * Filter which PdfGroups to delete */ where?: PdfGroupWhereInput /** * Limit how many PdfGroups to delete. */ limit?: number } /** * PdfGroup.pdfs */ export type PdfGroup$pdfsArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null where?: PdfFileWhereInput orderBy?: PdfFileOrderByWithRelationInput | PdfFileOrderByWithRelationInput[] cursor?: PdfFileWhereUniqueInput take?: number skip?: number distinct?: PdfFileScalarFieldEnum | PdfFileScalarFieldEnum[] } /** * PdfGroup without action */ export type PdfGroupDefaultArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null } /** * Model PdfFile */ export type AggregatePdfFile = { _count: PdfFileCountAggregateOutputType | null _avg: PdfFileAvgAggregateOutputType | null _sum: PdfFileSumAggregateOutputType | null _min: PdfFileMinAggregateOutputType | null _max: PdfFileMaxAggregateOutputType | null } export type PdfFileAvgAggregateOutputType = { id: number | null groupId: number | null } export type PdfFileSumAggregateOutputType = { id: number | null groupId: number | null } export type PdfFileMinAggregateOutputType = { id: number | null filename: string | null pdfData: Bytes | null uploadedAt: Date | null groupId: number | null } export type PdfFileMaxAggregateOutputType = { id: number | null filename: string | null pdfData: Bytes | null uploadedAt: Date | null groupId: number | null } export type PdfFileCountAggregateOutputType = { id: number filename: number pdfData: number uploadedAt: number groupId: number _all: number } export type PdfFileAvgAggregateInputType = { id?: true groupId?: true } export type PdfFileSumAggregateInputType = { id?: true groupId?: true } export type PdfFileMinAggregateInputType = { id?: true filename?: true pdfData?: true uploadedAt?: true groupId?: true } export type PdfFileMaxAggregateInputType = { id?: true filename?: true pdfData?: true uploadedAt?: true groupId?: true } export type PdfFileCountAggregateInputType = { id?: true filename?: true pdfData?: true uploadedAt?: true groupId?: true _all?: true } export type PdfFileAggregateArgs = { /** * Filter which PdfFile to aggregate. */ where?: PdfFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfFiles to fetch. */ orderBy?: PdfFileOrderByWithRelationInput | PdfFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PdfFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfFiles 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` PdfFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PdfFiles **/ _count?: true | PdfFileCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PdfFileAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PdfFileSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PdfFileMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PdfFileMaxAggregateInputType } export type GetPdfFileAggregateType = { [P in keyof T & keyof AggregatePdfFile]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PdfFileGroupByArgs = { where?: PdfFileWhereInput orderBy?: PdfFileOrderByWithAggregationInput | PdfFileOrderByWithAggregationInput[] by: PdfFileScalarFieldEnum[] | PdfFileScalarFieldEnum having?: PdfFileScalarWhereWithAggregatesInput take?: number skip?: number _count?: PdfFileCountAggregateInputType | true _avg?: PdfFileAvgAggregateInputType _sum?: PdfFileSumAggregateInputType _min?: PdfFileMinAggregateInputType _max?: PdfFileMaxAggregateInputType } export type PdfFileGroupByOutputType = { id: number filename: string pdfData: Bytes uploadedAt: Date groupId: number _count: PdfFileCountAggregateOutputType | null _avg: PdfFileAvgAggregateOutputType | null _sum: PdfFileSumAggregateOutputType | null _min: PdfFileMinAggregateOutputType | null _max: PdfFileMaxAggregateOutputType | null } type GetPdfFileGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PdfFileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PdfFileSelect = $Extensions.GetSelect<{ id?: boolean filename?: boolean pdfData?: boolean uploadedAt?: boolean groupId?: boolean group?: boolean | PdfGroupDefaultArgs }, ExtArgs["result"]["pdfFile"]> export type PdfFileSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean filename?: boolean pdfData?: boolean uploadedAt?: boolean groupId?: boolean group?: boolean | PdfGroupDefaultArgs }, ExtArgs["result"]["pdfFile"]> export type PdfFileSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean filename?: boolean pdfData?: boolean uploadedAt?: boolean groupId?: boolean group?: boolean | PdfGroupDefaultArgs }, ExtArgs["result"]["pdfFile"]> export type PdfFileSelectScalar = { id?: boolean filename?: boolean pdfData?: boolean uploadedAt?: boolean groupId?: boolean } export type PdfFileOmit = $Extensions.GetOmit<"id" | "filename" | "pdfData" | "uploadedAt" | "groupId", ExtArgs["result"]["pdfFile"]> export type PdfFileInclude = { group?: boolean | PdfGroupDefaultArgs } export type PdfFileIncludeCreateManyAndReturn = { group?: boolean | PdfGroupDefaultArgs } export type PdfFileIncludeUpdateManyAndReturn = { group?: boolean | PdfGroupDefaultArgs } export type $PdfFilePayload = { name: "PdfFile" objects: { group: Prisma.$PdfGroupPayload } scalars: $Extensions.GetPayloadResult<{ id: number filename: string pdfData: Prisma.Bytes uploadedAt: Date groupId: number }, ExtArgs["result"]["pdfFile"]> composites: {} } type PdfFileGetPayload = $Result.GetResult type PdfFileCountArgs = Omit & { select?: PdfFileCountAggregateInputType | true } export interface PdfFileDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PdfFile'], meta: { name: 'PdfFile' } } /** * Find zero or one PdfFile that matches the filter. * @param {PdfFileFindUniqueArgs} args - Arguments to find a PdfFile * @example * // Get one PdfFile * const pdfFile = await prisma.pdfFile.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one PdfFile that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PdfFileFindUniqueOrThrowArgs} args - Arguments to find a PdfFile * @example * // Get one PdfFile * const pdfFile = await prisma.pdfFile.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first PdfFile 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 {PdfFileFindFirstArgs} args - Arguments to find a PdfFile * @example * // Get one PdfFile * const pdfFile = await prisma.pdfFile.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first PdfFile 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 {PdfFileFindFirstOrThrowArgs} args - Arguments to find a PdfFile * @example * // Get one PdfFile * const pdfFile = await prisma.pdfFile.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more PdfFiles 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 {PdfFileFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PdfFiles * const pdfFiles = await prisma.pdfFile.findMany() * * // Get first 10 PdfFiles * const pdfFiles = await prisma.pdfFile.findMany({ take: 10 }) * * // Only select the `id` * const pdfFileWithIdOnly = await prisma.pdfFile.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a PdfFile. * @param {PdfFileCreateArgs} args - Arguments to create a PdfFile. * @example * // Create one PdfFile * const PdfFile = await prisma.pdfFile.create({ * data: { * // ... data to create a PdfFile * } * }) * */ create(args: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many PdfFiles. * @param {PdfFileCreateManyArgs} args - Arguments to create many PdfFiles. * @example * // Create many PdfFiles * const pdfFile = await prisma.pdfFile.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many PdfFiles and returns the data saved in the database. * @param {PdfFileCreateManyAndReturnArgs} args - Arguments to create many PdfFiles. * @example * // Create many PdfFiles * const pdfFile = await prisma.pdfFile.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PdfFiles and only return the `id` * const pdfFileWithIdOnly = await prisma.pdfFile.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a PdfFile. * @param {PdfFileDeleteArgs} args - Arguments to delete one PdfFile. * @example * // Delete one PdfFile * const PdfFile = await prisma.pdfFile.delete({ * where: { * // ... filter to delete one PdfFile * } * }) * */ delete(args: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one PdfFile. * @param {PdfFileUpdateArgs} args - Arguments to update one PdfFile. * @example * // Update one PdfFile * const pdfFile = await prisma.pdfFile.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more PdfFiles. * @param {PdfFileDeleteManyArgs} args - Arguments to filter PdfFiles to delete. * @example * // Delete a few PdfFiles * const { count } = await prisma.pdfFile.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PdfFiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfFileUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PdfFiles * const pdfFile = await prisma.pdfFile.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PdfFiles and returns the data updated in the database. * @param {PdfFileUpdateManyAndReturnArgs} args - Arguments to update many PdfFiles. * @example * // Update many PdfFiles * const pdfFile = await prisma.pdfFile.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more PdfFiles and only return the `id` * const pdfFileWithIdOnly = await prisma.pdfFile.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one PdfFile. * @param {PdfFileUpsertArgs} args - Arguments to update or create a PdfFile. * @example * // Update or create a PdfFile * const pdfFile = await prisma.pdfFile.upsert({ * create: { * // ... data to create a PdfFile * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PdfFile we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of PdfFiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfFileCountArgs} args - Arguments to filter PdfFiles to count. * @example * // Count the number of PdfFiles * const count = await prisma.pdfFile.count({ * where: { * // ... the filter for the PdfFiles 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 PdfFile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfFileAggregateArgs} 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 PdfFile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfFileGroupByArgs} 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 PdfFileGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PdfFileGroupByArgs['orderBy'] } : { orderBy?: PdfFileGroupByArgs['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 ? GetPdfFileGroupByPayload : Prisma.PrismaPromise /** * Fields of the PdfFile model */ readonly fields: PdfFileFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PdfFile. * 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__PdfFileClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" group = {}>(args?: Subset>): Prisma__PdfGroupClient<$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 PdfFile model */ interface PdfFileFieldRefs { readonly id: FieldRef<"PdfFile", 'Int'> readonly filename: FieldRef<"PdfFile", 'String'> readonly pdfData: FieldRef<"PdfFile", 'Bytes'> readonly uploadedAt: FieldRef<"PdfFile", 'DateTime'> readonly groupId: FieldRef<"PdfFile", 'Int'> } // Custom InputTypes /** * PdfFile findUnique */ export type PdfFileFindUniqueArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * Filter, which PdfFile to fetch. */ where: PdfFileWhereUniqueInput } /** * PdfFile findUniqueOrThrow */ export type PdfFileFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * Filter, which PdfFile to fetch. */ where: PdfFileWhereUniqueInput } /** * PdfFile findFirst */ export type PdfFileFindFirstArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * Filter, which PdfFile to fetch. */ where?: PdfFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfFiles to fetch. */ orderBy?: PdfFileOrderByWithRelationInput | PdfFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PdfFiles. */ cursor?: PdfFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfFiles 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` PdfFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PdfFiles. */ distinct?: PdfFileScalarFieldEnum | PdfFileScalarFieldEnum[] } /** * PdfFile findFirstOrThrow */ export type PdfFileFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * Filter, which PdfFile to fetch. */ where?: PdfFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfFiles to fetch. */ orderBy?: PdfFileOrderByWithRelationInput | PdfFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PdfFiles. */ cursor?: PdfFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfFiles 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` PdfFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PdfFiles. */ distinct?: PdfFileScalarFieldEnum | PdfFileScalarFieldEnum[] } /** * PdfFile findMany */ export type PdfFileFindManyArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * Filter, which PdfFiles to fetch. */ where?: PdfFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfFiles to fetch. */ orderBy?: PdfFileOrderByWithRelationInput | PdfFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PdfFiles. */ cursor?: PdfFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfFiles 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` PdfFiles. */ skip?: number distinct?: PdfFileScalarFieldEnum | PdfFileScalarFieldEnum[] } /** * PdfFile create */ export type PdfFileCreateArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * The data needed to create a PdfFile. */ data: XOR } /** * PdfFile createMany */ export type PdfFileCreateManyArgs = { /** * The data used to create many PdfFiles. */ data: PdfFileCreateManyInput | PdfFileCreateManyInput[] skipDuplicates?: boolean } /** * PdfFile createManyAndReturn */ export type PdfFileCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelectCreateManyAndReturn | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * The data used to create many PdfFiles. */ data: PdfFileCreateManyInput | PdfFileCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PdfFileIncludeCreateManyAndReturn | null } /** * PdfFile update */ export type PdfFileUpdateArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * The data needed to update a PdfFile. */ data: XOR /** * Choose, which PdfFile to update. */ where: PdfFileWhereUniqueInput } /** * PdfFile updateMany */ export type PdfFileUpdateManyArgs = { /** * The data used to update PdfFiles. */ data: XOR /** * Filter which PdfFiles to update */ where?: PdfFileWhereInput /** * Limit how many PdfFiles to update. */ limit?: number } /** * PdfFile updateManyAndReturn */ export type PdfFileUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelectUpdateManyAndReturn | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * The data used to update PdfFiles. */ data: XOR /** * Filter which PdfFiles to update */ where?: PdfFileWhereInput /** * Limit how many PdfFiles to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: PdfFileIncludeUpdateManyAndReturn | null } /** * PdfFile upsert */ export type PdfFileUpsertArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * The filter to search for the PdfFile to update in case it exists. */ where: PdfFileWhereUniqueInput /** * In case the PdfFile found by the `where` argument doesn't exist, create a new PdfFile with this data. */ create: XOR /** * In case the PdfFile was found with the provided `where` argument, update it with this data. */ update: XOR } /** * PdfFile delete */ export type PdfFileDeleteArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * Filter which PdfFile to delete. */ where: PdfFileWhereUniqueInput } /** * PdfFile deleteMany */ export type PdfFileDeleteManyArgs = { /** * Filter which PdfFiles to delete */ where?: PdfFileWhereInput /** * Limit how many PdfFiles to delete. */ limit?: number } /** * PdfFile without action */ export type PdfFileDefaultArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null } /** * Model Payment */ export type AggregatePayment = { _count: PaymentCountAggregateOutputType | null _avg: PaymentAvgAggregateOutputType | null _sum: PaymentSumAggregateOutputType | null _min: PaymentMinAggregateOutputType | null _max: PaymentMaxAggregateOutputType | null } export type PaymentAvgAggregateOutputType = { id: number | null claimId: number | null patientId: number | null userId: number | null updatedById: number | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null } export type PaymentSumAggregateOutputType = { id: number | null claimId: number | null patientId: number | null userId: number | null updatedById: number | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null } export type PaymentMinAggregateOutputType = { id: number | null claimId: number | null patientId: number | null userId: number | null updatedById: number | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null status: $Enums.PaymentStatus | null notes: string | null icn: string | null createdAt: Date | null updatedAt: Date | null } export type PaymentMaxAggregateOutputType = { id: number | null claimId: number | null patientId: number | null userId: number | null updatedById: number | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null status: $Enums.PaymentStatus | null notes: string | null icn: string | null createdAt: Date | null updatedAt: Date | null } export type PaymentCountAggregateOutputType = { id: number claimId: number patientId: number userId: number updatedById: number totalBilled: number totalPaid: number totalAdjusted: number totalDue: number status: number notes: number icn: number createdAt: number updatedAt: number _all: number } export type PaymentAvgAggregateInputType = { id?: true claimId?: true patientId?: true userId?: true updatedById?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true } export type PaymentSumAggregateInputType = { id?: true claimId?: true patientId?: true userId?: true updatedById?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true } export type PaymentMinAggregateInputType = { id?: true claimId?: true patientId?: true userId?: true updatedById?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true status?: true notes?: true icn?: true createdAt?: true updatedAt?: true } export type PaymentMaxAggregateInputType = { id?: true claimId?: true patientId?: true userId?: true updatedById?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true status?: true notes?: true icn?: true createdAt?: true updatedAt?: true } export type PaymentCountAggregateInputType = { id?: true claimId?: true patientId?: true userId?: true updatedById?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true status?: true notes?: true icn?: true createdAt?: true updatedAt?: true _all?: true } export type PaymentAggregateArgs = { /** * Filter which Payment to aggregate. */ where?: PaymentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Payments to fetch. */ orderBy?: PaymentOrderByWithRelationInput | PaymentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PaymentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Payments 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` Payments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Payments **/ _count?: true | PaymentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PaymentAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PaymentSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PaymentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PaymentMaxAggregateInputType } export type GetPaymentAggregateType = { [P in keyof T & keyof AggregatePayment]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PaymentGroupByArgs = { where?: PaymentWhereInput orderBy?: PaymentOrderByWithAggregationInput | PaymentOrderByWithAggregationInput[] by: PaymentScalarFieldEnum[] | PaymentScalarFieldEnum having?: PaymentScalarWhereWithAggregatesInput take?: number skip?: number _count?: PaymentCountAggregateInputType | true _avg?: PaymentAvgAggregateInputType _sum?: PaymentSumAggregateInputType _min?: PaymentMinAggregateInputType _max?: PaymentMaxAggregateInputType } export type PaymentGroupByOutputType = { id: number claimId: number | null patientId: number userId: number updatedById: number | null totalBilled: Decimal totalPaid: Decimal totalAdjusted: Decimal totalDue: Decimal status: $Enums.PaymentStatus notes: string | null icn: string | null createdAt: Date updatedAt: Date _count: PaymentCountAggregateOutputType | null _avg: PaymentAvgAggregateOutputType | null _sum: PaymentSumAggregateOutputType | null _min: PaymentMinAggregateOutputType | null _max: PaymentMaxAggregateOutputType | null } type GetPaymentGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PaymentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PaymentSelect = $Extensions.GetSelect<{ id?: boolean claimId?: boolean patientId?: boolean userId?: boolean updatedById?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean status?: boolean notes?: boolean icn?: boolean createdAt?: boolean updatedAt?: boolean claim?: boolean | Payment$claimArgs patient?: boolean | PatientDefaultArgs updatedBy?: boolean | Payment$updatedByArgs serviceLineTransactions?: boolean | Payment$serviceLineTransactionsArgs serviceLines?: boolean | Payment$serviceLinesArgs _count?: boolean | PaymentCountOutputTypeDefaultArgs }, ExtArgs["result"]["payment"]> export type PaymentSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean claimId?: boolean patientId?: boolean userId?: boolean updatedById?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean status?: boolean notes?: boolean icn?: boolean createdAt?: boolean updatedAt?: boolean claim?: boolean | Payment$claimArgs patient?: boolean | PatientDefaultArgs updatedBy?: boolean | Payment$updatedByArgs }, ExtArgs["result"]["payment"]> export type PaymentSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean claimId?: boolean patientId?: boolean userId?: boolean updatedById?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean status?: boolean notes?: boolean icn?: boolean createdAt?: boolean updatedAt?: boolean claim?: boolean | Payment$claimArgs patient?: boolean | PatientDefaultArgs updatedBy?: boolean | Payment$updatedByArgs }, ExtArgs["result"]["payment"]> export type PaymentSelectScalar = { id?: boolean claimId?: boolean patientId?: boolean userId?: boolean updatedById?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean status?: boolean notes?: boolean icn?: boolean createdAt?: boolean updatedAt?: boolean } export type PaymentOmit = $Extensions.GetOmit<"id" | "claimId" | "patientId" | "userId" | "updatedById" | "totalBilled" | "totalPaid" | "totalAdjusted" | "totalDue" | "status" | "notes" | "icn" | "createdAt" | "updatedAt", ExtArgs["result"]["payment"]> export type PaymentInclude = { claim?: boolean | Payment$claimArgs patient?: boolean | PatientDefaultArgs updatedBy?: boolean | Payment$updatedByArgs serviceLineTransactions?: boolean | Payment$serviceLineTransactionsArgs serviceLines?: boolean | Payment$serviceLinesArgs _count?: boolean | PaymentCountOutputTypeDefaultArgs } export type PaymentIncludeCreateManyAndReturn = { claim?: boolean | Payment$claimArgs patient?: boolean | PatientDefaultArgs updatedBy?: boolean | Payment$updatedByArgs } export type PaymentIncludeUpdateManyAndReturn = { claim?: boolean | Payment$claimArgs patient?: boolean | PatientDefaultArgs updatedBy?: boolean | Payment$updatedByArgs } export type $PaymentPayload = { name: "Payment" objects: { claim: Prisma.$ClaimPayload | null patient: Prisma.$PatientPayload updatedBy: Prisma.$UserPayload | null serviceLineTransactions: Prisma.$ServiceLineTransactionPayload[] serviceLines: Prisma.$ServiceLinePayload[] } scalars: $Extensions.GetPayloadResult<{ id: number claimId: number | null patientId: number userId: number updatedById: number | null totalBilled: Prisma.Decimal totalPaid: Prisma.Decimal totalAdjusted: Prisma.Decimal totalDue: Prisma.Decimal status: $Enums.PaymentStatus notes: string | null icn: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["payment"]> composites: {} } type PaymentGetPayload = $Result.GetResult type PaymentCountArgs = Omit & { select?: PaymentCountAggregateInputType | true } export interface PaymentDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Payment'], meta: { name: 'Payment' } } /** * Find zero or one Payment that matches the filter. * @param {PaymentFindUniqueArgs} args - Arguments to find a Payment * @example * // Get one Payment * const payment = await prisma.payment.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Payment that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PaymentFindUniqueOrThrowArgs} args - Arguments to find a Payment * @example * // Get one Payment * const payment = await prisma.payment.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Payment 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 {PaymentFindFirstArgs} args - Arguments to find a Payment * @example * // Get one Payment * const payment = await prisma.payment.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Payment 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 {PaymentFindFirstOrThrowArgs} args - Arguments to find a Payment * @example * // Get one Payment * const payment = await prisma.payment.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Payments 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 {PaymentFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Payments * const payments = await prisma.payment.findMany() * * // Get first 10 Payments * const payments = await prisma.payment.findMany({ take: 10 }) * * // Only select the `id` * const paymentWithIdOnly = await prisma.payment.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Payment. * @param {PaymentCreateArgs} args - Arguments to create a Payment. * @example * // Create one Payment * const Payment = await prisma.payment.create({ * data: { * // ... data to create a Payment * } * }) * */ create(args: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Payments. * @param {PaymentCreateManyArgs} args - Arguments to create many Payments. * @example * // Create many Payments * const payment = await prisma.payment.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Payments and returns the data saved in the database. * @param {PaymentCreateManyAndReturnArgs} args - Arguments to create many Payments. * @example * // Create many Payments * const payment = await prisma.payment.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Payments and only return the `id` * const paymentWithIdOnly = await prisma.payment.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Payment. * @param {PaymentDeleteArgs} args - Arguments to delete one Payment. * @example * // Delete one Payment * const Payment = await prisma.payment.delete({ * where: { * // ... filter to delete one Payment * } * }) * */ delete(args: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Payment. * @param {PaymentUpdateArgs} args - Arguments to update one Payment. * @example * // Update one Payment * const payment = await prisma.payment.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Payments. * @param {PaymentDeleteManyArgs} args - Arguments to filter Payments to delete. * @example * // Delete a few Payments * const { count } = await prisma.payment.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Payments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PaymentUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Payments * const payment = await prisma.payment.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Payments and returns the data updated in the database. * @param {PaymentUpdateManyAndReturnArgs} args - Arguments to update many Payments. * @example * // Update many Payments * const payment = await prisma.payment.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Payments and only return the `id` * const paymentWithIdOnly = await prisma.payment.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Payment. * @param {PaymentUpsertArgs} args - Arguments to update or create a Payment. * @example * // Update or create a Payment * const payment = await prisma.payment.upsert({ * create: { * // ... data to create a Payment * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Payment we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Payments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PaymentCountArgs} args - Arguments to filter Payments to count. * @example * // Count the number of Payments * const count = await prisma.payment.count({ * where: { * // ... the filter for the Payments 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 Payment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PaymentAggregateArgs} 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 Payment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PaymentGroupByArgs} 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 PaymentGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PaymentGroupByArgs['orderBy'] } : { orderBy?: PaymentGroupByArgs['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 ? GetPaymentGroupByPayload : Prisma.PrismaPromise /** * Fields of the Payment model */ readonly fields: PaymentFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Payment. * 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__PaymentClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" claim = {}>(args?: Subset>): Prisma__ClaimClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> patient = {}>(args?: Subset>): Prisma__PatientClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> updatedBy = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> serviceLineTransactions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> serviceLines = {}>(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 Payment model */ interface PaymentFieldRefs { readonly id: FieldRef<"Payment", 'Int'> readonly claimId: FieldRef<"Payment", 'Int'> readonly patientId: FieldRef<"Payment", 'Int'> readonly userId: FieldRef<"Payment", 'Int'> readonly updatedById: FieldRef<"Payment", 'Int'> readonly totalBilled: FieldRef<"Payment", 'Decimal'> readonly totalPaid: FieldRef<"Payment", 'Decimal'> readonly totalAdjusted: FieldRef<"Payment", 'Decimal'> readonly totalDue: FieldRef<"Payment", 'Decimal'> readonly status: FieldRef<"Payment", 'PaymentStatus'> readonly notes: FieldRef<"Payment", 'String'> readonly icn: FieldRef<"Payment", 'String'> readonly createdAt: FieldRef<"Payment", 'DateTime'> readonly updatedAt: FieldRef<"Payment", 'DateTime'> } // Custom InputTypes /** * Payment findUnique */ export type PaymentFindUniqueArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * Filter, which Payment to fetch. */ where: PaymentWhereUniqueInput } /** * Payment findUniqueOrThrow */ export type PaymentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * Filter, which Payment to fetch. */ where: PaymentWhereUniqueInput } /** * Payment findFirst */ export type PaymentFindFirstArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * Filter, which Payment to fetch. */ where?: PaymentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Payments to fetch. */ orderBy?: PaymentOrderByWithRelationInput | PaymentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Payments. */ cursor?: PaymentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Payments 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` Payments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Payments. */ distinct?: PaymentScalarFieldEnum | PaymentScalarFieldEnum[] } /** * Payment findFirstOrThrow */ export type PaymentFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * Filter, which Payment to fetch. */ where?: PaymentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Payments to fetch. */ orderBy?: PaymentOrderByWithRelationInput | PaymentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Payments. */ cursor?: PaymentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Payments 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` Payments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Payments. */ distinct?: PaymentScalarFieldEnum | PaymentScalarFieldEnum[] } /** * Payment findMany */ export type PaymentFindManyArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * Filter, which Payments to fetch. */ where?: PaymentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Payments to fetch. */ orderBy?: PaymentOrderByWithRelationInput | PaymentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Payments. */ cursor?: PaymentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Payments 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` Payments. */ skip?: number distinct?: PaymentScalarFieldEnum | PaymentScalarFieldEnum[] } /** * Payment create */ export type PaymentCreateArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * The data needed to create a Payment. */ data: XOR } /** * Payment createMany */ export type PaymentCreateManyArgs = { /** * The data used to create many Payments. */ data: PaymentCreateManyInput | PaymentCreateManyInput[] skipDuplicates?: boolean } /** * Payment createManyAndReturn */ export type PaymentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelectCreateManyAndReturn | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * The data used to create many Payments. */ data: PaymentCreateManyInput | PaymentCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PaymentIncludeCreateManyAndReturn | null } /** * Payment update */ export type PaymentUpdateArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * The data needed to update a Payment. */ data: XOR /** * Choose, which Payment to update. */ where: PaymentWhereUniqueInput } /** * Payment updateMany */ export type PaymentUpdateManyArgs = { /** * The data used to update Payments. */ data: XOR /** * Filter which Payments to update */ where?: PaymentWhereInput /** * Limit how many Payments to update. */ limit?: number } /** * Payment updateManyAndReturn */ export type PaymentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelectUpdateManyAndReturn | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * The data used to update Payments. */ data: XOR /** * Filter which Payments to update */ where?: PaymentWhereInput /** * Limit how many Payments to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: PaymentIncludeUpdateManyAndReturn | null } /** * Payment upsert */ export type PaymentUpsertArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * The filter to search for the Payment to update in case it exists. */ where: PaymentWhereUniqueInput /** * In case the Payment found by the `where` argument doesn't exist, create a new Payment with this data. */ create: XOR /** * In case the Payment was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Payment delete */ export type PaymentDeleteArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * Filter which Payment to delete. */ where: PaymentWhereUniqueInput } /** * Payment deleteMany */ export type PaymentDeleteManyArgs = { /** * Filter which Payments to delete */ where?: PaymentWhereInput /** * Limit how many Payments to delete. */ limit?: number } /** * Payment.claim */ export type Payment$claimArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null where?: ClaimWhereInput } /** * Payment.updatedBy */ export type Payment$updatedByArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null where?: UserWhereInput } /** * Payment.serviceLineTransactions */ export type Payment$serviceLineTransactionsArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null where?: ServiceLineTransactionWhereInput orderBy?: ServiceLineTransactionOrderByWithRelationInput | ServiceLineTransactionOrderByWithRelationInput[] cursor?: ServiceLineTransactionWhereUniqueInput take?: number skip?: number distinct?: ServiceLineTransactionScalarFieldEnum | ServiceLineTransactionScalarFieldEnum[] } /** * Payment.serviceLines */ export type Payment$serviceLinesArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null where?: ServiceLineWhereInput orderBy?: ServiceLineOrderByWithRelationInput | ServiceLineOrderByWithRelationInput[] cursor?: ServiceLineWhereUniqueInput take?: number skip?: number distinct?: ServiceLineScalarFieldEnum | ServiceLineScalarFieldEnum[] } /** * Payment without action */ export type PaymentDefaultArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null } /** * Model ServiceLineTransaction */ export type AggregateServiceLineTransaction = { _count: ServiceLineTransactionCountAggregateOutputType | null _avg: ServiceLineTransactionAvgAggregateOutputType | null _sum: ServiceLineTransactionSumAggregateOutputType | null _min: ServiceLineTransactionMinAggregateOutputType | null _max: ServiceLineTransactionMaxAggregateOutputType | null } export type ServiceLineTransactionAvgAggregateOutputType = { id: number | null paymentId: number | null serviceLineId: number | null paidAmount: Decimal | null adjustedAmount: Decimal | null } export type ServiceLineTransactionSumAggregateOutputType = { id: number | null paymentId: number | null serviceLineId: number | null paidAmount: Decimal | null adjustedAmount: Decimal | null } export type ServiceLineTransactionMinAggregateOutputType = { id: number | null paymentId: number | null serviceLineId: number | null transactionId: string | null paidAmount: Decimal | null adjustedAmount: Decimal | null method: $Enums.PaymentMethod | null receivedDate: Date | null payerName: string | null notes: string | null createdAt: Date | null } export type ServiceLineTransactionMaxAggregateOutputType = { id: number | null paymentId: number | null serviceLineId: number | null transactionId: string | null paidAmount: Decimal | null adjustedAmount: Decimal | null method: $Enums.PaymentMethod | null receivedDate: Date | null payerName: string | null notes: string | null createdAt: Date | null } export type ServiceLineTransactionCountAggregateOutputType = { id: number paymentId: number serviceLineId: number transactionId: number paidAmount: number adjustedAmount: number method: number receivedDate: number payerName: number notes: number createdAt: number _all: number } export type ServiceLineTransactionAvgAggregateInputType = { id?: true paymentId?: true serviceLineId?: true paidAmount?: true adjustedAmount?: true } export type ServiceLineTransactionSumAggregateInputType = { id?: true paymentId?: true serviceLineId?: true paidAmount?: true adjustedAmount?: true } export type ServiceLineTransactionMinAggregateInputType = { id?: true paymentId?: true serviceLineId?: true transactionId?: true paidAmount?: true adjustedAmount?: true method?: true receivedDate?: true payerName?: true notes?: true createdAt?: true } export type ServiceLineTransactionMaxAggregateInputType = { id?: true paymentId?: true serviceLineId?: true transactionId?: true paidAmount?: true adjustedAmount?: true method?: true receivedDate?: true payerName?: true notes?: true createdAt?: true } export type ServiceLineTransactionCountAggregateInputType = { id?: true paymentId?: true serviceLineId?: true transactionId?: true paidAmount?: true adjustedAmount?: true method?: true receivedDate?: true payerName?: true notes?: true createdAt?: true _all?: true } export type ServiceLineTransactionAggregateArgs = { /** * Filter which ServiceLineTransaction to aggregate. */ where?: ServiceLineTransactionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLineTransactions to fetch. */ orderBy?: ServiceLineTransactionOrderByWithRelationInput | ServiceLineTransactionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ServiceLineTransactionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLineTransactions 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` ServiceLineTransactions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ServiceLineTransactions **/ _count?: true | ServiceLineTransactionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ServiceLineTransactionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ServiceLineTransactionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ServiceLineTransactionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ServiceLineTransactionMaxAggregateInputType } export type GetServiceLineTransactionAggregateType = { [P in keyof T & keyof AggregateServiceLineTransaction]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ServiceLineTransactionGroupByArgs = { where?: ServiceLineTransactionWhereInput orderBy?: ServiceLineTransactionOrderByWithAggregationInput | ServiceLineTransactionOrderByWithAggregationInput[] by: ServiceLineTransactionScalarFieldEnum[] | ServiceLineTransactionScalarFieldEnum having?: ServiceLineTransactionScalarWhereWithAggregatesInput take?: number skip?: number _count?: ServiceLineTransactionCountAggregateInputType | true _avg?: ServiceLineTransactionAvgAggregateInputType _sum?: ServiceLineTransactionSumAggregateInputType _min?: ServiceLineTransactionMinAggregateInputType _max?: ServiceLineTransactionMaxAggregateInputType } export type ServiceLineTransactionGroupByOutputType = { id: number paymentId: number serviceLineId: number transactionId: string | null paidAmount: Decimal adjustedAmount: Decimal method: $Enums.PaymentMethod receivedDate: Date payerName: string | null notes: string | null createdAt: Date _count: ServiceLineTransactionCountAggregateOutputType | null _avg: ServiceLineTransactionAvgAggregateOutputType | null _sum: ServiceLineTransactionSumAggregateOutputType | null _min: ServiceLineTransactionMinAggregateOutputType | null _max: ServiceLineTransactionMaxAggregateOutputType | null } type GetServiceLineTransactionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ServiceLineTransactionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ServiceLineTransactionSelect = $Extensions.GetSelect<{ id?: boolean paymentId?: boolean serviceLineId?: boolean transactionId?: boolean paidAmount?: boolean adjustedAmount?: boolean method?: boolean receivedDate?: boolean payerName?: boolean notes?: boolean createdAt?: boolean payment?: boolean | PaymentDefaultArgs serviceLine?: boolean | ServiceLineDefaultArgs }, ExtArgs["result"]["serviceLineTransaction"]> export type ServiceLineTransactionSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean paymentId?: boolean serviceLineId?: boolean transactionId?: boolean paidAmount?: boolean adjustedAmount?: boolean method?: boolean receivedDate?: boolean payerName?: boolean notes?: boolean createdAt?: boolean payment?: boolean | PaymentDefaultArgs serviceLine?: boolean | ServiceLineDefaultArgs }, ExtArgs["result"]["serviceLineTransaction"]> export type ServiceLineTransactionSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean paymentId?: boolean serviceLineId?: boolean transactionId?: boolean paidAmount?: boolean adjustedAmount?: boolean method?: boolean receivedDate?: boolean payerName?: boolean notes?: boolean createdAt?: boolean payment?: boolean | PaymentDefaultArgs serviceLine?: boolean | ServiceLineDefaultArgs }, ExtArgs["result"]["serviceLineTransaction"]> export type ServiceLineTransactionSelectScalar = { id?: boolean paymentId?: boolean serviceLineId?: boolean transactionId?: boolean paidAmount?: boolean adjustedAmount?: boolean method?: boolean receivedDate?: boolean payerName?: boolean notes?: boolean createdAt?: boolean } export type ServiceLineTransactionOmit = $Extensions.GetOmit<"id" | "paymentId" | "serviceLineId" | "transactionId" | "paidAmount" | "adjustedAmount" | "method" | "receivedDate" | "payerName" | "notes" | "createdAt", ExtArgs["result"]["serviceLineTransaction"]> export type ServiceLineTransactionInclude = { payment?: boolean | PaymentDefaultArgs serviceLine?: boolean | ServiceLineDefaultArgs } export type ServiceLineTransactionIncludeCreateManyAndReturn = { payment?: boolean | PaymentDefaultArgs serviceLine?: boolean | ServiceLineDefaultArgs } export type ServiceLineTransactionIncludeUpdateManyAndReturn = { payment?: boolean | PaymentDefaultArgs serviceLine?: boolean | ServiceLineDefaultArgs } export type $ServiceLineTransactionPayload = { name: "ServiceLineTransaction" objects: { payment: Prisma.$PaymentPayload serviceLine: Prisma.$ServiceLinePayload } scalars: $Extensions.GetPayloadResult<{ id: number paymentId: number serviceLineId: number transactionId: string | null paidAmount: Prisma.Decimal adjustedAmount: Prisma.Decimal method: $Enums.PaymentMethod receivedDate: Date payerName: string | null notes: string | null createdAt: Date }, ExtArgs["result"]["serviceLineTransaction"]> composites: {} } type ServiceLineTransactionGetPayload = $Result.GetResult type ServiceLineTransactionCountArgs = Omit & { select?: ServiceLineTransactionCountAggregateInputType | true } export interface ServiceLineTransactionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ServiceLineTransaction'], meta: { name: 'ServiceLineTransaction' } } /** * Find zero or one ServiceLineTransaction that matches the filter. * @param {ServiceLineTransactionFindUniqueArgs} args - Arguments to find a ServiceLineTransaction * @example * // Get one ServiceLineTransaction * const serviceLineTransaction = await prisma.serviceLineTransaction.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ServiceLineTransaction that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ServiceLineTransactionFindUniqueOrThrowArgs} args - Arguments to find a ServiceLineTransaction * @example * // Get one ServiceLineTransaction * const serviceLineTransaction = await prisma.serviceLineTransaction.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ServiceLineTransaction 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 {ServiceLineTransactionFindFirstArgs} args - Arguments to find a ServiceLineTransaction * @example * // Get one ServiceLineTransaction * const serviceLineTransaction = await prisma.serviceLineTransaction.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ServiceLineTransaction 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 {ServiceLineTransactionFindFirstOrThrowArgs} args - Arguments to find a ServiceLineTransaction * @example * // Get one ServiceLineTransaction * const serviceLineTransaction = await prisma.serviceLineTransaction.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ServiceLineTransactions 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 {ServiceLineTransactionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ServiceLineTransactions * const serviceLineTransactions = await prisma.serviceLineTransaction.findMany() * * // Get first 10 ServiceLineTransactions * const serviceLineTransactions = await prisma.serviceLineTransaction.findMany({ take: 10 }) * * // Only select the `id` * const serviceLineTransactionWithIdOnly = await prisma.serviceLineTransaction.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a ServiceLineTransaction. * @param {ServiceLineTransactionCreateArgs} args - Arguments to create a ServiceLineTransaction. * @example * // Create one ServiceLineTransaction * const ServiceLineTransaction = await prisma.serviceLineTransaction.create({ * data: { * // ... data to create a ServiceLineTransaction * } * }) * */ create(args: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ServiceLineTransactions. * @param {ServiceLineTransactionCreateManyArgs} args - Arguments to create many ServiceLineTransactions. * @example * // Create many ServiceLineTransactions * const serviceLineTransaction = await prisma.serviceLineTransaction.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ServiceLineTransactions and returns the data saved in the database. * @param {ServiceLineTransactionCreateManyAndReturnArgs} args - Arguments to create many ServiceLineTransactions. * @example * // Create many ServiceLineTransactions * const serviceLineTransaction = await prisma.serviceLineTransaction.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ServiceLineTransactions and only return the `id` * const serviceLineTransactionWithIdOnly = await prisma.serviceLineTransaction.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a ServiceLineTransaction. * @param {ServiceLineTransactionDeleteArgs} args - Arguments to delete one ServiceLineTransaction. * @example * // Delete one ServiceLineTransaction * const ServiceLineTransaction = await prisma.serviceLineTransaction.delete({ * where: { * // ... filter to delete one ServiceLineTransaction * } * }) * */ delete(args: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ServiceLineTransaction. * @param {ServiceLineTransactionUpdateArgs} args - Arguments to update one ServiceLineTransaction. * @example * // Update one ServiceLineTransaction * const serviceLineTransaction = await prisma.serviceLineTransaction.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ServiceLineTransactions. * @param {ServiceLineTransactionDeleteManyArgs} args - Arguments to filter ServiceLineTransactions to delete. * @example * // Delete a few ServiceLineTransactions * const { count } = await prisma.serviceLineTransaction.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ServiceLineTransactions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineTransactionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ServiceLineTransactions * const serviceLineTransaction = await prisma.serviceLineTransaction.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ServiceLineTransactions and returns the data updated in the database. * @param {ServiceLineTransactionUpdateManyAndReturnArgs} args - Arguments to update many ServiceLineTransactions. * @example * // Update many ServiceLineTransactions * const serviceLineTransaction = await prisma.serviceLineTransaction.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ServiceLineTransactions and only return the `id` * const serviceLineTransactionWithIdOnly = await prisma.serviceLineTransaction.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one ServiceLineTransaction. * @param {ServiceLineTransactionUpsertArgs} args - Arguments to update or create a ServiceLineTransaction. * @example * // Update or create a ServiceLineTransaction * const serviceLineTransaction = await prisma.serviceLineTransaction.upsert({ * create: { * // ... data to create a ServiceLineTransaction * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ServiceLineTransaction we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ServiceLineTransactions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineTransactionCountArgs} args - Arguments to filter ServiceLineTransactions to count. * @example * // Count the number of ServiceLineTransactions * const count = await prisma.serviceLineTransaction.count({ * where: { * // ... the filter for the ServiceLineTransactions 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 ServiceLineTransaction. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineTransactionAggregateArgs} 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 ServiceLineTransaction. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineTransactionGroupByArgs} 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 ServiceLineTransactionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ServiceLineTransactionGroupByArgs['orderBy'] } : { orderBy?: ServiceLineTransactionGroupByArgs['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 ? GetServiceLineTransactionGroupByPayload : Prisma.PrismaPromise /** * Fields of the ServiceLineTransaction model */ readonly fields: ServiceLineTransactionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ServiceLineTransaction. * 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__ServiceLineTransactionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" payment = {}>(args?: Subset>): Prisma__PaymentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> serviceLine = {}>(args?: Subset>): Prisma__ServiceLineClient<$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 ServiceLineTransaction model */ interface ServiceLineTransactionFieldRefs { readonly id: FieldRef<"ServiceLineTransaction", 'Int'> readonly paymentId: FieldRef<"ServiceLineTransaction", 'Int'> readonly serviceLineId: FieldRef<"ServiceLineTransaction", 'Int'> readonly transactionId: FieldRef<"ServiceLineTransaction", 'String'> readonly paidAmount: FieldRef<"ServiceLineTransaction", 'Decimal'> readonly adjustedAmount: FieldRef<"ServiceLineTransaction", 'Decimal'> readonly method: FieldRef<"ServiceLineTransaction", 'PaymentMethod'> readonly receivedDate: FieldRef<"ServiceLineTransaction", 'DateTime'> readonly payerName: FieldRef<"ServiceLineTransaction", 'String'> readonly notes: FieldRef<"ServiceLineTransaction", 'String'> readonly createdAt: FieldRef<"ServiceLineTransaction", 'DateTime'> } // Custom InputTypes /** * ServiceLineTransaction findUnique */ export type ServiceLineTransactionFindUniqueArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * Filter, which ServiceLineTransaction to fetch. */ where: ServiceLineTransactionWhereUniqueInput } /** * ServiceLineTransaction findUniqueOrThrow */ export type ServiceLineTransactionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * Filter, which ServiceLineTransaction to fetch. */ where: ServiceLineTransactionWhereUniqueInput } /** * ServiceLineTransaction findFirst */ export type ServiceLineTransactionFindFirstArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * Filter, which ServiceLineTransaction to fetch. */ where?: ServiceLineTransactionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLineTransactions to fetch. */ orderBy?: ServiceLineTransactionOrderByWithRelationInput | ServiceLineTransactionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ServiceLineTransactions. */ cursor?: ServiceLineTransactionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLineTransactions 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` ServiceLineTransactions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ServiceLineTransactions. */ distinct?: ServiceLineTransactionScalarFieldEnum | ServiceLineTransactionScalarFieldEnum[] } /** * ServiceLineTransaction findFirstOrThrow */ export type ServiceLineTransactionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * Filter, which ServiceLineTransaction to fetch. */ where?: ServiceLineTransactionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLineTransactions to fetch. */ orderBy?: ServiceLineTransactionOrderByWithRelationInput | ServiceLineTransactionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ServiceLineTransactions. */ cursor?: ServiceLineTransactionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLineTransactions 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` ServiceLineTransactions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ServiceLineTransactions. */ distinct?: ServiceLineTransactionScalarFieldEnum | ServiceLineTransactionScalarFieldEnum[] } /** * ServiceLineTransaction findMany */ export type ServiceLineTransactionFindManyArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * Filter, which ServiceLineTransactions to fetch. */ where?: ServiceLineTransactionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLineTransactions to fetch. */ orderBy?: ServiceLineTransactionOrderByWithRelationInput | ServiceLineTransactionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ServiceLineTransactions. */ cursor?: ServiceLineTransactionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLineTransactions 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` ServiceLineTransactions. */ skip?: number distinct?: ServiceLineTransactionScalarFieldEnum | ServiceLineTransactionScalarFieldEnum[] } /** * ServiceLineTransaction create */ export type ServiceLineTransactionCreateArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * The data needed to create a ServiceLineTransaction. */ data: XOR } /** * ServiceLineTransaction createMany */ export type ServiceLineTransactionCreateManyArgs = { /** * The data used to create many ServiceLineTransactions. */ data: ServiceLineTransactionCreateManyInput | ServiceLineTransactionCreateManyInput[] skipDuplicates?: boolean } /** * ServiceLineTransaction createManyAndReturn */ export type ServiceLineTransactionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelectCreateManyAndReturn | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * The data used to create many ServiceLineTransactions. */ data: ServiceLineTransactionCreateManyInput | ServiceLineTransactionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionIncludeCreateManyAndReturn | null } /** * ServiceLineTransaction update */ export type ServiceLineTransactionUpdateArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * The data needed to update a ServiceLineTransaction. */ data: XOR /** * Choose, which ServiceLineTransaction to update. */ where: ServiceLineTransactionWhereUniqueInput } /** * ServiceLineTransaction updateMany */ export type ServiceLineTransactionUpdateManyArgs = { /** * The data used to update ServiceLineTransactions. */ data: XOR /** * Filter which ServiceLineTransactions to update */ where?: ServiceLineTransactionWhereInput /** * Limit how many ServiceLineTransactions to update. */ limit?: number } /** * ServiceLineTransaction updateManyAndReturn */ export type ServiceLineTransactionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelectUpdateManyAndReturn | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * The data used to update ServiceLineTransactions. */ data: XOR /** * Filter which ServiceLineTransactions to update */ where?: ServiceLineTransactionWhereInput /** * Limit how many ServiceLineTransactions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionIncludeUpdateManyAndReturn | null } /** * ServiceLineTransaction upsert */ export type ServiceLineTransactionUpsertArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * The filter to search for the ServiceLineTransaction to update in case it exists. */ where: ServiceLineTransactionWhereUniqueInput /** * In case the ServiceLineTransaction found by the `where` argument doesn't exist, create a new ServiceLineTransaction with this data. */ create: XOR /** * In case the ServiceLineTransaction was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ServiceLineTransaction delete */ export type ServiceLineTransactionDeleteArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * Filter which ServiceLineTransaction to delete. */ where: ServiceLineTransactionWhereUniqueInput } /** * ServiceLineTransaction deleteMany */ export type ServiceLineTransactionDeleteManyArgs = { /** * Filter which ServiceLineTransactions to delete */ where?: ServiceLineTransactionWhereInput /** * Limit how many ServiceLineTransactions to delete. */ limit?: number } /** * ServiceLineTransaction without action */ export type ServiceLineTransactionDefaultArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null } /** * Model DatabaseBackup */ export type AggregateDatabaseBackup = { _count: DatabaseBackupCountAggregateOutputType | null _avg: DatabaseBackupAvgAggregateOutputType | null _sum: DatabaseBackupSumAggregateOutputType | null _min: DatabaseBackupMinAggregateOutputType | null _max: DatabaseBackupMaxAggregateOutputType | null } export type DatabaseBackupAvgAggregateOutputType = { id: number | null userId: number | null } export type DatabaseBackupSumAggregateOutputType = { id: number | null userId: number | null } export type DatabaseBackupMinAggregateOutputType = { id: number | null userId: number | null createdAt: Date | null } export type DatabaseBackupMaxAggregateOutputType = { id: number | null userId: number | null createdAt: Date | null } export type DatabaseBackupCountAggregateOutputType = { id: number userId: number createdAt: number _all: number } export type DatabaseBackupAvgAggregateInputType = { id?: true userId?: true } export type DatabaseBackupSumAggregateInputType = { id?: true userId?: true } export type DatabaseBackupMinAggregateInputType = { id?: true userId?: true createdAt?: true } export type DatabaseBackupMaxAggregateInputType = { id?: true userId?: true createdAt?: true } export type DatabaseBackupCountAggregateInputType = { id?: true userId?: true createdAt?: true _all?: true } export type DatabaseBackupAggregateArgs = { /** * Filter which DatabaseBackup to aggregate. */ where?: DatabaseBackupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DatabaseBackups to fetch. */ orderBy?: DatabaseBackupOrderByWithRelationInput | DatabaseBackupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: DatabaseBackupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DatabaseBackups 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` DatabaseBackups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned DatabaseBackups **/ _count?: true | DatabaseBackupCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: DatabaseBackupAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: DatabaseBackupSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DatabaseBackupMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DatabaseBackupMaxAggregateInputType } export type GetDatabaseBackupAggregateType = { [P in keyof T & keyof AggregateDatabaseBackup]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type DatabaseBackupGroupByArgs = { where?: DatabaseBackupWhereInput orderBy?: DatabaseBackupOrderByWithAggregationInput | DatabaseBackupOrderByWithAggregationInput[] by: DatabaseBackupScalarFieldEnum[] | DatabaseBackupScalarFieldEnum having?: DatabaseBackupScalarWhereWithAggregatesInput take?: number skip?: number _count?: DatabaseBackupCountAggregateInputType | true _avg?: DatabaseBackupAvgAggregateInputType _sum?: DatabaseBackupSumAggregateInputType _min?: DatabaseBackupMinAggregateInputType _max?: DatabaseBackupMaxAggregateInputType } export type DatabaseBackupGroupByOutputType = { id: number userId: number createdAt: Date _count: DatabaseBackupCountAggregateOutputType | null _avg: DatabaseBackupAvgAggregateOutputType | null _sum: DatabaseBackupSumAggregateOutputType | null _min: DatabaseBackupMinAggregateOutputType | null _max: DatabaseBackupMaxAggregateOutputType | null } type GetDatabaseBackupGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof DatabaseBackupGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type DatabaseBackupSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["databaseBackup"]> export type DatabaseBackupSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["databaseBackup"]> export type DatabaseBackupSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["databaseBackup"]> export type DatabaseBackupSelectScalar = { id?: boolean userId?: boolean createdAt?: boolean } export type DatabaseBackupOmit = $Extensions.GetOmit<"id" | "userId" | "createdAt", ExtArgs["result"]["databaseBackup"]> export type DatabaseBackupInclude = { user?: boolean | UserDefaultArgs } export type DatabaseBackupIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type DatabaseBackupIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $DatabaseBackupPayload = { name: "DatabaseBackup" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number createdAt: Date }, ExtArgs["result"]["databaseBackup"]> composites: {} } type DatabaseBackupGetPayload = $Result.GetResult type DatabaseBackupCountArgs = Omit & { select?: DatabaseBackupCountAggregateInputType | true } export interface DatabaseBackupDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['DatabaseBackup'], meta: { name: 'DatabaseBackup' } } /** * Find zero or one DatabaseBackup that matches the filter. * @param {DatabaseBackupFindUniqueArgs} args - Arguments to find a DatabaseBackup * @example * // Get one DatabaseBackup * const databaseBackup = await prisma.databaseBackup.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one DatabaseBackup that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {DatabaseBackupFindUniqueOrThrowArgs} args - Arguments to find a DatabaseBackup * @example * // Get one DatabaseBackup * const databaseBackup = await prisma.databaseBackup.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first DatabaseBackup 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 {DatabaseBackupFindFirstArgs} args - Arguments to find a DatabaseBackup * @example * // Get one DatabaseBackup * const databaseBackup = await prisma.databaseBackup.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first DatabaseBackup 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 {DatabaseBackupFindFirstOrThrowArgs} args - Arguments to find a DatabaseBackup * @example * // Get one DatabaseBackup * const databaseBackup = await prisma.databaseBackup.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more DatabaseBackups 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 {DatabaseBackupFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all DatabaseBackups * const databaseBackups = await prisma.databaseBackup.findMany() * * // Get first 10 DatabaseBackups * const databaseBackups = await prisma.databaseBackup.findMany({ take: 10 }) * * // Only select the `id` * const databaseBackupWithIdOnly = await prisma.databaseBackup.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a DatabaseBackup. * @param {DatabaseBackupCreateArgs} args - Arguments to create a DatabaseBackup. * @example * // Create one DatabaseBackup * const DatabaseBackup = await prisma.databaseBackup.create({ * data: { * // ... data to create a DatabaseBackup * } * }) * */ create(args: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many DatabaseBackups. * @param {DatabaseBackupCreateManyArgs} args - Arguments to create many DatabaseBackups. * @example * // Create many DatabaseBackups * const databaseBackup = await prisma.databaseBackup.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many DatabaseBackups and returns the data saved in the database. * @param {DatabaseBackupCreateManyAndReturnArgs} args - Arguments to create many DatabaseBackups. * @example * // Create many DatabaseBackups * const databaseBackup = await prisma.databaseBackup.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many DatabaseBackups and only return the `id` * const databaseBackupWithIdOnly = await prisma.databaseBackup.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a DatabaseBackup. * @param {DatabaseBackupDeleteArgs} args - Arguments to delete one DatabaseBackup. * @example * // Delete one DatabaseBackup * const DatabaseBackup = await prisma.databaseBackup.delete({ * where: { * // ... filter to delete one DatabaseBackup * } * }) * */ delete(args: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one DatabaseBackup. * @param {DatabaseBackupUpdateArgs} args - Arguments to update one DatabaseBackup. * @example * // Update one DatabaseBackup * const databaseBackup = await prisma.databaseBackup.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more DatabaseBackups. * @param {DatabaseBackupDeleteManyArgs} args - Arguments to filter DatabaseBackups to delete. * @example * // Delete a few DatabaseBackups * const { count } = await prisma.databaseBackup.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DatabaseBackups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DatabaseBackupUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many DatabaseBackups * const databaseBackup = await prisma.databaseBackup.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DatabaseBackups and returns the data updated in the database. * @param {DatabaseBackupUpdateManyAndReturnArgs} args - Arguments to update many DatabaseBackups. * @example * // Update many DatabaseBackups * const databaseBackup = await prisma.databaseBackup.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more DatabaseBackups and only return the `id` * const databaseBackupWithIdOnly = await prisma.databaseBackup.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one DatabaseBackup. * @param {DatabaseBackupUpsertArgs} args - Arguments to update or create a DatabaseBackup. * @example * // Update or create a DatabaseBackup * const databaseBackup = await prisma.databaseBackup.upsert({ * create: { * // ... data to create a DatabaseBackup * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the DatabaseBackup we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of DatabaseBackups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DatabaseBackupCountArgs} args - Arguments to filter DatabaseBackups to count. * @example * // Count the number of DatabaseBackups * const count = await prisma.databaseBackup.count({ * where: { * // ... the filter for the DatabaseBackups 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 DatabaseBackup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DatabaseBackupAggregateArgs} 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 DatabaseBackup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DatabaseBackupGroupByArgs} 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 DatabaseBackupGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: DatabaseBackupGroupByArgs['orderBy'] } : { orderBy?: DatabaseBackupGroupByArgs['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 ? GetDatabaseBackupGroupByPayload : Prisma.PrismaPromise /** * Fields of the DatabaseBackup model */ readonly fields: DatabaseBackupFieldRefs; } /** * The delegate class that acts as a "Promise-like" for DatabaseBackup. * 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__DatabaseBackupClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the DatabaseBackup model */ interface DatabaseBackupFieldRefs { readonly id: FieldRef<"DatabaseBackup", 'Int'> readonly userId: FieldRef<"DatabaseBackup", 'Int'> readonly createdAt: FieldRef<"DatabaseBackup", 'DateTime'> } // Custom InputTypes /** * DatabaseBackup findUnique */ export type DatabaseBackupFindUniqueArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * Filter, which DatabaseBackup to fetch. */ where: DatabaseBackupWhereUniqueInput } /** * DatabaseBackup findUniqueOrThrow */ export type DatabaseBackupFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * Filter, which DatabaseBackup to fetch. */ where: DatabaseBackupWhereUniqueInput } /** * DatabaseBackup findFirst */ export type DatabaseBackupFindFirstArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * Filter, which DatabaseBackup to fetch. */ where?: DatabaseBackupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DatabaseBackups to fetch. */ orderBy?: DatabaseBackupOrderByWithRelationInput | DatabaseBackupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DatabaseBackups. */ cursor?: DatabaseBackupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DatabaseBackups 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` DatabaseBackups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DatabaseBackups. */ distinct?: DatabaseBackupScalarFieldEnum | DatabaseBackupScalarFieldEnum[] } /** * DatabaseBackup findFirstOrThrow */ export type DatabaseBackupFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * Filter, which DatabaseBackup to fetch. */ where?: DatabaseBackupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DatabaseBackups to fetch. */ orderBy?: DatabaseBackupOrderByWithRelationInput | DatabaseBackupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DatabaseBackups. */ cursor?: DatabaseBackupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DatabaseBackups 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` DatabaseBackups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DatabaseBackups. */ distinct?: DatabaseBackupScalarFieldEnum | DatabaseBackupScalarFieldEnum[] } /** * DatabaseBackup findMany */ export type DatabaseBackupFindManyArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * Filter, which DatabaseBackups to fetch. */ where?: DatabaseBackupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DatabaseBackups to fetch. */ orderBy?: DatabaseBackupOrderByWithRelationInput | DatabaseBackupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing DatabaseBackups. */ cursor?: DatabaseBackupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DatabaseBackups 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` DatabaseBackups. */ skip?: number distinct?: DatabaseBackupScalarFieldEnum | DatabaseBackupScalarFieldEnum[] } /** * DatabaseBackup create */ export type DatabaseBackupCreateArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * The data needed to create a DatabaseBackup. */ data: XOR } /** * DatabaseBackup createMany */ export type DatabaseBackupCreateManyArgs = { /** * The data used to create many DatabaseBackups. */ data: DatabaseBackupCreateManyInput | DatabaseBackupCreateManyInput[] skipDuplicates?: boolean } /** * DatabaseBackup createManyAndReturn */ export type DatabaseBackupCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelectCreateManyAndReturn | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * The data used to create many DatabaseBackups. */ data: DatabaseBackupCreateManyInput | DatabaseBackupCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupIncludeCreateManyAndReturn | null } /** * DatabaseBackup update */ export type DatabaseBackupUpdateArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * The data needed to update a DatabaseBackup. */ data: XOR /** * Choose, which DatabaseBackup to update. */ where: DatabaseBackupWhereUniqueInput } /** * DatabaseBackup updateMany */ export type DatabaseBackupUpdateManyArgs = { /** * The data used to update DatabaseBackups. */ data: XOR /** * Filter which DatabaseBackups to update */ where?: DatabaseBackupWhereInput /** * Limit how many DatabaseBackups to update. */ limit?: number } /** * DatabaseBackup updateManyAndReturn */ export type DatabaseBackupUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelectUpdateManyAndReturn | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * The data used to update DatabaseBackups. */ data: XOR /** * Filter which DatabaseBackups to update */ where?: DatabaseBackupWhereInput /** * Limit how many DatabaseBackups to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupIncludeUpdateManyAndReturn | null } /** * DatabaseBackup upsert */ export type DatabaseBackupUpsertArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * The filter to search for the DatabaseBackup to update in case it exists. */ where: DatabaseBackupWhereUniqueInput /** * In case the DatabaseBackup found by the `where` argument doesn't exist, create a new DatabaseBackup with this data. */ create: XOR /** * In case the DatabaseBackup was found with the provided `where` argument, update it with this data. */ update: XOR } /** * DatabaseBackup delete */ export type DatabaseBackupDeleteArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * Filter which DatabaseBackup to delete. */ where: DatabaseBackupWhereUniqueInput } /** * DatabaseBackup deleteMany */ export type DatabaseBackupDeleteManyArgs = { /** * Filter which DatabaseBackups to delete */ where?: DatabaseBackupWhereInput /** * Limit how many DatabaseBackups to delete. */ limit?: number } /** * DatabaseBackup without action */ export type DatabaseBackupDefaultArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null } /** * Model BackupDestination */ export type AggregateBackupDestination = { _count: BackupDestinationCountAggregateOutputType | null _avg: BackupDestinationAvgAggregateOutputType | null _sum: BackupDestinationSumAggregateOutputType | null _min: BackupDestinationMinAggregateOutputType | null _max: BackupDestinationMaxAggregateOutputType | null } export type BackupDestinationAvgAggregateOutputType = { id: number | null userId: number | null } export type BackupDestinationSumAggregateOutputType = { id: number | null userId: number | null } export type BackupDestinationMinAggregateOutputType = { id: number | null userId: number | null path: string | null isActive: boolean | null createdAt: Date | null } export type BackupDestinationMaxAggregateOutputType = { id: number | null userId: number | null path: string | null isActive: boolean | null createdAt: Date | null } export type BackupDestinationCountAggregateOutputType = { id: number userId: number path: number isActive: number createdAt: number _all: number } export type BackupDestinationAvgAggregateInputType = { id?: true userId?: true } export type BackupDestinationSumAggregateInputType = { id?: true userId?: true } export type BackupDestinationMinAggregateInputType = { id?: true userId?: true path?: true isActive?: true createdAt?: true } export type BackupDestinationMaxAggregateInputType = { id?: true userId?: true path?: true isActive?: true createdAt?: true } export type BackupDestinationCountAggregateInputType = { id?: true userId?: true path?: true isActive?: true createdAt?: true _all?: true } export type BackupDestinationAggregateArgs = { /** * Filter which BackupDestination to aggregate. */ where?: BackupDestinationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BackupDestinations to fetch. */ orderBy?: BackupDestinationOrderByWithRelationInput | BackupDestinationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: BackupDestinationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BackupDestinations 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` BackupDestinations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned BackupDestinations **/ _count?: true | BackupDestinationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: BackupDestinationAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: BackupDestinationSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: BackupDestinationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: BackupDestinationMaxAggregateInputType } export type GetBackupDestinationAggregateType = { [P in keyof T & keyof AggregateBackupDestination]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type BackupDestinationGroupByArgs = { where?: BackupDestinationWhereInput orderBy?: BackupDestinationOrderByWithAggregationInput | BackupDestinationOrderByWithAggregationInput[] by: BackupDestinationScalarFieldEnum[] | BackupDestinationScalarFieldEnum having?: BackupDestinationScalarWhereWithAggregatesInput take?: number skip?: number _count?: BackupDestinationCountAggregateInputType | true _avg?: BackupDestinationAvgAggregateInputType _sum?: BackupDestinationSumAggregateInputType _min?: BackupDestinationMinAggregateInputType _max?: BackupDestinationMaxAggregateInputType } export type BackupDestinationGroupByOutputType = { id: number userId: number path: string isActive: boolean createdAt: Date _count: BackupDestinationCountAggregateOutputType | null _avg: BackupDestinationAvgAggregateOutputType | null _sum: BackupDestinationSumAggregateOutputType | null _min: BackupDestinationMinAggregateOutputType | null _max: BackupDestinationMaxAggregateOutputType | null } type GetBackupDestinationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof BackupDestinationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type BackupDestinationSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean path?: boolean isActive?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["backupDestination"]> export type BackupDestinationSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean path?: boolean isActive?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["backupDestination"]> export type BackupDestinationSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean path?: boolean isActive?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["backupDestination"]> export type BackupDestinationSelectScalar = { id?: boolean userId?: boolean path?: boolean isActive?: boolean createdAt?: boolean } export type BackupDestinationOmit = $Extensions.GetOmit<"id" | "userId" | "path" | "isActive" | "createdAt", ExtArgs["result"]["backupDestination"]> export type BackupDestinationInclude = { user?: boolean | UserDefaultArgs } export type BackupDestinationIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type BackupDestinationIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $BackupDestinationPayload = { name: "BackupDestination" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number path: string isActive: boolean createdAt: Date }, ExtArgs["result"]["backupDestination"]> composites: {} } type BackupDestinationGetPayload = $Result.GetResult type BackupDestinationCountArgs = Omit & { select?: BackupDestinationCountAggregateInputType | true } export interface BackupDestinationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['BackupDestination'], meta: { name: 'BackupDestination' } } /** * Find zero or one BackupDestination that matches the filter. * @param {BackupDestinationFindUniqueArgs} args - Arguments to find a BackupDestination * @example * // Get one BackupDestination * const backupDestination = await prisma.backupDestination.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one BackupDestination that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {BackupDestinationFindUniqueOrThrowArgs} args - Arguments to find a BackupDestination * @example * // Get one BackupDestination * const backupDestination = await prisma.backupDestination.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first BackupDestination 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 {BackupDestinationFindFirstArgs} args - Arguments to find a BackupDestination * @example * // Get one BackupDestination * const backupDestination = await prisma.backupDestination.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first BackupDestination 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 {BackupDestinationFindFirstOrThrowArgs} args - Arguments to find a BackupDestination * @example * // Get one BackupDestination * const backupDestination = await prisma.backupDestination.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more BackupDestinations 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 {BackupDestinationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all BackupDestinations * const backupDestinations = await prisma.backupDestination.findMany() * * // Get first 10 BackupDestinations * const backupDestinations = await prisma.backupDestination.findMany({ take: 10 }) * * // Only select the `id` * const backupDestinationWithIdOnly = await prisma.backupDestination.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a BackupDestination. * @param {BackupDestinationCreateArgs} args - Arguments to create a BackupDestination. * @example * // Create one BackupDestination * const BackupDestination = await prisma.backupDestination.create({ * data: { * // ... data to create a BackupDestination * } * }) * */ create(args: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many BackupDestinations. * @param {BackupDestinationCreateManyArgs} args - Arguments to create many BackupDestinations. * @example * // Create many BackupDestinations * const backupDestination = await prisma.backupDestination.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many BackupDestinations and returns the data saved in the database. * @param {BackupDestinationCreateManyAndReturnArgs} args - Arguments to create many BackupDestinations. * @example * // Create many BackupDestinations * const backupDestination = await prisma.backupDestination.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many BackupDestinations and only return the `id` * const backupDestinationWithIdOnly = await prisma.backupDestination.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a BackupDestination. * @param {BackupDestinationDeleteArgs} args - Arguments to delete one BackupDestination. * @example * // Delete one BackupDestination * const BackupDestination = await prisma.backupDestination.delete({ * where: { * // ... filter to delete one BackupDestination * } * }) * */ delete(args: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one BackupDestination. * @param {BackupDestinationUpdateArgs} args - Arguments to update one BackupDestination. * @example * // Update one BackupDestination * const backupDestination = await prisma.backupDestination.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more BackupDestinations. * @param {BackupDestinationDeleteManyArgs} args - Arguments to filter BackupDestinations to delete. * @example * // Delete a few BackupDestinations * const { count } = await prisma.backupDestination.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more BackupDestinations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BackupDestinationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many BackupDestinations * const backupDestination = await prisma.backupDestination.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more BackupDestinations and returns the data updated in the database. * @param {BackupDestinationUpdateManyAndReturnArgs} args - Arguments to update many BackupDestinations. * @example * // Update many BackupDestinations * const backupDestination = await prisma.backupDestination.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more BackupDestinations and only return the `id` * const backupDestinationWithIdOnly = await prisma.backupDestination.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one BackupDestination. * @param {BackupDestinationUpsertArgs} args - Arguments to update or create a BackupDestination. * @example * // Update or create a BackupDestination * const backupDestination = await prisma.backupDestination.upsert({ * create: { * // ... data to create a BackupDestination * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the BackupDestination we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of BackupDestinations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BackupDestinationCountArgs} args - Arguments to filter BackupDestinations to count. * @example * // Count the number of BackupDestinations * const count = await prisma.backupDestination.count({ * where: { * // ... the filter for the BackupDestinations 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 BackupDestination. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BackupDestinationAggregateArgs} 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 BackupDestination. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BackupDestinationGroupByArgs} 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 BackupDestinationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: BackupDestinationGroupByArgs['orderBy'] } : { orderBy?: BackupDestinationGroupByArgs['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 ? GetBackupDestinationGroupByPayload : Prisma.PrismaPromise /** * Fields of the BackupDestination model */ readonly fields: BackupDestinationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for BackupDestination. * 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__BackupDestinationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the BackupDestination model */ interface BackupDestinationFieldRefs { readonly id: FieldRef<"BackupDestination", 'Int'> readonly userId: FieldRef<"BackupDestination", 'Int'> readonly path: FieldRef<"BackupDestination", 'String'> readonly isActive: FieldRef<"BackupDestination", 'Boolean'> readonly createdAt: FieldRef<"BackupDestination", 'DateTime'> } // Custom InputTypes /** * BackupDestination findUnique */ export type BackupDestinationFindUniqueArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * Filter, which BackupDestination to fetch. */ where: BackupDestinationWhereUniqueInput } /** * BackupDestination findUniqueOrThrow */ export type BackupDestinationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * Filter, which BackupDestination to fetch. */ where: BackupDestinationWhereUniqueInput } /** * BackupDestination findFirst */ export type BackupDestinationFindFirstArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * Filter, which BackupDestination to fetch. */ where?: BackupDestinationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BackupDestinations to fetch. */ orderBy?: BackupDestinationOrderByWithRelationInput | BackupDestinationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for BackupDestinations. */ cursor?: BackupDestinationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BackupDestinations 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` BackupDestinations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of BackupDestinations. */ distinct?: BackupDestinationScalarFieldEnum | BackupDestinationScalarFieldEnum[] } /** * BackupDestination findFirstOrThrow */ export type BackupDestinationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * Filter, which BackupDestination to fetch. */ where?: BackupDestinationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BackupDestinations to fetch. */ orderBy?: BackupDestinationOrderByWithRelationInput | BackupDestinationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for BackupDestinations. */ cursor?: BackupDestinationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BackupDestinations 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` BackupDestinations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of BackupDestinations. */ distinct?: BackupDestinationScalarFieldEnum | BackupDestinationScalarFieldEnum[] } /** * BackupDestination findMany */ export type BackupDestinationFindManyArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * Filter, which BackupDestinations to fetch. */ where?: BackupDestinationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BackupDestinations to fetch. */ orderBy?: BackupDestinationOrderByWithRelationInput | BackupDestinationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing BackupDestinations. */ cursor?: BackupDestinationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BackupDestinations 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` BackupDestinations. */ skip?: number distinct?: BackupDestinationScalarFieldEnum | BackupDestinationScalarFieldEnum[] } /** * BackupDestination create */ export type BackupDestinationCreateArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * The data needed to create a BackupDestination. */ data: XOR } /** * BackupDestination createMany */ export type BackupDestinationCreateManyArgs = { /** * The data used to create many BackupDestinations. */ data: BackupDestinationCreateManyInput | BackupDestinationCreateManyInput[] skipDuplicates?: boolean } /** * BackupDestination createManyAndReturn */ export type BackupDestinationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelectCreateManyAndReturn | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * The data used to create many BackupDestinations. */ data: BackupDestinationCreateManyInput | BackupDestinationCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationIncludeCreateManyAndReturn | null } /** * BackupDestination update */ export type BackupDestinationUpdateArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * The data needed to update a BackupDestination. */ data: XOR /** * Choose, which BackupDestination to update. */ where: BackupDestinationWhereUniqueInput } /** * BackupDestination updateMany */ export type BackupDestinationUpdateManyArgs = { /** * The data used to update BackupDestinations. */ data: XOR /** * Filter which BackupDestinations to update */ where?: BackupDestinationWhereInput /** * Limit how many BackupDestinations to update. */ limit?: number } /** * BackupDestination updateManyAndReturn */ export type BackupDestinationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelectUpdateManyAndReturn | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * The data used to update BackupDestinations. */ data: XOR /** * Filter which BackupDestinations to update */ where?: BackupDestinationWhereInput /** * Limit how many BackupDestinations to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationIncludeUpdateManyAndReturn | null } /** * BackupDestination upsert */ export type BackupDestinationUpsertArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * The filter to search for the BackupDestination to update in case it exists. */ where: BackupDestinationWhereUniqueInput /** * In case the BackupDestination found by the `where` argument doesn't exist, create a new BackupDestination with this data. */ create: XOR /** * In case the BackupDestination was found with the provided `where` argument, update it with this data. */ update: XOR } /** * BackupDestination delete */ export type BackupDestinationDeleteArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * Filter which BackupDestination to delete. */ where: BackupDestinationWhereUniqueInput } /** * BackupDestination deleteMany */ export type BackupDestinationDeleteManyArgs = { /** * Filter which BackupDestinations to delete */ where?: BackupDestinationWhereInput /** * Limit how many BackupDestinations to delete. */ limit?: number } /** * BackupDestination without action */ export type BackupDestinationDefaultArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null } /** * Model Notification */ export type AggregateNotification = { _count: NotificationCountAggregateOutputType | null _avg: NotificationAvgAggregateOutputType | null _sum: NotificationSumAggregateOutputType | null _min: NotificationMinAggregateOutputType | null _max: NotificationMaxAggregateOutputType | null } export type NotificationAvgAggregateOutputType = { id: number | null userId: number | null } export type NotificationSumAggregateOutputType = { id: number | null userId: number | null } export type NotificationMinAggregateOutputType = { id: number | null userId: number | null type: $Enums.NotificationTypes | null message: string | null createdAt: Date | null read: boolean | null } export type NotificationMaxAggregateOutputType = { id: number | null userId: number | null type: $Enums.NotificationTypes | null message: string | null createdAt: Date | null read: boolean | null } export type NotificationCountAggregateOutputType = { id: number userId: number type: number message: number createdAt: number read: number _all: number } export type NotificationAvgAggregateInputType = { id?: true userId?: true } export type NotificationSumAggregateInputType = { id?: true userId?: true } export type NotificationMinAggregateInputType = { id?: true userId?: true type?: true message?: true createdAt?: true read?: true } export type NotificationMaxAggregateInputType = { id?: true userId?: true type?: true message?: true createdAt?: true read?: true } export type NotificationCountAggregateInputType = { id?: true userId?: true type?: true message?: true createdAt?: true read?: true _all?: true } export type NotificationAggregateArgs = { /** * Filter which Notification to aggregate. */ where?: NotificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Notifications to fetch. */ orderBy?: NotificationOrderByWithRelationInput | NotificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: NotificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Notifications 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` Notifications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Notifications **/ _count?: true | NotificationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: NotificationAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: NotificationSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: NotificationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: NotificationMaxAggregateInputType } export type GetNotificationAggregateType = { [P in keyof T & keyof AggregateNotification]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type NotificationGroupByArgs = { where?: NotificationWhereInput orderBy?: NotificationOrderByWithAggregationInput | NotificationOrderByWithAggregationInput[] by: NotificationScalarFieldEnum[] | NotificationScalarFieldEnum having?: NotificationScalarWhereWithAggregatesInput take?: number skip?: number _count?: NotificationCountAggregateInputType | true _avg?: NotificationAvgAggregateInputType _sum?: NotificationSumAggregateInputType _min?: NotificationMinAggregateInputType _max?: NotificationMaxAggregateInputType } export type NotificationGroupByOutputType = { id: number userId: number type: $Enums.NotificationTypes message: string createdAt: Date read: boolean _count: NotificationCountAggregateOutputType | null _avg: NotificationAvgAggregateOutputType | null _sum: NotificationSumAggregateOutputType | null _min: NotificationMinAggregateOutputType | null _max: NotificationMaxAggregateOutputType | null } type GetNotificationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof NotificationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type NotificationSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean type?: boolean message?: boolean createdAt?: boolean read?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["notification"]> export type NotificationSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean type?: boolean message?: boolean createdAt?: boolean read?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["notification"]> export type NotificationSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean type?: boolean message?: boolean createdAt?: boolean read?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["notification"]> export type NotificationSelectScalar = { id?: boolean userId?: boolean type?: boolean message?: boolean createdAt?: boolean read?: boolean } export type NotificationOmit = $Extensions.GetOmit<"id" | "userId" | "type" | "message" | "createdAt" | "read", ExtArgs["result"]["notification"]> export type NotificationInclude = { user?: boolean | UserDefaultArgs } export type NotificationIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type NotificationIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $NotificationPayload = { name: "Notification" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number type: $Enums.NotificationTypes message: string createdAt: Date read: boolean }, ExtArgs["result"]["notification"]> composites: {} } type NotificationGetPayload = $Result.GetResult type NotificationCountArgs = Omit & { select?: NotificationCountAggregateInputType | true } export interface NotificationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Notification'], meta: { name: 'Notification' } } /** * Find zero or one Notification that matches the filter. * @param {NotificationFindUniqueArgs} args - Arguments to find a Notification * @example * // Get one Notification * const notification = await prisma.notification.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Notification that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {NotificationFindUniqueOrThrowArgs} args - Arguments to find a Notification * @example * // Get one Notification * const notification = await prisma.notification.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Notification 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 {NotificationFindFirstArgs} args - Arguments to find a Notification * @example * // Get one Notification * const notification = await prisma.notification.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Notification 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 {NotificationFindFirstOrThrowArgs} args - Arguments to find a Notification * @example * // Get one Notification * const notification = await prisma.notification.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Notifications 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 {NotificationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Notifications * const notifications = await prisma.notification.findMany() * * // Get first 10 Notifications * const notifications = await prisma.notification.findMany({ take: 10 }) * * // Only select the `id` * const notificationWithIdOnly = await prisma.notification.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Notification. * @param {NotificationCreateArgs} args - Arguments to create a Notification. * @example * // Create one Notification * const Notification = await prisma.notification.create({ * data: { * // ... data to create a Notification * } * }) * */ create(args: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Notifications. * @param {NotificationCreateManyArgs} args - Arguments to create many Notifications. * @example * // Create many Notifications * const notification = await prisma.notification.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Notifications and returns the data saved in the database. * @param {NotificationCreateManyAndReturnArgs} args - Arguments to create many Notifications. * @example * // Create many Notifications * const notification = await prisma.notification.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Notifications and only return the `id` * const notificationWithIdOnly = await prisma.notification.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Notification. * @param {NotificationDeleteArgs} args - Arguments to delete one Notification. * @example * // Delete one Notification * const Notification = await prisma.notification.delete({ * where: { * // ... filter to delete one Notification * } * }) * */ delete(args: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Notification. * @param {NotificationUpdateArgs} args - Arguments to update one Notification. * @example * // Update one Notification * const notification = await prisma.notification.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Notifications. * @param {NotificationDeleteManyArgs} args - Arguments to filter Notifications to delete. * @example * // Delete a few Notifications * const { count } = await prisma.notification.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Notifications. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Notifications * const notification = await prisma.notification.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Notifications and returns the data updated in the database. * @param {NotificationUpdateManyAndReturnArgs} args - Arguments to update many Notifications. * @example * // Update many Notifications * const notification = await prisma.notification.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Notifications and only return the `id` * const notificationWithIdOnly = await prisma.notification.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Notification. * @param {NotificationUpsertArgs} args - Arguments to update or create a Notification. * @example * // Update or create a Notification * const notification = await prisma.notification.upsert({ * create: { * // ... data to create a Notification * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Notification we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Notifications. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationCountArgs} args - Arguments to filter Notifications to count. * @example * // Count the number of Notifications * const count = await prisma.notification.count({ * where: { * // ... the filter for the Notifications 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 Notification. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationAggregateArgs} 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 Notification. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationGroupByArgs} 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 NotificationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: NotificationGroupByArgs['orderBy'] } : { orderBy?: NotificationGroupByArgs['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 ? GetNotificationGroupByPayload : Prisma.PrismaPromise /** * Fields of the Notification model */ readonly fields: NotificationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Notification. * 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__NotificationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Notification model */ interface NotificationFieldRefs { readonly id: FieldRef<"Notification", 'Int'> readonly userId: FieldRef<"Notification", 'Int'> readonly type: FieldRef<"Notification", 'NotificationTypes'> readonly message: FieldRef<"Notification", 'String'> readonly createdAt: FieldRef<"Notification", 'DateTime'> readonly read: FieldRef<"Notification", 'Boolean'> } // Custom InputTypes /** * Notification findUnique */ export type NotificationFindUniqueArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * Filter, which Notification to fetch. */ where: NotificationWhereUniqueInput } /** * Notification findUniqueOrThrow */ export type NotificationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * Filter, which Notification to fetch. */ where: NotificationWhereUniqueInput } /** * Notification findFirst */ export type NotificationFindFirstArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * Filter, which Notification to fetch. */ where?: NotificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Notifications to fetch. */ orderBy?: NotificationOrderByWithRelationInput | NotificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Notifications. */ cursor?: NotificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Notifications 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` Notifications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Notifications. */ distinct?: NotificationScalarFieldEnum | NotificationScalarFieldEnum[] } /** * Notification findFirstOrThrow */ export type NotificationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * Filter, which Notification to fetch. */ where?: NotificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Notifications to fetch. */ orderBy?: NotificationOrderByWithRelationInput | NotificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Notifications. */ cursor?: NotificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Notifications 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` Notifications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Notifications. */ distinct?: NotificationScalarFieldEnum | NotificationScalarFieldEnum[] } /** * Notification findMany */ export type NotificationFindManyArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * Filter, which Notifications to fetch. */ where?: NotificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Notifications to fetch. */ orderBy?: NotificationOrderByWithRelationInput | NotificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Notifications. */ cursor?: NotificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Notifications 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` Notifications. */ skip?: number distinct?: NotificationScalarFieldEnum | NotificationScalarFieldEnum[] } /** * Notification create */ export type NotificationCreateArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * The data needed to create a Notification. */ data: XOR } /** * Notification createMany */ export type NotificationCreateManyArgs = { /** * The data used to create many Notifications. */ data: NotificationCreateManyInput | NotificationCreateManyInput[] skipDuplicates?: boolean } /** * Notification createManyAndReturn */ export type NotificationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelectCreateManyAndReturn | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * The data used to create many Notifications. */ data: NotificationCreateManyInput | NotificationCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: NotificationIncludeCreateManyAndReturn | null } /** * Notification update */ export type NotificationUpdateArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * The data needed to update a Notification. */ data: XOR /** * Choose, which Notification to update. */ where: NotificationWhereUniqueInput } /** * Notification updateMany */ export type NotificationUpdateManyArgs = { /** * The data used to update Notifications. */ data: XOR /** * Filter which Notifications to update */ where?: NotificationWhereInput /** * Limit how many Notifications to update. */ limit?: number } /** * Notification updateManyAndReturn */ export type NotificationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelectUpdateManyAndReturn | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * The data used to update Notifications. */ data: XOR /** * Filter which Notifications to update */ where?: NotificationWhereInput /** * Limit how many Notifications to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: NotificationIncludeUpdateManyAndReturn | null } /** * Notification upsert */ export type NotificationUpsertArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * The filter to search for the Notification to update in case it exists. */ where: NotificationWhereUniqueInput /** * In case the Notification found by the `where` argument doesn't exist, create a new Notification with this data. */ create: XOR /** * In case the Notification was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Notification delete */ export type NotificationDeleteArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * Filter which Notification to delete. */ where: NotificationWhereUniqueInput } /** * Notification deleteMany */ export type NotificationDeleteManyArgs = { /** * Filter which Notifications to delete */ where?: NotificationWhereInput /** * Limit how many Notifications to delete. */ limit?: number } /** * Notification without action */ export type NotificationDefaultArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null } /** * Model CloudFolder */ export type AggregateCloudFolder = { _count: CloudFolderCountAggregateOutputType | null _avg: CloudFolderAvgAggregateOutputType | null _sum: CloudFolderSumAggregateOutputType | null _min: CloudFolderMinAggregateOutputType | null _max: CloudFolderMaxAggregateOutputType | null } export type CloudFolderAvgAggregateOutputType = { id: number | null userId: number | null parentId: number | null } export type CloudFolderSumAggregateOutputType = { id: number | null userId: number | null parentId: number | null } export type CloudFolderMinAggregateOutputType = { id: number | null userId: number | null name: string | null parentId: number | null createdAt: Date | null updatedAt: Date | null } export type CloudFolderMaxAggregateOutputType = { id: number | null userId: number | null name: string | null parentId: number | null createdAt: Date | null updatedAt: Date | null } export type CloudFolderCountAggregateOutputType = { id: number userId: number name: number parentId: number createdAt: number updatedAt: number _all: number } export type CloudFolderAvgAggregateInputType = { id?: true userId?: true parentId?: true } export type CloudFolderSumAggregateInputType = { id?: true userId?: true parentId?: true } export type CloudFolderMinAggregateInputType = { id?: true userId?: true name?: true parentId?: true createdAt?: true updatedAt?: true } export type CloudFolderMaxAggregateInputType = { id?: true userId?: true name?: true parentId?: true createdAt?: true updatedAt?: true } export type CloudFolderCountAggregateInputType = { id?: true userId?: true name?: true parentId?: true createdAt?: true updatedAt?: true _all?: true } export type CloudFolderAggregateArgs = { /** * Filter which CloudFolder to aggregate. */ where?: CloudFolderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFolders to fetch. */ orderBy?: CloudFolderOrderByWithRelationInput | CloudFolderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CloudFolderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFolders 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` CloudFolders. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CloudFolders **/ _count?: true | CloudFolderCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CloudFolderAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CloudFolderSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CloudFolderMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CloudFolderMaxAggregateInputType } export type GetCloudFolderAggregateType = { [P in keyof T & keyof AggregateCloudFolder]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CloudFolderGroupByArgs = { where?: CloudFolderWhereInput orderBy?: CloudFolderOrderByWithAggregationInput | CloudFolderOrderByWithAggregationInput[] by: CloudFolderScalarFieldEnum[] | CloudFolderScalarFieldEnum having?: CloudFolderScalarWhereWithAggregatesInput take?: number skip?: number _count?: CloudFolderCountAggregateInputType | true _avg?: CloudFolderAvgAggregateInputType _sum?: CloudFolderSumAggregateInputType _min?: CloudFolderMinAggregateInputType _max?: CloudFolderMaxAggregateInputType } export type CloudFolderGroupByOutputType = { id: number userId: number name: string parentId: number | null createdAt: Date updatedAt: Date _count: CloudFolderCountAggregateOutputType | null _avg: CloudFolderAvgAggregateOutputType | null _sum: CloudFolderSumAggregateOutputType | null _min: CloudFolderMinAggregateOutputType | null _max: CloudFolderMaxAggregateOutputType | null } type GetCloudFolderGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CloudFolderGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CloudFolderSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean parentId?: boolean createdAt?: boolean updatedAt?: boolean parent?: boolean | CloudFolder$parentArgs children?: boolean | CloudFolder$childrenArgs user?: boolean | UserDefaultArgs files?: boolean | CloudFolder$filesArgs _count?: boolean | CloudFolderCountOutputTypeDefaultArgs }, ExtArgs["result"]["cloudFolder"]> export type CloudFolderSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean parentId?: boolean createdAt?: boolean updatedAt?: boolean parent?: boolean | CloudFolder$parentArgs user?: boolean | UserDefaultArgs }, ExtArgs["result"]["cloudFolder"]> export type CloudFolderSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean parentId?: boolean createdAt?: boolean updatedAt?: boolean parent?: boolean | CloudFolder$parentArgs user?: boolean | UserDefaultArgs }, ExtArgs["result"]["cloudFolder"]> export type CloudFolderSelectScalar = { id?: boolean userId?: boolean name?: boolean parentId?: boolean createdAt?: boolean updatedAt?: boolean } export type CloudFolderOmit = $Extensions.GetOmit<"id" | "userId" | "name" | "parentId" | "createdAt" | "updatedAt", ExtArgs["result"]["cloudFolder"]> export type CloudFolderInclude = { parent?: boolean | CloudFolder$parentArgs children?: boolean | CloudFolder$childrenArgs user?: boolean | UserDefaultArgs files?: boolean | CloudFolder$filesArgs _count?: boolean | CloudFolderCountOutputTypeDefaultArgs } export type CloudFolderIncludeCreateManyAndReturn = { parent?: boolean | CloudFolder$parentArgs user?: boolean | UserDefaultArgs } export type CloudFolderIncludeUpdateManyAndReturn = { parent?: boolean | CloudFolder$parentArgs user?: boolean | UserDefaultArgs } export type $CloudFolderPayload = { name: "CloudFolder" objects: { parent: Prisma.$CloudFolderPayload | null children: Prisma.$CloudFolderPayload[] user: Prisma.$UserPayload files: Prisma.$CloudFilePayload[] } scalars: $Extensions.GetPayloadResult<{ id: number userId: number name: string parentId: number | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["cloudFolder"]> composites: {} } type CloudFolderGetPayload = $Result.GetResult type CloudFolderCountArgs = Omit & { select?: CloudFolderCountAggregateInputType | true } export interface CloudFolderDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CloudFolder'], meta: { name: 'CloudFolder' } } /** * Find zero or one CloudFolder that matches the filter. * @param {CloudFolderFindUniqueArgs} args - Arguments to find a CloudFolder * @example * // Get one CloudFolder * const cloudFolder = await prisma.cloudFolder.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one CloudFolder that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CloudFolderFindUniqueOrThrowArgs} args - Arguments to find a CloudFolder * @example * // Get one CloudFolder * const cloudFolder = await prisma.cloudFolder.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first CloudFolder 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 {CloudFolderFindFirstArgs} args - Arguments to find a CloudFolder * @example * // Get one CloudFolder * const cloudFolder = await prisma.cloudFolder.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first CloudFolder 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 {CloudFolderFindFirstOrThrowArgs} args - Arguments to find a CloudFolder * @example * // Get one CloudFolder * const cloudFolder = await prisma.cloudFolder.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more CloudFolders 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 {CloudFolderFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CloudFolders * const cloudFolders = await prisma.cloudFolder.findMany() * * // Get first 10 CloudFolders * const cloudFolders = await prisma.cloudFolder.findMany({ take: 10 }) * * // Only select the `id` * const cloudFolderWithIdOnly = await prisma.cloudFolder.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a CloudFolder. * @param {CloudFolderCreateArgs} args - Arguments to create a CloudFolder. * @example * // Create one CloudFolder * const CloudFolder = await prisma.cloudFolder.create({ * data: { * // ... data to create a CloudFolder * } * }) * */ create(args: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many CloudFolders. * @param {CloudFolderCreateManyArgs} args - Arguments to create many CloudFolders. * @example * // Create many CloudFolders * const cloudFolder = await prisma.cloudFolder.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many CloudFolders and returns the data saved in the database. * @param {CloudFolderCreateManyAndReturnArgs} args - Arguments to create many CloudFolders. * @example * // Create many CloudFolders * const cloudFolder = await prisma.cloudFolder.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many CloudFolders and only return the `id` * const cloudFolderWithIdOnly = await prisma.cloudFolder.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a CloudFolder. * @param {CloudFolderDeleteArgs} args - Arguments to delete one CloudFolder. * @example * // Delete one CloudFolder * const CloudFolder = await prisma.cloudFolder.delete({ * where: { * // ... filter to delete one CloudFolder * } * }) * */ delete(args: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one CloudFolder. * @param {CloudFolderUpdateArgs} args - Arguments to update one CloudFolder. * @example * // Update one CloudFolder * const cloudFolder = await prisma.cloudFolder.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more CloudFolders. * @param {CloudFolderDeleteManyArgs} args - Arguments to filter CloudFolders to delete. * @example * // Delete a few CloudFolders * const { count } = await prisma.cloudFolder.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CloudFolders. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFolderUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CloudFolders * const cloudFolder = await prisma.cloudFolder.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CloudFolders and returns the data updated in the database. * @param {CloudFolderUpdateManyAndReturnArgs} args - Arguments to update many CloudFolders. * @example * // Update many CloudFolders * const cloudFolder = await prisma.cloudFolder.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more CloudFolders and only return the `id` * const cloudFolderWithIdOnly = await prisma.cloudFolder.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one CloudFolder. * @param {CloudFolderUpsertArgs} args - Arguments to update or create a CloudFolder. * @example * // Update or create a CloudFolder * const cloudFolder = await prisma.cloudFolder.upsert({ * create: { * // ... data to create a CloudFolder * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CloudFolder we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of CloudFolders. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFolderCountArgs} args - Arguments to filter CloudFolders to count. * @example * // Count the number of CloudFolders * const count = await prisma.cloudFolder.count({ * where: { * // ... the filter for the CloudFolders 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 CloudFolder. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFolderAggregateArgs} 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 CloudFolder. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFolderGroupByArgs} 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 CloudFolderGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CloudFolderGroupByArgs['orderBy'] } : { orderBy?: CloudFolderGroupByArgs['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 ? GetCloudFolderGroupByPayload : Prisma.PrismaPromise /** * Fields of the CloudFolder model */ readonly fields: CloudFolderFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CloudFolder. * 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__CloudFolderClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" parent = {}>(args?: Subset>): Prisma__CloudFolderClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> children = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> files = {}>(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 CloudFolder model */ interface CloudFolderFieldRefs { readonly id: FieldRef<"CloudFolder", 'Int'> readonly userId: FieldRef<"CloudFolder", 'Int'> readonly name: FieldRef<"CloudFolder", 'String'> readonly parentId: FieldRef<"CloudFolder", 'Int'> readonly createdAt: FieldRef<"CloudFolder", 'DateTime'> readonly updatedAt: FieldRef<"CloudFolder", 'DateTime'> } // Custom InputTypes /** * CloudFolder findUnique */ export type CloudFolderFindUniqueArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * Filter, which CloudFolder to fetch. */ where: CloudFolderWhereUniqueInput } /** * CloudFolder findUniqueOrThrow */ export type CloudFolderFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * Filter, which CloudFolder to fetch. */ where: CloudFolderWhereUniqueInput } /** * CloudFolder findFirst */ export type CloudFolderFindFirstArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * Filter, which CloudFolder to fetch. */ where?: CloudFolderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFolders to fetch. */ orderBy?: CloudFolderOrderByWithRelationInput | CloudFolderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CloudFolders. */ cursor?: CloudFolderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFolders 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` CloudFolders. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CloudFolders. */ distinct?: CloudFolderScalarFieldEnum | CloudFolderScalarFieldEnum[] } /** * CloudFolder findFirstOrThrow */ export type CloudFolderFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * Filter, which CloudFolder to fetch. */ where?: CloudFolderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFolders to fetch. */ orderBy?: CloudFolderOrderByWithRelationInput | CloudFolderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CloudFolders. */ cursor?: CloudFolderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFolders 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` CloudFolders. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CloudFolders. */ distinct?: CloudFolderScalarFieldEnum | CloudFolderScalarFieldEnum[] } /** * CloudFolder findMany */ export type CloudFolderFindManyArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * Filter, which CloudFolders to fetch. */ where?: CloudFolderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFolders to fetch. */ orderBy?: CloudFolderOrderByWithRelationInput | CloudFolderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CloudFolders. */ cursor?: CloudFolderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFolders 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` CloudFolders. */ skip?: number distinct?: CloudFolderScalarFieldEnum | CloudFolderScalarFieldEnum[] } /** * CloudFolder create */ export type CloudFolderCreateArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * The data needed to create a CloudFolder. */ data: XOR } /** * CloudFolder createMany */ export type CloudFolderCreateManyArgs = { /** * The data used to create many CloudFolders. */ data: CloudFolderCreateManyInput | CloudFolderCreateManyInput[] skipDuplicates?: boolean } /** * CloudFolder createManyAndReturn */ export type CloudFolderCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelectCreateManyAndReturn | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * The data used to create many CloudFolders. */ data: CloudFolderCreateManyInput | CloudFolderCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: CloudFolderIncludeCreateManyAndReturn | null } /** * CloudFolder update */ export type CloudFolderUpdateArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * The data needed to update a CloudFolder. */ data: XOR /** * Choose, which CloudFolder to update. */ where: CloudFolderWhereUniqueInput } /** * CloudFolder updateMany */ export type CloudFolderUpdateManyArgs = { /** * The data used to update CloudFolders. */ data: XOR /** * Filter which CloudFolders to update */ where?: CloudFolderWhereInput /** * Limit how many CloudFolders to update. */ limit?: number } /** * CloudFolder updateManyAndReturn */ export type CloudFolderUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelectUpdateManyAndReturn | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * The data used to update CloudFolders. */ data: XOR /** * Filter which CloudFolders to update */ where?: CloudFolderWhereInput /** * Limit how many CloudFolders to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: CloudFolderIncludeUpdateManyAndReturn | null } /** * CloudFolder upsert */ export type CloudFolderUpsertArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * The filter to search for the CloudFolder to update in case it exists. */ where: CloudFolderWhereUniqueInput /** * In case the CloudFolder found by the `where` argument doesn't exist, create a new CloudFolder with this data. */ create: XOR /** * In case the CloudFolder was found with the provided `where` argument, update it with this data. */ update: XOR } /** * CloudFolder delete */ export type CloudFolderDeleteArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * Filter which CloudFolder to delete. */ where: CloudFolderWhereUniqueInput } /** * CloudFolder deleteMany */ export type CloudFolderDeleteManyArgs = { /** * Filter which CloudFolders to delete */ where?: CloudFolderWhereInput /** * Limit how many CloudFolders to delete. */ limit?: number } /** * CloudFolder.parent */ export type CloudFolder$parentArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null where?: CloudFolderWhereInput } /** * CloudFolder.children */ export type CloudFolder$childrenArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null where?: CloudFolderWhereInput orderBy?: CloudFolderOrderByWithRelationInput | CloudFolderOrderByWithRelationInput[] cursor?: CloudFolderWhereUniqueInput take?: number skip?: number distinct?: CloudFolderScalarFieldEnum | CloudFolderScalarFieldEnum[] } /** * CloudFolder.files */ export type CloudFolder$filesArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null where?: CloudFileWhereInput orderBy?: CloudFileOrderByWithRelationInput | CloudFileOrderByWithRelationInput[] cursor?: CloudFileWhereUniqueInput take?: number skip?: number distinct?: CloudFileScalarFieldEnum | CloudFileScalarFieldEnum[] } /** * CloudFolder without action */ export type CloudFolderDefaultArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null } /** * Model CloudFile */ export type AggregateCloudFile = { _count: CloudFileCountAggregateOutputType | null _avg: CloudFileAvgAggregateOutputType | null _sum: CloudFileSumAggregateOutputType | null _min: CloudFileMinAggregateOutputType | null _max: CloudFileMaxAggregateOutputType | null } export type CloudFileAvgAggregateOutputType = { id: number | null userId: number | null fileSize: number | null folderId: number | null totalChunks: number | null } export type CloudFileSumAggregateOutputType = { id: number | null userId: number | null fileSize: bigint | null folderId: number | null totalChunks: number | null } export type CloudFileMinAggregateOutputType = { id: number | null userId: number | null name: string | null mimeType: string | null fileSize: bigint | null folderId: number | null isComplete: boolean | null totalChunks: number | null createdAt: Date | null updatedAt: Date | null } export type CloudFileMaxAggregateOutputType = { id: number | null userId: number | null name: string | null mimeType: string | null fileSize: bigint | null folderId: number | null isComplete: boolean | null totalChunks: number | null createdAt: Date | null updatedAt: Date | null } export type CloudFileCountAggregateOutputType = { id: number userId: number name: number mimeType: number fileSize: number folderId: number isComplete: number totalChunks: number createdAt: number updatedAt: number _all: number } export type CloudFileAvgAggregateInputType = { id?: true userId?: true fileSize?: true folderId?: true totalChunks?: true } export type CloudFileSumAggregateInputType = { id?: true userId?: true fileSize?: true folderId?: true totalChunks?: true } export type CloudFileMinAggregateInputType = { id?: true userId?: true name?: true mimeType?: true fileSize?: true folderId?: true isComplete?: true totalChunks?: true createdAt?: true updatedAt?: true } export type CloudFileMaxAggregateInputType = { id?: true userId?: true name?: true mimeType?: true fileSize?: true folderId?: true isComplete?: true totalChunks?: true createdAt?: true updatedAt?: true } export type CloudFileCountAggregateInputType = { id?: true userId?: true name?: true mimeType?: true fileSize?: true folderId?: true isComplete?: true totalChunks?: true createdAt?: true updatedAt?: true _all?: true } export type CloudFileAggregateArgs = { /** * Filter which CloudFile to aggregate. */ where?: CloudFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFiles to fetch. */ orderBy?: CloudFileOrderByWithRelationInput | CloudFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CloudFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFiles 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` CloudFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CloudFiles **/ _count?: true | CloudFileCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CloudFileAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CloudFileSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CloudFileMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CloudFileMaxAggregateInputType } export type GetCloudFileAggregateType = { [P in keyof T & keyof AggregateCloudFile]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CloudFileGroupByArgs = { where?: CloudFileWhereInput orderBy?: CloudFileOrderByWithAggregationInput | CloudFileOrderByWithAggregationInput[] by: CloudFileScalarFieldEnum[] | CloudFileScalarFieldEnum having?: CloudFileScalarWhereWithAggregatesInput take?: number skip?: number _count?: CloudFileCountAggregateInputType | true _avg?: CloudFileAvgAggregateInputType _sum?: CloudFileSumAggregateInputType _min?: CloudFileMinAggregateInputType _max?: CloudFileMaxAggregateInputType } export type CloudFileGroupByOutputType = { id: number userId: number name: string mimeType: string | null fileSize: bigint folderId: number | null isComplete: boolean totalChunks: number | null createdAt: Date updatedAt: Date _count: CloudFileCountAggregateOutputType | null _avg: CloudFileAvgAggregateOutputType | null _sum: CloudFileSumAggregateOutputType | null _min: CloudFileMinAggregateOutputType | null _max: CloudFileMaxAggregateOutputType | null } type GetCloudFileGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CloudFileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CloudFileSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean mimeType?: boolean fileSize?: boolean folderId?: boolean isComplete?: boolean totalChunks?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs folder?: boolean | CloudFile$folderArgs chunks?: boolean | CloudFile$chunksArgs _count?: boolean | CloudFileCountOutputTypeDefaultArgs }, ExtArgs["result"]["cloudFile"]> export type CloudFileSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean mimeType?: boolean fileSize?: boolean folderId?: boolean isComplete?: boolean totalChunks?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs folder?: boolean | CloudFile$folderArgs }, ExtArgs["result"]["cloudFile"]> export type CloudFileSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean mimeType?: boolean fileSize?: boolean folderId?: boolean isComplete?: boolean totalChunks?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs folder?: boolean | CloudFile$folderArgs }, ExtArgs["result"]["cloudFile"]> export type CloudFileSelectScalar = { id?: boolean userId?: boolean name?: boolean mimeType?: boolean fileSize?: boolean folderId?: boolean isComplete?: boolean totalChunks?: boolean createdAt?: boolean updatedAt?: boolean } export type CloudFileOmit = $Extensions.GetOmit<"id" | "userId" | "name" | "mimeType" | "fileSize" | "folderId" | "isComplete" | "totalChunks" | "createdAt" | "updatedAt", ExtArgs["result"]["cloudFile"]> export type CloudFileInclude = { user?: boolean | UserDefaultArgs folder?: boolean | CloudFile$folderArgs chunks?: boolean | CloudFile$chunksArgs _count?: boolean | CloudFileCountOutputTypeDefaultArgs } export type CloudFileIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs folder?: boolean | CloudFile$folderArgs } export type CloudFileIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs folder?: boolean | CloudFile$folderArgs } export type $CloudFilePayload = { name: "CloudFile" objects: { user: Prisma.$UserPayload folder: Prisma.$CloudFolderPayload | null chunks: Prisma.$CloudFileChunkPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number userId: number name: string mimeType: string | null fileSize: bigint folderId: number | null isComplete: boolean totalChunks: number | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["cloudFile"]> composites: {} } type CloudFileGetPayload = $Result.GetResult type CloudFileCountArgs = Omit & { select?: CloudFileCountAggregateInputType | true } export interface CloudFileDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CloudFile'], meta: { name: 'CloudFile' } } /** * Find zero or one CloudFile that matches the filter. * @param {CloudFileFindUniqueArgs} args - Arguments to find a CloudFile * @example * // Get one CloudFile * const cloudFile = await prisma.cloudFile.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one CloudFile that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CloudFileFindUniqueOrThrowArgs} args - Arguments to find a CloudFile * @example * // Get one CloudFile * const cloudFile = await prisma.cloudFile.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first CloudFile 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 {CloudFileFindFirstArgs} args - Arguments to find a CloudFile * @example * // Get one CloudFile * const cloudFile = await prisma.cloudFile.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first CloudFile 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 {CloudFileFindFirstOrThrowArgs} args - Arguments to find a CloudFile * @example * // Get one CloudFile * const cloudFile = await prisma.cloudFile.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more CloudFiles 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 {CloudFileFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CloudFiles * const cloudFiles = await prisma.cloudFile.findMany() * * // Get first 10 CloudFiles * const cloudFiles = await prisma.cloudFile.findMany({ take: 10 }) * * // Only select the `id` * const cloudFileWithIdOnly = await prisma.cloudFile.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a CloudFile. * @param {CloudFileCreateArgs} args - Arguments to create a CloudFile. * @example * // Create one CloudFile * const CloudFile = await prisma.cloudFile.create({ * data: { * // ... data to create a CloudFile * } * }) * */ create(args: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many CloudFiles. * @param {CloudFileCreateManyArgs} args - Arguments to create many CloudFiles. * @example * // Create many CloudFiles * const cloudFile = await prisma.cloudFile.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many CloudFiles and returns the data saved in the database. * @param {CloudFileCreateManyAndReturnArgs} args - Arguments to create many CloudFiles. * @example * // Create many CloudFiles * const cloudFile = await prisma.cloudFile.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many CloudFiles and only return the `id` * const cloudFileWithIdOnly = await prisma.cloudFile.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a CloudFile. * @param {CloudFileDeleteArgs} args - Arguments to delete one CloudFile. * @example * // Delete one CloudFile * const CloudFile = await prisma.cloudFile.delete({ * where: { * // ... filter to delete one CloudFile * } * }) * */ delete(args: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one CloudFile. * @param {CloudFileUpdateArgs} args - Arguments to update one CloudFile. * @example * // Update one CloudFile * const cloudFile = await prisma.cloudFile.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more CloudFiles. * @param {CloudFileDeleteManyArgs} args - Arguments to filter CloudFiles to delete. * @example * // Delete a few CloudFiles * const { count } = await prisma.cloudFile.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CloudFiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CloudFiles * const cloudFile = await prisma.cloudFile.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CloudFiles and returns the data updated in the database. * @param {CloudFileUpdateManyAndReturnArgs} args - Arguments to update many CloudFiles. * @example * // Update many CloudFiles * const cloudFile = await prisma.cloudFile.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more CloudFiles and only return the `id` * const cloudFileWithIdOnly = await prisma.cloudFile.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one CloudFile. * @param {CloudFileUpsertArgs} args - Arguments to update or create a CloudFile. * @example * // Update or create a CloudFile * const cloudFile = await prisma.cloudFile.upsert({ * create: { * // ... data to create a CloudFile * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CloudFile we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of CloudFiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileCountArgs} args - Arguments to filter CloudFiles to count. * @example * // Count the number of CloudFiles * const count = await prisma.cloudFile.count({ * where: { * // ... the filter for the CloudFiles 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 CloudFile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileAggregateArgs} 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 CloudFile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileGroupByArgs} 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 CloudFileGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CloudFileGroupByArgs['orderBy'] } : { orderBy?: CloudFileGroupByArgs['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 ? GetCloudFileGroupByPayload : Prisma.PrismaPromise /** * Fields of the CloudFile model */ readonly fields: CloudFileFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CloudFile. * 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__CloudFileClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> folder = {}>(args?: Subset>): Prisma__CloudFolderClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> chunks = {}>(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 CloudFile model */ interface CloudFileFieldRefs { readonly id: FieldRef<"CloudFile", 'Int'> readonly userId: FieldRef<"CloudFile", 'Int'> readonly name: FieldRef<"CloudFile", 'String'> readonly mimeType: FieldRef<"CloudFile", 'String'> readonly fileSize: FieldRef<"CloudFile", 'BigInt'> readonly folderId: FieldRef<"CloudFile", 'Int'> readonly isComplete: FieldRef<"CloudFile", 'Boolean'> readonly totalChunks: FieldRef<"CloudFile", 'Int'> readonly createdAt: FieldRef<"CloudFile", 'DateTime'> readonly updatedAt: FieldRef<"CloudFile", 'DateTime'> } // Custom InputTypes /** * CloudFile findUnique */ export type CloudFileFindUniqueArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * Filter, which CloudFile to fetch. */ where: CloudFileWhereUniqueInput } /** * CloudFile findUniqueOrThrow */ export type CloudFileFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * Filter, which CloudFile to fetch. */ where: CloudFileWhereUniqueInput } /** * CloudFile findFirst */ export type CloudFileFindFirstArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * Filter, which CloudFile to fetch. */ where?: CloudFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFiles to fetch. */ orderBy?: CloudFileOrderByWithRelationInput | CloudFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CloudFiles. */ cursor?: CloudFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFiles 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` CloudFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CloudFiles. */ distinct?: CloudFileScalarFieldEnum | CloudFileScalarFieldEnum[] } /** * CloudFile findFirstOrThrow */ export type CloudFileFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * Filter, which CloudFile to fetch. */ where?: CloudFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFiles to fetch. */ orderBy?: CloudFileOrderByWithRelationInput | CloudFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CloudFiles. */ cursor?: CloudFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFiles 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` CloudFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CloudFiles. */ distinct?: CloudFileScalarFieldEnum | CloudFileScalarFieldEnum[] } /** * CloudFile findMany */ export type CloudFileFindManyArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * Filter, which CloudFiles to fetch. */ where?: CloudFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFiles to fetch. */ orderBy?: CloudFileOrderByWithRelationInput | CloudFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CloudFiles. */ cursor?: CloudFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFiles 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` CloudFiles. */ skip?: number distinct?: CloudFileScalarFieldEnum | CloudFileScalarFieldEnum[] } /** * CloudFile create */ export type CloudFileCreateArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * The data needed to create a CloudFile. */ data: XOR } /** * CloudFile createMany */ export type CloudFileCreateManyArgs = { /** * The data used to create many CloudFiles. */ data: CloudFileCreateManyInput | CloudFileCreateManyInput[] skipDuplicates?: boolean } /** * CloudFile createManyAndReturn */ export type CloudFileCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelectCreateManyAndReturn | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * The data used to create many CloudFiles. */ data: CloudFileCreateManyInput | CloudFileCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: CloudFileIncludeCreateManyAndReturn | null } /** * CloudFile update */ export type CloudFileUpdateArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * The data needed to update a CloudFile. */ data: XOR /** * Choose, which CloudFile to update. */ where: CloudFileWhereUniqueInput } /** * CloudFile updateMany */ export type CloudFileUpdateManyArgs = { /** * The data used to update CloudFiles. */ data: XOR /** * Filter which CloudFiles to update */ where?: CloudFileWhereInput /** * Limit how many CloudFiles to update. */ limit?: number } /** * CloudFile updateManyAndReturn */ export type CloudFileUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelectUpdateManyAndReturn | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * The data used to update CloudFiles. */ data: XOR /** * Filter which CloudFiles to update */ where?: CloudFileWhereInput /** * Limit how many CloudFiles to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: CloudFileIncludeUpdateManyAndReturn | null } /** * CloudFile upsert */ export type CloudFileUpsertArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * The filter to search for the CloudFile to update in case it exists. */ where: CloudFileWhereUniqueInput /** * In case the CloudFile found by the `where` argument doesn't exist, create a new CloudFile with this data. */ create: XOR /** * In case the CloudFile was found with the provided `where` argument, update it with this data. */ update: XOR } /** * CloudFile delete */ export type CloudFileDeleteArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * Filter which CloudFile to delete. */ where: CloudFileWhereUniqueInput } /** * CloudFile deleteMany */ export type CloudFileDeleteManyArgs = { /** * Filter which CloudFiles to delete */ where?: CloudFileWhereInput /** * Limit how many CloudFiles to delete. */ limit?: number } /** * CloudFile.folder */ export type CloudFile$folderArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null where?: CloudFolderWhereInput } /** * CloudFile.chunks */ export type CloudFile$chunksArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null where?: CloudFileChunkWhereInput orderBy?: CloudFileChunkOrderByWithRelationInput | CloudFileChunkOrderByWithRelationInput[] cursor?: CloudFileChunkWhereUniqueInput take?: number skip?: number distinct?: CloudFileChunkScalarFieldEnum | CloudFileChunkScalarFieldEnum[] } /** * CloudFile without action */ export type CloudFileDefaultArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null } /** * Model CloudFileChunk */ export type AggregateCloudFileChunk = { _count: CloudFileChunkCountAggregateOutputType | null _avg: CloudFileChunkAvgAggregateOutputType | null _sum: CloudFileChunkSumAggregateOutputType | null _min: CloudFileChunkMinAggregateOutputType | null _max: CloudFileChunkMaxAggregateOutputType | null } export type CloudFileChunkAvgAggregateOutputType = { id: number | null fileId: number | null seq: number | null } export type CloudFileChunkSumAggregateOutputType = { id: number | null fileId: number | null seq: number | null } export type CloudFileChunkMinAggregateOutputType = { id: number | null fileId: number | null seq: number | null data: Bytes | null createdAt: Date | null } export type CloudFileChunkMaxAggregateOutputType = { id: number | null fileId: number | null seq: number | null data: Bytes | null createdAt: Date | null } export type CloudFileChunkCountAggregateOutputType = { id: number fileId: number seq: number data: number createdAt: number _all: number } export type CloudFileChunkAvgAggregateInputType = { id?: true fileId?: true seq?: true } export type CloudFileChunkSumAggregateInputType = { id?: true fileId?: true seq?: true } export type CloudFileChunkMinAggregateInputType = { id?: true fileId?: true seq?: true data?: true createdAt?: true } export type CloudFileChunkMaxAggregateInputType = { id?: true fileId?: true seq?: true data?: true createdAt?: true } export type CloudFileChunkCountAggregateInputType = { id?: true fileId?: true seq?: true data?: true createdAt?: true _all?: true } export type CloudFileChunkAggregateArgs = { /** * Filter which CloudFileChunk to aggregate. */ where?: CloudFileChunkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFileChunks to fetch. */ orderBy?: CloudFileChunkOrderByWithRelationInput | CloudFileChunkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CloudFileChunkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFileChunks 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` CloudFileChunks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CloudFileChunks **/ _count?: true | CloudFileChunkCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CloudFileChunkAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CloudFileChunkSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CloudFileChunkMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CloudFileChunkMaxAggregateInputType } export type GetCloudFileChunkAggregateType = { [P in keyof T & keyof AggregateCloudFileChunk]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CloudFileChunkGroupByArgs = { where?: CloudFileChunkWhereInput orderBy?: CloudFileChunkOrderByWithAggregationInput | CloudFileChunkOrderByWithAggregationInput[] by: CloudFileChunkScalarFieldEnum[] | CloudFileChunkScalarFieldEnum having?: CloudFileChunkScalarWhereWithAggregatesInput take?: number skip?: number _count?: CloudFileChunkCountAggregateInputType | true _avg?: CloudFileChunkAvgAggregateInputType _sum?: CloudFileChunkSumAggregateInputType _min?: CloudFileChunkMinAggregateInputType _max?: CloudFileChunkMaxAggregateInputType } export type CloudFileChunkGroupByOutputType = { id: number fileId: number seq: number data: Bytes createdAt: Date _count: CloudFileChunkCountAggregateOutputType | null _avg: CloudFileChunkAvgAggregateOutputType | null _sum: CloudFileChunkSumAggregateOutputType | null _min: CloudFileChunkMinAggregateOutputType | null _max: CloudFileChunkMaxAggregateOutputType | null } type GetCloudFileChunkGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CloudFileChunkGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CloudFileChunkSelect = $Extensions.GetSelect<{ id?: boolean fileId?: boolean seq?: boolean data?: boolean createdAt?: boolean file?: boolean | CloudFileDefaultArgs }, ExtArgs["result"]["cloudFileChunk"]> export type CloudFileChunkSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean fileId?: boolean seq?: boolean data?: boolean createdAt?: boolean file?: boolean | CloudFileDefaultArgs }, ExtArgs["result"]["cloudFileChunk"]> export type CloudFileChunkSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean fileId?: boolean seq?: boolean data?: boolean createdAt?: boolean file?: boolean | CloudFileDefaultArgs }, ExtArgs["result"]["cloudFileChunk"]> export type CloudFileChunkSelectScalar = { id?: boolean fileId?: boolean seq?: boolean data?: boolean createdAt?: boolean } export type CloudFileChunkOmit = $Extensions.GetOmit<"id" | "fileId" | "seq" | "data" | "createdAt", ExtArgs["result"]["cloudFileChunk"]> export type CloudFileChunkInclude = { file?: boolean | CloudFileDefaultArgs } export type CloudFileChunkIncludeCreateManyAndReturn = { file?: boolean | CloudFileDefaultArgs } export type CloudFileChunkIncludeUpdateManyAndReturn = { file?: boolean | CloudFileDefaultArgs } export type $CloudFileChunkPayload = { name: "CloudFileChunk" objects: { file: Prisma.$CloudFilePayload } scalars: $Extensions.GetPayloadResult<{ id: number fileId: number seq: number data: Prisma.Bytes createdAt: Date }, ExtArgs["result"]["cloudFileChunk"]> composites: {} } type CloudFileChunkGetPayload = $Result.GetResult type CloudFileChunkCountArgs = Omit & { select?: CloudFileChunkCountAggregateInputType | true } export interface CloudFileChunkDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CloudFileChunk'], meta: { name: 'CloudFileChunk' } } /** * Find zero or one CloudFileChunk that matches the filter. * @param {CloudFileChunkFindUniqueArgs} args - Arguments to find a CloudFileChunk * @example * // Get one CloudFileChunk * const cloudFileChunk = await prisma.cloudFileChunk.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one CloudFileChunk that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CloudFileChunkFindUniqueOrThrowArgs} args - Arguments to find a CloudFileChunk * @example * // Get one CloudFileChunk * const cloudFileChunk = await prisma.cloudFileChunk.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first CloudFileChunk 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 {CloudFileChunkFindFirstArgs} args - Arguments to find a CloudFileChunk * @example * // Get one CloudFileChunk * const cloudFileChunk = await prisma.cloudFileChunk.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first CloudFileChunk 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 {CloudFileChunkFindFirstOrThrowArgs} args - Arguments to find a CloudFileChunk * @example * // Get one CloudFileChunk * const cloudFileChunk = await prisma.cloudFileChunk.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more CloudFileChunks 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 {CloudFileChunkFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CloudFileChunks * const cloudFileChunks = await prisma.cloudFileChunk.findMany() * * // Get first 10 CloudFileChunks * const cloudFileChunks = await prisma.cloudFileChunk.findMany({ take: 10 }) * * // Only select the `id` * const cloudFileChunkWithIdOnly = await prisma.cloudFileChunk.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a CloudFileChunk. * @param {CloudFileChunkCreateArgs} args - Arguments to create a CloudFileChunk. * @example * // Create one CloudFileChunk * const CloudFileChunk = await prisma.cloudFileChunk.create({ * data: { * // ... data to create a CloudFileChunk * } * }) * */ create(args: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many CloudFileChunks. * @param {CloudFileChunkCreateManyArgs} args - Arguments to create many CloudFileChunks. * @example * // Create many CloudFileChunks * const cloudFileChunk = await prisma.cloudFileChunk.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many CloudFileChunks and returns the data saved in the database. * @param {CloudFileChunkCreateManyAndReturnArgs} args - Arguments to create many CloudFileChunks. * @example * // Create many CloudFileChunks * const cloudFileChunk = await prisma.cloudFileChunk.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many CloudFileChunks and only return the `id` * const cloudFileChunkWithIdOnly = await prisma.cloudFileChunk.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a CloudFileChunk. * @param {CloudFileChunkDeleteArgs} args - Arguments to delete one CloudFileChunk. * @example * // Delete one CloudFileChunk * const CloudFileChunk = await prisma.cloudFileChunk.delete({ * where: { * // ... filter to delete one CloudFileChunk * } * }) * */ delete(args: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one CloudFileChunk. * @param {CloudFileChunkUpdateArgs} args - Arguments to update one CloudFileChunk. * @example * // Update one CloudFileChunk * const cloudFileChunk = await prisma.cloudFileChunk.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more CloudFileChunks. * @param {CloudFileChunkDeleteManyArgs} args - Arguments to filter CloudFileChunks to delete. * @example * // Delete a few CloudFileChunks * const { count } = await prisma.cloudFileChunk.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CloudFileChunks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileChunkUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CloudFileChunks * const cloudFileChunk = await prisma.cloudFileChunk.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CloudFileChunks and returns the data updated in the database. * @param {CloudFileChunkUpdateManyAndReturnArgs} args - Arguments to update many CloudFileChunks. * @example * // Update many CloudFileChunks * const cloudFileChunk = await prisma.cloudFileChunk.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more CloudFileChunks and only return the `id` * const cloudFileChunkWithIdOnly = await prisma.cloudFileChunk.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one CloudFileChunk. * @param {CloudFileChunkUpsertArgs} args - Arguments to update or create a CloudFileChunk. * @example * // Update or create a CloudFileChunk * const cloudFileChunk = await prisma.cloudFileChunk.upsert({ * create: { * // ... data to create a CloudFileChunk * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CloudFileChunk we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of CloudFileChunks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileChunkCountArgs} args - Arguments to filter CloudFileChunks to count. * @example * // Count the number of CloudFileChunks * const count = await prisma.cloudFileChunk.count({ * where: { * // ... the filter for the CloudFileChunks 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 CloudFileChunk. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileChunkAggregateArgs} 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 CloudFileChunk. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileChunkGroupByArgs} 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 CloudFileChunkGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CloudFileChunkGroupByArgs['orderBy'] } : { orderBy?: CloudFileChunkGroupByArgs['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 ? GetCloudFileChunkGroupByPayload : Prisma.PrismaPromise /** * Fields of the CloudFileChunk model */ readonly fields: CloudFileChunkFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CloudFileChunk. * 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__CloudFileChunkClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" file = {}>(args?: Subset>): Prisma__CloudFileClient<$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 CloudFileChunk model */ interface CloudFileChunkFieldRefs { readonly id: FieldRef<"CloudFileChunk", 'Int'> readonly fileId: FieldRef<"CloudFileChunk", 'Int'> readonly seq: FieldRef<"CloudFileChunk", 'Int'> readonly data: FieldRef<"CloudFileChunk", 'Bytes'> readonly createdAt: FieldRef<"CloudFileChunk", 'DateTime'> } // Custom InputTypes /** * CloudFileChunk findUnique */ export type CloudFileChunkFindUniqueArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * Filter, which CloudFileChunk to fetch. */ where: CloudFileChunkWhereUniqueInput } /** * CloudFileChunk findUniqueOrThrow */ export type CloudFileChunkFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * Filter, which CloudFileChunk to fetch. */ where: CloudFileChunkWhereUniqueInput } /** * CloudFileChunk findFirst */ export type CloudFileChunkFindFirstArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * Filter, which CloudFileChunk to fetch. */ where?: CloudFileChunkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFileChunks to fetch. */ orderBy?: CloudFileChunkOrderByWithRelationInput | CloudFileChunkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CloudFileChunks. */ cursor?: CloudFileChunkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFileChunks 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` CloudFileChunks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CloudFileChunks. */ distinct?: CloudFileChunkScalarFieldEnum | CloudFileChunkScalarFieldEnum[] } /** * CloudFileChunk findFirstOrThrow */ export type CloudFileChunkFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * Filter, which CloudFileChunk to fetch. */ where?: CloudFileChunkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFileChunks to fetch. */ orderBy?: CloudFileChunkOrderByWithRelationInput | CloudFileChunkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CloudFileChunks. */ cursor?: CloudFileChunkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFileChunks 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` CloudFileChunks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CloudFileChunks. */ distinct?: CloudFileChunkScalarFieldEnum | CloudFileChunkScalarFieldEnum[] } /** * CloudFileChunk findMany */ export type CloudFileChunkFindManyArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * Filter, which CloudFileChunks to fetch. */ where?: CloudFileChunkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFileChunks to fetch. */ orderBy?: CloudFileChunkOrderByWithRelationInput | CloudFileChunkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CloudFileChunks. */ cursor?: CloudFileChunkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFileChunks 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` CloudFileChunks. */ skip?: number distinct?: CloudFileChunkScalarFieldEnum | CloudFileChunkScalarFieldEnum[] } /** * CloudFileChunk create */ export type CloudFileChunkCreateArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * The data needed to create a CloudFileChunk. */ data: XOR } /** * CloudFileChunk createMany */ export type CloudFileChunkCreateManyArgs = { /** * The data used to create many CloudFileChunks. */ data: CloudFileChunkCreateManyInput | CloudFileChunkCreateManyInput[] skipDuplicates?: boolean } /** * CloudFileChunk createManyAndReturn */ export type CloudFileChunkCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelectCreateManyAndReturn | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * The data used to create many CloudFileChunks. */ data: CloudFileChunkCreateManyInput | CloudFileChunkCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkIncludeCreateManyAndReturn | null } /** * CloudFileChunk update */ export type CloudFileChunkUpdateArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * The data needed to update a CloudFileChunk. */ data: XOR /** * Choose, which CloudFileChunk to update. */ where: CloudFileChunkWhereUniqueInput } /** * CloudFileChunk updateMany */ export type CloudFileChunkUpdateManyArgs = { /** * The data used to update CloudFileChunks. */ data: XOR /** * Filter which CloudFileChunks to update */ where?: CloudFileChunkWhereInput /** * Limit how many CloudFileChunks to update. */ limit?: number } /** * CloudFileChunk updateManyAndReturn */ export type CloudFileChunkUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelectUpdateManyAndReturn | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * The data used to update CloudFileChunks. */ data: XOR /** * Filter which CloudFileChunks to update */ where?: CloudFileChunkWhereInput /** * Limit how many CloudFileChunks to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkIncludeUpdateManyAndReturn | null } /** * CloudFileChunk upsert */ export type CloudFileChunkUpsertArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * The filter to search for the CloudFileChunk to update in case it exists. */ where: CloudFileChunkWhereUniqueInput /** * In case the CloudFileChunk found by the `where` argument doesn't exist, create a new CloudFileChunk with this data. */ create: XOR /** * In case the CloudFileChunk was found with the provided `where` argument, update it with this data. */ update: XOR } /** * CloudFileChunk delete */ export type CloudFileChunkDeleteArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * Filter which CloudFileChunk to delete. */ where: CloudFileChunkWhereUniqueInput } /** * CloudFileChunk deleteMany */ export type CloudFileChunkDeleteManyArgs = { /** * Filter which CloudFileChunks to delete */ where?: CloudFileChunkWhereInput /** * Limit how many CloudFileChunks to delete. */ limit?: number } /** * CloudFileChunk without action */ export type CloudFileChunkDefaultArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null } /** * Model Communication */ export type AggregateCommunication = { _count: CommunicationCountAggregateOutputType | null _avg: CommunicationAvgAggregateOutputType | null _sum: CommunicationSumAggregateOutputType | null _min: CommunicationMinAggregateOutputType | null _max: CommunicationMaxAggregateOutputType | null } export type CommunicationAvgAggregateOutputType = { id: number | null patientId: number | null userId: number | null callDuration: number | null } export type CommunicationSumAggregateOutputType = { id: number | null patientId: number | null userId: number | null callDuration: number | null } export type CommunicationMinAggregateOutputType = { id: number | null patientId: number | null userId: number | null channel: $Enums.CommunicationChannel | null direction: $Enums.CommunicationDirection | null status: $Enums.CommunicationStatus | null body: string | null callDuration: number | null twilioSid: string | null createdAt: Date | null } export type CommunicationMaxAggregateOutputType = { id: number | null patientId: number | null userId: number | null channel: $Enums.CommunicationChannel | null direction: $Enums.CommunicationDirection | null status: $Enums.CommunicationStatus | null body: string | null callDuration: number | null twilioSid: string | null createdAt: Date | null } export type CommunicationCountAggregateOutputType = { id: number patientId: number userId: number channel: number direction: number status: number body: number callDuration: number twilioSid: number createdAt: number _all: number } export type CommunicationAvgAggregateInputType = { id?: true patientId?: true userId?: true callDuration?: true } export type CommunicationSumAggregateInputType = { id?: true patientId?: true userId?: true callDuration?: true } export type CommunicationMinAggregateInputType = { id?: true patientId?: true userId?: true channel?: true direction?: true status?: true body?: true callDuration?: true twilioSid?: true createdAt?: true } export type CommunicationMaxAggregateInputType = { id?: true patientId?: true userId?: true channel?: true direction?: true status?: true body?: true callDuration?: true twilioSid?: true createdAt?: true } export type CommunicationCountAggregateInputType = { id?: true patientId?: true userId?: true channel?: true direction?: true status?: true body?: true callDuration?: true twilioSid?: true createdAt?: true _all?: true } export type CommunicationAggregateArgs = { /** * Filter which Communication to aggregate. */ where?: CommunicationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Communications to fetch. */ orderBy?: CommunicationOrderByWithRelationInput | CommunicationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CommunicationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Communications 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` Communications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Communications **/ _count?: true | CommunicationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CommunicationAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CommunicationSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CommunicationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CommunicationMaxAggregateInputType } export type GetCommunicationAggregateType = { [P in keyof T & keyof AggregateCommunication]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CommunicationGroupByArgs = { where?: CommunicationWhereInput orderBy?: CommunicationOrderByWithAggregationInput | CommunicationOrderByWithAggregationInput[] by: CommunicationScalarFieldEnum[] | CommunicationScalarFieldEnum having?: CommunicationScalarWhereWithAggregatesInput take?: number skip?: number _count?: CommunicationCountAggregateInputType | true _avg?: CommunicationAvgAggregateInputType _sum?: CommunicationSumAggregateInputType _min?: CommunicationMinAggregateInputType _max?: CommunicationMaxAggregateInputType } export type CommunicationGroupByOutputType = { id: number patientId: number userId: number | null channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body: string | null callDuration: number | null twilioSid: string | null createdAt: Date _count: CommunicationCountAggregateOutputType | null _avg: CommunicationAvgAggregateOutputType | null _sum: CommunicationSumAggregateOutputType | null _min: CommunicationMinAggregateOutputType | null _max: CommunicationMaxAggregateOutputType | null } type GetCommunicationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CommunicationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CommunicationSelect = $Extensions.GetSelect<{ id?: boolean patientId?: boolean userId?: boolean channel?: boolean direction?: boolean status?: boolean body?: boolean callDuration?: boolean twilioSid?: boolean createdAt?: boolean patient?: boolean | PatientDefaultArgs user?: boolean | Communication$userArgs }, ExtArgs["result"]["communication"]> export type CommunicationSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean userId?: boolean channel?: boolean direction?: boolean status?: boolean body?: boolean callDuration?: boolean twilioSid?: boolean createdAt?: boolean patient?: boolean | PatientDefaultArgs user?: boolean | Communication$userArgs }, ExtArgs["result"]["communication"]> export type CommunicationSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean userId?: boolean channel?: boolean direction?: boolean status?: boolean body?: boolean callDuration?: boolean twilioSid?: boolean createdAt?: boolean patient?: boolean | PatientDefaultArgs user?: boolean | Communication$userArgs }, ExtArgs["result"]["communication"]> export type CommunicationSelectScalar = { id?: boolean patientId?: boolean userId?: boolean channel?: boolean direction?: boolean status?: boolean body?: boolean callDuration?: boolean twilioSid?: boolean createdAt?: boolean } export type CommunicationOmit = $Extensions.GetOmit<"id" | "patientId" | "userId" | "channel" | "direction" | "status" | "body" | "callDuration" | "twilioSid" | "createdAt", ExtArgs["result"]["communication"]> export type CommunicationInclude = { patient?: boolean | PatientDefaultArgs user?: boolean | Communication$userArgs } export type CommunicationIncludeCreateManyAndReturn = { patient?: boolean | PatientDefaultArgs user?: boolean | Communication$userArgs } export type CommunicationIncludeUpdateManyAndReturn = { patient?: boolean | PatientDefaultArgs user?: boolean | Communication$userArgs } export type $CommunicationPayload = { name: "Communication" objects: { patient: Prisma.$PatientPayload user: Prisma.$UserPayload | null } scalars: $Extensions.GetPayloadResult<{ id: number patientId: number userId: number | null channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body: string | null callDuration: number | null twilioSid: string | null createdAt: Date }, ExtArgs["result"]["communication"]> composites: {} } type CommunicationGetPayload = $Result.GetResult type CommunicationCountArgs = Omit & { select?: CommunicationCountAggregateInputType | true } export interface CommunicationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Communication'], meta: { name: 'Communication' } } /** * Find zero or one Communication that matches the filter. * @param {CommunicationFindUniqueArgs} args - Arguments to find a Communication * @example * // Get one Communication * const communication = await prisma.communication.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Communication that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CommunicationFindUniqueOrThrowArgs} args - Arguments to find a Communication * @example * // Get one Communication * const communication = await prisma.communication.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Communication 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 {CommunicationFindFirstArgs} args - Arguments to find a Communication * @example * // Get one Communication * const communication = await prisma.communication.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Communication 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 {CommunicationFindFirstOrThrowArgs} args - Arguments to find a Communication * @example * // Get one Communication * const communication = await prisma.communication.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Communications 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 {CommunicationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Communications * const communications = await prisma.communication.findMany() * * // Get first 10 Communications * const communications = await prisma.communication.findMany({ take: 10 }) * * // Only select the `id` * const communicationWithIdOnly = await prisma.communication.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Communication. * @param {CommunicationCreateArgs} args - Arguments to create a Communication. * @example * // Create one Communication * const Communication = await prisma.communication.create({ * data: { * // ... data to create a Communication * } * }) * */ create(args: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Communications. * @param {CommunicationCreateManyArgs} args - Arguments to create many Communications. * @example * // Create many Communications * const communication = await prisma.communication.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Communications and returns the data saved in the database. * @param {CommunicationCreateManyAndReturnArgs} args - Arguments to create many Communications. * @example * // Create many Communications * const communication = await prisma.communication.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Communications and only return the `id` * const communicationWithIdOnly = await prisma.communication.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Communication. * @param {CommunicationDeleteArgs} args - Arguments to delete one Communication. * @example * // Delete one Communication * const Communication = await prisma.communication.delete({ * where: { * // ... filter to delete one Communication * } * }) * */ delete(args: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Communication. * @param {CommunicationUpdateArgs} args - Arguments to update one Communication. * @example * // Update one Communication * const communication = await prisma.communication.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Communications. * @param {CommunicationDeleteManyArgs} args - Arguments to filter Communications to delete. * @example * // Delete a few Communications * const { count } = await prisma.communication.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Communications. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommunicationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Communications * const communication = await prisma.communication.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Communications and returns the data updated in the database. * @param {CommunicationUpdateManyAndReturnArgs} args - Arguments to update many Communications. * @example * // Update many Communications * const communication = await prisma.communication.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Communications and only return the `id` * const communicationWithIdOnly = await prisma.communication.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Communication. * @param {CommunicationUpsertArgs} args - Arguments to update or create a Communication. * @example * // Update or create a Communication * const communication = await prisma.communication.upsert({ * create: { * // ... data to create a Communication * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Communication we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Communications. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommunicationCountArgs} args - Arguments to filter Communications to count. * @example * // Count the number of Communications * const count = await prisma.communication.count({ * where: { * // ... the filter for the Communications 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 Communication. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommunicationAggregateArgs} 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 Communication. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommunicationGroupByArgs} 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 CommunicationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CommunicationGroupByArgs['orderBy'] } : { orderBy?: CommunicationGroupByArgs['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 ? GetCommunicationGroupByPayload : Prisma.PrismaPromise /** * Fields of the Communication model */ readonly fields: CommunicationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Communication. * 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__CommunicationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" patient = {}>(args?: Subset>): Prisma__PatientClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Communication model */ interface CommunicationFieldRefs { readonly id: FieldRef<"Communication", 'Int'> readonly patientId: FieldRef<"Communication", 'Int'> readonly userId: FieldRef<"Communication", 'Int'> readonly channel: FieldRef<"Communication", 'CommunicationChannel'> readonly direction: FieldRef<"Communication", 'CommunicationDirection'> readonly status: FieldRef<"Communication", 'CommunicationStatus'> readonly body: FieldRef<"Communication", 'String'> readonly callDuration: FieldRef<"Communication", 'Int'> readonly twilioSid: FieldRef<"Communication", 'String'> readonly createdAt: FieldRef<"Communication", 'DateTime'> } // Custom InputTypes /** * Communication findUnique */ export type CommunicationFindUniqueArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * Filter, which Communication to fetch. */ where: CommunicationWhereUniqueInput } /** * Communication findUniqueOrThrow */ export type CommunicationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * Filter, which Communication to fetch. */ where: CommunicationWhereUniqueInput } /** * Communication findFirst */ export type CommunicationFindFirstArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * Filter, which Communication to fetch. */ where?: CommunicationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Communications to fetch. */ orderBy?: CommunicationOrderByWithRelationInput | CommunicationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Communications. */ cursor?: CommunicationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Communications 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` Communications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Communications. */ distinct?: CommunicationScalarFieldEnum | CommunicationScalarFieldEnum[] } /** * Communication findFirstOrThrow */ export type CommunicationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * Filter, which Communication to fetch. */ where?: CommunicationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Communications to fetch. */ orderBy?: CommunicationOrderByWithRelationInput | CommunicationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Communications. */ cursor?: CommunicationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Communications 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` Communications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Communications. */ distinct?: CommunicationScalarFieldEnum | CommunicationScalarFieldEnum[] } /** * Communication findMany */ export type CommunicationFindManyArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * Filter, which Communications to fetch. */ where?: CommunicationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Communications to fetch. */ orderBy?: CommunicationOrderByWithRelationInput | CommunicationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Communications. */ cursor?: CommunicationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Communications 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` Communications. */ skip?: number distinct?: CommunicationScalarFieldEnum | CommunicationScalarFieldEnum[] } /** * Communication create */ export type CommunicationCreateArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * The data needed to create a Communication. */ data: XOR } /** * Communication createMany */ export type CommunicationCreateManyArgs = { /** * The data used to create many Communications. */ data: CommunicationCreateManyInput | CommunicationCreateManyInput[] skipDuplicates?: boolean } /** * Communication createManyAndReturn */ export type CommunicationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelectCreateManyAndReturn | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * The data used to create many Communications. */ data: CommunicationCreateManyInput | CommunicationCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: CommunicationIncludeCreateManyAndReturn | null } /** * Communication update */ export type CommunicationUpdateArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * The data needed to update a Communication. */ data: XOR /** * Choose, which Communication to update. */ where: CommunicationWhereUniqueInput } /** * Communication updateMany */ export type CommunicationUpdateManyArgs = { /** * The data used to update Communications. */ data: XOR /** * Filter which Communications to update */ where?: CommunicationWhereInput /** * Limit how many Communications to update. */ limit?: number } /** * Communication updateManyAndReturn */ export type CommunicationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelectUpdateManyAndReturn | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * The data used to update Communications. */ data: XOR /** * Filter which Communications to update */ where?: CommunicationWhereInput /** * Limit how many Communications to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: CommunicationIncludeUpdateManyAndReturn | null } /** * Communication upsert */ export type CommunicationUpsertArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * The filter to search for the Communication to update in case it exists. */ where: CommunicationWhereUniqueInput /** * In case the Communication found by the `where` argument doesn't exist, create a new Communication with this data. */ create: XOR /** * In case the Communication was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Communication delete */ export type CommunicationDeleteArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * Filter which Communication to delete. */ where: CommunicationWhereUniqueInput } /** * Communication deleteMany */ export type CommunicationDeleteManyArgs = { /** * Filter which Communications to delete */ where?: CommunicationWhereInput /** * Limit how many Communications to delete. */ limit?: number } /** * Communication.user */ export type Communication$userArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null where?: UserWhereInput } /** * Communication without action */ export type CommunicationDefaultArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null } /** * Model PatientDocument */ export type AggregatePatientDocument = { _count: PatientDocumentCountAggregateOutputType | null _avg: PatientDocumentAvgAggregateOutputType | null _sum: PatientDocumentSumAggregateOutputType | null _min: PatientDocumentMinAggregateOutputType | null _max: PatientDocumentMaxAggregateOutputType | null } export type PatientDocumentAvgAggregateOutputType = { id: number | null patientId: number | null fileSize: number | null } export type PatientDocumentSumAggregateOutputType = { id: number | null patientId: number | null fileSize: bigint | null } export type PatientDocumentMinAggregateOutputType = { id: number | null patientId: number | null filename: string | null originalName: string | null mimeType: string | null fileSize: bigint | null filePath: string | null uploadedAt: Date | null updatedAt: Date | null } export type PatientDocumentMaxAggregateOutputType = { id: number | null patientId: number | null filename: string | null originalName: string | null mimeType: string | null fileSize: bigint | null filePath: string | null uploadedAt: Date | null updatedAt: Date | null } export type PatientDocumentCountAggregateOutputType = { id: number patientId: number filename: number originalName: number mimeType: number fileSize: number filePath: number uploadedAt: number updatedAt: number _all: number } export type PatientDocumentAvgAggregateInputType = { id?: true patientId?: true fileSize?: true } export type PatientDocumentSumAggregateInputType = { id?: true patientId?: true fileSize?: true } export type PatientDocumentMinAggregateInputType = { id?: true patientId?: true filename?: true originalName?: true mimeType?: true fileSize?: true filePath?: true uploadedAt?: true updatedAt?: true } export type PatientDocumentMaxAggregateInputType = { id?: true patientId?: true filename?: true originalName?: true mimeType?: true fileSize?: true filePath?: true uploadedAt?: true updatedAt?: true } export type PatientDocumentCountAggregateInputType = { id?: true patientId?: true filename?: true originalName?: true mimeType?: true fileSize?: true filePath?: true uploadedAt?: true updatedAt?: true _all?: true } export type PatientDocumentAggregateArgs = { /** * Filter which PatientDocument to aggregate. */ where?: PatientDocumentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PatientDocuments to fetch. */ orderBy?: PatientDocumentOrderByWithRelationInput | PatientDocumentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PatientDocumentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PatientDocuments 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` PatientDocuments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PatientDocuments **/ _count?: true | PatientDocumentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PatientDocumentAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PatientDocumentSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PatientDocumentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PatientDocumentMaxAggregateInputType } export type GetPatientDocumentAggregateType = { [P in keyof T & keyof AggregatePatientDocument]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PatientDocumentGroupByArgs = { where?: PatientDocumentWhereInput orderBy?: PatientDocumentOrderByWithAggregationInput | PatientDocumentOrderByWithAggregationInput[] by: PatientDocumentScalarFieldEnum[] | PatientDocumentScalarFieldEnum having?: PatientDocumentScalarWhereWithAggregatesInput take?: number skip?: number _count?: PatientDocumentCountAggregateInputType | true _avg?: PatientDocumentAvgAggregateInputType _sum?: PatientDocumentSumAggregateInputType _min?: PatientDocumentMinAggregateInputType _max?: PatientDocumentMaxAggregateInputType } export type PatientDocumentGroupByOutputType = { id: number patientId: number filename: string originalName: string mimeType: string fileSize: bigint filePath: string uploadedAt: Date updatedAt: Date _count: PatientDocumentCountAggregateOutputType | null _avg: PatientDocumentAvgAggregateOutputType | null _sum: PatientDocumentSumAggregateOutputType | null _min: PatientDocumentMinAggregateOutputType | null _max: PatientDocumentMaxAggregateOutputType | null } type GetPatientDocumentGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PatientDocumentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PatientDocumentSelect = $Extensions.GetSelect<{ id?: boolean patientId?: boolean filename?: boolean originalName?: boolean mimeType?: boolean fileSize?: boolean filePath?: boolean uploadedAt?: boolean updatedAt?: boolean patient?: boolean | PatientDefaultArgs }, ExtArgs["result"]["patientDocument"]> export type PatientDocumentSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean filename?: boolean originalName?: boolean mimeType?: boolean fileSize?: boolean filePath?: boolean uploadedAt?: boolean updatedAt?: boolean patient?: boolean | PatientDefaultArgs }, ExtArgs["result"]["patientDocument"]> export type PatientDocumentSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean filename?: boolean originalName?: boolean mimeType?: boolean fileSize?: boolean filePath?: boolean uploadedAt?: boolean updatedAt?: boolean patient?: boolean | PatientDefaultArgs }, ExtArgs["result"]["patientDocument"]> export type PatientDocumentSelectScalar = { id?: boolean patientId?: boolean filename?: boolean originalName?: boolean mimeType?: boolean fileSize?: boolean filePath?: boolean uploadedAt?: boolean updatedAt?: boolean } export type PatientDocumentOmit = $Extensions.GetOmit<"id" | "patientId" | "filename" | "originalName" | "mimeType" | "fileSize" | "filePath" | "uploadedAt" | "updatedAt", ExtArgs["result"]["patientDocument"]> export type PatientDocumentInclude = { patient?: boolean | PatientDefaultArgs } export type PatientDocumentIncludeCreateManyAndReturn = { patient?: boolean | PatientDefaultArgs } export type PatientDocumentIncludeUpdateManyAndReturn = { patient?: boolean | PatientDefaultArgs } export type $PatientDocumentPayload = { name: "PatientDocument" objects: { patient: Prisma.$PatientPayload } scalars: $Extensions.GetPayloadResult<{ id: number patientId: number filename: string originalName: string mimeType: string fileSize: bigint filePath: string uploadedAt: Date updatedAt: Date }, ExtArgs["result"]["patientDocument"]> composites: {} } type PatientDocumentGetPayload = $Result.GetResult type PatientDocumentCountArgs = Omit & { select?: PatientDocumentCountAggregateInputType | true } export interface PatientDocumentDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PatientDocument'], meta: { name: 'PatientDocument' } } /** * Find zero or one PatientDocument that matches the filter. * @param {PatientDocumentFindUniqueArgs} args - Arguments to find a PatientDocument * @example * // Get one PatientDocument * const patientDocument = await prisma.patientDocument.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one PatientDocument that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PatientDocumentFindUniqueOrThrowArgs} args - Arguments to find a PatientDocument * @example * // Get one PatientDocument * const patientDocument = await prisma.patientDocument.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first PatientDocument 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 {PatientDocumentFindFirstArgs} args - Arguments to find a PatientDocument * @example * // Get one PatientDocument * const patientDocument = await prisma.patientDocument.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first PatientDocument 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 {PatientDocumentFindFirstOrThrowArgs} args - Arguments to find a PatientDocument * @example * // Get one PatientDocument * const patientDocument = await prisma.patientDocument.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more PatientDocuments 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 {PatientDocumentFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PatientDocuments * const patientDocuments = await prisma.patientDocument.findMany() * * // Get first 10 PatientDocuments * const patientDocuments = await prisma.patientDocument.findMany({ take: 10 }) * * // Only select the `id` * const patientDocumentWithIdOnly = await prisma.patientDocument.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a PatientDocument. * @param {PatientDocumentCreateArgs} args - Arguments to create a PatientDocument. * @example * // Create one PatientDocument * const PatientDocument = await prisma.patientDocument.create({ * data: { * // ... data to create a PatientDocument * } * }) * */ create(args: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many PatientDocuments. * @param {PatientDocumentCreateManyArgs} args - Arguments to create many PatientDocuments. * @example * // Create many PatientDocuments * const patientDocument = await prisma.patientDocument.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many PatientDocuments and returns the data saved in the database. * @param {PatientDocumentCreateManyAndReturnArgs} args - Arguments to create many PatientDocuments. * @example * // Create many PatientDocuments * const patientDocument = await prisma.patientDocument.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PatientDocuments and only return the `id` * const patientDocumentWithIdOnly = await prisma.patientDocument.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a PatientDocument. * @param {PatientDocumentDeleteArgs} args - Arguments to delete one PatientDocument. * @example * // Delete one PatientDocument * const PatientDocument = await prisma.patientDocument.delete({ * where: { * // ... filter to delete one PatientDocument * } * }) * */ delete(args: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one PatientDocument. * @param {PatientDocumentUpdateArgs} args - Arguments to update one PatientDocument. * @example * // Update one PatientDocument * const patientDocument = await prisma.patientDocument.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more PatientDocuments. * @param {PatientDocumentDeleteManyArgs} args - Arguments to filter PatientDocuments to delete. * @example * // Delete a few PatientDocuments * const { count } = await prisma.patientDocument.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PatientDocuments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientDocumentUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PatientDocuments * const patientDocument = await prisma.patientDocument.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PatientDocuments and returns the data updated in the database. * @param {PatientDocumentUpdateManyAndReturnArgs} args - Arguments to update many PatientDocuments. * @example * // Update many PatientDocuments * const patientDocument = await prisma.patientDocument.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more PatientDocuments and only return the `id` * const patientDocumentWithIdOnly = await prisma.patientDocument.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one PatientDocument. * @param {PatientDocumentUpsertArgs} args - Arguments to update or create a PatientDocument. * @example * // Update or create a PatientDocument * const patientDocument = await prisma.patientDocument.upsert({ * create: { * // ... data to create a PatientDocument * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PatientDocument we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of PatientDocuments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientDocumentCountArgs} args - Arguments to filter PatientDocuments to count. * @example * // Count the number of PatientDocuments * const count = await prisma.patientDocument.count({ * where: { * // ... the filter for the PatientDocuments 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 PatientDocument. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientDocumentAggregateArgs} 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 PatientDocument. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientDocumentGroupByArgs} 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 PatientDocumentGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PatientDocumentGroupByArgs['orderBy'] } : { orderBy?: PatientDocumentGroupByArgs['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 ? GetPatientDocumentGroupByPayload : Prisma.PrismaPromise /** * Fields of the PatientDocument model */ readonly fields: PatientDocumentFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PatientDocument. * 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__PatientDocumentClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" patient = {}>(args?: Subset>): Prisma__PatientClient<$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 PatientDocument model */ interface PatientDocumentFieldRefs { readonly id: FieldRef<"PatientDocument", 'Int'> readonly patientId: FieldRef<"PatientDocument", 'Int'> readonly filename: FieldRef<"PatientDocument", 'String'> readonly originalName: FieldRef<"PatientDocument", 'String'> readonly mimeType: FieldRef<"PatientDocument", 'String'> readonly fileSize: FieldRef<"PatientDocument", 'BigInt'> readonly filePath: FieldRef<"PatientDocument", 'String'> readonly uploadedAt: FieldRef<"PatientDocument", 'DateTime'> readonly updatedAt: FieldRef<"PatientDocument", 'DateTime'> } // Custom InputTypes /** * PatientDocument findUnique */ export type PatientDocumentFindUniqueArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * Filter, which PatientDocument to fetch. */ where: PatientDocumentWhereUniqueInput } /** * PatientDocument findUniqueOrThrow */ export type PatientDocumentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * Filter, which PatientDocument to fetch. */ where: PatientDocumentWhereUniqueInput } /** * PatientDocument findFirst */ export type PatientDocumentFindFirstArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * Filter, which PatientDocument to fetch. */ where?: PatientDocumentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PatientDocuments to fetch. */ orderBy?: PatientDocumentOrderByWithRelationInput | PatientDocumentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PatientDocuments. */ cursor?: PatientDocumentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PatientDocuments 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` PatientDocuments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PatientDocuments. */ distinct?: PatientDocumentScalarFieldEnum | PatientDocumentScalarFieldEnum[] } /** * PatientDocument findFirstOrThrow */ export type PatientDocumentFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * Filter, which PatientDocument to fetch. */ where?: PatientDocumentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PatientDocuments to fetch. */ orderBy?: PatientDocumentOrderByWithRelationInput | PatientDocumentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PatientDocuments. */ cursor?: PatientDocumentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PatientDocuments 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` PatientDocuments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PatientDocuments. */ distinct?: PatientDocumentScalarFieldEnum | PatientDocumentScalarFieldEnum[] } /** * PatientDocument findMany */ export type PatientDocumentFindManyArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * Filter, which PatientDocuments to fetch. */ where?: PatientDocumentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PatientDocuments to fetch. */ orderBy?: PatientDocumentOrderByWithRelationInput | PatientDocumentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PatientDocuments. */ cursor?: PatientDocumentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PatientDocuments 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` PatientDocuments. */ skip?: number distinct?: PatientDocumentScalarFieldEnum | PatientDocumentScalarFieldEnum[] } /** * PatientDocument create */ export type PatientDocumentCreateArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * The data needed to create a PatientDocument. */ data: XOR } /** * PatientDocument createMany */ export type PatientDocumentCreateManyArgs = { /** * The data used to create many PatientDocuments. */ data: PatientDocumentCreateManyInput | PatientDocumentCreateManyInput[] skipDuplicates?: boolean } /** * PatientDocument createManyAndReturn */ export type PatientDocumentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelectCreateManyAndReturn | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * The data used to create many PatientDocuments. */ data: PatientDocumentCreateManyInput | PatientDocumentCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentIncludeCreateManyAndReturn | null } /** * PatientDocument update */ export type PatientDocumentUpdateArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * The data needed to update a PatientDocument. */ data: XOR /** * Choose, which PatientDocument to update. */ where: PatientDocumentWhereUniqueInput } /** * PatientDocument updateMany */ export type PatientDocumentUpdateManyArgs = { /** * The data used to update PatientDocuments. */ data: XOR /** * Filter which PatientDocuments to update */ where?: PatientDocumentWhereInput /** * Limit how many PatientDocuments to update. */ limit?: number } /** * PatientDocument updateManyAndReturn */ export type PatientDocumentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelectUpdateManyAndReturn | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * The data used to update PatientDocuments. */ data: XOR /** * Filter which PatientDocuments to update */ where?: PatientDocumentWhereInput /** * Limit how many PatientDocuments to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentIncludeUpdateManyAndReturn | null } /** * PatientDocument upsert */ export type PatientDocumentUpsertArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * The filter to search for the PatientDocument to update in case it exists. */ where: PatientDocumentWhereUniqueInput /** * In case the PatientDocument found by the `where` argument doesn't exist, create a new PatientDocument with this data. */ create: XOR /** * In case the PatientDocument was found with the provided `where` argument, update it with this data. */ update: XOR } /** * PatientDocument delete */ export type PatientDocumentDeleteArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * Filter which PatientDocument to delete. */ where: PatientDocumentWhereUniqueInput } /** * PatientDocument deleteMany */ export type PatientDocumentDeleteManyArgs = { /** * Filter which PatientDocuments to delete */ where?: PatientDocumentWhereInput /** * Limit how many PatientDocuments to delete. */ limit?: number } /** * PatientDocument without action */ export type PatientDocumentDefaultArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const UserScalarFieldEnum: { id: 'id', username: 'username', password: 'password' }; export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] export const PatientScalarFieldEnum: { id: 'id', firstName: 'firstName', lastName: 'lastName', dateOfBirth: 'dateOfBirth', gender: 'gender', phone: 'phone', email: 'email', address: 'address', city: 'city', zipCode: 'zipCode', insuranceProvider: 'insuranceProvider', insuranceId: 'insuranceId', groupNumber: 'groupNumber', policyHolder: 'policyHolder', allergies: 'allergies', medicalConditions: 'medicalConditions', status: 'status', userId: 'userId', createdAt: 'createdAt' }; export type PatientScalarFieldEnum = (typeof PatientScalarFieldEnum)[keyof typeof PatientScalarFieldEnum] export const AppointmentScalarFieldEnum: { id: 'id', patientId: 'patientId', userId: 'userId', staffId: 'staffId', title: 'title', date: 'date', startTime: 'startTime', endTime: 'endTime', type: 'type', notes: 'notes', procedureCodeNotes: 'procedureCodeNotes', status: 'status', createdAt: 'createdAt', eligibilityStatus: 'eligibilityStatus' }; export type AppointmentScalarFieldEnum = (typeof AppointmentScalarFieldEnum)[keyof typeof AppointmentScalarFieldEnum] export const StaffScalarFieldEnum: { id: 'id', userId: 'userId', name: 'name', email: 'email', role: 'role', phone: 'phone', createdAt: 'createdAt' }; export type StaffScalarFieldEnum = (typeof StaffScalarFieldEnum)[keyof typeof StaffScalarFieldEnum] export const NpiProviderScalarFieldEnum: { id: 'id', userId: 'userId', npiNumber: 'npiNumber', providerName: 'providerName', createdAt: 'createdAt' }; export type NpiProviderScalarFieldEnum = (typeof NpiProviderScalarFieldEnum)[keyof typeof NpiProviderScalarFieldEnum] export const AppointmentProcedureScalarFieldEnum: { id: 'id', appointmentId: 'appointmentId', patientId: 'patientId', procedureCode: 'procedureCode', procedureLabel: 'procedureLabel', fee: 'fee', category: 'category', toothNumber: 'toothNumber', toothSurface: 'toothSurface', oralCavityArea: 'oralCavityArea', source: 'source', comboKey: 'comboKey', createdAt: 'createdAt' }; export type AppointmentProcedureScalarFieldEnum = (typeof AppointmentProcedureScalarFieldEnum)[keyof typeof AppointmentProcedureScalarFieldEnum] export const ClaimScalarFieldEnum: { id: 'id', patientId: 'patientId', appointmentId: 'appointmentId', userId: 'userId', staffId: 'staffId', patientName: 'patientName', memberId: 'memberId', dateOfBirth: 'dateOfBirth', remarks: 'remarks', missingTeethStatus: 'missingTeethStatus', missingTeeth: 'missingTeeth', serviceDate: 'serviceDate', insuranceProvider: 'insuranceProvider', createdAt: 'createdAt', updatedAt: 'updatedAt', status: 'status', claimNumber: 'claimNumber' }; export type ClaimScalarFieldEnum = (typeof ClaimScalarFieldEnum)[keyof typeof ClaimScalarFieldEnum] export const ServiceLineScalarFieldEnum: { id: 'id', claimId: 'claimId', paymentId: 'paymentId', procedureCode: 'procedureCode', procedureDate: 'procedureDate', quad: 'quad', arch: 'arch', toothNumber: 'toothNumber', toothSurface: 'toothSurface', totalBilled: 'totalBilled', totalPaid: 'totalPaid', totalAdjusted: 'totalAdjusted', totalDue: 'totalDue', status: 'status' }; export type ServiceLineScalarFieldEnum = (typeof ServiceLineScalarFieldEnum)[keyof typeof ServiceLineScalarFieldEnum] export const ClaimFileScalarFieldEnum: { id: 'id', claimId: 'claimId', filename: 'filename', mimeType: 'mimeType' }; export type ClaimFileScalarFieldEnum = (typeof ClaimFileScalarFieldEnum)[keyof typeof ClaimFileScalarFieldEnum] export const InsuranceCredentialScalarFieldEnum: { id: 'id', userId: 'userId', siteKey: 'siteKey', username: 'username', password: 'password' }; export type InsuranceCredentialScalarFieldEnum = (typeof InsuranceCredentialScalarFieldEnum)[keyof typeof InsuranceCredentialScalarFieldEnum] export const PdfGroupScalarFieldEnum: { id: 'id', title: 'title', titleKey: 'titleKey', createdAt: 'createdAt', patientId: 'patientId' }; export type PdfGroupScalarFieldEnum = (typeof PdfGroupScalarFieldEnum)[keyof typeof PdfGroupScalarFieldEnum] export const PdfFileScalarFieldEnum: { id: 'id', filename: 'filename', pdfData: 'pdfData', uploadedAt: 'uploadedAt', groupId: 'groupId' }; export type PdfFileScalarFieldEnum = (typeof PdfFileScalarFieldEnum)[keyof typeof PdfFileScalarFieldEnum] export const PaymentScalarFieldEnum: { id: 'id', claimId: 'claimId', patientId: 'patientId', userId: 'userId', updatedById: 'updatedById', totalBilled: 'totalBilled', totalPaid: 'totalPaid', totalAdjusted: 'totalAdjusted', totalDue: 'totalDue', status: 'status', notes: 'notes', icn: 'icn', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type PaymentScalarFieldEnum = (typeof PaymentScalarFieldEnum)[keyof typeof PaymentScalarFieldEnum] export const ServiceLineTransactionScalarFieldEnum: { id: 'id', paymentId: 'paymentId', serviceLineId: 'serviceLineId', transactionId: 'transactionId', paidAmount: 'paidAmount', adjustedAmount: 'adjustedAmount', method: 'method', receivedDate: 'receivedDate', payerName: 'payerName', notes: 'notes', createdAt: 'createdAt' }; export type ServiceLineTransactionScalarFieldEnum = (typeof ServiceLineTransactionScalarFieldEnum)[keyof typeof ServiceLineTransactionScalarFieldEnum] export const DatabaseBackupScalarFieldEnum: { id: 'id', userId: 'userId', createdAt: 'createdAt' }; export type DatabaseBackupScalarFieldEnum = (typeof DatabaseBackupScalarFieldEnum)[keyof typeof DatabaseBackupScalarFieldEnum] export const BackupDestinationScalarFieldEnum: { id: 'id', userId: 'userId', path: 'path', isActive: 'isActive', createdAt: 'createdAt' }; export type BackupDestinationScalarFieldEnum = (typeof BackupDestinationScalarFieldEnum)[keyof typeof BackupDestinationScalarFieldEnum] export const NotificationScalarFieldEnum: { id: 'id', userId: 'userId', type: 'type', message: 'message', createdAt: 'createdAt', read: 'read' }; export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum] export const CloudFolderScalarFieldEnum: { id: 'id', userId: 'userId', name: 'name', parentId: 'parentId', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type CloudFolderScalarFieldEnum = (typeof CloudFolderScalarFieldEnum)[keyof typeof CloudFolderScalarFieldEnum] export const CloudFileScalarFieldEnum: { id: 'id', userId: 'userId', name: 'name', mimeType: 'mimeType', fileSize: 'fileSize', folderId: 'folderId', isComplete: 'isComplete', totalChunks: 'totalChunks', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type CloudFileScalarFieldEnum = (typeof CloudFileScalarFieldEnum)[keyof typeof CloudFileScalarFieldEnum] export const CloudFileChunkScalarFieldEnum: { id: 'id', fileId: 'fileId', seq: 'seq', data: 'data', createdAt: 'createdAt' }; export type CloudFileChunkScalarFieldEnum = (typeof CloudFileChunkScalarFieldEnum)[keyof typeof CloudFileChunkScalarFieldEnum] export const CommunicationScalarFieldEnum: { id: 'id', patientId: 'patientId', userId: 'userId', channel: 'channel', direction: 'direction', status: 'status', body: 'body', callDuration: 'callDuration', twilioSid: 'twilioSid', createdAt: 'createdAt' }; export type CommunicationScalarFieldEnum = (typeof CommunicationScalarFieldEnum)[keyof typeof CommunicationScalarFieldEnum] export const PatientDocumentScalarFieldEnum: { id: 'id', patientId: 'patientId', filename: 'filename', originalName: 'originalName', mimeType: 'mimeType', fileSize: 'fileSize', filePath: 'filePath', uploadedAt: 'uploadedAt', updatedAt: 'updatedAt' }; export type PatientDocumentScalarFieldEnum = (typeof PatientDocumentScalarFieldEnum)[keyof typeof PatientDocumentScalarFieldEnum] 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 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 JsonNullValueFilter: { DbNull: typeof DbNull, JsonNull: typeof JsonNull, AnyNull: typeof AnyNull }; export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] /** * Field references */ /** * Reference to a field of type 'Int' */ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> /** * Reference to a field of type 'Int[]' */ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> /** * Reference to a field of type 'String' */ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> /** * Reference to a field of type 'String[]' */ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> /** * Reference to a field of type 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> /** * Reference to a field of type 'DateTime[]' */ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> /** * Reference to a field of type 'PatientStatus' */ export type EnumPatientStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PatientStatus'> /** * Reference to a field of type 'PatientStatus[]' */ export type ListEnumPatientStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PatientStatus[]'> /** * Reference to a field of type 'Decimal' */ export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'> /** * Reference to a field of type 'Decimal[]' */ export type ListDecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal[]'> /** * Reference to a field of type 'ProcedureSource' */ export type EnumProcedureSourceFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ProcedureSource'> /** * Reference to a field of type 'ProcedureSource[]' */ export type ListEnumProcedureSourceFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ProcedureSource[]'> /** * Reference to a field of type 'MissingTeethStatus' */ export type EnumMissingTeethStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MissingTeethStatus'> /** * Reference to a field of type 'MissingTeethStatus[]' */ export type ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MissingTeethStatus[]'> /** * 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 'ClaimStatus' */ export type EnumClaimStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ClaimStatus'> /** * Reference to a field of type 'ClaimStatus[]' */ export type ListEnumClaimStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ClaimStatus[]'> /** * Reference to a field of type 'ServiceLineStatus' */ export type EnumServiceLineStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ServiceLineStatus'> /** * Reference to a field of type 'ServiceLineStatus[]' */ export type ListEnumServiceLineStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ServiceLineStatus[]'> /** * Reference to a field of type 'PdfTitleKey' */ export type EnumPdfTitleKeyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PdfTitleKey'> /** * Reference to a field of type 'PdfTitleKey[]' */ export type ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PdfTitleKey[]'> /** * Reference to a field of type 'Bytes' */ export type BytesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Bytes'> /** * Reference to a field of type 'Bytes[]' */ export type ListBytesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Bytes[]'> /** * Reference to a field of type 'PaymentStatus' */ export type EnumPaymentStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentStatus'> /** * Reference to a field of type 'PaymentStatus[]' */ export type ListEnumPaymentStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentStatus[]'> /** * Reference to a field of type 'PaymentMethod' */ export type EnumPaymentMethodFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentMethod'> /** * Reference to a field of type 'PaymentMethod[]' */ export type ListEnumPaymentMethodFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentMethod[]'> /** * Reference to a field of type 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * Reference to a field of type 'NotificationTypes' */ export type EnumNotificationTypesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'NotificationTypes'> /** * Reference to a field of type 'NotificationTypes[]' */ export type ListEnumNotificationTypesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'NotificationTypes[]'> /** * Reference to a field of type 'BigInt' */ export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'> /** * Reference to a field of type 'BigInt[]' */ export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'> /** * Reference to a field of type 'CommunicationChannel' */ export type EnumCommunicationChannelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CommunicationChannel'> /** * Reference to a field of type 'CommunicationChannel[]' */ export type ListEnumCommunicationChannelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CommunicationChannel[]'> /** * Reference to a field of type 'CommunicationDirection' */ export type EnumCommunicationDirectionFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CommunicationDirection'> /** * Reference to a field of type 'CommunicationDirection[]' */ export type ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CommunicationDirection[]'> /** * Reference to a field of type 'CommunicationStatus' */ export type EnumCommunicationStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CommunicationStatus'> /** * Reference to a field of type 'CommunicationStatus[]' */ export type ListEnumCommunicationStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CommunicationStatus[]'> /** * Reference to a field of type 'Float' */ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> /** * Reference to a field of type 'Float[]' */ export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> /** * Deep Input Types */ export type UserWhereInput = { AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] id?: IntFilter<"User"> | number username?: StringFilter<"User"> | string password?: StringFilter<"User"> | string patients?: PatientListRelationFilter appointments?: AppointmentListRelationFilter staff?: StaffListRelationFilter npiProviders?: NpiProviderListRelationFilter claims?: ClaimListRelationFilter insuranceCredentials?: InsuranceCredentialListRelationFilter updatedPayments?: PaymentListRelationFilter backups?: DatabaseBackupListRelationFilter backupDestinations?: BackupDestinationListRelationFilter notifications?: NotificationListRelationFilter cloudFolders?: CloudFolderListRelationFilter cloudFiles?: CloudFileListRelationFilter communications?: CommunicationListRelationFilter } export type UserOrderByWithRelationInput = { id?: SortOrder username?: SortOrder password?: SortOrder patients?: PatientOrderByRelationAggregateInput appointments?: AppointmentOrderByRelationAggregateInput staff?: StaffOrderByRelationAggregateInput npiProviders?: NpiProviderOrderByRelationAggregateInput claims?: ClaimOrderByRelationAggregateInput insuranceCredentials?: InsuranceCredentialOrderByRelationAggregateInput updatedPayments?: PaymentOrderByRelationAggregateInput backups?: DatabaseBackupOrderByRelationAggregateInput backupDestinations?: BackupDestinationOrderByRelationAggregateInput notifications?: NotificationOrderByRelationAggregateInput cloudFolders?: CloudFolderOrderByRelationAggregateInput cloudFiles?: CloudFileOrderByRelationAggregateInput communications?: CommunicationOrderByRelationAggregateInput } export type UserWhereUniqueInput = Prisma.AtLeast<{ id?: number username?: string AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] password?: StringFilter<"User"> | string patients?: PatientListRelationFilter appointments?: AppointmentListRelationFilter staff?: StaffListRelationFilter npiProviders?: NpiProviderListRelationFilter claims?: ClaimListRelationFilter insuranceCredentials?: InsuranceCredentialListRelationFilter updatedPayments?: PaymentListRelationFilter backups?: DatabaseBackupListRelationFilter backupDestinations?: BackupDestinationListRelationFilter notifications?: NotificationListRelationFilter cloudFolders?: CloudFolderListRelationFilter cloudFiles?: CloudFileListRelationFilter communications?: CommunicationListRelationFilter }, "id" | "username"> export type UserOrderByWithAggregationInput = { id?: SortOrder username?: SortOrder password?: SortOrder _count?: UserCountOrderByAggregateInput _avg?: UserAvgOrderByAggregateInput _max?: UserMaxOrderByAggregateInput _min?: UserMinOrderByAggregateInput _sum?: UserSumOrderByAggregateInput } export type UserScalarWhereWithAggregatesInput = { AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] OR?: UserScalarWhereWithAggregatesInput[] NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"User"> | number username?: StringWithAggregatesFilter<"User"> | string password?: StringWithAggregatesFilter<"User"> | string } export type PatientWhereInput = { AND?: PatientWhereInput | PatientWhereInput[] OR?: PatientWhereInput[] NOT?: PatientWhereInput | PatientWhereInput[] id?: IntFilter<"Patient"> | number firstName?: StringFilter<"Patient"> | string lastName?: StringFilter<"Patient"> | string dateOfBirth?: DateTimeFilter<"Patient"> | Date | string gender?: StringFilter<"Patient"> | string phone?: StringFilter<"Patient"> | string email?: StringNullableFilter<"Patient"> | string | null address?: StringNullableFilter<"Patient"> | string | null city?: StringNullableFilter<"Patient"> | string | null zipCode?: StringNullableFilter<"Patient"> | string | null insuranceProvider?: StringNullableFilter<"Patient"> | string | null insuranceId?: StringNullableFilter<"Patient"> | string | null groupNumber?: StringNullableFilter<"Patient"> | string | null policyHolder?: StringNullableFilter<"Patient"> | string | null allergies?: StringNullableFilter<"Patient"> | string | null medicalConditions?: StringNullableFilter<"Patient"> | string | null status?: EnumPatientStatusFilter<"Patient"> | $Enums.PatientStatus userId?: IntFilter<"Patient"> | number createdAt?: DateTimeFilter<"Patient"> | Date | string user?: XOR appointments?: AppointmentListRelationFilter procedures?: AppointmentProcedureListRelationFilter claims?: ClaimListRelationFilter groups?: PdfGroupListRelationFilter payment?: PaymentListRelationFilter communications?: CommunicationListRelationFilter documents?: PatientDocumentListRelationFilter } export type PatientOrderByWithRelationInput = { id?: SortOrder firstName?: SortOrder lastName?: SortOrder dateOfBirth?: SortOrder gender?: SortOrder phone?: SortOrder email?: SortOrderInput | SortOrder address?: SortOrderInput | SortOrder city?: SortOrderInput | SortOrder zipCode?: SortOrderInput | SortOrder insuranceProvider?: SortOrderInput | SortOrder insuranceId?: SortOrderInput | SortOrder groupNumber?: SortOrderInput | SortOrder policyHolder?: SortOrderInput | SortOrder allergies?: SortOrderInput | SortOrder medicalConditions?: SortOrderInput | SortOrder status?: SortOrder userId?: SortOrder createdAt?: SortOrder user?: UserOrderByWithRelationInput appointments?: AppointmentOrderByRelationAggregateInput procedures?: AppointmentProcedureOrderByRelationAggregateInput claims?: ClaimOrderByRelationAggregateInput groups?: PdfGroupOrderByRelationAggregateInput payment?: PaymentOrderByRelationAggregateInput communications?: CommunicationOrderByRelationAggregateInput documents?: PatientDocumentOrderByRelationAggregateInput } export type PatientWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: PatientWhereInput | PatientWhereInput[] OR?: PatientWhereInput[] NOT?: PatientWhereInput | PatientWhereInput[] firstName?: StringFilter<"Patient"> | string lastName?: StringFilter<"Patient"> | string dateOfBirth?: DateTimeFilter<"Patient"> | Date | string gender?: StringFilter<"Patient"> | string phone?: StringFilter<"Patient"> | string email?: StringNullableFilter<"Patient"> | string | null address?: StringNullableFilter<"Patient"> | string | null city?: StringNullableFilter<"Patient"> | string | null zipCode?: StringNullableFilter<"Patient"> | string | null insuranceProvider?: StringNullableFilter<"Patient"> | string | null insuranceId?: StringNullableFilter<"Patient"> | string | null groupNumber?: StringNullableFilter<"Patient"> | string | null policyHolder?: StringNullableFilter<"Patient"> | string | null allergies?: StringNullableFilter<"Patient"> | string | null medicalConditions?: StringNullableFilter<"Patient"> | string | null status?: EnumPatientStatusFilter<"Patient"> | $Enums.PatientStatus userId?: IntFilter<"Patient"> | number createdAt?: DateTimeFilter<"Patient"> | Date | string user?: XOR appointments?: AppointmentListRelationFilter procedures?: AppointmentProcedureListRelationFilter claims?: ClaimListRelationFilter groups?: PdfGroupListRelationFilter payment?: PaymentListRelationFilter communications?: CommunicationListRelationFilter documents?: PatientDocumentListRelationFilter }, "id"> export type PatientOrderByWithAggregationInput = { id?: SortOrder firstName?: SortOrder lastName?: SortOrder dateOfBirth?: SortOrder gender?: SortOrder phone?: SortOrder email?: SortOrderInput | SortOrder address?: SortOrderInput | SortOrder city?: SortOrderInput | SortOrder zipCode?: SortOrderInput | SortOrder insuranceProvider?: SortOrderInput | SortOrder insuranceId?: SortOrderInput | SortOrder groupNumber?: SortOrderInput | SortOrder policyHolder?: SortOrderInput | SortOrder allergies?: SortOrderInput | SortOrder medicalConditions?: SortOrderInput | SortOrder status?: SortOrder userId?: SortOrder createdAt?: SortOrder _count?: PatientCountOrderByAggregateInput _avg?: PatientAvgOrderByAggregateInput _max?: PatientMaxOrderByAggregateInput _min?: PatientMinOrderByAggregateInput _sum?: PatientSumOrderByAggregateInput } export type PatientScalarWhereWithAggregatesInput = { AND?: PatientScalarWhereWithAggregatesInput | PatientScalarWhereWithAggregatesInput[] OR?: PatientScalarWhereWithAggregatesInput[] NOT?: PatientScalarWhereWithAggregatesInput | PatientScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Patient"> | number firstName?: StringWithAggregatesFilter<"Patient"> | string lastName?: StringWithAggregatesFilter<"Patient"> | string dateOfBirth?: DateTimeWithAggregatesFilter<"Patient"> | Date | string gender?: StringWithAggregatesFilter<"Patient"> | string phone?: StringWithAggregatesFilter<"Patient"> | string email?: StringNullableWithAggregatesFilter<"Patient"> | string | null address?: StringNullableWithAggregatesFilter<"Patient"> | string | null city?: StringNullableWithAggregatesFilter<"Patient"> | string | null zipCode?: StringNullableWithAggregatesFilter<"Patient"> | string | null insuranceProvider?: StringNullableWithAggregatesFilter<"Patient"> | string | null insuranceId?: StringNullableWithAggregatesFilter<"Patient"> | string | null groupNumber?: StringNullableWithAggregatesFilter<"Patient"> | string | null policyHolder?: StringNullableWithAggregatesFilter<"Patient"> | string | null allergies?: StringNullableWithAggregatesFilter<"Patient"> | string | null medicalConditions?: StringNullableWithAggregatesFilter<"Patient"> | string | null status?: EnumPatientStatusWithAggregatesFilter<"Patient"> | $Enums.PatientStatus userId?: IntWithAggregatesFilter<"Patient"> | number createdAt?: DateTimeWithAggregatesFilter<"Patient"> | Date | string } export type AppointmentWhereInput = { AND?: AppointmentWhereInput | AppointmentWhereInput[] OR?: AppointmentWhereInput[] NOT?: AppointmentWhereInput | AppointmentWhereInput[] id?: IntFilter<"Appointment"> | number patientId?: IntFilter<"Appointment"> | number userId?: IntFilter<"Appointment"> | number staffId?: IntFilter<"Appointment"> | number title?: StringFilter<"Appointment"> | string date?: DateTimeFilter<"Appointment"> | Date | string startTime?: StringFilter<"Appointment"> | string endTime?: StringFilter<"Appointment"> | string type?: StringFilter<"Appointment"> | string notes?: StringNullableFilter<"Appointment"> | string | null procedureCodeNotes?: StringNullableFilter<"Appointment"> | string | null status?: StringFilter<"Appointment"> | string createdAt?: DateTimeFilter<"Appointment"> | Date | string eligibilityStatus?: EnumPatientStatusFilter<"Appointment"> | $Enums.PatientStatus patient?: XOR user?: XOR staff?: XOR | null procedures?: AppointmentProcedureListRelationFilter claims?: ClaimListRelationFilter } export type AppointmentOrderByWithRelationInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder staffId?: SortOrder title?: SortOrder date?: SortOrder startTime?: SortOrder endTime?: SortOrder type?: SortOrder notes?: SortOrderInput | SortOrder procedureCodeNotes?: SortOrderInput | SortOrder status?: SortOrder createdAt?: SortOrder eligibilityStatus?: SortOrder patient?: PatientOrderByWithRelationInput user?: UserOrderByWithRelationInput staff?: StaffOrderByWithRelationInput procedures?: AppointmentProcedureOrderByRelationAggregateInput claims?: ClaimOrderByRelationAggregateInput } export type AppointmentWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: AppointmentWhereInput | AppointmentWhereInput[] OR?: AppointmentWhereInput[] NOT?: AppointmentWhereInput | AppointmentWhereInput[] patientId?: IntFilter<"Appointment"> | number userId?: IntFilter<"Appointment"> | number staffId?: IntFilter<"Appointment"> | number title?: StringFilter<"Appointment"> | string date?: DateTimeFilter<"Appointment"> | Date | string startTime?: StringFilter<"Appointment"> | string endTime?: StringFilter<"Appointment"> | string type?: StringFilter<"Appointment"> | string notes?: StringNullableFilter<"Appointment"> | string | null procedureCodeNotes?: StringNullableFilter<"Appointment"> | string | null status?: StringFilter<"Appointment"> | string createdAt?: DateTimeFilter<"Appointment"> | Date | string eligibilityStatus?: EnumPatientStatusFilter<"Appointment"> | $Enums.PatientStatus patient?: XOR user?: XOR staff?: XOR | null procedures?: AppointmentProcedureListRelationFilter claims?: ClaimListRelationFilter }, "id"> export type AppointmentOrderByWithAggregationInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder staffId?: SortOrder title?: SortOrder date?: SortOrder startTime?: SortOrder endTime?: SortOrder type?: SortOrder notes?: SortOrderInput | SortOrder procedureCodeNotes?: SortOrderInput | SortOrder status?: SortOrder createdAt?: SortOrder eligibilityStatus?: SortOrder _count?: AppointmentCountOrderByAggregateInput _avg?: AppointmentAvgOrderByAggregateInput _max?: AppointmentMaxOrderByAggregateInput _min?: AppointmentMinOrderByAggregateInput _sum?: AppointmentSumOrderByAggregateInput } export type AppointmentScalarWhereWithAggregatesInput = { AND?: AppointmentScalarWhereWithAggregatesInput | AppointmentScalarWhereWithAggregatesInput[] OR?: AppointmentScalarWhereWithAggregatesInput[] NOT?: AppointmentScalarWhereWithAggregatesInput | AppointmentScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Appointment"> | number patientId?: IntWithAggregatesFilter<"Appointment"> | number userId?: IntWithAggregatesFilter<"Appointment"> | number staffId?: IntWithAggregatesFilter<"Appointment"> | number title?: StringWithAggregatesFilter<"Appointment"> | string date?: DateTimeWithAggregatesFilter<"Appointment"> | Date | string startTime?: StringWithAggregatesFilter<"Appointment"> | string endTime?: StringWithAggregatesFilter<"Appointment"> | string type?: StringWithAggregatesFilter<"Appointment"> | string notes?: StringNullableWithAggregatesFilter<"Appointment"> | string | null procedureCodeNotes?: StringNullableWithAggregatesFilter<"Appointment"> | string | null status?: StringWithAggregatesFilter<"Appointment"> | string createdAt?: DateTimeWithAggregatesFilter<"Appointment"> | Date | string eligibilityStatus?: EnumPatientStatusWithAggregatesFilter<"Appointment"> | $Enums.PatientStatus } export type StaffWhereInput = { AND?: StaffWhereInput | StaffWhereInput[] OR?: StaffWhereInput[] NOT?: StaffWhereInput | StaffWhereInput[] id?: IntFilter<"Staff"> | number userId?: IntFilter<"Staff"> | number name?: StringFilter<"Staff"> | string email?: StringNullableFilter<"Staff"> | string | null role?: StringFilter<"Staff"> | string phone?: StringNullableFilter<"Staff"> | string | null createdAt?: DateTimeFilter<"Staff"> | Date | string user?: XOR | null appointments?: AppointmentListRelationFilter claims?: ClaimListRelationFilter } export type StaffOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder email?: SortOrderInput | SortOrder role?: SortOrder phone?: SortOrderInput | SortOrder createdAt?: SortOrder user?: UserOrderByWithRelationInput appointments?: AppointmentOrderByRelationAggregateInput claims?: ClaimOrderByRelationAggregateInput } export type StaffWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: StaffWhereInput | StaffWhereInput[] OR?: StaffWhereInput[] NOT?: StaffWhereInput | StaffWhereInput[] userId?: IntFilter<"Staff"> | number name?: StringFilter<"Staff"> | string email?: StringNullableFilter<"Staff"> | string | null role?: StringFilter<"Staff"> | string phone?: StringNullableFilter<"Staff"> | string | null createdAt?: DateTimeFilter<"Staff"> | Date | string user?: XOR | null appointments?: AppointmentListRelationFilter claims?: ClaimListRelationFilter }, "id"> export type StaffOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder email?: SortOrderInput | SortOrder role?: SortOrder phone?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: StaffCountOrderByAggregateInput _avg?: StaffAvgOrderByAggregateInput _max?: StaffMaxOrderByAggregateInput _min?: StaffMinOrderByAggregateInput _sum?: StaffSumOrderByAggregateInput } export type StaffScalarWhereWithAggregatesInput = { AND?: StaffScalarWhereWithAggregatesInput | StaffScalarWhereWithAggregatesInput[] OR?: StaffScalarWhereWithAggregatesInput[] NOT?: StaffScalarWhereWithAggregatesInput | StaffScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Staff"> | number userId?: IntWithAggregatesFilter<"Staff"> | number name?: StringWithAggregatesFilter<"Staff"> | string email?: StringNullableWithAggregatesFilter<"Staff"> | string | null role?: StringWithAggregatesFilter<"Staff"> | string phone?: StringNullableWithAggregatesFilter<"Staff"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Staff"> | Date | string } export type NpiProviderWhereInput = { AND?: NpiProviderWhereInput | NpiProviderWhereInput[] OR?: NpiProviderWhereInput[] NOT?: NpiProviderWhereInput | NpiProviderWhereInput[] id?: IntFilter<"NpiProvider"> | number userId?: IntFilter<"NpiProvider"> | number npiNumber?: StringFilter<"NpiProvider"> | string providerName?: StringFilter<"NpiProvider"> | string createdAt?: DateTimeFilter<"NpiProvider"> | Date | string user?: XOR } export type NpiProviderOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder npiNumber?: SortOrder providerName?: SortOrder createdAt?: SortOrder user?: UserOrderByWithRelationInput } export type NpiProviderWhereUniqueInput = Prisma.AtLeast<{ id?: number userId_npiNumber?: NpiProviderUserIdNpiNumberCompoundUniqueInput AND?: NpiProviderWhereInput | NpiProviderWhereInput[] OR?: NpiProviderWhereInput[] NOT?: NpiProviderWhereInput | NpiProviderWhereInput[] userId?: IntFilter<"NpiProvider"> | number npiNumber?: StringFilter<"NpiProvider"> | string providerName?: StringFilter<"NpiProvider"> | string createdAt?: DateTimeFilter<"NpiProvider"> | Date | string user?: XOR }, "id" | "userId_npiNumber"> export type NpiProviderOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder npiNumber?: SortOrder providerName?: SortOrder createdAt?: SortOrder _count?: NpiProviderCountOrderByAggregateInput _avg?: NpiProviderAvgOrderByAggregateInput _max?: NpiProviderMaxOrderByAggregateInput _min?: NpiProviderMinOrderByAggregateInput _sum?: NpiProviderSumOrderByAggregateInput } export type NpiProviderScalarWhereWithAggregatesInput = { AND?: NpiProviderScalarWhereWithAggregatesInput | NpiProviderScalarWhereWithAggregatesInput[] OR?: NpiProviderScalarWhereWithAggregatesInput[] NOT?: NpiProviderScalarWhereWithAggregatesInput | NpiProviderScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"NpiProvider"> | number userId?: IntWithAggregatesFilter<"NpiProvider"> | number npiNumber?: StringWithAggregatesFilter<"NpiProvider"> | string providerName?: StringWithAggregatesFilter<"NpiProvider"> | string createdAt?: DateTimeWithAggregatesFilter<"NpiProvider"> | Date | string } export type AppointmentProcedureWhereInput = { AND?: AppointmentProcedureWhereInput | AppointmentProcedureWhereInput[] OR?: AppointmentProcedureWhereInput[] NOT?: AppointmentProcedureWhereInput | AppointmentProcedureWhereInput[] id?: IntFilter<"AppointmentProcedure"> | number appointmentId?: IntFilter<"AppointmentProcedure"> | number patientId?: IntFilter<"AppointmentProcedure"> | number procedureCode?: StringFilter<"AppointmentProcedure"> | string procedureLabel?: StringNullableFilter<"AppointmentProcedure"> | string | null fee?: DecimalNullableFilter<"AppointmentProcedure"> | Decimal | DecimalJsLike | number | string | null category?: StringNullableFilter<"AppointmentProcedure"> | string | null toothNumber?: StringNullableFilter<"AppointmentProcedure"> | string | null toothSurface?: StringNullableFilter<"AppointmentProcedure"> | string | null oralCavityArea?: StringNullableFilter<"AppointmentProcedure"> | string | null source?: EnumProcedureSourceFilter<"AppointmentProcedure"> | $Enums.ProcedureSource comboKey?: StringNullableFilter<"AppointmentProcedure"> | string | null createdAt?: DateTimeFilter<"AppointmentProcedure"> | Date | string appointment?: XOR patient?: XOR } export type AppointmentProcedureOrderByWithRelationInput = { id?: SortOrder appointmentId?: SortOrder patientId?: SortOrder procedureCode?: SortOrder procedureLabel?: SortOrderInput | SortOrder fee?: SortOrderInput | SortOrder category?: SortOrderInput | SortOrder toothNumber?: SortOrderInput | SortOrder toothSurface?: SortOrderInput | SortOrder oralCavityArea?: SortOrderInput | SortOrder source?: SortOrder comboKey?: SortOrderInput | SortOrder createdAt?: SortOrder appointment?: AppointmentOrderByWithRelationInput patient?: PatientOrderByWithRelationInput } export type AppointmentProcedureWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: AppointmentProcedureWhereInput | AppointmentProcedureWhereInput[] OR?: AppointmentProcedureWhereInput[] NOT?: AppointmentProcedureWhereInput | AppointmentProcedureWhereInput[] appointmentId?: IntFilter<"AppointmentProcedure"> | number patientId?: IntFilter<"AppointmentProcedure"> | number procedureCode?: StringFilter<"AppointmentProcedure"> | string procedureLabel?: StringNullableFilter<"AppointmentProcedure"> | string | null fee?: DecimalNullableFilter<"AppointmentProcedure"> | Decimal | DecimalJsLike | number | string | null category?: StringNullableFilter<"AppointmentProcedure"> | string | null toothNumber?: StringNullableFilter<"AppointmentProcedure"> | string | null toothSurface?: StringNullableFilter<"AppointmentProcedure"> | string | null oralCavityArea?: StringNullableFilter<"AppointmentProcedure"> | string | null source?: EnumProcedureSourceFilter<"AppointmentProcedure"> | $Enums.ProcedureSource comboKey?: StringNullableFilter<"AppointmentProcedure"> | string | null createdAt?: DateTimeFilter<"AppointmentProcedure"> | Date | string appointment?: XOR patient?: XOR }, "id"> export type AppointmentProcedureOrderByWithAggregationInput = { id?: SortOrder appointmentId?: SortOrder patientId?: SortOrder procedureCode?: SortOrder procedureLabel?: SortOrderInput | SortOrder fee?: SortOrderInput | SortOrder category?: SortOrderInput | SortOrder toothNumber?: SortOrderInput | SortOrder toothSurface?: SortOrderInput | SortOrder oralCavityArea?: SortOrderInput | SortOrder source?: SortOrder comboKey?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: AppointmentProcedureCountOrderByAggregateInput _avg?: AppointmentProcedureAvgOrderByAggregateInput _max?: AppointmentProcedureMaxOrderByAggregateInput _min?: AppointmentProcedureMinOrderByAggregateInput _sum?: AppointmentProcedureSumOrderByAggregateInput } export type AppointmentProcedureScalarWhereWithAggregatesInput = { AND?: AppointmentProcedureScalarWhereWithAggregatesInput | AppointmentProcedureScalarWhereWithAggregatesInput[] OR?: AppointmentProcedureScalarWhereWithAggregatesInput[] NOT?: AppointmentProcedureScalarWhereWithAggregatesInput | AppointmentProcedureScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"AppointmentProcedure"> | number appointmentId?: IntWithAggregatesFilter<"AppointmentProcedure"> | number patientId?: IntWithAggregatesFilter<"AppointmentProcedure"> | number procedureCode?: StringWithAggregatesFilter<"AppointmentProcedure"> | string procedureLabel?: StringNullableWithAggregatesFilter<"AppointmentProcedure"> | string | null fee?: DecimalNullableWithAggregatesFilter<"AppointmentProcedure"> | Decimal | DecimalJsLike | number | string | null category?: StringNullableWithAggregatesFilter<"AppointmentProcedure"> | string | null toothNumber?: StringNullableWithAggregatesFilter<"AppointmentProcedure"> | string | null toothSurface?: StringNullableWithAggregatesFilter<"AppointmentProcedure"> | string | null oralCavityArea?: StringNullableWithAggregatesFilter<"AppointmentProcedure"> | string | null source?: EnumProcedureSourceWithAggregatesFilter<"AppointmentProcedure"> | $Enums.ProcedureSource comboKey?: StringNullableWithAggregatesFilter<"AppointmentProcedure"> | string | null createdAt?: DateTimeWithAggregatesFilter<"AppointmentProcedure"> | Date | string } export type ClaimWhereInput = { AND?: ClaimWhereInput | ClaimWhereInput[] OR?: ClaimWhereInput[] NOT?: ClaimWhereInput | ClaimWhereInput[] id?: IntFilter<"Claim"> | number patientId?: IntFilter<"Claim"> | number appointmentId?: IntFilter<"Claim"> | number userId?: IntFilter<"Claim"> | number staffId?: IntFilter<"Claim"> | number patientName?: StringFilter<"Claim"> | string memberId?: StringFilter<"Claim"> | string dateOfBirth?: DateTimeFilter<"Claim"> | Date | string remarks?: StringFilter<"Claim"> | string missingTeethStatus?: EnumMissingTeethStatusFilter<"Claim"> | $Enums.MissingTeethStatus missingTeeth?: JsonNullableFilter<"Claim"> serviceDate?: DateTimeFilter<"Claim"> | Date | string insuranceProvider?: StringFilter<"Claim"> | string createdAt?: DateTimeFilter<"Claim"> | Date | string updatedAt?: DateTimeFilter<"Claim"> | Date | string status?: EnumClaimStatusFilter<"Claim"> | $Enums.ClaimStatus claimNumber?: StringNullableFilter<"Claim"> | string | null patient?: XOR appointment?: XOR user?: XOR | null staff?: XOR | null serviceLines?: ServiceLineListRelationFilter claimFiles?: ClaimFileListRelationFilter payment?: XOR | null } export type ClaimOrderByWithRelationInput = { id?: SortOrder patientId?: SortOrder appointmentId?: SortOrder userId?: SortOrder staffId?: SortOrder patientName?: SortOrder memberId?: SortOrder dateOfBirth?: SortOrder remarks?: SortOrder missingTeethStatus?: SortOrder missingTeeth?: SortOrderInput | SortOrder serviceDate?: SortOrder insuranceProvider?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder status?: SortOrder claimNumber?: SortOrderInput | SortOrder patient?: PatientOrderByWithRelationInput appointment?: AppointmentOrderByWithRelationInput user?: UserOrderByWithRelationInput staff?: StaffOrderByWithRelationInput serviceLines?: ServiceLineOrderByRelationAggregateInput claimFiles?: ClaimFileOrderByRelationAggregateInput payment?: PaymentOrderByWithRelationInput } export type ClaimWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: ClaimWhereInput | ClaimWhereInput[] OR?: ClaimWhereInput[] NOT?: ClaimWhereInput | ClaimWhereInput[] patientId?: IntFilter<"Claim"> | number appointmentId?: IntFilter<"Claim"> | number userId?: IntFilter<"Claim"> | number staffId?: IntFilter<"Claim"> | number patientName?: StringFilter<"Claim"> | string memberId?: StringFilter<"Claim"> | string dateOfBirth?: DateTimeFilter<"Claim"> | Date | string remarks?: StringFilter<"Claim"> | string missingTeethStatus?: EnumMissingTeethStatusFilter<"Claim"> | $Enums.MissingTeethStatus missingTeeth?: JsonNullableFilter<"Claim"> serviceDate?: DateTimeFilter<"Claim"> | Date | string insuranceProvider?: StringFilter<"Claim"> | string createdAt?: DateTimeFilter<"Claim"> | Date | string updatedAt?: DateTimeFilter<"Claim"> | Date | string status?: EnumClaimStatusFilter<"Claim"> | $Enums.ClaimStatus claimNumber?: StringNullableFilter<"Claim"> | string | null patient?: XOR appointment?: XOR user?: XOR | null staff?: XOR | null serviceLines?: ServiceLineListRelationFilter claimFiles?: ClaimFileListRelationFilter payment?: XOR | null }, "id"> export type ClaimOrderByWithAggregationInput = { id?: SortOrder patientId?: SortOrder appointmentId?: SortOrder userId?: SortOrder staffId?: SortOrder patientName?: SortOrder memberId?: SortOrder dateOfBirth?: SortOrder remarks?: SortOrder missingTeethStatus?: SortOrder missingTeeth?: SortOrderInput | SortOrder serviceDate?: SortOrder insuranceProvider?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder status?: SortOrder claimNumber?: SortOrderInput | SortOrder _count?: ClaimCountOrderByAggregateInput _avg?: ClaimAvgOrderByAggregateInput _max?: ClaimMaxOrderByAggregateInput _min?: ClaimMinOrderByAggregateInput _sum?: ClaimSumOrderByAggregateInput } export type ClaimScalarWhereWithAggregatesInput = { AND?: ClaimScalarWhereWithAggregatesInput | ClaimScalarWhereWithAggregatesInput[] OR?: ClaimScalarWhereWithAggregatesInput[] NOT?: ClaimScalarWhereWithAggregatesInput | ClaimScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Claim"> | number patientId?: IntWithAggregatesFilter<"Claim"> | number appointmentId?: IntWithAggregatesFilter<"Claim"> | number userId?: IntWithAggregatesFilter<"Claim"> | number staffId?: IntWithAggregatesFilter<"Claim"> | number patientName?: StringWithAggregatesFilter<"Claim"> | string memberId?: StringWithAggregatesFilter<"Claim"> | string dateOfBirth?: DateTimeWithAggregatesFilter<"Claim"> | Date | string remarks?: StringWithAggregatesFilter<"Claim"> | string missingTeethStatus?: EnumMissingTeethStatusWithAggregatesFilter<"Claim"> | $Enums.MissingTeethStatus missingTeeth?: JsonNullableWithAggregatesFilter<"Claim"> serviceDate?: DateTimeWithAggregatesFilter<"Claim"> | Date | string insuranceProvider?: StringWithAggregatesFilter<"Claim"> | string createdAt?: DateTimeWithAggregatesFilter<"Claim"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Claim"> | Date | string status?: EnumClaimStatusWithAggregatesFilter<"Claim"> | $Enums.ClaimStatus claimNumber?: StringNullableWithAggregatesFilter<"Claim"> | string | null } export type ServiceLineWhereInput = { AND?: ServiceLineWhereInput | ServiceLineWhereInput[] OR?: ServiceLineWhereInput[] NOT?: ServiceLineWhereInput | ServiceLineWhereInput[] id?: IntFilter<"ServiceLine"> | number claimId?: IntNullableFilter<"ServiceLine"> | number | null paymentId?: IntNullableFilter<"ServiceLine"> | number | null procedureCode?: StringFilter<"ServiceLine"> | string procedureDate?: DateTimeFilter<"ServiceLine"> | Date | string quad?: StringNullableFilter<"ServiceLine"> | string | null arch?: StringNullableFilter<"ServiceLine"> | string | null toothNumber?: StringNullableFilter<"ServiceLine"> | string | null toothSurface?: StringNullableFilter<"ServiceLine"> | string | null totalBilled?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFilter<"ServiceLine"> | $Enums.ServiceLineStatus claim?: XOR | null payment?: XOR | null serviceLineTransactions?: ServiceLineTransactionListRelationFilter } export type ServiceLineOrderByWithRelationInput = { id?: SortOrder claimId?: SortOrderInput | SortOrder paymentId?: SortOrderInput | SortOrder procedureCode?: SortOrder procedureDate?: SortOrder quad?: SortOrderInput | SortOrder arch?: SortOrderInput | SortOrder toothNumber?: SortOrderInput | SortOrder toothSurface?: SortOrderInput | SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder status?: SortOrder claim?: ClaimOrderByWithRelationInput payment?: PaymentOrderByWithRelationInput serviceLineTransactions?: ServiceLineTransactionOrderByRelationAggregateInput } export type ServiceLineWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: ServiceLineWhereInput | ServiceLineWhereInput[] OR?: ServiceLineWhereInput[] NOT?: ServiceLineWhereInput | ServiceLineWhereInput[] claimId?: IntNullableFilter<"ServiceLine"> | number | null paymentId?: IntNullableFilter<"ServiceLine"> | number | null procedureCode?: StringFilter<"ServiceLine"> | string procedureDate?: DateTimeFilter<"ServiceLine"> | Date | string quad?: StringNullableFilter<"ServiceLine"> | string | null arch?: StringNullableFilter<"ServiceLine"> | string | null toothNumber?: StringNullableFilter<"ServiceLine"> | string | null toothSurface?: StringNullableFilter<"ServiceLine"> | string | null totalBilled?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFilter<"ServiceLine"> | $Enums.ServiceLineStatus claim?: XOR | null payment?: XOR | null serviceLineTransactions?: ServiceLineTransactionListRelationFilter }, "id"> export type ServiceLineOrderByWithAggregationInput = { id?: SortOrder claimId?: SortOrderInput | SortOrder paymentId?: SortOrderInput | SortOrder procedureCode?: SortOrder procedureDate?: SortOrder quad?: SortOrderInput | SortOrder arch?: SortOrderInput | SortOrder toothNumber?: SortOrderInput | SortOrder toothSurface?: SortOrderInput | SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder status?: SortOrder _count?: ServiceLineCountOrderByAggregateInput _avg?: ServiceLineAvgOrderByAggregateInput _max?: ServiceLineMaxOrderByAggregateInput _min?: ServiceLineMinOrderByAggregateInput _sum?: ServiceLineSumOrderByAggregateInput } export type ServiceLineScalarWhereWithAggregatesInput = { AND?: ServiceLineScalarWhereWithAggregatesInput | ServiceLineScalarWhereWithAggregatesInput[] OR?: ServiceLineScalarWhereWithAggregatesInput[] NOT?: ServiceLineScalarWhereWithAggregatesInput | ServiceLineScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"ServiceLine"> | number claimId?: IntNullableWithAggregatesFilter<"ServiceLine"> | number | null paymentId?: IntNullableWithAggregatesFilter<"ServiceLine"> | number | null procedureCode?: StringWithAggregatesFilter<"ServiceLine"> | string procedureDate?: DateTimeWithAggregatesFilter<"ServiceLine"> | Date | string quad?: StringNullableWithAggregatesFilter<"ServiceLine"> | string | null arch?: StringNullableWithAggregatesFilter<"ServiceLine"> | string | null toothNumber?: StringNullableWithAggregatesFilter<"ServiceLine"> | string | null toothSurface?: StringNullableWithAggregatesFilter<"ServiceLine"> | string | null totalBilled?: DecimalWithAggregatesFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalWithAggregatesFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalWithAggregatesFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalWithAggregatesFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusWithAggregatesFilter<"ServiceLine"> | $Enums.ServiceLineStatus } export type ClaimFileWhereInput = { AND?: ClaimFileWhereInput | ClaimFileWhereInput[] OR?: ClaimFileWhereInput[] NOT?: ClaimFileWhereInput | ClaimFileWhereInput[] id?: IntFilter<"ClaimFile"> | number claimId?: IntFilter<"ClaimFile"> | number filename?: StringFilter<"ClaimFile"> | string mimeType?: StringFilter<"ClaimFile"> | string claim?: XOR } export type ClaimFileOrderByWithRelationInput = { id?: SortOrder claimId?: SortOrder filename?: SortOrder mimeType?: SortOrder claim?: ClaimOrderByWithRelationInput } export type ClaimFileWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: ClaimFileWhereInput | ClaimFileWhereInput[] OR?: ClaimFileWhereInput[] NOT?: ClaimFileWhereInput | ClaimFileWhereInput[] claimId?: IntFilter<"ClaimFile"> | number filename?: StringFilter<"ClaimFile"> | string mimeType?: StringFilter<"ClaimFile"> | string claim?: XOR }, "id"> export type ClaimFileOrderByWithAggregationInput = { id?: SortOrder claimId?: SortOrder filename?: SortOrder mimeType?: SortOrder _count?: ClaimFileCountOrderByAggregateInput _avg?: ClaimFileAvgOrderByAggregateInput _max?: ClaimFileMaxOrderByAggregateInput _min?: ClaimFileMinOrderByAggregateInput _sum?: ClaimFileSumOrderByAggregateInput } export type ClaimFileScalarWhereWithAggregatesInput = { AND?: ClaimFileScalarWhereWithAggregatesInput | ClaimFileScalarWhereWithAggregatesInput[] OR?: ClaimFileScalarWhereWithAggregatesInput[] NOT?: ClaimFileScalarWhereWithAggregatesInput | ClaimFileScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"ClaimFile"> | number claimId?: IntWithAggregatesFilter<"ClaimFile"> | number filename?: StringWithAggregatesFilter<"ClaimFile"> | string mimeType?: StringWithAggregatesFilter<"ClaimFile"> | string } export type InsuranceCredentialWhereInput = { AND?: InsuranceCredentialWhereInput | InsuranceCredentialWhereInput[] OR?: InsuranceCredentialWhereInput[] NOT?: InsuranceCredentialWhereInput | InsuranceCredentialWhereInput[] id?: IntFilter<"InsuranceCredential"> | number userId?: IntFilter<"InsuranceCredential"> | number siteKey?: StringFilter<"InsuranceCredential"> | string username?: StringFilter<"InsuranceCredential"> | string password?: StringFilter<"InsuranceCredential"> | string user?: XOR } export type InsuranceCredentialOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder siteKey?: SortOrder username?: SortOrder password?: SortOrder user?: UserOrderByWithRelationInput } export type InsuranceCredentialWhereUniqueInput = Prisma.AtLeast<{ id?: number userId_siteKey?: InsuranceCredentialUserIdSiteKeyCompoundUniqueInput AND?: InsuranceCredentialWhereInput | InsuranceCredentialWhereInput[] OR?: InsuranceCredentialWhereInput[] NOT?: InsuranceCredentialWhereInput | InsuranceCredentialWhereInput[] userId?: IntFilter<"InsuranceCredential"> | number siteKey?: StringFilter<"InsuranceCredential"> | string username?: StringFilter<"InsuranceCredential"> | string password?: StringFilter<"InsuranceCredential"> | string user?: XOR }, "id" | "userId_siteKey"> export type InsuranceCredentialOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder siteKey?: SortOrder username?: SortOrder password?: SortOrder _count?: InsuranceCredentialCountOrderByAggregateInput _avg?: InsuranceCredentialAvgOrderByAggregateInput _max?: InsuranceCredentialMaxOrderByAggregateInput _min?: InsuranceCredentialMinOrderByAggregateInput _sum?: InsuranceCredentialSumOrderByAggregateInput } export type InsuranceCredentialScalarWhereWithAggregatesInput = { AND?: InsuranceCredentialScalarWhereWithAggregatesInput | InsuranceCredentialScalarWhereWithAggregatesInput[] OR?: InsuranceCredentialScalarWhereWithAggregatesInput[] NOT?: InsuranceCredentialScalarWhereWithAggregatesInput | InsuranceCredentialScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"InsuranceCredential"> | number userId?: IntWithAggregatesFilter<"InsuranceCredential"> | number siteKey?: StringWithAggregatesFilter<"InsuranceCredential"> | string username?: StringWithAggregatesFilter<"InsuranceCredential"> | string password?: StringWithAggregatesFilter<"InsuranceCredential"> | string } export type PdfGroupWhereInput = { AND?: PdfGroupWhereInput | PdfGroupWhereInput[] OR?: PdfGroupWhereInput[] NOT?: PdfGroupWhereInput | PdfGroupWhereInput[] id?: IntFilter<"PdfGroup"> | number title?: StringFilter<"PdfGroup"> | string titleKey?: EnumPdfTitleKeyFilter<"PdfGroup"> | $Enums.PdfTitleKey createdAt?: DateTimeFilter<"PdfGroup"> | Date | string patientId?: IntFilter<"PdfGroup"> | number patient?: XOR pdfs?: PdfFileListRelationFilter } export type PdfGroupOrderByWithRelationInput = { id?: SortOrder title?: SortOrder titleKey?: SortOrder createdAt?: SortOrder patientId?: SortOrder patient?: PatientOrderByWithRelationInput pdfs?: PdfFileOrderByRelationAggregateInput } export type PdfGroupWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: PdfGroupWhereInput | PdfGroupWhereInput[] OR?: PdfGroupWhereInput[] NOT?: PdfGroupWhereInput | PdfGroupWhereInput[] title?: StringFilter<"PdfGroup"> | string titleKey?: EnumPdfTitleKeyFilter<"PdfGroup"> | $Enums.PdfTitleKey createdAt?: DateTimeFilter<"PdfGroup"> | Date | string patientId?: IntFilter<"PdfGroup"> | number patient?: XOR pdfs?: PdfFileListRelationFilter }, "id"> export type PdfGroupOrderByWithAggregationInput = { id?: SortOrder title?: SortOrder titleKey?: SortOrder createdAt?: SortOrder patientId?: SortOrder _count?: PdfGroupCountOrderByAggregateInput _avg?: PdfGroupAvgOrderByAggregateInput _max?: PdfGroupMaxOrderByAggregateInput _min?: PdfGroupMinOrderByAggregateInput _sum?: PdfGroupSumOrderByAggregateInput } export type PdfGroupScalarWhereWithAggregatesInput = { AND?: PdfGroupScalarWhereWithAggregatesInput | PdfGroupScalarWhereWithAggregatesInput[] OR?: PdfGroupScalarWhereWithAggregatesInput[] NOT?: PdfGroupScalarWhereWithAggregatesInput | PdfGroupScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"PdfGroup"> | number title?: StringWithAggregatesFilter<"PdfGroup"> | string titleKey?: EnumPdfTitleKeyWithAggregatesFilter<"PdfGroup"> | $Enums.PdfTitleKey createdAt?: DateTimeWithAggregatesFilter<"PdfGroup"> | Date | string patientId?: IntWithAggregatesFilter<"PdfGroup"> | number } export type PdfFileWhereInput = { AND?: PdfFileWhereInput | PdfFileWhereInput[] OR?: PdfFileWhereInput[] NOT?: PdfFileWhereInput | PdfFileWhereInput[] id?: IntFilter<"PdfFile"> | number filename?: StringFilter<"PdfFile"> | string pdfData?: BytesFilter<"PdfFile"> | Bytes uploadedAt?: DateTimeFilter<"PdfFile"> | Date | string groupId?: IntFilter<"PdfFile"> | number group?: XOR } export type PdfFileOrderByWithRelationInput = { id?: SortOrder filename?: SortOrder pdfData?: SortOrder uploadedAt?: SortOrder groupId?: SortOrder group?: PdfGroupOrderByWithRelationInput } export type PdfFileWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: PdfFileWhereInput | PdfFileWhereInput[] OR?: PdfFileWhereInput[] NOT?: PdfFileWhereInput | PdfFileWhereInput[] filename?: StringFilter<"PdfFile"> | string pdfData?: BytesFilter<"PdfFile"> | Bytes uploadedAt?: DateTimeFilter<"PdfFile"> | Date | string groupId?: IntFilter<"PdfFile"> | number group?: XOR }, "id"> export type PdfFileOrderByWithAggregationInput = { id?: SortOrder filename?: SortOrder pdfData?: SortOrder uploadedAt?: SortOrder groupId?: SortOrder _count?: PdfFileCountOrderByAggregateInput _avg?: PdfFileAvgOrderByAggregateInput _max?: PdfFileMaxOrderByAggregateInput _min?: PdfFileMinOrderByAggregateInput _sum?: PdfFileSumOrderByAggregateInput } export type PdfFileScalarWhereWithAggregatesInput = { AND?: PdfFileScalarWhereWithAggregatesInput | PdfFileScalarWhereWithAggregatesInput[] OR?: PdfFileScalarWhereWithAggregatesInput[] NOT?: PdfFileScalarWhereWithAggregatesInput | PdfFileScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"PdfFile"> | number filename?: StringWithAggregatesFilter<"PdfFile"> | string pdfData?: BytesWithAggregatesFilter<"PdfFile"> | Bytes uploadedAt?: DateTimeWithAggregatesFilter<"PdfFile"> | Date | string groupId?: IntWithAggregatesFilter<"PdfFile"> | number } export type PaymentWhereInput = { AND?: PaymentWhereInput | PaymentWhereInput[] OR?: PaymentWhereInput[] NOT?: PaymentWhereInput | PaymentWhereInput[] id?: IntFilter<"Payment"> | number claimId?: IntNullableFilter<"Payment"> | number | null patientId?: IntFilter<"Payment"> | number userId?: IntFilter<"Payment"> | number updatedById?: IntNullableFilter<"Payment"> | number | null totalBilled?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFilter<"Payment"> | $Enums.PaymentStatus notes?: StringNullableFilter<"Payment"> | string | null icn?: StringNullableFilter<"Payment"> | string | null createdAt?: DateTimeFilter<"Payment"> | Date | string updatedAt?: DateTimeFilter<"Payment"> | Date | string claim?: XOR | null patient?: XOR updatedBy?: XOR | null serviceLineTransactions?: ServiceLineTransactionListRelationFilter serviceLines?: ServiceLineListRelationFilter } export type PaymentOrderByWithRelationInput = { id?: SortOrder claimId?: SortOrderInput | SortOrder patientId?: SortOrder userId?: SortOrder updatedById?: SortOrderInput | SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder status?: SortOrder notes?: SortOrderInput | SortOrder icn?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder claim?: ClaimOrderByWithRelationInput patient?: PatientOrderByWithRelationInput updatedBy?: UserOrderByWithRelationInput serviceLineTransactions?: ServiceLineTransactionOrderByRelationAggregateInput serviceLines?: ServiceLineOrderByRelationAggregateInput } export type PaymentWhereUniqueInput = Prisma.AtLeast<{ id?: number claimId?: number AND?: PaymentWhereInput | PaymentWhereInput[] OR?: PaymentWhereInput[] NOT?: PaymentWhereInput | PaymentWhereInput[] patientId?: IntFilter<"Payment"> | number userId?: IntFilter<"Payment"> | number updatedById?: IntNullableFilter<"Payment"> | number | null totalBilled?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFilter<"Payment"> | $Enums.PaymentStatus notes?: StringNullableFilter<"Payment"> | string | null icn?: StringNullableFilter<"Payment"> | string | null createdAt?: DateTimeFilter<"Payment"> | Date | string updatedAt?: DateTimeFilter<"Payment"> | Date | string claim?: XOR | null patient?: XOR updatedBy?: XOR | null serviceLineTransactions?: ServiceLineTransactionListRelationFilter serviceLines?: ServiceLineListRelationFilter }, "id" | "claimId"> export type PaymentOrderByWithAggregationInput = { id?: SortOrder claimId?: SortOrderInput | SortOrder patientId?: SortOrder userId?: SortOrder updatedById?: SortOrderInput | SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder status?: SortOrder notes?: SortOrderInput | SortOrder icn?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: PaymentCountOrderByAggregateInput _avg?: PaymentAvgOrderByAggregateInput _max?: PaymentMaxOrderByAggregateInput _min?: PaymentMinOrderByAggregateInput _sum?: PaymentSumOrderByAggregateInput } export type PaymentScalarWhereWithAggregatesInput = { AND?: PaymentScalarWhereWithAggregatesInput | PaymentScalarWhereWithAggregatesInput[] OR?: PaymentScalarWhereWithAggregatesInput[] NOT?: PaymentScalarWhereWithAggregatesInput | PaymentScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Payment"> | number claimId?: IntNullableWithAggregatesFilter<"Payment"> | number | null patientId?: IntWithAggregatesFilter<"Payment"> | number userId?: IntWithAggregatesFilter<"Payment"> | number updatedById?: IntNullableWithAggregatesFilter<"Payment"> | number | null totalBilled?: DecimalWithAggregatesFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalWithAggregatesFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalWithAggregatesFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalWithAggregatesFilter<"Payment"> | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusWithAggregatesFilter<"Payment"> | $Enums.PaymentStatus notes?: StringNullableWithAggregatesFilter<"Payment"> | string | null icn?: StringNullableWithAggregatesFilter<"Payment"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Payment"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Payment"> | Date | string } export type ServiceLineTransactionWhereInput = { AND?: ServiceLineTransactionWhereInput | ServiceLineTransactionWhereInput[] OR?: ServiceLineTransactionWhereInput[] NOT?: ServiceLineTransactionWhereInput | ServiceLineTransactionWhereInput[] id?: IntFilter<"ServiceLineTransaction"> | number paymentId?: IntFilter<"ServiceLineTransaction"> | number serviceLineId?: IntFilter<"ServiceLineTransaction"> | number transactionId?: StringNullableFilter<"ServiceLineTransaction"> | string | null paidAmount?: DecimalFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFilter<"ServiceLineTransaction"> | $Enums.PaymentMethod receivedDate?: DateTimeFilter<"ServiceLineTransaction"> | Date | string payerName?: StringNullableFilter<"ServiceLineTransaction"> | string | null notes?: StringNullableFilter<"ServiceLineTransaction"> | string | null createdAt?: DateTimeFilter<"ServiceLineTransaction"> | Date | string payment?: XOR serviceLine?: XOR } export type ServiceLineTransactionOrderByWithRelationInput = { id?: SortOrder paymentId?: SortOrder serviceLineId?: SortOrder transactionId?: SortOrderInput | SortOrder paidAmount?: SortOrder adjustedAmount?: SortOrder method?: SortOrder receivedDate?: SortOrder payerName?: SortOrderInput | SortOrder notes?: SortOrderInput | SortOrder createdAt?: SortOrder payment?: PaymentOrderByWithRelationInput serviceLine?: ServiceLineOrderByWithRelationInput } export type ServiceLineTransactionWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: ServiceLineTransactionWhereInput | ServiceLineTransactionWhereInput[] OR?: ServiceLineTransactionWhereInput[] NOT?: ServiceLineTransactionWhereInput | ServiceLineTransactionWhereInput[] paymentId?: IntFilter<"ServiceLineTransaction"> | number serviceLineId?: IntFilter<"ServiceLineTransaction"> | number transactionId?: StringNullableFilter<"ServiceLineTransaction"> | string | null paidAmount?: DecimalFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFilter<"ServiceLineTransaction"> | $Enums.PaymentMethod receivedDate?: DateTimeFilter<"ServiceLineTransaction"> | Date | string payerName?: StringNullableFilter<"ServiceLineTransaction"> | string | null notes?: StringNullableFilter<"ServiceLineTransaction"> | string | null createdAt?: DateTimeFilter<"ServiceLineTransaction"> | Date | string payment?: XOR serviceLine?: XOR }, "id"> export type ServiceLineTransactionOrderByWithAggregationInput = { id?: SortOrder paymentId?: SortOrder serviceLineId?: SortOrder transactionId?: SortOrderInput | SortOrder paidAmount?: SortOrder adjustedAmount?: SortOrder method?: SortOrder receivedDate?: SortOrder payerName?: SortOrderInput | SortOrder notes?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: ServiceLineTransactionCountOrderByAggregateInput _avg?: ServiceLineTransactionAvgOrderByAggregateInput _max?: ServiceLineTransactionMaxOrderByAggregateInput _min?: ServiceLineTransactionMinOrderByAggregateInput _sum?: ServiceLineTransactionSumOrderByAggregateInput } export type ServiceLineTransactionScalarWhereWithAggregatesInput = { AND?: ServiceLineTransactionScalarWhereWithAggregatesInput | ServiceLineTransactionScalarWhereWithAggregatesInput[] OR?: ServiceLineTransactionScalarWhereWithAggregatesInput[] NOT?: ServiceLineTransactionScalarWhereWithAggregatesInput | ServiceLineTransactionScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"ServiceLineTransaction"> | number paymentId?: IntWithAggregatesFilter<"ServiceLineTransaction"> | number serviceLineId?: IntWithAggregatesFilter<"ServiceLineTransaction"> | number transactionId?: StringNullableWithAggregatesFilter<"ServiceLineTransaction"> | string | null paidAmount?: DecimalWithAggregatesFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalWithAggregatesFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodWithAggregatesFilter<"ServiceLineTransaction"> | $Enums.PaymentMethod receivedDate?: DateTimeWithAggregatesFilter<"ServiceLineTransaction"> | Date | string payerName?: StringNullableWithAggregatesFilter<"ServiceLineTransaction"> | string | null notes?: StringNullableWithAggregatesFilter<"ServiceLineTransaction"> | string | null createdAt?: DateTimeWithAggregatesFilter<"ServiceLineTransaction"> | Date | string } export type DatabaseBackupWhereInput = { AND?: DatabaseBackupWhereInput | DatabaseBackupWhereInput[] OR?: DatabaseBackupWhereInput[] NOT?: DatabaseBackupWhereInput | DatabaseBackupWhereInput[] id?: IntFilter<"DatabaseBackup"> | number userId?: IntFilter<"DatabaseBackup"> | number createdAt?: DateTimeFilter<"DatabaseBackup"> | Date | string user?: XOR } export type DatabaseBackupOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder createdAt?: SortOrder user?: UserOrderByWithRelationInput } export type DatabaseBackupWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: DatabaseBackupWhereInput | DatabaseBackupWhereInput[] OR?: DatabaseBackupWhereInput[] NOT?: DatabaseBackupWhereInput | DatabaseBackupWhereInput[] userId?: IntFilter<"DatabaseBackup"> | number createdAt?: DateTimeFilter<"DatabaseBackup"> | Date | string user?: XOR }, "id"> export type DatabaseBackupOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder createdAt?: SortOrder _count?: DatabaseBackupCountOrderByAggregateInput _avg?: DatabaseBackupAvgOrderByAggregateInput _max?: DatabaseBackupMaxOrderByAggregateInput _min?: DatabaseBackupMinOrderByAggregateInput _sum?: DatabaseBackupSumOrderByAggregateInput } export type DatabaseBackupScalarWhereWithAggregatesInput = { AND?: DatabaseBackupScalarWhereWithAggregatesInput | DatabaseBackupScalarWhereWithAggregatesInput[] OR?: DatabaseBackupScalarWhereWithAggregatesInput[] NOT?: DatabaseBackupScalarWhereWithAggregatesInput | DatabaseBackupScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"DatabaseBackup"> | number userId?: IntWithAggregatesFilter<"DatabaseBackup"> | number createdAt?: DateTimeWithAggregatesFilter<"DatabaseBackup"> | Date | string } export type BackupDestinationWhereInput = { AND?: BackupDestinationWhereInput | BackupDestinationWhereInput[] OR?: BackupDestinationWhereInput[] NOT?: BackupDestinationWhereInput | BackupDestinationWhereInput[] id?: IntFilter<"BackupDestination"> | number userId?: IntFilter<"BackupDestination"> | number path?: StringFilter<"BackupDestination"> | string isActive?: BoolFilter<"BackupDestination"> | boolean createdAt?: DateTimeFilter<"BackupDestination"> | Date | string user?: XOR } export type BackupDestinationOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder path?: SortOrder isActive?: SortOrder createdAt?: SortOrder user?: UserOrderByWithRelationInput } export type BackupDestinationWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: BackupDestinationWhereInput | BackupDestinationWhereInput[] OR?: BackupDestinationWhereInput[] NOT?: BackupDestinationWhereInput | BackupDestinationWhereInput[] userId?: IntFilter<"BackupDestination"> | number path?: StringFilter<"BackupDestination"> | string isActive?: BoolFilter<"BackupDestination"> | boolean createdAt?: DateTimeFilter<"BackupDestination"> | Date | string user?: XOR }, "id"> export type BackupDestinationOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder path?: SortOrder isActive?: SortOrder createdAt?: SortOrder _count?: BackupDestinationCountOrderByAggregateInput _avg?: BackupDestinationAvgOrderByAggregateInput _max?: BackupDestinationMaxOrderByAggregateInput _min?: BackupDestinationMinOrderByAggregateInput _sum?: BackupDestinationSumOrderByAggregateInput } export type BackupDestinationScalarWhereWithAggregatesInput = { AND?: BackupDestinationScalarWhereWithAggregatesInput | BackupDestinationScalarWhereWithAggregatesInput[] OR?: BackupDestinationScalarWhereWithAggregatesInput[] NOT?: BackupDestinationScalarWhereWithAggregatesInput | BackupDestinationScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"BackupDestination"> | number userId?: IntWithAggregatesFilter<"BackupDestination"> | number path?: StringWithAggregatesFilter<"BackupDestination"> | string isActive?: BoolWithAggregatesFilter<"BackupDestination"> | boolean createdAt?: DateTimeWithAggregatesFilter<"BackupDestination"> | Date | string } export type NotificationWhereInput = { AND?: NotificationWhereInput | NotificationWhereInput[] OR?: NotificationWhereInput[] NOT?: NotificationWhereInput | NotificationWhereInput[] id?: IntFilter<"Notification"> | number userId?: IntFilter<"Notification"> | number type?: EnumNotificationTypesFilter<"Notification"> | $Enums.NotificationTypes message?: StringFilter<"Notification"> | string createdAt?: DateTimeFilter<"Notification"> | Date | string read?: BoolFilter<"Notification"> | boolean user?: XOR } export type NotificationOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder type?: SortOrder message?: SortOrder createdAt?: SortOrder read?: SortOrder user?: UserOrderByWithRelationInput } export type NotificationWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: NotificationWhereInput | NotificationWhereInput[] OR?: NotificationWhereInput[] NOT?: NotificationWhereInput | NotificationWhereInput[] userId?: IntFilter<"Notification"> | number type?: EnumNotificationTypesFilter<"Notification"> | $Enums.NotificationTypes message?: StringFilter<"Notification"> | string createdAt?: DateTimeFilter<"Notification"> | Date | string read?: BoolFilter<"Notification"> | boolean user?: XOR }, "id"> export type NotificationOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder type?: SortOrder message?: SortOrder createdAt?: SortOrder read?: SortOrder _count?: NotificationCountOrderByAggregateInput _avg?: NotificationAvgOrderByAggregateInput _max?: NotificationMaxOrderByAggregateInput _min?: NotificationMinOrderByAggregateInput _sum?: NotificationSumOrderByAggregateInput } export type NotificationScalarWhereWithAggregatesInput = { AND?: NotificationScalarWhereWithAggregatesInput | NotificationScalarWhereWithAggregatesInput[] OR?: NotificationScalarWhereWithAggregatesInput[] NOT?: NotificationScalarWhereWithAggregatesInput | NotificationScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Notification"> | number userId?: IntWithAggregatesFilter<"Notification"> | number type?: EnumNotificationTypesWithAggregatesFilter<"Notification"> | $Enums.NotificationTypes message?: StringWithAggregatesFilter<"Notification"> | string createdAt?: DateTimeWithAggregatesFilter<"Notification"> | Date | string read?: BoolWithAggregatesFilter<"Notification"> | boolean } export type CloudFolderWhereInput = { AND?: CloudFolderWhereInput | CloudFolderWhereInput[] OR?: CloudFolderWhereInput[] NOT?: CloudFolderWhereInput | CloudFolderWhereInput[] id?: IntFilter<"CloudFolder"> | number userId?: IntFilter<"CloudFolder"> | number name?: StringFilter<"CloudFolder"> | string parentId?: IntNullableFilter<"CloudFolder"> | number | null createdAt?: DateTimeFilter<"CloudFolder"> | Date | string updatedAt?: DateTimeFilter<"CloudFolder"> | Date | string parent?: XOR | null children?: CloudFolderListRelationFilter user?: XOR files?: CloudFileListRelationFilter } export type CloudFolderOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder parentId?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder parent?: CloudFolderOrderByWithRelationInput children?: CloudFolderOrderByRelationAggregateInput user?: UserOrderByWithRelationInput files?: CloudFileOrderByRelationAggregateInput } export type CloudFolderWhereUniqueInput = Prisma.AtLeast<{ id?: number userId_parentId_name?: CloudFolderUserIdParentIdNameCompoundUniqueInput AND?: CloudFolderWhereInput | CloudFolderWhereInput[] OR?: CloudFolderWhereInput[] NOT?: CloudFolderWhereInput | CloudFolderWhereInput[] userId?: IntFilter<"CloudFolder"> | number name?: StringFilter<"CloudFolder"> | string parentId?: IntNullableFilter<"CloudFolder"> | number | null createdAt?: DateTimeFilter<"CloudFolder"> | Date | string updatedAt?: DateTimeFilter<"CloudFolder"> | Date | string parent?: XOR | null children?: CloudFolderListRelationFilter user?: XOR files?: CloudFileListRelationFilter }, "id" | "userId_parentId_name"> export type CloudFolderOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder parentId?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: CloudFolderCountOrderByAggregateInput _avg?: CloudFolderAvgOrderByAggregateInput _max?: CloudFolderMaxOrderByAggregateInput _min?: CloudFolderMinOrderByAggregateInput _sum?: CloudFolderSumOrderByAggregateInput } export type CloudFolderScalarWhereWithAggregatesInput = { AND?: CloudFolderScalarWhereWithAggregatesInput | CloudFolderScalarWhereWithAggregatesInput[] OR?: CloudFolderScalarWhereWithAggregatesInput[] NOT?: CloudFolderScalarWhereWithAggregatesInput | CloudFolderScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"CloudFolder"> | number userId?: IntWithAggregatesFilter<"CloudFolder"> | number name?: StringWithAggregatesFilter<"CloudFolder"> | string parentId?: IntNullableWithAggregatesFilter<"CloudFolder"> | number | null createdAt?: DateTimeWithAggregatesFilter<"CloudFolder"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"CloudFolder"> | Date | string } export type CloudFileWhereInput = { AND?: CloudFileWhereInput | CloudFileWhereInput[] OR?: CloudFileWhereInput[] NOT?: CloudFileWhereInput | CloudFileWhereInput[] id?: IntFilter<"CloudFile"> | number userId?: IntFilter<"CloudFile"> | number name?: StringFilter<"CloudFile"> | string mimeType?: StringNullableFilter<"CloudFile"> | string | null fileSize?: BigIntFilter<"CloudFile"> | bigint | number folderId?: IntNullableFilter<"CloudFile"> | number | null isComplete?: BoolFilter<"CloudFile"> | boolean totalChunks?: IntNullableFilter<"CloudFile"> | number | null createdAt?: DateTimeFilter<"CloudFile"> | Date | string updatedAt?: DateTimeFilter<"CloudFile"> | Date | string user?: XOR folder?: XOR | null chunks?: CloudFileChunkListRelationFilter } export type CloudFileOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder mimeType?: SortOrderInput | SortOrder fileSize?: SortOrder folderId?: SortOrderInput | SortOrder isComplete?: SortOrder totalChunks?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder user?: UserOrderByWithRelationInput folder?: CloudFolderOrderByWithRelationInput chunks?: CloudFileChunkOrderByRelationAggregateInput } export type CloudFileWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: CloudFileWhereInput | CloudFileWhereInput[] OR?: CloudFileWhereInput[] NOT?: CloudFileWhereInput | CloudFileWhereInput[] userId?: IntFilter<"CloudFile"> | number name?: StringFilter<"CloudFile"> | string mimeType?: StringNullableFilter<"CloudFile"> | string | null fileSize?: BigIntFilter<"CloudFile"> | bigint | number folderId?: IntNullableFilter<"CloudFile"> | number | null isComplete?: BoolFilter<"CloudFile"> | boolean totalChunks?: IntNullableFilter<"CloudFile"> | number | null createdAt?: DateTimeFilter<"CloudFile"> | Date | string updatedAt?: DateTimeFilter<"CloudFile"> | Date | string user?: XOR folder?: XOR | null chunks?: CloudFileChunkListRelationFilter }, "id"> export type CloudFileOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder mimeType?: SortOrderInput | SortOrder fileSize?: SortOrder folderId?: SortOrderInput | SortOrder isComplete?: SortOrder totalChunks?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: CloudFileCountOrderByAggregateInput _avg?: CloudFileAvgOrderByAggregateInput _max?: CloudFileMaxOrderByAggregateInput _min?: CloudFileMinOrderByAggregateInput _sum?: CloudFileSumOrderByAggregateInput } export type CloudFileScalarWhereWithAggregatesInput = { AND?: CloudFileScalarWhereWithAggregatesInput | CloudFileScalarWhereWithAggregatesInput[] OR?: CloudFileScalarWhereWithAggregatesInput[] NOT?: CloudFileScalarWhereWithAggregatesInput | CloudFileScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"CloudFile"> | number userId?: IntWithAggregatesFilter<"CloudFile"> | number name?: StringWithAggregatesFilter<"CloudFile"> | string mimeType?: StringNullableWithAggregatesFilter<"CloudFile"> | string | null fileSize?: BigIntWithAggregatesFilter<"CloudFile"> | bigint | number folderId?: IntNullableWithAggregatesFilter<"CloudFile"> | number | null isComplete?: BoolWithAggregatesFilter<"CloudFile"> | boolean totalChunks?: IntNullableWithAggregatesFilter<"CloudFile"> | number | null createdAt?: DateTimeWithAggregatesFilter<"CloudFile"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"CloudFile"> | Date | string } export type CloudFileChunkWhereInput = { AND?: CloudFileChunkWhereInput | CloudFileChunkWhereInput[] OR?: CloudFileChunkWhereInput[] NOT?: CloudFileChunkWhereInput | CloudFileChunkWhereInput[] id?: IntFilter<"CloudFileChunk"> | number fileId?: IntFilter<"CloudFileChunk"> | number seq?: IntFilter<"CloudFileChunk"> | number data?: BytesFilter<"CloudFileChunk"> | Bytes createdAt?: DateTimeFilter<"CloudFileChunk"> | Date | string file?: XOR } export type CloudFileChunkOrderByWithRelationInput = { id?: SortOrder fileId?: SortOrder seq?: SortOrder data?: SortOrder createdAt?: SortOrder file?: CloudFileOrderByWithRelationInput } export type CloudFileChunkWhereUniqueInput = Prisma.AtLeast<{ id?: number fileId_seq?: CloudFileChunkFileIdSeqCompoundUniqueInput AND?: CloudFileChunkWhereInput | CloudFileChunkWhereInput[] OR?: CloudFileChunkWhereInput[] NOT?: CloudFileChunkWhereInput | CloudFileChunkWhereInput[] fileId?: IntFilter<"CloudFileChunk"> | number seq?: IntFilter<"CloudFileChunk"> | number data?: BytesFilter<"CloudFileChunk"> | Bytes createdAt?: DateTimeFilter<"CloudFileChunk"> | Date | string file?: XOR }, "id" | "fileId_seq"> export type CloudFileChunkOrderByWithAggregationInput = { id?: SortOrder fileId?: SortOrder seq?: SortOrder data?: SortOrder createdAt?: SortOrder _count?: CloudFileChunkCountOrderByAggregateInput _avg?: CloudFileChunkAvgOrderByAggregateInput _max?: CloudFileChunkMaxOrderByAggregateInput _min?: CloudFileChunkMinOrderByAggregateInput _sum?: CloudFileChunkSumOrderByAggregateInput } export type CloudFileChunkScalarWhereWithAggregatesInput = { AND?: CloudFileChunkScalarWhereWithAggregatesInput | CloudFileChunkScalarWhereWithAggregatesInput[] OR?: CloudFileChunkScalarWhereWithAggregatesInput[] NOT?: CloudFileChunkScalarWhereWithAggregatesInput | CloudFileChunkScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"CloudFileChunk"> | number fileId?: IntWithAggregatesFilter<"CloudFileChunk"> | number seq?: IntWithAggregatesFilter<"CloudFileChunk"> | number data?: BytesWithAggregatesFilter<"CloudFileChunk"> | Bytes createdAt?: DateTimeWithAggregatesFilter<"CloudFileChunk"> | Date | string } export type CommunicationWhereInput = { AND?: CommunicationWhereInput | CommunicationWhereInput[] OR?: CommunicationWhereInput[] NOT?: CommunicationWhereInput | CommunicationWhereInput[] id?: IntFilter<"Communication"> | number patientId?: IntFilter<"Communication"> | number userId?: IntNullableFilter<"Communication"> | number | null channel?: EnumCommunicationChannelFilter<"Communication"> | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFilter<"Communication"> | $Enums.CommunicationDirection status?: EnumCommunicationStatusFilter<"Communication"> | $Enums.CommunicationStatus body?: StringNullableFilter<"Communication"> | string | null callDuration?: IntNullableFilter<"Communication"> | number | null twilioSid?: StringNullableFilter<"Communication"> | string | null createdAt?: DateTimeFilter<"Communication"> | Date | string patient?: XOR user?: XOR | null } export type CommunicationOrderByWithRelationInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrderInput | SortOrder channel?: SortOrder direction?: SortOrder status?: SortOrder body?: SortOrderInput | SortOrder callDuration?: SortOrderInput | SortOrder twilioSid?: SortOrderInput | SortOrder createdAt?: SortOrder patient?: PatientOrderByWithRelationInput user?: UserOrderByWithRelationInput } export type CommunicationWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: CommunicationWhereInput | CommunicationWhereInput[] OR?: CommunicationWhereInput[] NOT?: CommunicationWhereInput | CommunicationWhereInput[] patientId?: IntFilter<"Communication"> | number userId?: IntNullableFilter<"Communication"> | number | null channel?: EnumCommunicationChannelFilter<"Communication"> | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFilter<"Communication"> | $Enums.CommunicationDirection status?: EnumCommunicationStatusFilter<"Communication"> | $Enums.CommunicationStatus body?: StringNullableFilter<"Communication"> | string | null callDuration?: IntNullableFilter<"Communication"> | number | null twilioSid?: StringNullableFilter<"Communication"> | string | null createdAt?: DateTimeFilter<"Communication"> | Date | string patient?: XOR user?: XOR | null }, "id"> export type CommunicationOrderByWithAggregationInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrderInput | SortOrder channel?: SortOrder direction?: SortOrder status?: SortOrder body?: SortOrderInput | SortOrder callDuration?: SortOrderInput | SortOrder twilioSid?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: CommunicationCountOrderByAggregateInput _avg?: CommunicationAvgOrderByAggregateInput _max?: CommunicationMaxOrderByAggregateInput _min?: CommunicationMinOrderByAggregateInput _sum?: CommunicationSumOrderByAggregateInput } export type CommunicationScalarWhereWithAggregatesInput = { AND?: CommunicationScalarWhereWithAggregatesInput | CommunicationScalarWhereWithAggregatesInput[] OR?: CommunicationScalarWhereWithAggregatesInput[] NOT?: CommunicationScalarWhereWithAggregatesInput | CommunicationScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Communication"> | number patientId?: IntWithAggregatesFilter<"Communication"> | number userId?: IntNullableWithAggregatesFilter<"Communication"> | number | null channel?: EnumCommunicationChannelWithAggregatesFilter<"Communication"> | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionWithAggregatesFilter<"Communication"> | $Enums.CommunicationDirection status?: EnumCommunicationStatusWithAggregatesFilter<"Communication"> | $Enums.CommunicationStatus body?: StringNullableWithAggregatesFilter<"Communication"> | string | null callDuration?: IntNullableWithAggregatesFilter<"Communication"> | number | null twilioSid?: StringNullableWithAggregatesFilter<"Communication"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Communication"> | Date | string } export type PatientDocumentWhereInput = { AND?: PatientDocumentWhereInput | PatientDocumentWhereInput[] OR?: PatientDocumentWhereInput[] NOT?: PatientDocumentWhereInput | PatientDocumentWhereInput[] id?: IntFilter<"PatientDocument"> | number patientId?: IntFilter<"PatientDocument"> | number filename?: StringFilter<"PatientDocument"> | string originalName?: StringFilter<"PatientDocument"> | string mimeType?: StringFilter<"PatientDocument"> | string fileSize?: BigIntFilter<"PatientDocument"> | bigint | number filePath?: StringFilter<"PatientDocument"> | string uploadedAt?: DateTimeFilter<"PatientDocument"> | Date | string updatedAt?: DateTimeFilter<"PatientDocument"> | Date | string patient?: XOR } export type PatientDocumentOrderByWithRelationInput = { id?: SortOrder patientId?: SortOrder filename?: SortOrder originalName?: SortOrder mimeType?: SortOrder fileSize?: SortOrder filePath?: SortOrder uploadedAt?: SortOrder updatedAt?: SortOrder patient?: PatientOrderByWithRelationInput } export type PatientDocumentWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: PatientDocumentWhereInput | PatientDocumentWhereInput[] OR?: PatientDocumentWhereInput[] NOT?: PatientDocumentWhereInput | PatientDocumentWhereInput[] patientId?: IntFilter<"PatientDocument"> | number filename?: StringFilter<"PatientDocument"> | string originalName?: StringFilter<"PatientDocument"> | string mimeType?: StringFilter<"PatientDocument"> | string fileSize?: BigIntFilter<"PatientDocument"> | bigint | number filePath?: StringFilter<"PatientDocument"> | string uploadedAt?: DateTimeFilter<"PatientDocument"> | Date | string updatedAt?: DateTimeFilter<"PatientDocument"> | Date | string patient?: XOR }, "id"> export type PatientDocumentOrderByWithAggregationInput = { id?: SortOrder patientId?: SortOrder filename?: SortOrder originalName?: SortOrder mimeType?: SortOrder fileSize?: SortOrder filePath?: SortOrder uploadedAt?: SortOrder updatedAt?: SortOrder _count?: PatientDocumentCountOrderByAggregateInput _avg?: PatientDocumentAvgOrderByAggregateInput _max?: PatientDocumentMaxOrderByAggregateInput _min?: PatientDocumentMinOrderByAggregateInput _sum?: PatientDocumentSumOrderByAggregateInput } export type PatientDocumentScalarWhereWithAggregatesInput = { AND?: PatientDocumentScalarWhereWithAggregatesInput | PatientDocumentScalarWhereWithAggregatesInput[] OR?: PatientDocumentScalarWhereWithAggregatesInput[] NOT?: PatientDocumentScalarWhereWithAggregatesInput | PatientDocumentScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"PatientDocument"> | number patientId?: IntWithAggregatesFilter<"PatientDocument"> | number filename?: StringWithAggregatesFilter<"PatientDocument"> | string originalName?: StringWithAggregatesFilter<"PatientDocument"> | string mimeType?: StringWithAggregatesFilter<"PatientDocument"> | string fileSize?: BigIntWithAggregatesFilter<"PatientDocument"> | bigint | number filePath?: StringWithAggregatesFilter<"PatientDocument"> | string uploadedAt?: DateTimeWithAggregatesFilter<"PatientDocument"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"PatientDocument"> | Date | string } export type UserCreateInput = { username: string password: string patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateInput = { id?: number username: string password: string patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput } export type UserUpdateInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateManyInput = { id?: number username: string password: string } export type UserUpdateManyMutationInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type UserUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type PatientCreateInput = { firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus createdAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput appointments?: AppointmentCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput } export type PatientUncheckedCreateInput = { id?: number firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput } export type PatientUpdateInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput appointments?: AppointmentUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput } export type PatientUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput } export type PatientCreateManyInput = { id?: number firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string } export type PatientUpdateManyMutationInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentCreateInput = { title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus patient: PatientCreateNestedOneWithoutAppointmentsInput user: UserCreateNestedOneWithoutAppointmentsInput staff?: StaffCreateNestedOneWithoutAppointmentsInput procedures?: AppointmentProcedureCreateNestedManyWithoutAppointmentInput claims?: ClaimCreateNestedManyWithoutAppointmentInput } export type AppointmentUncheckedCreateInput = { id?: number patientId: number userId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutAppointmentInput claims?: ClaimUncheckedCreateNestedManyWithoutAppointmentInput } export type AppointmentUpdateInput = { title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus patient?: PatientUpdateOneRequiredWithoutAppointmentsNestedInput user?: UserUpdateOneRequiredWithoutAppointmentsNestedInput staff?: StaffUpdateOneWithoutAppointmentsNestedInput procedures?: AppointmentProcedureUpdateManyWithoutAppointmentNestedInput claims?: ClaimUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAppointmentNestedInput } export type AppointmentCreateManyInput = { id?: number patientId: number userId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus } export type AppointmentUpdateManyMutationInput = { title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus } export type AppointmentUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus } export type StaffCreateInput = { name: string email?: string | null role: string phone?: string | null createdAt?: Date | string user?: UserCreateNestedOneWithoutStaffInput appointments?: AppointmentCreateNestedManyWithoutStaffInput claims?: ClaimCreateNestedManyWithoutStaffInput } export type StaffUncheckedCreateInput = { id?: number userId: number name: string email?: string | null role: string phone?: string | null createdAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutStaffInput claims?: ClaimUncheckedCreateNestedManyWithoutStaffInput } export type StaffUpdateInput = { name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutStaffNestedInput appointments?: AppointmentUpdateManyWithoutStaffNestedInput claims?: ClaimUpdateManyWithoutStaffNestedInput } export type StaffUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutStaffNestedInput claims?: ClaimUncheckedUpdateManyWithoutStaffNestedInput } export type StaffCreateManyInput = { id?: number userId: number name: string email?: string | null role: string phone?: string | null createdAt?: Date | string } export type StaffUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type StaffUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NpiProviderCreateInput = { npiNumber: string providerName: string createdAt?: Date | string user: UserCreateNestedOneWithoutNpiProvidersInput } export type NpiProviderUncheckedCreateInput = { id?: number userId: number npiNumber: string providerName: string createdAt?: Date | string } export type NpiProviderUpdateInput = { npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutNpiProvidersNestedInput } export type NpiProviderUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NpiProviderCreateManyInput = { id?: number userId: number npiNumber: string providerName: string createdAt?: Date | string } export type NpiProviderUpdateManyMutationInput = { npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NpiProviderUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentProcedureCreateInput = { procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string appointment: AppointmentCreateNestedOneWithoutProceduresInput patient: PatientCreateNestedOneWithoutProceduresInput } export type AppointmentProcedureUncheckedCreateInput = { id?: number appointmentId: number patientId: number procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string } export type AppointmentProcedureUpdateInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointment?: AppointmentUpdateOneRequiredWithoutProceduresNestedInput patient?: PatientUpdateOneRequiredWithoutProceduresNestedInput } export type AppointmentProcedureUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentProcedureCreateManyInput = { id?: number appointmentId: number patientId: number procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string } export type AppointmentProcedureUpdateManyMutationInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentProcedureUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ClaimCreateInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null patient: PatientCreateNestedOneWithoutClaimsInput appointment: AppointmentCreateNestedOneWithoutClaimsInput user?: UserCreateNestedOneWithoutClaimsInput staff?: StaffCreateNestedOneWithoutClaimsInput serviceLines?: ServiceLineCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileCreateNestedManyWithoutClaimInput payment?: PaymentCreateNestedOneWithoutClaimInput } export type ClaimUncheckedCreateInput = { id?: number patientId: number appointmentId: number userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileUncheckedCreateNestedManyWithoutClaimInput payment?: PaymentUncheckedCreateNestedOneWithoutClaimInput } export type ClaimUpdateInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null patient?: PatientUpdateOneRequiredWithoutClaimsNestedInput appointment?: AppointmentUpdateOneRequiredWithoutClaimsNestedInput user?: UserUpdateOneWithoutClaimsNestedInput staff?: StaffUpdateOneWithoutClaimsNestedInput serviceLines?: ServiceLineUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUpdateManyWithoutClaimNestedInput payment?: PaymentUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null serviceLines?: ServiceLineUncheckedUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUncheckedUpdateManyWithoutClaimNestedInput payment?: PaymentUncheckedUpdateOneWithoutClaimNestedInput } export type ClaimCreateManyInput = { id?: number patientId: number appointmentId: number userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null } export type ClaimUpdateManyMutationInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null } export type ClaimUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null } export type ServiceLineCreateInput = { procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus claim?: ClaimCreateNestedOneWithoutServiceLinesInput payment?: PaymentCreateNestedOneWithoutServiceLinesInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutServiceLineInput } export type ServiceLineUncheckedCreateInput = { id?: number claimId?: number | null paymentId?: number | null procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutServiceLineInput } export type ServiceLineUpdateInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus claim?: ClaimUpdateOneWithoutServiceLinesNestedInput payment?: PaymentUpdateOneWithoutServiceLinesNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutServiceLineNestedInput } export type ServiceLineUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null paymentId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutServiceLineNestedInput } export type ServiceLineCreateManyInput = { id?: number claimId?: number | null paymentId?: number | null procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus } export type ServiceLineUpdateManyMutationInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus } export type ServiceLineUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null paymentId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus } export type ClaimFileCreateInput = { filename: string mimeType: string claim: ClaimCreateNestedOneWithoutClaimFilesInput } export type ClaimFileUncheckedCreateInput = { id?: number claimId: number filename: string mimeType: string } export type ClaimFileUpdateInput = { filename?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string claim?: ClaimUpdateOneRequiredWithoutClaimFilesNestedInput } export type ClaimFileUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number claimId?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string } export type ClaimFileCreateManyInput = { id?: number claimId: number filename: string mimeType: string } export type ClaimFileUpdateManyMutationInput = { filename?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string } export type ClaimFileUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number claimId?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string } export type InsuranceCredentialCreateInput = { siteKey: string username: string password: string user: UserCreateNestedOneWithoutInsuranceCredentialsInput } export type InsuranceCredentialUncheckedCreateInput = { id?: number userId: number siteKey: string username: string password: string } export type InsuranceCredentialUpdateInput = { siteKey?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string user?: UserUpdateOneRequiredWithoutInsuranceCredentialsNestedInput } export type InsuranceCredentialUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number siteKey?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type InsuranceCredentialCreateManyInput = { id?: number userId: number siteKey: string username: string password: string } export type InsuranceCredentialUpdateManyMutationInput = { siteKey?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type InsuranceCredentialUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number siteKey?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type PdfGroupCreateInput = { title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string patient: PatientCreateNestedOneWithoutGroupsInput pdfs?: PdfFileCreateNestedManyWithoutGroupInput } export type PdfGroupUncheckedCreateInput = { id?: number title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string patientId: number pdfs?: PdfFileUncheckedCreateNestedManyWithoutGroupInput } export type PdfGroupUpdateInput = { title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutGroupsNestedInput pdfs?: PdfFileUpdateManyWithoutGroupNestedInput } export type PdfGroupUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patientId?: IntFieldUpdateOperationsInput | number pdfs?: PdfFileUncheckedUpdateManyWithoutGroupNestedInput } export type PdfGroupCreateManyInput = { id?: number title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string patientId: number } export type PdfGroupUpdateManyMutationInput = { title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PdfGroupUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patientId?: IntFieldUpdateOperationsInput | number } export type PdfFileCreateInput = { filename: string pdfData: Bytes uploadedAt?: Date | string group: PdfGroupCreateNestedOneWithoutPdfsInput } export type PdfFileUncheckedCreateInput = { id?: number filename: string pdfData: Bytes uploadedAt?: Date | string groupId: number } export type PdfFileUpdateInput = { filename?: StringFieldUpdateOperationsInput | string pdfData?: BytesFieldUpdateOperationsInput | Bytes uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string group?: PdfGroupUpdateOneRequiredWithoutPdfsNestedInput } export type PdfFileUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string pdfData?: BytesFieldUpdateOperationsInput | Bytes uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string groupId?: IntFieldUpdateOperationsInput | number } export type PdfFileCreateManyInput = { id?: number filename: string pdfData: Bytes uploadedAt?: Date | string groupId: number } export type PdfFileUpdateManyMutationInput = { filename?: StringFieldUpdateOperationsInput | string pdfData?: BytesFieldUpdateOperationsInput | Bytes uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PdfFileUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string pdfData?: BytesFieldUpdateOperationsInput | Bytes uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string groupId?: IntFieldUpdateOperationsInput | number } export type PaymentCreateInput = { userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string claim?: ClaimCreateNestedOneWithoutPaymentInput patient: PatientCreateNestedOneWithoutPaymentInput updatedBy?: UserCreateNestedOneWithoutUpdatedPaymentsInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineCreateNestedManyWithoutPaymentInput } export type PaymentUncheckedCreateInput = { id?: number claimId?: number | null patientId: number userId: number updatedById?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutPaymentInput } export type PaymentUpdateInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string claim?: ClaimUpdateOneWithoutPaymentNestedInput patient?: PatientUpdateOneRequiredWithoutPaymentNestedInput updatedBy?: UserUpdateOneWithoutUpdatedPaymentsNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUncheckedUpdateManyWithoutPaymentNestedInput } export type PaymentCreateManyInput = { id?: number claimId?: number | null patientId: number userId: number updatedById?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string } export type PaymentUpdateManyMutationInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PaymentUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceLineTransactionCreateInput = { transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string payment: PaymentCreateNestedOneWithoutServiceLineTransactionsInput serviceLine: ServiceLineCreateNestedOneWithoutServiceLineTransactionsInput } export type ServiceLineTransactionUncheckedCreateInput = { id?: number paymentId: number serviceLineId: number transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string } export type ServiceLineTransactionUpdateInput = { transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string payment?: PaymentUpdateOneRequiredWithoutServiceLineTransactionsNestedInput serviceLine?: ServiceLineUpdateOneRequiredWithoutServiceLineTransactionsNestedInput } export type ServiceLineTransactionUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number paymentId?: IntFieldUpdateOperationsInput | number serviceLineId?: IntFieldUpdateOperationsInput | number transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceLineTransactionCreateManyInput = { id?: number paymentId: number serviceLineId: number transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string } export type ServiceLineTransactionUpdateManyMutationInput = { transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceLineTransactionUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number paymentId?: IntFieldUpdateOperationsInput | number serviceLineId?: IntFieldUpdateOperationsInput | number transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type DatabaseBackupCreateInput = { createdAt?: Date | string user: UserCreateNestedOneWithoutBackupsInput } export type DatabaseBackupUncheckedCreateInput = { id?: number userId: number createdAt?: Date | string } export type DatabaseBackupUpdateInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutBackupsNestedInput } export type DatabaseBackupUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type DatabaseBackupCreateManyInput = { id?: number userId: number createdAt?: Date | string } export type DatabaseBackupUpdateManyMutationInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type DatabaseBackupUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BackupDestinationCreateInput = { path: string isActive?: boolean createdAt?: Date | string user: UserCreateNestedOneWithoutBackupDestinationsInput } export type BackupDestinationUncheckedCreateInput = { id?: number userId: number path: string isActive?: boolean createdAt?: Date | string } export type BackupDestinationUpdateInput = { path?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutBackupDestinationsNestedInput } export type BackupDestinationUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number path?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BackupDestinationCreateManyInput = { id?: number userId: number path: string isActive?: boolean createdAt?: Date | string } export type BackupDestinationUpdateManyMutationInput = { path?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BackupDestinationUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number path?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NotificationCreateInput = { type: $Enums.NotificationTypes message: string createdAt?: Date | string read?: boolean user: UserCreateNestedOneWithoutNotificationsInput } export type NotificationUncheckedCreateInput = { id?: number userId: number type: $Enums.NotificationTypes message: string createdAt?: Date | string read?: boolean } export type NotificationUpdateInput = { type?: EnumNotificationTypesFieldUpdateOperationsInput | $Enums.NotificationTypes message?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string read?: BoolFieldUpdateOperationsInput | boolean user?: UserUpdateOneRequiredWithoutNotificationsNestedInput } export type NotificationUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number type?: EnumNotificationTypesFieldUpdateOperationsInput | $Enums.NotificationTypes message?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string read?: BoolFieldUpdateOperationsInput | boolean } export type NotificationCreateManyInput = { id?: number userId: number type: $Enums.NotificationTypes message: string createdAt?: Date | string read?: boolean } export type NotificationUpdateManyMutationInput = { type?: EnumNotificationTypesFieldUpdateOperationsInput | $Enums.NotificationTypes message?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string read?: BoolFieldUpdateOperationsInput | boolean } export type NotificationUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number type?: EnumNotificationTypesFieldUpdateOperationsInput | $Enums.NotificationTypes message?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string read?: BoolFieldUpdateOperationsInput | boolean } export type CloudFolderCreateInput = { name: string createdAt?: Date | string updatedAt?: Date | string parent?: CloudFolderCreateNestedOneWithoutChildrenInput children?: CloudFolderCreateNestedManyWithoutParentInput user: UserCreateNestedOneWithoutCloudFoldersInput files?: CloudFileCreateNestedManyWithoutFolderInput } export type CloudFolderUncheckedCreateInput = { id?: number userId: number name: string parentId?: number | null createdAt?: Date | string updatedAt?: Date | string children?: CloudFolderUncheckedCreateNestedManyWithoutParentInput files?: CloudFileUncheckedCreateNestedManyWithoutFolderInput } export type CloudFolderUpdateInput = { name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string parent?: CloudFolderUpdateOneWithoutChildrenNestedInput children?: CloudFolderUpdateManyWithoutParentNestedInput user?: UserUpdateOneRequiredWithoutCloudFoldersNestedInput files?: CloudFileUpdateManyWithoutFolderNestedInput } export type CloudFolderUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string parentId?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string children?: CloudFolderUncheckedUpdateManyWithoutParentNestedInput files?: CloudFileUncheckedUpdateManyWithoutFolderNestedInput } export type CloudFolderCreateManyInput = { id?: number userId: number name: string parentId?: number | null createdAt?: Date | string updatedAt?: Date | string } export type CloudFolderUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFolderUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string parentId?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileCreateInput = { name: string mimeType?: string | null fileSize: bigint | number isComplete?: boolean totalChunks?: number | null createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutCloudFilesInput folder?: CloudFolderCreateNestedOneWithoutFilesInput chunks?: CloudFileChunkCreateNestedManyWithoutFileInput } export type CloudFileUncheckedCreateInput = { id?: number userId: number name: string mimeType?: string | null fileSize: bigint | number folderId?: number | null isComplete?: boolean totalChunks?: number | null createdAt?: Date | string updatedAt?: Date | string chunks?: CloudFileChunkUncheckedCreateNestedManyWithoutFileInput } export type CloudFileUpdateInput = { name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutCloudFilesNestedInput folder?: CloudFolderUpdateOneWithoutFilesNestedInput chunks?: CloudFileChunkUpdateManyWithoutFileNestedInput } export type CloudFileUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number folderId?: NullableIntFieldUpdateOperationsInput | number | null isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string chunks?: CloudFileChunkUncheckedUpdateManyWithoutFileNestedInput } export type CloudFileCreateManyInput = { id?: number userId: number name: string mimeType?: string | null fileSize: bigint | number folderId?: number | null isComplete?: boolean totalChunks?: number | null createdAt?: Date | string updatedAt?: Date | string } export type CloudFileUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number folderId?: NullableIntFieldUpdateOperationsInput | number | null isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileChunkCreateInput = { seq: number data: Bytes createdAt?: Date | string file: CloudFileCreateNestedOneWithoutChunksInput } export type CloudFileChunkUncheckedCreateInput = { id?: number fileId: number seq: number data: Bytes createdAt?: Date | string } export type CloudFileChunkUpdateInput = { seq?: IntFieldUpdateOperationsInput | number data?: BytesFieldUpdateOperationsInput | Bytes createdAt?: DateTimeFieldUpdateOperationsInput | Date | string file?: CloudFileUpdateOneRequiredWithoutChunksNestedInput } export type CloudFileChunkUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number fileId?: IntFieldUpdateOperationsInput | number seq?: IntFieldUpdateOperationsInput | number data?: BytesFieldUpdateOperationsInput | Bytes createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileChunkCreateManyInput = { id?: number fileId: number seq: number data: Bytes createdAt?: Date | string } export type CloudFileChunkUpdateManyMutationInput = { seq?: IntFieldUpdateOperationsInput | number data?: BytesFieldUpdateOperationsInput | Bytes createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileChunkUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number fileId?: IntFieldUpdateOperationsInput | number seq?: IntFieldUpdateOperationsInput | number data?: BytesFieldUpdateOperationsInput | Bytes createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommunicationCreateInput = { channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string patient: PatientCreateNestedOneWithoutCommunicationsInput user?: UserCreateNestedOneWithoutCommunicationsInput } export type CommunicationUncheckedCreateInput = { id?: number patientId: number userId?: number | null channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string } export type CommunicationUpdateInput = { channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutCommunicationsNestedInput user?: UserUpdateOneWithoutCommunicationsNestedInput } export type CommunicationUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: NullableIntFieldUpdateOperationsInput | number | null channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommunicationCreateManyInput = { id?: number patientId: number userId?: number | null channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string } export type CommunicationUpdateManyMutationInput = { channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommunicationUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: NullableIntFieldUpdateOperationsInput | number | null channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientDocumentCreateInput = { filename: string originalName: string mimeType: string fileSize: bigint | number filePath: string uploadedAt?: Date | string updatedAt?: Date | string patient: PatientCreateNestedOneWithoutDocumentsInput } export type PatientDocumentUncheckedCreateInput = { id?: number patientId: number filename: string originalName: string mimeType: string fileSize: bigint | number filePath: string uploadedAt?: Date | string updatedAt?: Date | string } export type PatientDocumentUpdateInput = { filename?: StringFieldUpdateOperationsInput | string originalName?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string fileSize?: BigIntFieldUpdateOperationsInput | bigint | number filePath?: StringFieldUpdateOperationsInput | string uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutDocumentsNestedInput } export type PatientDocumentUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string originalName?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string fileSize?: BigIntFieldUpdateOperationsInput | bigint | number filePath?: StringFieldUpdateOperationsInput | string uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientDocumentCreateManyInput = { id?: number patientId: number filename: string originalName: string mimeType: string fileSize: bigint | number filePath: string uploadedAt?: Date | string updatedAt?: Date | string } export type PatientDocumentUpdateManyMutationInput = { filename?: StringFieldUpdateOperationsInput | string originalName?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string fileSize?: BigIntFieldUpdateOperationsInput | bigint | number filePath?: StringFieldUpdateOperationsInput | string uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientDocumentUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string originalName?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string fileSize?: BigIntFieldUpdateOperationsInput | bigint | number filePath?: StringFieldUpdateOperationsInput | string uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type StringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringFilter<$PrismaModel> | string } export type PatientListRelationFilter = { every?: PatientWhereInput some?: PatientWhereInput none?: PatientWhereInput } export type AppointmentListRelationFilter = { every?: AppointmentWhereInput some?: AppointmentWhereInput none?: AppointmentWhereInput } export type StaffListRelationFilter = { every?: StaffWhereInput some?: StaffWhereInput none?: StaffWhereInput } export type NpiProviderListRelationFilter = { every?: NpiProviderWhereInput some?: NpiProviderWhereInput none?: NpiProviderWhereInput } export type ClaimListRelationFilter = { every?: ClaimWhereInput some?: ClaimWhereInput none?: ClaimWhereInput } export type InsuranceCredentialListRelationFilter = { every?: InsuranceCredentialWhereInput some?: InsuranceCredentialWhereInput none?: InsuranceCredentialWhereInput } export type PaymentListRelationFilter = { every?: PaymentWhereInput some?: PaymentWhereInput none?: PaymentWhereInput } export type DatabaseBackupListRelationFilter = { every?: DatabaseBackupWhereInput some?: DatabaseBackupWhereInput none?: DatabaseBackupWhereInput } export type BackupDestinationListRelationFilter = { every?: BackupDestinationWhereInput some?: BackupDestinationWhereInput none?: BackupDestinationWhereInput } export type NotificationListRelationFilter = { every?: NotificationWhereInput some?: NotificationWhereInput none?: NotificationWhereInput } export type CloudFolderListRelationFilter = { every?: CloudFolderWhereInput some?: CloudFolderWhereInput none?: CloudFolderWhereInput } export type CloudFileListRelationFilter = { every?: CloudFileWhereInput some?: CloudFileWhereInput none?: CloudFileWhereInput } export type CommunicationListRelationFilter = { every?: CommunicationWhereInput some?: CommunicationWhereInput none?: CommunicationWhereInput } export type PatientOrderByRelationAggregateInput = { _count?: SortOrder } export type AppointmentOrderByRelationAggregateInput = { _count?: SortOrder } export type StaffOrderByRelationAggregateInput = { _count?: SortOrder } export type NpiProviderOrderByRelationAggregateInput = { _count?: SortOrder } export type ClaimOrderByRelationAggregateInput = { _count?: SortOrder } export type InsuranceCredentialOrderByRelationAggregateInput = { _count?: SortOrder } export type PaymentOrderByRelationAggregateInput = { _count?: SortOrder } export type DatabaseBackupOrderByRelationAggregateInput = { _count?: SortOrder } export type BackupDestinationOrderByRelationAggregateInput = { _count?: SortOrder } export type NotificationOrderByRelationAggregateInput = { _count?: SortOrder } export type CloudFolderOrderByRelationAggregateInput = { _count?: SortOrder } export type CloudFileOrderByRelationAggregateInput = { _count?: SortOrder } export type CommunicationOrderByRelationAggregateInput = { _count?: SortOrder } export type UserCountOrderByAggregateInput = { id?: SortOrder username?: SortOrder password?: SortOrder } export type UserAvgOrderByAggregateInput = { id?: SortOrder } export type UserMaxOrderByAggregateInput = { id?: SortOrder username?: SortOrder password?: SortOrder } export type UserMinOrderByAggregateInput = { id?: SortOrder username?: SortOrder password?: SortOrder } export type UserSumOrderByAggregateInput = { id?: SortOrder } export type IntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type StringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type DateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type StringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type EnumPatientStatusFilter<$PrismaModel = never> = { equals?: $Enums.PatientStatus | EnumPatientStatusFieldRefInput<$PrismaModel> in?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> not?: NestedEnumPatientStatusFilter<$PrismaModel> | $Enums.PatientStatus } export type UserScalarRelationFilter = { is?: UserWhereInput isNot?: UserWhereInput } export type AppointmentProcedureListRelationFilter = { every?: AppointmentProcedureWhereInput some?: AppointmentProcedureWhereInput none?: AppointmentProcedureWhereInput } export type PdfGroupListRelationFilter = { every?: PdfGroupWhereInput some?: PdfGroupWhereInput none?: PdfGroupWhereInput } export type PatientDocumentListRelationFilter = { every?: PatientDocumentWhereInput some?: PatientDocumentWhereInput none?: PatientDocumentWhereInput } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type AppointmentProcedureOrderByRelationAggregateInput = { _count?: SortOrder } export type PdfGroupOrderByRelationAggregateInput = { _count?: SortOrder } export type PatientDocumentOrderByRelationAggregateInput = { _count?: SortOrder } export type PatientCountOrderByAggregateInput = { id?: SortOrder firstName?: SortOrder lastName?: SortOrder dateOfBirth?: SortOrder gender?: SortOrder phone?: SortOrder email?: SortOrder address?: SortOrder city?: SortOrder zipCode?: SortOrder insuranceProvider?: SortOrder insuranceId?: SortOrder groupNumber?: SortOrder policyHolder?: SortOrder allergies?: SortOrder medicalConditions?: SortOrder status?: SortOrder userId?: SortOrder createdAt?: SortOrder } export type PatientAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type PatientMaxOrderByAggregateInput = { id?: SortOrder firstName?: SortOrder lastName?: SortOrder dateOfBirth?: SortOrder gender?: SortOrder phone?: SortOrder email?: SortOrder address?: SortOrder city?: SortOrder zipCode?: SortOrder insuranceProvider?: SortOrder insuranceId?: SortOrder groupNumber?: SortOrder policyHolder?: SortOrder allergies?: SortOrder medicalConditions?: SortOrder status?: SortOrder userId?: SortOrder createdAt?: SortOrder } export type PatientMinOrderByAggregateInput = { id?: SortOrder firstName?: SortOrder lastName?: SortOrder dateOfBirth?: SortOrder gender?: SortOrder phone?: SortOrder email?: SortOrder address?: SortOrder city?: SortOrder zipCode?: SortOrder insuranceProvider?: SortOrder insuranceId?: SortOrder groupNumber?: SortOrder policyHolder?: SortOrder allergies?: SortOrder medicalConditions?: SortOrder status?: SortOrder userId?: SortOrder createdAt?: SortOrder } export type PatientSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type EnumPatientStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PatientStatus | EnumPatientStatusFieldRefInput<$PrismaModel> in?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> not?: NestedEnumPatientStatusWithAggregatesFilter<$PrismaModel> | $Enums.PatientStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPatientStatusFilter<$PrismaModel> _max?: NestedEnumPatientStatusFilter<$PrismaModel> } export type PatientScalarRelationFilter = { is?: PatientWhereInput isNot?: PatientWhereInput } export type StaffNullableScalarRelationFilter = { is?: StaffWhereInput | null isNot?: StaffWhereInput | null } export type AppointmentCountOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder staffId?: SortOrder title?: SortOrder date?: SortOrder startTime?: SortOrder endTime?: SortOrder type?: SortOrder notes?: SortOrder procedureCodeNotes?: SortOrder status?: SortOrder createdAt?: SortOrder eligibilityStatus?: SortOrder } export type AppointmentAvgOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder staffId?: SortOrder } export type AppointmentMaxOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder staffId?: SortOrder title?: SortOrder date?: SortOrder startTime?: SortOrder endTime?: SortOrder type?: SortOrder notes?: SortOrder procedureCodeNotes?: SortOrder status?: SortOrder createdAt?: SortOrder eligibilityStatus?: SortOrder } export type AppointmentMinOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder staffId?: SortOrder title?: SortOrder date?: SortOrder startTime?: SortOrder endTime?: SortOrder type?: SortOrder notes?: SortOrder procedureCodeNotes?: SortOrder status?: SortOrder createdAt?: SortOrder eligibilityStatus?: SortOrder } export type AppointmentSumOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder staffId?: SortOrder } export type UserNullableScalarRelationFilter = { is?: UserWhereInput | null isNot?: UserWhereInput | null } export type StaffCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder email?: SortOrder role?: SortOrder phone?: SortOrder createdAt?: SortOrder } export type StaffAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type StaffMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder email?: SortOrder role?: SortOrder phone?: SortOrder createdAt?: SortOrder } export type StaffMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder email?: SortOrder role?: SortOrder phone?: SortOrder createdAt?: SortOrder } export type StaffSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type NpiProviderUserIdNpiNumberCompoundUniqueInput = { userId: number npiNumber: string } export type NpiProviderCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder npiNumber?: SortOrder providerName?: SortOrder createdAt?: SortOrder } export type NpiProviderAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type NpiProviderMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder npiNumber?: SortOrder providerName?: SortOrder createdAt?: SortOrder } export type NpiProviderMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder npiNumber?: SortOrder providerName?: SortOrder createdAt?: SortOrder } export type NpiProviderSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type DecimalNullableFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null } export type EnumProcedureSourceFilter<$PrismaModel = never> = { equals?: $Enums.ProcedureSource | EnumProcedureSourceFieldRefInput<$PrismaModel> in?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> notIn?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> not?: NestedEnumProcedureSourceFilter<$PrismaModel> | $Enums.ProcedureSource } export type AppointmentScalarRelationFilter = { is?: AppointmentWhereInput isNot?: AppointmentWhereInput } export type AppointmentProcedureCountOrderByAggregateInput = { id?: SortOrder appointmentId?: SortOrder patientId?: SortOrder procedureCode?: SortOrder procedureLabel?: SortOrder fee?: SortOrder category?: SortOrder toothNumber?: SortOrder toothSurface?: SortOrder oralCavityArea?: SortOrder source?: SortOrder comboKey?: SortOrder createdAt?: SortOrder } export type AppointmentProcedureAvgOrderByAggregateInput = { id?: SortOrder appointmentId?: SortOrder patientId?: SortOrder fee?: SortOrder } export type AppointmentProcedureMaxOrderByAggregateInput = { id?: SortOrder appointmentId?: SortOrder patientId?: SortOrder procedureCode?: SortOrder procedureLabel?: SortOrder fee?: SortOrder category?: SortOrder toothNumber?: SortOrder toothSurface?: SortOrder oralCavityArea?: SortOrder source?: SortOrder comboKey?: SortOrder createdAt?: SortOrder } export type AppointmentProcedureMinOrderByAggregateInput = { id?: SortOrder appointmentId?: SortOrder patientId?: SortOrder procedureCode?: SortOrder procedureLabel?: SortOrder fee?: SortOrder category?: SortOrder toothNumber?: SortOrder toothSurface?: SortOrder oralCavityArea?: SortOrder source?: SortOrder comboKey?: SortOrder createdAt?: SortOrder } export type AppointmentProcedureSumOrderByAggregateInput = { id?: SortOrder appointmentId?: SortOrder patientId?: SortOrder fee?: SortOrder } export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedDecimalNullableFilter<$PrismaModel> _sum?: NestedDecimalNullableFilter<$PrismaModel> _min?: NestedDecimalNullableFilter<$PrismaModel> _max?: NestedDecimalNullableFilter<$PrismaModel> } export type EnumProcedureSourceWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ProcedureSource | EnumProcedureSourceFieldRefInput<$PrismaModel> in?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> notIn?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> not?: NestedEnumProcedureSourceWithAggregatesFilter<$PrismaModel> | $Enums.ProcedureSource _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumProcedureSourceFilter<$PrismaModel> _max?: NestedEnumProcedureSourceFilter<$PrismaModel> } export type EnumMissingTeethStatusFilter<$PrismaModel = never> = { equals?: $Enums.MissingTeethStatus | EnumMissingTeethStatusFieldRefInput<$PrismaModel> in?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> not?: NestedEnumMissingTeethStatusFilter<$PrismaModel> | $Enums.MissingTeethStatus } 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 | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type EnumClaimStatusFilter<$PrismaModel = never> = { equals?: $Enums.ClaimStatus | EnumClaimStatusFieldRefInput<$PrismaModel> in?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> not?: NestedEnumClaimStatusFilter<$PrismaModel> | $Enums.ClaimStatus } export type ServiceLineListRelationFilter = { every?: ServiceLineWhereInput some?: ServiceLineWhereInput none?: ServiceLineWhereInput } export type ClaimFileListRelationFilter = { every?: ClaimFileWhereInput some?: ClaimFileWhereInput none?: ClaimFileWhereInput } export type PaymentNullableScalarRelationFilter = { is?: PaymentWhereInput | null isNot?: PaymentWhereInput | null } export type ServiceLineOrderByRelationAggregateInput = { _count?: SortOrder } export type ClaimFileOrderByRelationAggregateInput = { _count?: SortOrder } export type ClaimCountOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder appointmentId?: SortOrder userId?: SortOrder staffId?: SortOrder patientName?: SortOrder memberId?: SortOrder dateOfBirth?: SortOrder remarks?: SortOrder missingTeethStatus?: SortOrder missingTeeth?: SortOrder serviceDate?: SortOrder insuranceProvider?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder status?: SortOrder claimNumber?: SortOrder } export type ClaimAvgOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder appointmentId?: SortOrder userId?: SortOrder staffId?: SortOrder } export type ClaimMaxOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder appointmentId?: SortOrder userId?: SortOrder staffId?: SortOrder patientName?: SortOrder memberId?: SortOrder dateOfBirth?: SortOrder remarks?: SortOrder missingTeethStatus?: SortOrder serviceDate?: SortOrder insuranceProvider?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder status?: SortOrder claimNumber?: SortOrder } export type ClaimMinOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder appointmentId?: SortOrder userId?: SortOrder staffId?: SortOrder patientName?: SortOrder memberId?: SortOrder dateOfBirth?: SortOrder remarks?: SortOrder missingTeethStatus?: SortOrder serviceDate?: SortOrder insuranceProvider?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder status?: SortOrder claimNumber?: SortOrder } export type ClaimSumOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder appointmentId?: SortOrder userId?: SortOrder staffId?: SortOrder } export type EnumMissingTeethStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.MissingTeethStatus | EnumMissingTeethStatusFieldRefInput<$PrismaModel> in?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> not?: NestedEnumMissingTeethStatusWithAggregatesFilter<$PrismaModel> | $Enums.MissingTeethStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumMissingTeethStatusFilter<$PrismaModel> _max?: NestedEnumMissingTeethStatusFilter<$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 | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedJsonNullableFilter<$PrismaModel> _max?: NestedJsonNullableFilter<$PrismaModel> } export type EnumClaimStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ClaimStatus | EnumClaimStatusFieldRefInput<$PrismaModel> in?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> not?: NestedEnumClaimStatusWithAggregatesFilter<$PrismaModel> | $Enums.ClaimStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumClaimStatusFilter<$PrismaModel> _max?: NestedEnumClaimStatusFilter<$PrismaModel> } export type IntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type DecimalFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string } export type EnumServiceLineStatusFilter<$PrismaModel = never> = { equals?: $Enums.ServiceLineStatus | EnumServiceLineStatusFieldRefInput<$PrismaModel> in?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> not?: NestedEnumServiceLineStatusFilter<$PrismaModel> | $Enums.ServiceLineStatus } export type ClaimNullableScalarRelationFilter = { is?: ClaimWhereInput | null isNot?: ClaimWhereInput | null } export type ServiceLineTransactionListRelationFilter = { every?: ServiceLineTransactionWhereInput some?: ServiceLineTransactionWhereInput none?: ServiceLineTransactionWhereInput } export type ServiceLineTransactionOrderByRelationAggregateInput = { _count?: SortOrder } export type ServiceLineCountOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder paymentId?: SortOrder procedureCode?: SortOrder procedureDate?: SortOrder quad?: SortOrder arch?: SortOrder toothNumber?: SortOrder toothSurface?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder status?: SortOrder } export type ServiceLineAvgOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder paymentId?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder } export type ServiceLineMaxOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder paymentId?: SortOrder procedureCode?: SortOrder procedureDate?: SortOrder quad?: SortOrder arch?: SortOrder toothNumber?: SortOrder toothSurface?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder status?: SortOrder } export type ServiceLineMinOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder paymentId?: SortOrder procedureCode?: SortOrder procedureDate?: SortOrder quad?: SortOrder arch?: SortOrder toothNumber?: SortOrder toothSurface?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder status?: SortOrder } export type ServiceLineSumOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder paymentId?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder } export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type DecimalWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string _count?: NestedIntFilter<$PrismaModel> _avg?: NestedDecimalFilter<$PrismaModel> _sum?: NestedDecimalFilter<$PrismaModel> _min?: NestedDecimalFilter<$PrismaModel> _max?: NestedDecimalFilter<$PrismaModel> } export type EnumServiceLineStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ServiceLineStatus | EnumServiceLineStatusFieldRefInput<$PrismaModel> in?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> not?: NestedEnumServiceLineStatusWithAggregatesFilter<$PrismaModel> | $Enums.ServiceLineStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumServiceLineStatusFilter<$PrismaModel> _max?: NestedEnumServiceLineStatusFilter<$PrismaModel> } export type ClaimScalarRelationFilter = { is?: ClaimWhereInput isNot?: ClaimWhereInput } export type ClaimFileCountOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder filename?: SortOrder mimeType?: SortOrder } export type ClaimFileAvgOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder } export type ClaimFileMaxOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder filename?: SortOrder mimeType?: SortOrder } export type ClaimFileMinOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder filename?: SortOrder mimeType?: SortOrder } export type ClaimFileSumOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder } export type InsuranceCredentialUserIdSiteKeyCompoundUniqueInput = { userId: number siteKey: string } export type InsuranceCredentialCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder siteKey?: SortOrder username?: SortOrder password?: SortOrder } export type InsuranceCredentialAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type InsuranceCredentialMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder siteKey?: SortOrder username?: SortOrder password?: SortOrder } export type InsuranceCredentialMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder siteKey?: SortOrder username?: SortOrder password?: SortOrder } export type InsuranceCredentialSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type EnumPdfTitleKeyFilter<$PrismaModel = never> = { equals?: $Enums.PdfTitleKey | EnumPdfTitleKeyFieldRefInput<$PrismaModel> in?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> notIn?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> not?: NestedEnumPdfTitleKeyFilter<$PrismaModel> | $Enums.PdfTitleKey } export type PdfFileListRelationFilter = { every?: PdfFileWhereInput some?: PdfFileWhereInput none?: PdfFileWhereInput } export type PdfFileOrderByRelationAggregateInput = { _count?: SortOrder } export type PdfGroupCountOrderByAggregateInput = { id?: SortOrder title?: SortOrder titleKey?: SortOrder createdAt?: SortOrder patientId?: SortOrder } export type PdfGroupAvgOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder } export type PdfGroupMaxOrderByAggregateInput = { id?: SortOrder title?: SortOrder titleKey?: SortOrder createdAt?: SortOrder patientId?: SortOrder } export type PdfGroupMinOrderByAggregateInput = { id?: SortOrder title?: SortOrder titleKey?: SortOrder createdAt?: SortOrder patientId?: SortOrder } export type PdfGroupSumOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder } export type EnumPdfTitleKeyWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PdfTitleKey | EnumPdfTitleKeyFieldRefInput<$PrismaModel> in?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> notIn?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> not?: NestedEnumPdfTitleKeyWithAggregatesFilter<$PrismaModel> | $Enums.PdfTitleKey _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPdfTitleKeyFilter<$PrismaModel> _max?: NestedEnumPdfTitleKeyFilter<$PrismaModel> } export type BytesFilter<$PrismaModel = never> = { equals?: Bytes | BytesFieldRefInput<$PrismaModel> in?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> notIn?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> not?: NestedBytesFilter<$PrismaModel> | Bytes } export type PdfGroupScalarRelationFilter = { is?: PdfGroupWhereInput isNot?: PdfGroupWhereInput } export type PdfFileCountOrderByAggregateInput = { id?: SortOrder filename?: SortOrder pdfData?: SortOrder uploadedAt?: SortOrder groupId?: SortOrder } export type PdfFileAvgOrderByAggregateInput = { id?: SortOrder groupId?: SortOrder } export type PdfFileMaxOrderByAggregateInput = { id?: SortOrder filename?: SortOrder pdfData?: SortOrder uploadedAt?: SortOrder groupId?: SortOrder } export type PdfFileMinOrderByAggregateInput = { id?: SortOrder filename?: SortOrder pdfData?: SortOrder uploadedAt?: SortOrder groupId?: SortOrder } export type PdfFileSumOrderByAggregateInput = { id?: SortOrder groupId?: SortOrder } export type BytesWithAggregatesFilter<$PrismaModel = never> = { equals?: Bytes | BytesFieldRefInput<$PrismaModel> in?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> notIn?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> not?: NestedBytesWithAggregatesFilter<$PrismaModel> | Bytes _count?: NestedIntFilter<$PrismaModel> _min?: NestedBytesFilter<$PrismaModel> _max?: NestedBytesFilter<$PrismaModel> } export type EnumPaymentStatusFilter<$PrismaModel = never> = { equals?: $Enums.PaymentStatus | EnumPaymentStatusFieldRefInput<$PrismaModel> in?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> not?: NestedEnumPaymentStatusFilter<$PrismaModel> | $Enums.PaymentStatus } export type PaymentCountOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder patientId?: SortOrder userId?: SortOrder updatedById?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder status?: SortOrder notes?: SortOrder icn?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PaymentAvgOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder patientId?: SortOrder userId?: SortOrder updatedById?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder } export type PaymentMaxOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder patientId?: SortOrder userId?: SortOrder updatedById?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder status?: SortOrder notes?: SortOrder icn?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PaymentMinOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder patientId?: SortOrder userId?: SortOrder updatedById?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder status?: SortOrder notes?: SortOrder icn?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PaymentSumOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder patientId?: SortOrder userId?: SortOrder updatedById?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder } export type EnumPaymentStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PaymentStatus | EnumPaymentStatusFieldRefInput<$PrismaModel> in?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> not?: NestedEnumPaymentStatusWithAggregatesFilter<$PrismaModel> | $Enums.PaymentStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPaymentStatusFilter<$PrismaModel> _max?: NestedEnumPaymentStatusFilter<$PrismaModel> } export type EnumPaymentMethodFilter<$PrismaModel = never> = { equals?: $Enums.PaymentMethod | EnumPaymentMethodFieldRefInput<$PrismaModel> in?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> not?: NestedEnumPaymentMethodFilter<$PrismaModel> | $Enums.PaymentMethod } export type PaymentScalarRelationFilter = { is?: PaymentWhereInput isNot?: PaymentWhereInput } export type ServiceLineScalarRelationFilter = { is?: ServiceLineWhereInput isNot?: ServiceLineWhereInput } export type ServiceLineTransactionCountOrderByAggregateInput = { id?: SortOrder paymentId?: SortOrder serviceLineId?: SortOrder transactionId?: SortOrder paidAmount?: SortOrder adjustedAmount?: SortOrder method?: SortOrder receivedDate?: SortOrder payerName?: SortOrder notes?: SortOrder createdAt?: SortOrder } export type ServiceLineTransactionAvgOrderByAggregateInput = { id?: SortOrder paymentId?: SortOrder serviceLineId?: SortOrder paidAmount?: SortOrder adjustedAmount?: SortOrder } export type ServiceLineTransactionMaxOrderByAggregateInput = { id?: SortOrder paymentId?: SortOrder serviceLineId?: SortOrder transactionId?: SortOrder paidAmount?: SortOrder adjustedAmount?: SortOrder method?: SortOrder receivedDate?: SortOrder payerName?: SortOrder notes?: SortOrder createdAt?: SortOrder } export type ServiceLineTransactionMinOrderByAggregateInput = { id?: SortOrder paymentId?: SortOrder serviceLineId?: SortOrder transactionId?: SortOrder paidAmount?: SortOrder adjustedAmount?: SortOrder method?: SortOrder receivedDate?: SortOrder payerName?: SortOrder notes?: SortOrder createdAt?: SortOrder } export type ServiceLineTransactionSumOrderByAggregateInput = { id?: SortOrder paymentId?: SortOrder serviceLineId?: SortOrder paidAmount?: SortOrder adjustedAmount?: SortOrder } export type EnumPaymentMethodWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PaymentMethod | EnumPaymentMethodFieldRefInput<$PrismaModel> in?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> not?: NestedEnumPaymentMethodWithAggregatesFilter<$PrismaModel> | $Enums.PaymentMethod _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPaymentMethodFilter<$PrismaModel> _max?: NestedEnumPaymentMethodFilter<$PrismaModel> } export type DatabaseBackupCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder createdAt?: SortOrder } export type DatabaseBackupAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type DatabaseBackupMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder createdAt?: SortOrder } export type DatabaseBackupMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder createdAt?: SortOrder } export type DatabaseBackupSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type BoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type BackupDestinationCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder path?: SortOrder isActive?: SortOrder createdAt?: SortOrder } export type BackupDestinationAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type BackupDestinationMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder path?: SortOrder isActive?: SortOrder createdAt?: SortOrder } export type BackupDestinationMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder path?: SortOrder isActive?: SortOrder createdAt?: SortOrder } export type BackupDestinationSumOrderByAggregateInput = { id?: SortOrder userId?: 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 EnumNotificationTypesFilter<$PrismaModel = never> = { equals?: $Enums.NotificationTypes | EnumNotificationTypesFieldRefInput<$PrismaModel> in?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> notIn?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> not?: NestedEnumNotificationTypesFilter<$PrismaModel> | $Enums.NotificationTypes } export type NotificationCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder type?: SortOrder message?: SortOrder createdAt?: SortOrder read?: SortOrder } export type NotificationAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type NotificationMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder type?: SortOrder message?: SortOrder createdAt?: SortOrder read?: SortOrder } export type NotificationMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder type?: SortOrder message?: SortOrder createdAt?: SortOrder read?: SortOrder } export type NotificationSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type EnumNotificationTypesWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.NotificationTypes | EnumNotificationTypesFieldRefInput<$PrismaModel> in?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> notIn?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> not?: NestedEnumNotificationTypesWithAggregatesFilter<$PrismaModel> | $Enums.NotificationTypes _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumNotificationTypesFilter<$PrismaModel> _max?: NestedEnumNotificationTypesFilter<$PrismaModel> } export type CloudFolderNullableScalarRelationFilter = { is?: CloudFolderWhereInput | null isNot?: CloudFolderWhereInput | null } export type CloudFolderUserIdParentIdNameCompoundUniqueInput = { userId: number parentId: number name: string } export type CloudFolderCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder parentId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CloudFolderAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder parentId?: SortOrder } export type CloudFolderMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder parentId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CloudFolderMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder parentId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CloudFolderSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder parentId?: SortOrder } export type BigIntFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntFilter<$PrismaModel> | bigint | number } export type CloudFileChunkListRelationFilter = { every?: CloudFileChunkWhereInput some?: CloudFileChunkWhereInput none?: CloudFileChunkWhereInput } export type CloudFileChunkOrderByRelationAggregateInput = { _count?: SortOrder } export type CloudFileCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder mimeType?: SortOrder fileSize?: SortOrder folderId?: SortOrder isComplete?: SortOrder totalChunks?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CloudFileAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder fileSize?: SortOrder folderId?: SortOrder totalChunks?: SortOrder } export type CloudFileMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder mimeType?: SortOrder fileSize?: SortOrder folderId?: SortOrder isComplete?: SortOrder totalChunks?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CloudFileMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder mimeType?: SortOrder fileSize?: SortOrder folderId?: SortOrder isComplete?: SortOrder totalChunks?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CloudFileSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder fileSize?: SortOrder folderId?: SortOrder totalChunks?: SortOrder } export type BigIntWithAggregatesFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedBigIntFilter<$PrismaModel> _min?: NestedBigIntFilter<$PrismaModel> _max?: NestedBigIntFilter<$PrismaModel> } export type CloudFileScalarRelationFilter = { is?: CloudFileWhereInput isNot?: CloudFileWhereInput } export type CloudFileChunkFileIdSeqCompoundUniqueInput = { fileId: number seq: number } export type CloudFileChunkCountOrderByAggregateInput = { id?: SortOrder fileId?: SortOrder seq?: SortOrder data?: SortOrder createdAt?: SortOrder } export type CloudFileChunkAvgOrderByAggregateInput = { id?: SortOrder fileId?: SortOrder seq?: SortOrder } export type CloudFileChunkMaxOrderByAggregateInput = { id?: SortOrder fileId?: SortOrder seq?: SortOrder data?: SortOrder createdAt?: SortOrder } export type CloudFileChunkMinOrderByAggregateInput = { id?: SortOrder fileId?: SortOrder seq?: SortOrder data?: SortOrder createdAt?: SortOrder } export type CloudFileChunkSumOrderByAggregateInput = { id?: SortOrder fileId?: SortOrder seq?: SortOrder } export type EnumCommunicationChannelFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationChannel | EnumCommunicationChannelFieldRefInput<$PrismaModel> in?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationChannelFilter<$PrismaModel> | $Enums.CommunicationChannel } export type EnumCommunicationDirectionFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationDirection | EnumCommunicationDirectionFieldRefInput<$PrismaModel> in?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationDirectionFilter<$PrismaModel> | $Enums.CommunicationDirection } export type EnumCommunicationStatusFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationStatus | EnumCommunicationStatusFieldRefInput<$PrismaModel> in?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationStatusFilter<$PrismaModel> | $Enums.CommunicationStatus } export type CommunicationCountOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder channel?: SortOrder direction?: SortOrder status?: SortOrder body?: SortOrder callDuration?: SortOrder twilioSid?: SortOrder createdAt?: SortOrder } export type CommunicationAvgOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder callDuration?: SortOrder } export type CommunicationMaxOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder channel?: SortOrder direction?: SortOrder status?: SortOrder body?: SortOrder callDuration?: SortOrder twilioSid?: SortOrder createdAt?: SortOrder } export type CommunicationMinOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder channel?: SortOrder direction?: SortOrder status?: SortOrder body?: SortOrder callDuration?: SortOrder twilioSid?: SortOrder createdAt?: SortOrder } export type CommunicationSumOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder callDuration?: SortOrder } export type EnumCommunicationChannelWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationChannel | EnumCommunicationChannelFieldRefInput<$PrismaModel> in?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationChannelWithAggregatesFilter<$PrismaModel> | $Enums.CommunicationChannel _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumCommunicationChannelFilter<$PrismaModel> _max?: NestedEnumCommunicationChannelFilter<$PrismaModel> } export type EnumCommunicationDirectionWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationDirection | EnumCommunicationDirectionFieldRefInput<$PrismaModel> in?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationDirectionWithAggregatesFilter<$PrismaModel> | $Enums.CommunicationDirection _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumCommunicationDirectionFilter<$PrismaModel> _max?: NestedEnumCommunicationDirectionFilter<$PrismaModel> } export type EnumCommunicationStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationStatus | EnumCommunicationStatusFieldRefInput<$PrismaModel> in?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationStatusWithAggregatesFilter<$PrismaModel> | $Enums.CommunicationStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumCommunicationStatusFilter<$PrismaModel> _max?: NestedEnumCommunicationStatusFilter<$PrismaModel> } export type PatientDocumentCountOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder filename?: SortOrder originalName?: SortOrder mimeType?: SortOrder fileSize?: SortOrder filePath?: SortOrder uploadedAt?: SortOrder updatedAt?: SortOrder } export type PatientDocumentAvgOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder fileSize?: SortOrder } export type PatientDocumentMaxOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder filename?: SortOrder originalName?: SortOrder mimeType?: SortOrder fileSize?: SortOrder filePath?: SortOrder uploadedAt?: SortOrder updatedAt?: SortOrder } export type PatientDocumentMinOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder filename?: SortOrder originalName?: SortOrder mimeType?: SortOrder fileSize?: SortOrder filePath?: SortOrder uploadedAt?: SortOrder updatedAt?: SortOrder } export type PatientDocumentSumOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder fileSize?: SortOrder } export type PatientCreateNestedManyWithoutUserInput = { create?: XOR | PatientCreateWithoutUserInput[] | PatientUncheckedCreateWithoutUserInput[] connectOrCreate?: PatientCreateOrConnectWithoutUserInput | PatientCreateOrConnectWithoutUserInput[] createMany?: PatientCreateManyUserInputEnvelope connect?: PatientWhereUniqueInput | PatientWhereUniqueInput[] } export type AppointmentCreateNestedManyWithoutUserInput = { create?: XOR | AppointmentCreateWithoutUserInput[] | AppointmentUncheckedCreateWithoutUserInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutUserInput | AppointmentCreateOrConnectWithoutUserInput[] createMany?: AppointmentCreateManyUserInputEnvelope connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] } export type StaffCreateNestedManyWithoutUserInput = { create?: XOR | StaffCreateWithoutUserInput[] | StaffUncheckedCreateWithoutUserInput[] connectOrCreate?: StaffCreateOrConnectWithoutUserInput | StaffCreateOrConnectWithoutUserInput[] createMany?: StaffCreateManyUserInputEnvelope connect?: StaffWhereUniqueInput | StaffWhereUniqueInput[] } export type NpiProviderCreateNestedManyWithoutUserInput = { create?: XOR | NpiProviderCreateWithoutUserInput[] | NpiProviderUncheckedCreateWithoutUserInput[] connectOrCreate?: NpiProviderCreateOrConnectWithoutUserInput | NpiProviderCreateOrConnectWithoutUserInput[] createMany?: NpiProviderCreateManyUserInputEnvelope connect?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] } export type ClaimCreateNestedManyWithoutUserInput = { create?: XOR | ClaimCreateWithoutUserInput[] | ClaimUncheckedCreateWithoutUserInput[] connectOrCreate?: ClaimCreateOrConnectWithoutUserInput | ClaimCreateOrConnectWithoutUserInput[] createMany?: ClaimCreateManyUserInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type InsuranceCredentialCreateNestedManyWithoutUserInput = { create?: XOR | InsuranceCredentialCreateWithoutUserInput[] | InsuranceCredentialUncheckedCreateWithoutUserInput[] connectOrCreate?: InsuranceCredentialCreateOrConnectWithoutUserInput | InsuranceCredentialCreateOrConnectWithoutUserInput[] createMany?: InsuranceCredentialCreateManyUserInputEnvelope connect?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] } export type PaymentCreateNestedManyWithoutUpdatedByInput = { create?: XOR | PaymentCreateWithoutUpdatedByInput[] | PaymentUncheckedCreateWithoutUpdatedByInput[] connectOrCreate?: PaymentCreateOrConnectWithoutUpdatedByInput | PaymentCreateOrConnectWithoutUpdatedByInput[] createMany?: PaymentCreateManyUpdatedByInputEnvelope connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] } export type DatabaseBackupCreateNestedManyWithoutUserInput = { create?: XOR | DatabaseBackupCreateWithoutUserInput[] | DatabaseBackupUncheckedCreateWithoutUserInput[] connectOrCreate?: DatabaseBackupCreateOrConnectWithoutUserInput | DatabaseBackupCreateOrConnectWithoutUserInput[] createMany?: DatabaseBackupCreateManyUserInputEnvelope connect?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] } export type BackupDestinationCreateNestedManyWithoutUserInput = { create?: XOR | BackupDestinationCreateWithoutUserInput[] | BackupDestinationUncheckedCreateWithoutUserInput[] connectOrCreate?: BackupDestinationCreateOrConnectWithoutUserInput | BackupDestinationCreateOrConnectWithoutUserInput[] createMany?: BackupDestinationCreateManyUserInputEnvelope connect?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] } export type NotificationCreateNestedManyWithoutUserInput = { create?: XOR | NotificationCreateWithoutUserInput[] | NotificationUncheckedCreateWithoutUserInput[] connectOrCreate?: NotificationCreateOrConnectWithoutUserInput | NotificationCreateOrConnectWithoutUserInput[] createMany?: NotificationCreateManyUserInputEnvelope connect?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] } export type CloudFolderCreateNestedManyWithoutUserInput = { create?: XOR | CloudFolderCreateWithoutUserInput[] | CloudFolderUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutUserInput | CloudFolderCreateOrConnectWithoutUserInput[] createMany?: CloudFolderCreateManyUserInputEnvelope connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] } export type CloudFileCreateNestedManyWithoutUserInput = { create?: XOR | CloudFileCreateWithoutUserInput[] | CloudFileUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutUserInput | CloudFileCreateOrConnectWithoutUserInput[] createMany?: CloudFileCreateManyUserInputEnvelope connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] } export type CommunicationCreateNestedManyWithoutUserInput = { create?: XOR | CommunicationCreateWithoutUserInput[] | CommunicationUncheckedCreateWithoutUserInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutUserInput | CommunicationCreateOrConnectWithoutUserInput[] createMany?: CommunicationCreateManyUserInputEnvelope connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] } export type PatientUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | PatientCreateWithoutUserInput[] | PatientUncheckedCreateWithoutUserInput[] connectOrCreate?: PatientCreateOrConnectWithoutUserInput | PatientCreateOrConnectWithoutUserInput[] createMany?: PatientCreateManyUserInputEnvelope connect?: PatientWhereUniqueInput | PatientWhereUniqueInput[] } export type AppointmentUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | AppointmentCreateWithoutUserInput[] | AppointmentUncheckedCreateWithoutUserInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutUserInput | AppointmentCreateOrConnectWithoutUserInput[] createMany?: AppointmentCreateManyUserInputEnvelope connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] } export type StaffUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | StaffCreateWithoutUserInput[] | StaffUncheckedCreateWithoutUserInput[] connectOrCreate?: StaffCreateOrConnectWithoutUserInput | StaffCreateOrConnectWithoutUserInput[] createMany?: StaffCreateManyUserInputEnvelope connect?: StaffWhereUniqueInput | StaffWhereUniqueInput[] } export type NpiProviderUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | NpiProviderCreateWithoutUserInput[] | NpiProviderUncheckedCreateWithoutUserInput[] connectOrCreate?: NpiProviderCreateOrConnectWithoutUserInput | NpiProviderCreateOrConnectWithoutUserInput[] createMany?: NpiProviderCreateManyUserInputEnvelope connect?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] } export type ClaimUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | ClaimCreateWithoutUserInput[] | ClaimUncheckedCreateWithoutUserInput[] connectOrCreate?: ClaimCreateOrConnectWithoutUserInput | ClaimCreateOrConnectWithoutUserInput[] createMany?: ClaimCreateManyUserInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | InsuranceCredentialCreateWithoutUserInput[] | InsuranceCredentialUncheckedCreateWithoutUserInput[] connectOrCreate?: InsuranceCredentialCreateOrConnectWithoutUserInput | InsuranceCredentialCreateOrConnectWithoutUserInput[] createMany?: InsuranceCredentialCreateManyUserInputEnvelope connect?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] } export type PaymentUncheckedCreateNestedManyWithoutUpdatedByInput = { create?: XOR | PaymentCreateWithoutUpdatedByInput[] | PaymentUncheckedCreateWithoutUpdatedByInput[] connectOrCreate?: PaymentCreateOrConnectWithoutUpdatedByInput | PaymentCreateOrConnectWithoutUpdatedByInput[] createMany?: PaymentCreateManyUpdatedByInputEnvelope connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] } export type DatabaseBackupUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | DatabaseBackupCreateWithoutUserInput[] | DatabaseBackupUncheckedCreateWithoutUserInput[] connectOrCreate?: DatabaseBackupCreateOrConnectWithoutUserInput | DatabaseBackupCreateOrConnectWithoutUserInput[] createMany?: DatabaseBackupCreateManyUserInputEnvelope connect?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] } export type BackupDestinationUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | BackupDestinationCreateWithoutUserInput[] | BackupDestinationUncheckedCreateWithoutUserInput[] connectOrCreate?: BackupDestinationCreateOrConnectWithoutUserInput | BackupDestinationCreateOrConnectWithoutUserInput[] createMany?: BackupDestinationCreateManyUserInputEnvelope connect?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] } export type NotificationUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | NotificationCreateWithoutUserInput[] | NotificationUncheckedCreateWithoutUserInput[] connectOrCreate?: NotificationCreateOrConnectWithoutUserInput | NotificationCreateOrConnectWithoutUserInput[] createMany?: NotificationCreateManyUserInputEnvelope connect?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] } export type CloudFolderUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | CloudFolderCreateWithoutUserInput[] | CloudFolderUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutUserInput | CloudFolderCreateOrConnectWithoutUserInput[] createMany?: CloudFolderCreateManyUserInputEnvelope connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] } export type CloudFileUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | CloudFileCreateWithoutUserInput[] | CloudFileUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutUserInput | CloudFileCreateOrConnectWithoutUserInput[] createMany?: CloudFileCreateManyUserInputEnvelope connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] } export type CommunicationUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | CommunicationCreateWithoutUserInput[] | CommunicationUncheckedCreateWithoutUserInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutUserInput | CommunicationCreateOrConnectWithoutUserInput[] createMany?: CommunicationCreateManyUserInputEnvelope connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] } export type StringFieldUpdateOperationsInput = { set?: string } export type PatientUpdateManyWithoutUserNestedInput = { create?: XOR | PatientCreateWithoutUserInput[] | PatientUncheckedCreateWithoutUserInput[] connectOrCreate?: PatientCreateOrConnectWithoutUserInput | PatientCreateOrConnectWithoutUserInput[] upsert?: PatientUpsertWithWhereUniqueWithoutUserInput | PatientUpsertWithWhereUniqueWithoutUserInput[] createMany?: PatientCreateManyUserInputEnvelope set?: PatientWhereUniqueInput | PatientWhereUniqueInput[] disconnect?: PatientWhereUniqueInput | PatientWhereUniqueInput[] delete?: PatientWhereUniqueInput | PatientWhereUniqueInput[] connect?: PatientWhereUniqueInput | PatientWhereUniqueInput[] update?: PatientUpdateWithWhereUniqueWithoutUserInput | PatientUpdateWithWhereUniqueWithoutUserInput[] updateMany?: PatientUpdateManyWithWhereWithoutUserInput | PatientUpdateManyWithWhereWithoutUserInput[] deleteMany?: PatientScalarWhereInput | PatientScalarWhereInput[] } export type AppointmentUpdateManyWithoutUserNestedInput = { create?: XOR | AppointmentCreateWithoutUserInput[] | AppointmentUncheckedCreateWithoutUserInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutUserInput | AppointmentCreateOrConnectWithoutUserInput[] upsert?: AppointmentUpsertWithWhereUniqueWithoutUserInput | AppointmentUpsertWithWhereUniqueWithoutUserInput[] createMany?: AppointmentCreateManyUserInputEnvelope set?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] disconnect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] delete?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] update?: AppointmentUpdateWithWhereUniqueWithoutUserInput | AppointmentUpdateWithWhereUniqueWithoutUserInput[] updateMany?: AppointmentUpdateManyWithWhereWithoutUserInput | AppointmentUpdateManyWithWhereWithoutUserInput[] deleteMany?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] } export type StaffUpdateManyWithoutUserNestedInput = { create?: XOR | StaffCreateWithoutUserInput[] | StaffUncheckedCreateWithoutUserInput[] connectOrCreate?: StaffCreateOrConnectWithoutUserInput | StaffCreateOrConnectWithoutUserInput[] upsert?: StaffUpsertWithWhereUniqueWithoutUserInput | StaffUpsertWithWhereUniqueWithoutUserInput[] createMany?: StaffCreateManyUserInputEnvelope set?: StaffWhereUniqueInput | StaffWhereUniqueInput[] disconnect?: StaffWhereUniqueInput | StaffWhereUniqueInput[] delete?: StaffWhereUniqueInput | StaffWhereUniqueInput[] connect?: StaffWhereUniqueInput | StaffWhereUniqueInput[] update?: StaffUpdateWithWhereUniqueWithoutUserInput | StaffUpdateWithWhereUniqueWithoutUserInput[] updateMany?: StaffUpdateManyWithWhereWithoutUserInput | StaffUpdateManyWithWhereWithoutUserInput[] deleteMany?: StaffScalarWhereInput | StaffScalarWhereInput[] } export type NpiProviderUpdateManyWithoutUserNestedInput = { create?: XOR | NpiProviderCreateWithoutUserInput[] | NpiProviderUncheckedCreateWithoutUserInput[] connectOrCreate?: NpiProviderCreateOrConnectWithoutUserInput | NpiProviderCreateOrConnectWithoutUserInput[] upsert?: NpiProviderUpsertWithWhereUniqueWithoutUserInput | NpiProviderUpsertWithWhereUniqueWithoutUserInput[] createMany?: NpiProviderCreateManyUserInputEnvelope set?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] disconnect?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] delete?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] connect?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] update?: NpiProviderUpdateWithWhereUniqueWithoutUserInput | NpiProviderUpdateWithWhereUniqueWithoutUserInput[] updateMany?: NpiProviderUpdateManyWithWhereWithoutUserInput | NpiProviderUpdateManyWithWhereWithoutUserInput[] deleteMany?: NpiProviderScalarWhereInput | NpiProviderScalarWhereInput[] } export type ClaimUpdateManyWithoutUserNestedInput = { create?: XOR | ClaimCreateWithoutUserInput[] | ClaimUncheckedCreateWithoutUserInput[] connectOrCreate?: ClaimCreateOrConnectWithoutUserInput | ClaimCreateOrConnectWithoutUserInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutUserInput | ClaimUpsertWithWhereUniqueWithoutUserInput[] createMany?: ClaimCreateManyUserInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutUserInput | ClaimUpdateWithWhereUniqueWithoutUserInput[] updateMany?: ClaimUpdateManyWithWhereWithoutUserInput | ClaimUpdateManyWithWhereWithoutUserInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type InsuranceCredentialUpdateManyWithoutUserNestedInput = { create?: XOR | InsuranceCredentialCreateWithoutUserInput[] | InsuranceCredentialUncheckedCreateWithoutUserInput[] connectOrCreate?: InsuranceCredentialCreateOrConnectWithoutUserInput | InsuranceCredentialCreateOrConnectWithoutUserInput[] upsert?: InsuranceCredentialUpsertWithWhereUniqueWithoutUserInput | InsuranceCredentialUpsertWithWhereUniqueWithoutUserInput[] createMany?: InsuranceCredentialCreateManyUserInputEnvelope set?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] disconnect?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] delete?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] connect?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] update?: InsuranceCredentialUpdateWithWhereUniqueWithoutUserInput | InsuranceCredentialUpdateWithWhereUniqueWithoutUserInput[] updateMany?: InsuranceCredentialUpdateManyWithWhereWithoutUserInput | InsuranceCredentialUpdateManyWithWhereWithoutUserInput[] deleteMany?: InsuranceCredentialScalarWhereInput | InsuranceCredentialScalarWhereInput[] } export type PaymentUpdateManyWithoutUpdatedByNestedInput = { create?: XOR | PaymentCreateWithoutUpdatedByInput[] | PaymentUncheckedCreateWithoutUpdatedByInput[] connectOrCreate?: PaymentCreateOrConnectWithoutUpdatedByInput | PaymentCreateOrConnectWithoutUpdatedByInput[] upsert?: PaymentUpsertWithWhereUniqueWithoutUpdatedByInput | PaymentUpsertWithWhereUniqueWithoutUpdatedByInput[] createMany?: PaymentCreateManyUpdatedByInputEnvelope set?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] disconnect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] delete?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] update?: PaymentUpdateWithWhereUniqueWithoutUpdatedByInput | PaymentUpdateWithWhereUniqueWithoutUpdatedByInput[] updateMany?: PaymentUpdateManyWithWhereWithoutUpdatedByInput | PaymentUpdateManyWithWhereWithoutUpdatedByInput[] deleteMany?: PaymentScalarWhereInput | PaymentScalarWhereInput[] } export type DatabaseBackupUpdateManyWithoutUserNestedInput = { create?: XOR | DatabaseBackupCreateWithoutUserInput[] | DatabaseBackupUncheckedCreateWithoutUserInput[] connectOrCreate?: DatabaseBackupCreateOrConnectWithoutUserInput | DatabaseBackupCreateOrConnectWithoutUserInput[] upsert?: DatabaseBackupUpsertWithWhereUniqueWithoutUserInput | DatabaseBackupUpsertWithWhereUniqueWithoutUserInput[] createMany?: DatabaseBackupCreateManyUserInputEnvelope set?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] disconnect?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] delete?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] connect?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] update?: DatabaseBackupUpdateWithWhereUniqueWithoutUserInput | DatabaseBackupUpdateWithWhereUniqueWithoutUserInput[] updateMany?: DatabaseBackupUpdateManyWithWhereWithoutUserInput | DatabaseBackupUpdateManyWithWhereWithoutUserInput[] deleteMany?: DatabaseBackupScalarWhereInput | DatabaseBackupScalarWhereInput[] } export type BackupDestinationUpdateManyWithoutUserNestedInput = { create?: XOR | BackupDestinationCreateWithoutUserInput[] | BackupDestinationUncheckedCreateWithoutUserInput[] connectOrCreate?: BackupDestinationCreateOrConnectWithoutUserInput | BackupDestinationCreateOrConnectWithoutUserInput[] upsert?: BackupDestinationUpsertWithWhereUniqueWithoutUserInput | BackupDestinationUpsertWithWhereUniqueWithoutUserInput[] createMany?: BackupDestinationCreateManyUserInputEnvelope set?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] disconnect?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] delete?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] connect?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] update?: BackupDestinationUpdateWithWhereUniqueWithoutUserInput | BackupDestinationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: BackupDestinationUpdateManyWithWhereWithoutUserInput | BackupDestinationUpdateManyWithWhereWithoutUserInput[] deleteMany?: BackupDestinationScalarWhereInput | BackupDestinationScalarWhereInput[] } export type NotificationUpdateManyWithoutUserNestedInput = { create?: XOR | NotificationCreateWithoutUserInput[] | NotificationUncheckedCreateWithoutUserInput[] connectOrCreate?: NotificationCreateOrConnectWithoutUserInput | NotificationCreateOrConnectWithoutUserInput[] upsert?: NotificationUpsertWithWhereUniqueWithoutUserInput | NotificationUpsertWithWhereUniqueWithoutUserInput[] createMany?: NotificationCreateManyUserInputEnvelope set?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] disconnect?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] delete?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] connect?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] update?: NotificationUpdateWithWhereUniqueWithoutUserInput | NotificationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: NotificationUpdateManyWithWhereWithoutUserInput | NotificationUpdateManyWithWhereWithoutUserInput[] deleteMany?: NotificationScalarWhereInput | NotificationScalarWhereInput[] } export type CloudFolderUpdateManyWithoutUserNestedInput = { create?: XOR | CloudFolderCreateWithoutUserInput[] | CloudFolderUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutUserInput | CloudFolderCreateOrConnectWithoutUserInput[] upsert?: CloudFolderUpsertWithWhereUniqueWithoutUserInput | CloudFolderUpsertWithWhereUniqueWithoutUserInput[] createMany?: CloudFolderCreateManyUserInputEnvelope set?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] disconnect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] delete?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] update?: CloudFolderUpdateWithWhereUniqueWithoutUserInput | CloudFolderUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CloudFolderUpdateManyWithWhereWithoutUserInput | CloudFolderUpdateManyWithWhereWithoutUserInput[] deleteMany?: CloudFolderScalarWhereInput | CloudFolderScalarWhereInput[] } export type CloudFileUpdateManyWithoutUserNestedInput = { create?: XOR | CloudFileCreateWithoutUserInput[] | CloudFileUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutUserInput | CloudFileCreateOrConnectWithoutUserInput[] upsert?: CloudFileUpsertWithWhereUniqueWithoutUserInput | CloudFileUpsertWithWhereUniqueWithoutUserInput[] createMany?: CloudFileCreateManyUserInputEnvelope set?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] disconnect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] delete?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] update?: CloudFileUpdateWithWhereUniqueWithoutUserInput | CloudFileUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CloudFileUpdateManyWithWhereWithoutUserInput | CloudFileUpdateManyWithWhereWithoutUserInput[] deleteMany?: CloudFileScalarWhereInput | CloudFileScalarWhereInput[] } export type CommunicationUpdateManyWithoutUserNestedInput = { create?: XOR | CommunicationCreateWithoutUserInput[] | CommunicationUncheckedCreateWithoutUserInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutUserInput | CommunicationCreateOrConnectWithoutUserInput[] upsert?: CommunicationUpsertWithWhereUniqueWithoutUserInput | CommunicationUpsertWithWhereUniqueWithoutUserInput[] createMany?: CommunicationCreateManyUserInputEnvelope set?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] disconnect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] delete?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] update?: CommunicationUpdateWithWhereUniqueWithoutUserInput | CommunicationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CommunicationUpdateManyWithWhereWithoutUserInput | CommunicationUpdateManyWithWhereWithoutUserInput[] deleteMany?: CommunicationScalarWhereInput | CommunicationScalarWhereInput[] } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type PatientUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | PatientCreateWithoutUserInput[] | PatientUncheckedCreateWithoutUserInput[] connectOrCreate?: PatientCreateOrConnectWithoutUserInput | PatientCreateOrConnectWithoutUserInput[] upsert?: PatientUpsertWithWhereUniqueWithoutUserInput | PatientUpsertWithWhereUniqueWithoutUserInput[] createMany?: PatientCreateManyUserInputEnvelope set?: PatientWhereUniqueInput | PatientWhereUniqueInput[] disconnect?: PatientWhereUniqueInput | PatientWhereUniqueInput[] delete?: PatientWhereUniqueInput | PatientWhereUniqueInput[] connect?: PatientWhereUniqueInput | PatientWhereUniqueInput[] update?: PatientUpdateWithWhereUniqueWithoutUserInput | PatientUpdateWithWhereUniqueWithoutUserInput[] updateMany?: PatientUpdateManyWithWhereWithoutUserInput | PatientUpdateManyWithWhereWithoutUserInput[] deleteMany?: PatientScalarWhereInput | PatientScalarWhereInput[] } export type AppointmentUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | AppointmentCreateWithoutUserInput[] | AppointmentUncheckedCreateWithoutUserInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutUserInput | AppointmentCreateOrConnectWithoutUserInput[] upsert?: AppointmentUpsertWithWhereUniqueWithoutUserInput | AppointmentUpsertWithWhereUniqueWithoutUserInput[] createMany?: AppointmentCreateManyUserInputEnvelope set?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] disconnect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] delete?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] update?: AppointmentUpdateWithWhereUniqueWithoutUserInput | AppointmentUpdateWithWhereUniqueWithoutUserInput[] updateMany?: AppointmentUpdateManyWithWhereWithoutUserInput | AppointmentUpdateManyWithWhereWithoutUserInput[] deleteMany?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] } export type StaffUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | StaffCreateWithoutUserInput[] | StaffUncheckedCreateWithoutUserInput[] connectOrCreate?: StaffCreateOrConnectWithoutUserInput | StaffCreateOrConnectWithoutUserInput[] upsert?: StaffUpsertWithWhereUniqueWithoutUserInput | StaffUpsertWithWhereUniqueWithoutUserInput[] createMany?: StaffCreateManyUserInputEnvelope set?: StaffWhereUniqueInput | StaffWhereUniqueInput[] disconnect?: StaffWhereUniqueInput | StaffWhereUniqueInput[] delete?: StaffWhereUniqueInput | StaffWhereUniqueInput[] connect?: StaffWhereUniqueInput | StaffWhereUniqueInput[] update?: StaffUpdateWithWhereUniqueWithoutUserInput | StaffUpdateWithWhereUniqueWithoutUserInput[] updateMany?: StaffUpdateManyWithWhereWithoutUserInput | StaffUpdateManyWithWhereWithoutUserInput[] deleteMany?: StaffScalarWhereInput | StaffScalarWhereInput[] } export type NpiProviderUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | NpiProviderCreateWithoutUserInput[] | NpiProviderUncheckedCreateWithoutUserInput[] connectOrCreate?: NpiProviderCreateOrConnectWithoutUserInput | NpiProviderCreateOrConnectWithoutUserInput[] upsert?: NpiProviderUpsertWithWhereUniqueWithoutUserInput | NpiProviderUpsertWithWhereUniqueWithoutUserInput[] createMany?: NpiProviderCreateManyUserInputEnvelope set?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] disconnect?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] delete?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] connect?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] update?: NpiProviderUpdateWithWhereUniqueWithoutUserInput | NpiProviderUpdateWithWhereUniqueWithoutUserInput[] updateMany?: NpiProviderUpdateManyWithWhereWithoutUserInput | NpiProviderUpdateManyWithWhereWithoutUserInput[] deleteMany?: NpiProviderScalarWhereInput | NpiProviderScalarWhereInput[] } export type ClaimUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | ClaimCreateWithoutUserInput[] | ClaimUncheckedCreateWithoutUserInput[] connectOrCreate?: ClaimCreateOrConnectWithoutUserInput | ClaimCreateOrConnectWithoutUserInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutUserInput | ClaimUpsertWithWhereUniqueWithoutUserInput[] createMany?: ClaimCreateManyUserInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutUserInput | ClaimUpdateWithWhereUniqueWithoutUserInput[] updateMany?: ClaimUpdateManyWithWhereWithoutUserInput | ClaimUpdateManyWithWhereWithoutUserInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | InsuranceCredentialCreateWithoutUserInput[] | InsuranceCredentialUncheckedCreateWithoutUserInput[] connectOrCreate?: InsuranceCredentialCreateOrConnectWithoutUserInput | InsuranceCredentialCreateOrConnectWithoutUserInput[] upsert?: InsuranceCredentialUpsertWithWhereUniqueWithoutUserInput | InsuranceCredentialUpsertWithWhereUniqueWithoutUserInput[] createMany?: InsuranceCredentialCreateManyUserInputEnvelope set?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] disconnect?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] delete?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] connect?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] update?: InsuranceCredentialUpdateWithWhereUniqueWithoutUserInput | InsuranceCredentialUpdateWithWhereUniqueWithoutUserInput[] updateMany?: InsuranceCredentialUpdateManyWithWhereWithoutUserInput | InsuranceCredentialUpdateManyWithWhereWithoutUserInput[] deleteMany?: InsuranceCredentialScalarWhereInput | InsuranceCredentialScalarWhereInput[] } export type PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput = { create?: XOR | PaymentCreateWithoutUpdatedByInput[] | PaymentUncheckedCreateWithoutUpdatedByInput[] connectOrCreate?: PaymentCreateOrConnectWithoutUpdatedByInput | PaymentCreateOrConnectWithoutUpdatedByInput[] upsert?: PaymentUpsertWithWhereUniqueWithoutUpdatedByInput | PaymentUpsertWithWhereUniqueWithoutUpdatedByInput[] createMany?: PaymentCreateManyUpdatedByInputEnvelope set?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] disconnect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] delete?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] update?: PaymentUpdateWithWhereUniqueWithoutUpdatedByInput | PaymentUpdateWithWhereUniqueWithoutUpdatedByInput[] updateMany?: PaymentUpdateManyWithWhereWithoutUpdatedByInput | PaymentUpdateManyWithWhereWithoutUpdatedByInput[] deleteMany?: PaymentScalarWhereInput | PaymentScalarWhereInput[] } export type DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | DatabaseBackupCreateWithoutUserInput[] | DatabaseBackupUncheckedCreateWithoutUserInput[] connectOrCreate?: DatabaseBackupCreateOrConnectWithoutUserInput | DatabaseBackupCreateOrConnectWithoutUserInput[] upsert?: DatabaseBackupUpsertWithWhereUniqueWithoutUserInput | DatabaseBackupUpsertWithWhereUniqueWithoutUserInput[] createMany?: DatabaseBackupCreateManyUserInputEnvelope set?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] disconnect?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] delete?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] connect?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] update?: DatabaseBackupUpdateWithWhereUniqueWithoutUserInput | DatabaseBackupUpdateWithWhereUniqueWithoutUserInput[] updateMany?: DatabaseBackupUpdateManyWithWhereWithoutUserInput | DatabaseBackupUpdateManyWithWhereWithoutUserInput[] deleteMany?: DatabaseBackupScalarWhereInput | DatabaseBackupScalarWhereInput[] } export type BackupDestinationUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | BackupDestinationCreateWithoutUserInput[] | BackupDestinationUncheckedCreateWithoutUserInput[] connectOrCreate?: BackupDestinationCreateOrConnectWithoutUserInput | BackupDestinationCreateOrConnectWithoutUserInput[] upsert?: BackupDestinationUpsertWithWhereUniqueWithoutUserInput | BackupDestinationUpsertWithWhereUniqueWithoutUserInput[] createMany?: BackupDestinationCreateManyUserInputEnvelope set?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] disconnect?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] delete?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] connect?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] update?: BackupDestinationUpdateWithWhereUniqueWithoutUserInput | BackupDestinationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: BackupDestinationUpdateManyWithWhereWithoutUserInput | BackupDestinationUpdateManyWithWhereWithoutUserInput[] deleteMany?: BackupDestinationScalarWhereInput | BackupDestinationScalarWhereInput[] } export type NotificationUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | NotificationCreateWithoutUserInput[] | NotificationUncheckedCreateWithoutUserInput[] connectOrCreate?: NotificationCreateOrConnectWithoutUserInput | NotificationCreateOrConnectWithoutUserInput[] upsert?: NotificationUpsertWithWhereUniqueWithoutUserInput | NotificationUpsertWithWhereUniqueWithoutUserInput[] createMany?: NotificationCreateManyUserInputEnvelope set?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] disconnect?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] delete?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] connect?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] update?: NotificationUpdateWithWhereUniqueWithoutUserInput | NotificationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: NotificationUpdateManyWithWhereWithoutUserInput | NotificationUpdateManyWithWhereWithoutUserInput[] deleteMany?: NotificationScalarWhereInput | NotificationScalarWhereInput[] } export type CloudFolderUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | CloudFolderCreateWithoutUserInput[] | CloudFolderUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutUserInput | CloudFolderCreateOrConnectWithoutUserInput[] upsert?: CloudFolderUpsertWithWhereUniqueWithoutUserInput | CloudFolderUpsertWithWhereUniqueWithoutUserInput[] createMany?: CloudFolderCreateManyUserInputEnvelope set?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] disconnect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] delete?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] update?: CloudFolderUpdateWithWhereUniqueWithoutUserInput | CloudFolderUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CloudFolderUpdateManyWithWhereWithoutUserInput | CloudFolderUpdateManyWithWhereWithoutUserInput[] deleteMany?: CloudFolderScalarWhereInput | CloudFolderScalarWhereInput[] } export type CloudFileUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | CloudFileCreateWithoutUserInput[] | CloudFileUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutUserInput | CloudFileCreateOrConnectWithoutUserInput[] upsert?: CloudFileUpsertWithWhereUniqueWithoutUserInput | CloudFileUpsertWithWhereUniqueWithoutUserInput[] createMany?: CloudFileCreateManyUserInputEnvelope set?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] disconnect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] delete?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] update?: CloudFileUpdateWithWhereUniqueWithoutUserInput | CloudFileUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CloudFileUpdateManyWithWhereWithoutUserInput | CloudFileUpdateManyWithWhereWithoutUserInput[] deleteMany?: CloudFileScalarWhereInput | CloudFileScalarWhereInput[] } export type CommunicationUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | CommunicationCreateWithoutUserInput[] | CommunicationUncheckedCreateWithoutUserInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutUserInput | CommunicationCreateOrConnectWithoutUserInput[] upsert?: CommunicationUpsertWithWhereUniqueWithoutUserInput | CommunicationUpsertWithWhereUniqueWithoutUserInput[] createMany?: CommunicationCreateManyUserInputEnvelope set?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] disconnect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] delete?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] update?: CommunicationUpdateWithWhereUniqueWithoutUserInput | CommunicationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CommunicationUpdateManyWithWhereWithoutUserInput | CommunicationUpdateManyWithWhereWithoutUserInput[] deleteMany?: CommunicationScalarWhereInput | CommunicationScalarWhereInput[] } export type UserCreateNestedOneWithoutPatientsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutPatientsInput connect?: UserWhereUniqueInput } export type AppointmentCreateNestedManyWithoutPatientInput = { create?: XOR | AppointmentCreateWithoutPatientInput[] | AppointmentUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutPatientInput | AppointmentCreateOrConnectWithoutPatientInput[] createMany?: AppointmentCreateManyPatientInputEnvelope connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] } export type AppointmentProcedureCreateNestedManyWithoutPatientInput = { create?: XOR | AppointmentProcedureCreateWithoutPatientInput[] | AppointmentProcedureUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutPatientInput | AppointmentProcedureCreateOrConnectWithoutPatientInput[] createMany?: AppointmentProcedureCreateManyPatientInputEnvelope connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] } export type ClaimCreateNestedManyWithoutPatientInput = { create?: XOR | ClaimCreateWithoutPatientInput[] | ClaimUncheckedCreateWithoutPatientInput[] connectOrCreate?: ClaimCreateOrConnectWithoutPatientInput | ClaimCreateOrConnectWithoutPatientInput[] createMany?: ClaimCreateManyPatientInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type PdfGroupCreateNestedManyWithoutPatientInput = { create?: XOR | PdfGroupCreateWithoutPatientInput[] | PdfGroupUncheckedCreateWithoutPatientInput[] connectOrCreate?: PdfGroupCreateOrConnectWithoutPatientInput | PdfGroupCreateOrConnectWithoutPatientInput[] createMany?: PdfGroupCreateManyPatientInputEnvelope connect?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] } export type PaymentCreateNestedManyWithoutPatientInput = { create?: XOR | PaymentCreateWithoutPatientInput[] | PaymentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PaymentCreateOrConnectWithoutPatientInput | PaymentCreateOrConnectWithoutPatientInput[] createMany?: PaymentCreateManyPatientInputEnvelope connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] } export type CommunicationCreateNestedManyWithoutPatientInput = { create?: XOR | CommunicationCreateWithoutPatientInput[] | CommunicationUncheckedCreateWithoutPatientInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutPatientInput | CommunicationCreateOrConnectWithoutPatientInput[] createMany?: CommunicationCreateManyPatientInputEnvelope connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] } export type PatientDocumentCreateNestedManyWithoutPatientInput = { create?: XOR | PatientDocumentCreateWithoutPatientInput[] | PatientDocumentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PatientDocumentCreateOrConnectWithoutPatientInput | PatientDocumentCreateOrConnectWithoutPatientInput[] createMany?: PatientDocumentCreateManyPatientInputEnvelope connect?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] } export type AppointmentUncheckedCreateNestedManyWithoutPatientInput = { create?: XOR | AppointmentCreateWithoutPatientInput[] | AppointmentUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutPatientInput | AppointmentCreateOrConnectWithoutPatientInput[] createMany?: AppointmentCreateManyPatientInputEnvelope connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] } export type AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput = { create?: XOR | AppointmentProcedureCreateWithoutPatientInput[] | AppointmentProcedureUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutPatientInput | AppointmentProcedureCreateOrConnectWithoutPatientInput[] createMany?: AppointmentProcedureCreateManyPatientInputEnvelope connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] } export type ClaimUncheckedCreateNestedManyWithoutPatientInput = { create?: XOR | ClaimCreateWithoutPatientInput[] | ClaimUncheckedCreateWithoutPatientInput[] connectOrCreate?: ClaimCreateOrConnectWithoutPatientInput | ClaimCreateOrConnectWithoutPatientInput[] createMany?: ClaimCreateManyPatientInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type PdfGroupUncheckedCreateNestedManyWithoutPatientInput = { create?: XOR | PdfGroupCreateWithoutPatientInput[] | PdfGroupUncheckedCreateWithoutPatientInput[] connectOrCreate?: PdfGroupCreateOrConnectWithoutPatientInput | PdfGroupCreateOrConnectWithoutPatientInput[] createMany?: PdfGroupCreateManyPatientInputEnvelope connect?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] } export type PaymentUncheckedCreateNestedManyWithoutPatientInput = { create?: XOR | PaymentCreateWithoutPatientInput[] | PaymentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PaymentCreateOrConnectWithoutPatientInput | PaymentCreateOrConnectWithoutPatientInput[] createMany?: PaymentCreateManyPatientInputEnvelope connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] } export type CommunicationUncheckedCreateNestedManyWithoutPatientInput = { create?: XOR | CommunicationCreateWithoutPatientInput[] | CommunicationUncheckedCreateWithoutPatientInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutPatientInput | CommunicationCreateOrConnectWithoutPatientInput[] createMany?: CommunicationCreateManyPatientInputEnvelope connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] } export type PatientDocumentUncheckedCreateNestedManyWithoutPatientInput = { create?: XOR | PatientDocumentCreateWithoutPatientInput[] | PatientDocumentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PatientDocumentCreateOrConnectWithoutPatientInput | PatientDocumentCreateOrConnectWithoutPatientInput[] createMany?: PatientDocumentCreateManyPatientInputEnvelope connect?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type EnumPatientStatusFieldUpdateOperationsInput = { set?: $Enums.PatientStatus } export type UserUpdateOneRequiredWithoutPatientsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutPatientsInput upsert?: UserUpsertWithoutPatientsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutPatientsInput> } export type AppointmentUpdateManyWithoutPatientNestedInput = { create?: XOR | AppointmentCreateWithoutPatientInput[] | AppointmentUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutPatientInput | AppointmentCreateOrConnectWithoutPatientInput[] upsert?: AppointmentUpsertWithWhereUniqueWithoutPatientInput | AppointmentUpsertWithWhereUniqueWithoutPatientInput[] createMany?: AppointmentCreateManyPatientInputEnvelope set?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] disconnect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] delete?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] update?: AppointmentUpdateWithWhereUniqueWithoutPatientInput | AppointmentUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: AppointmentUpdateManyWithWhereWithoutPatientInput | AppointmentUpdateManyWithWhereWithoutPatientInput[] deleteMany?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] } export type AppointmentProcedureUpdateManyWithoutPatientNestedInput = { create?: XOR | AppointmentProcedureCreateWithoutPatientInput[] | AppointmentProcedureUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutPatientInput | AppointmentProcedureCreateOrConnectWithoutPatientInput[] upsert?: AppointmentProcedureUpsertWithWhereUniqueWithoutPatientInput | AppointmentProcedureUpsertWithWhereUniqueWithoutPatientInput[] createMany?: AppointmentProcedureCreateManyPatientInputEnvelope set?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] disconnect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] delete?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] update?: AppointmentProcedureUpdateWithWhereUniqueWithoutPatientInput | AppointmentProcedureUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: AppointmentProcedureUpdateManyWithWhereWithoutPatientInput | AppointmentProcedureUpdateManyWithWhereWithoutPatientInput[] deleteMany?: AppointmentProcedureScalarWhereInput | AppointmentProcedureScalarWhereInput[] } export type ClaimUpdateManyWithoutPatientNestedInput = { create?: XOR | ClaimCreateWithoutPatientInput[] | ClaimUncheckedCreateWithoutPatientInput[] connectOrCreate?: ClaimCreateOrConnectWithoutPatientInput | ClaimCreateOrConnectWithoutPatientInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutPatientInput | ClaimUpsertWithWhereUniqueWithoutPatientInput[] createMany?: ClaimCreateManyPatientInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutPatientInput | ClaimUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: ClaimUpdateManyWithWhereWithoutPatientInput | ClaimUpdateManyWithWhereWithoutPatientInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type PdfGroupUpdateManyWithoutPatientNestedInput = { create?: XOR | PdfGroupCreateWithoutPatientInput[] | PdfGroupUncheckedCreateWithoutPatientInput[] connectOrCreate?: PdfGroupCreateOrConnectWithoutPatientInput | PdfGroupCreateOrConnectWithoutPatientInput[] upsert?: PdfGroupUpsertWithWhereUniqueWithoutPatientInput | PdfGroupUpsertWithWhereUniqueWithoutPatientInput[] createMany?: PdfGroupCreateManyPatientInputEnvelope set?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] disconnect?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] delete?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] connect?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] update?: PdfGroupUpdateWithWhereUniqueWithoutPatientInput | PdfGroupUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: PdfGroupUpdateManyWithWhereWithoutPatientInput | PdfGroupUpdateManyWithWhereWithoutPatientInput[] deleteMany?: PdfGroupScalarWhereInput | PdfGroupScalarWhereInput[] } export type PaymentUpdateManyWithoutPatientNestedInput = { create?: XOR | PaymentCreateWithoutPatientInput[] | PaymentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PaymentCreateOrConnectWithoutPatientInput | PaymentCreateOrConnectWithoutPatientInput[] upsert?: PaymentUpsertWithWhereUniqueWithoutPatientInput | PaymentUpsertWithWhereUniqueWithoutPatientInput[] createMany?: PaymentCreateManyPatientInputEnvelope set?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] disconnect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] delete?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] update?: PaymentUpdateWithWhereUniqueWithoutPatientInput | PaymentUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: PaymentUpdateManyWithWhereWithoutPatientInput | PaymentUpdateManyWithWhereWithoutPatientInput[] deleteMany?: PaymentScalarWhereInput | PaymentScalarWhereInput[] } export type CommunicationUpdateManyWithoutPatientNestedInput = { create?: XOR | CommunicationCreateWithoutPatientInput[] | CommunicationUncheckedCreateWithoutPatientInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutPatientInput | CommunicationCreateOrConnectWithoutPatientInput[] upsert?: CommunicationUpsertWithWhereUniqueWithoutPatientInput | CommunicationUpsertWithWhereUniqueWithoutPatientInput[] createMany?: CommunicationCreateManyPatientInputEnvelope set?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] disconnect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] delete?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] update?: CommunicationUpdateWithWhereUniqueWithoutPatientInput | CommunicationUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: CommunicationUpdateManyWithWhereWithoutPatientInput | CommunicationUpdateManyWithWhereWithoutPatientInput[] deleteMany?: CommunicationScalarWhereInput | CommunicationScalarWhereInput[] } export type PatientDocumentUpdateManyWithoutPatientNestedInput = { create?: XOR | PatientDocumentCreateWithoutPatientInput[] | PatientDocumentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PatientDocumentCreateOrConnectWithoutPatientInput | PatientDocumentCreateOrConnectWithoutPatientInput[] upsert?: PatientDocumentUpsertWithWhereUniqueWithoutPatientInput | PatientDocumentUpsertWithWhereUniqueWithoutPatientInput[] createMany?: PatientDocumentCreateManyPatientInputEnvelope set?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] disconnect?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] delete?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] connect?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] update?: PatientDocumentUpdateWithWhereUniqueWithoutPatientInput | PatientDocumentUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: PatientDocumentUpdateManyWithWhereWithoutPatientInput | PatientDocumentUpdateManyWithWhereWithoutPatientInput[] deleteMany?: PatientDocumentScalarWhereInput | PatientDocumentScalarWhereInput[] } export type AppointmentUncheckedUpdateManyWithoutPatientNestedInput = { create?: XOR | AppointmentCreateWithoutPatientInput[] | AppointmentUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutPatientInput | AppointmentCreateOrConnectWithoutPatientInput[] upsert?: AppointmentUpsertWithWhereUniqueWithoutPatientInput | AppointmentUpsertWithWhereUniqueWithoutPatientInput[] createMany?: AppointmentCreateManyPatientInputEnvelope set?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] disconnect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] delete?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] update?: AppointmentUpdateWithWhereUniqueWithoutPatientInput | AppointmentUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: AppointmentUpdateManyWithWhereWithoutPatientInput | AppointmentUpdateManyWithWhereWithoutPatientInput[] deleteMany?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] } export type AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput = { create?: XOR | AppointmentProcedureCreateWithoutPatientInput[] | AppointmentProcedureUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutPatientInput | AppointmentProcedureCreateOrConnectWithoutPatientInput[] upsert?: AppointmentProcedureUpsertWithWhereUniqueWithoutPatientInput | AppointmentProcedureUpsertWithWhereUniqueWithoutPatientInput[] createMany?: AppointmentProcedureCreateManyPatientInputEnvelope set?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] disconnect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] delete?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] update?: AppointmentProcedureUpdateWithWhereUniqueWithoutPatientInput | AppointmentProcedureUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: AppointmentProcedureUpdateManyWithWhereWithoutPatientInput | AppointmentProcedureUpdateManyWithWhereWithoutPatientInput[] deleteMany?: AppointmentProcedureScalarWhereInput | AppointmentProcedureScalarWhereInput[] } export type ClaimUncheckedUpdateManyWithoutPatientNestedInput = { create?: XOR | ClaimCreateWithoutPatientInput[] | ClaimUncheckedCreateWithoutPatientInput[] connectOrCreate?: ClaimCreateOrConnectWithoutPatientInput | ClaimCreateOrConnectWithoutPatientInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutPatientInput | ClaimUpsertWithWhereUniqueWithoutPatientInput[] createMany?: ClaimCreateManyPatientInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutPatientInput | ClaimUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: ClaimUpdateManyWithWhereWithoutPatientInput | ClaimUpdateManyWithWhereWithoutPatientInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type PdfGroupUncheckedUpdateManyWithoutPatientNestedInput = { create?: XOR | PdfGroupCreateWithoutPatientInput[] | PdfGroupUncheckedCreateWithoutPatientInput[] connectOrCreate?: PdfGroupCreateOrConnectWithoutPatientInput | PdfGroupCreateOrConnectWithoutPatientInput[] upsert?: PdfGroupUpsertWithWhereUniqueWithoutPatientInput | PdfGroupUpsertWithWhereUniqueWithoutPatientInput[] createMany?: PdfGroupCreateManyPatientInputEnvelope set?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] disconnect?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] delete?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] connect?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] update?: PdfGroupUpdateWithWhereUniqueWithoutPatientInput | PdfGroupUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: PdfGroupUpdateManyWithWhereWithoutPatientInput | PdfGroupUpdateManyWithWhereWithoutPatientInput[] deleteMany?: PdfGroupScalarWhereInput | PdfGroupScalarWhereInput[] } export type PaymentUncheckedUpdateManyWithoutPatientNestedInput = { create?: XOR | PaymentCreateWithoutPatientInput[] | PaymentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PaymentCreateOrConnectWithoutPatientInput | PaymentCreateOrConnectWithoutPatientInput[] upsert?: PaymentUpsertWithWhereUniqueWithoutPatientInput | PaymentUpsertWithWhereUniqueWithoutPatientInput[] createMany?: PaymentCreateManyPatientInputEnvelope set?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] disconnect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] delete?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] update?: PaymentUpdateWithWhereUniqueWithoutPatientInput | PaymentUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: PaymentUpdateManyWithWhereWithoutPatientInput | PaymentUpdateManyWithWhereWithoutPatientInput[] deleteMany?: PaymentScalarWhereInput | PaymentScalarWhereInput[] } export type CommunicationUncheckedUpdateManyWithoutPatientNestedInput = { create?: XOR | CommunicationCreateWithoutPatientInput[] | CommunicationUncheckedCreateWithoutPatientInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutPatientInput | CommunicationCreateOrConnectWithoutPatientInput[] upsert?: CommunicationUpsertWithWhereUniqueWithoutPatientInput | CommunicationUpsertWithWhereUniqueWithoutPatientInput[] createMany?: CommunicationCreateManyPatientInputEnvelope set?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] disconnect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] delete?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] update?: CommunicationUpdateWithWhereUniqueWithoutPatientInput | CommunicationUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: CommunicationUpdateManyWithWhereWithoutPatientInput | CommunicationUpdateManyWithWhereWithoutPatientInput[] deleteMany?: CommunicationScalarWhereInput | CommunicationScalarWhereInput[] } export type PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput = { create?: XOR | PatientDocumentCreateWithoutPatientInput[] | PatientDocumentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PatientDocumentCreateOrConnectWithoutPatientInput | PatientDocumentCreateOrConnectWithoutPatientInput[] upsert?: PatientDocumentUpsertWithWhereUniqueWithoutPatientInput | PatientDocumentUpsertWithWhereUniqueWithoutPatientInput[] createMany?: PatientDocumentCreateManyPatientInputEnvelope set?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] disconnect?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] delete?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] connect?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] update?: PatientDocumentUpdateWithWhereUniqueWithoutPatientInput | PatientDocumentUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: PatientDocumentUpdateManyWithWhereWithoutPatientInput | PatientDocumentUpdateManyWithWhereWithoutPatientInput[] deleteMany?: PatientDocumentScalarWhereInput | PatientDocumentScalarWhereInput[] } export type PatientCreateNestedOneWithoutAppointmentsInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutAppointmentsInput connect?: PatientWhereUniqueInput } export type UserCreateNestedOneWithoutAppointmentsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAppointmentsInput connect?: UserWhereUniqueInput } export type StaffCreateNestedOneWithoutAppointmentsInput = { create?: XOR connectOrCreate?: StaffCreateOrConnectWithoutAppointmentsInput connect?: StaffWhereUniqueInput } export type AppointmentProcedureCreateNestedManyWithoutAppointmentInput = { create?: XOR | AppointmentProcedureCreateWithoutAppointmentInput[] | AppointmentProcedureUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutAppointmentInput | AppointmentProcedureCreateOrConnectWithoutAppointmentInput[] createMany?: AppointmentProcedureCreateManyAppointmentInputEnvelope connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] } export type ClaimCreateNestedManyWithoutAppointmentInput = { create?: XOR | ClaimCreateWithoutAppointmentInput[] | ClaimUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: ClaimCreateOrConnectWithoutAppointmentInput | ClaimCreateOrConnectWithoutAppointmentInput[] createMany?: ClaimCreateManyAppointmentInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type AppointmentProcedureUncheckedCreateNestedManyWithoutAppointmentInput = { create?: XOR | AppointmentProcedureCreateWithoutAppointmentInput[] | AppointmentProcedureUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutAppointmentInput | AppointmentProcedureCreateOrConnectWithoutAppointmentInput[] createMany?: AppointmentProcedureCreateManyAppointmentInputEnvelope connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] } export type ClaimUncheckedCreateNestedManyWithoutAppointmentInput = { create?: XOR | ClaimCreateWithoutAppointmentInput[] | ClaimUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: ClaimCreateOrConnectWithoutAppointmentInput | ClaimCreateOrConnectWithoutAppointmentInput[] createMany?: ClaimCreateManyAppointmentInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type PatientUpdateOneRequiredWithoutAppointmentsNestedInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutAppointmentsInput upsert?: PatientUpsertWithoutAppointmentsInput connect?: PatientWhereUniqueInput update?: XOR, PatientUncheckedUpdateWithoutAppointmentsInput> } export type UserUpdateOneRequiredWithoutAppointmentsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAppointmentsInput upsert?: UserUpsertWithoutAppointmentsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutAppointmentsInput> } export type StaffUpdateOneWithoutAppointmentsNestedInput = { create?: XOR connectOrCreate?: StaffCreateOrConnectWithoutAppointmentsInput upsert?: StaffUpsertWithoutAppointmentsInput disconnect?: StaffWhereInput | boolean delete?: StaffWhereInput | boolean connect?: StaffWhereUniqueInput update?: XOR, StaffUncheckedUpdateWithoutAppointmentsInput> } export type AppointmentProcedureUpdateManyWithoutAppointmentNestedInput = { create?: XOR | AppointmentProcedureCreateWithoutAppointmentInput[] | AppointmentProcedureUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutAppointmentInput | AppointmentProcedureCreateOrConnectWithoutAppointmentInput[] upsert?: AppointmentProcedureUpsertWithWhereUniqueWithoutAppointmentInput | AppointmentProcedureUpsertWithWhereUniqueWithoutAppointmentInput[] createMany?: AppointmentProcedureCreateManyAppointmentInputEnvelope set?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] disconnect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] delete?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] update?: AppointmentProcedureUpdateWithWhereUniqueWithoutAppointmentInput | AppointmentProcedureUpdateWithWhereUniqueWithoutAppointmentInput[] updateMany?: AppointmentProcedureUpdateManyWithWhereWithoutAppointmentInput | AppointmentProcedureUpdateManyWithWhereWithoutAppointmentInput[] deleteMany?: AppointmentProcedureScalarWhereInput | AppointmentProcedureScalarWhereInput[] } export type ClaimUpdateManyWithoutAppointmentNestedInput = { create?: XOR | ClaimCreateWithoutAppointmentInput[] | ClaimUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: ClaimCreateOrConnectWithoutAppointmentInput | ClaimCreateOrConnectWithoutAppointmentInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutAppointmentInput | ClaimUpsertWithWhereUniqueWithoutAppointmentInput[] createMany?: ClaimCreateManyAppointmentInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutAppointmentInput | ClaimUpdateWithWhereUniqueWithoutAppointmentInput[] updateMany?: ClaimUpdateManyWithWhereWithoutAppointmentInput | ClaimUpdateManyWithWhereWithoutAppointmentInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput = { create?: XOR | AppointmentProcedureCreateWithoutAppointmentInput[] | AppointmentProcedureUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutAppointmentInput | AppointmentProcedureCreateOrConnectWithoutAppointmentInput[] upsert?: AppointmentProcedureUpsertWithWhereUniqueWithoutAppointmentInput | AppointmentProcedureUpsertWithWhereUniqueWithoutAppointmentInput[] createMany?: AppointmentProcedureCreateManyAppointmentInputEnvelope set?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] disconnect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] delete?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] update?: AppointmentProcedureUpdateWithWhereUniqueWithoutAppointmentInput | AppointmentProcedureUpdateWithWhereUniqueWithoutAppointmentInput[] updateMany?: AppointmentProcedureUpdateManyWithWhereWithoutAppointmentInput | AppointmentProcedureUpdateManyWithWhereWithoutAppointmentInput[] deleteMany?: AppointmentProcedureScalarWhereInput | AppointmentProcedureScalarWhereInput[] } export type ClaimUncheckedUpdateManyWithoutAppointmentNestedInput = { create?: XOR | ClaimCreateWithoutAppointmentInput[] | ClaimUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: ClaimCreateOrConnectWithoutAppointmentInput | ClaimCreateOrConnectWithoutAppointmentInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutAppointmentInput | ClaimUpsertWithWhereUniqueWithoutAppointmentInput[] createMany?: ClaimCreateManyAppointmentInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutAppointmentInput | ClaimUpdateWithWhereUniqueWithoutAppointmentInput[] updateMany?: ClaimUpdateManyWithWhereWithoutAppointmentInput | ClaimUpdateManyWithWhereWithoutAppointmentInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type UserCreateNestedOneWithoutStaffInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutStaffInput connect?: UserWhereUniqueInput } export type AppointmentCreateNestedManyWithoutStaffInput = { create?: XOR | AppointmentCreateWithoutStaffInput[] | AppointmentUncheckedCreateWithoutStaffInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutStaffInput | AppointmentCreateOrConnectWithoutStaffInput[] createMany?: AppointmentCreateManyStaffInputEnvelope connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] } export type ClaimCreateNestedManyWithoutStaffInput = { create?: XOR | ClaimCreateWithoutStaffInput[] | ClaimUncheckedCreateWithoutStaffInput[] connectOrCreate?: ClaimCreateOrConnectWithoutStaffInput | ClaimCreateOrConnectWithoutStaffInput[] createMany?: ClaimCreateManyStaffInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type AppointmentUncheckedCreateNestedManyWithoutStaffInput = { create?: XOR | AppointmentCreateWithoutStaffInput[] | AppointmentUncheckedCreateWithoutStaffInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutStaffInput | AppointmentCreateOrConnectWithoutStaffInput[] createMany?: AppointmentCreateManyStaffInputEnvelope connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] } export type ClaimUncheckedCreateNestedManyWithoutStaffInput = { create?: XOR | ClaimCreateWithoutStaffInput[] | ClaimUncheckedCreateWithoutStaffInput[] connectOrCreate?: ClaimCreateOrConnectWithoutStaffInput | ClaimCreateOrConnectWithoutStaffInput[] createMany?: ClaimCreateManyStaffInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type UserUpdateOneWithoutStaffNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutStaffInput upsert?: UserUpsertWithoutStaffInput disconnect?: UserWhereInput | boolean delete?: UserWhereInput | boolean connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutStaffInput> } export type AppointmentUpdateManyWithoutStaffNestedInput = { create?: XOR | AppointmentCreateWithoutStaffInput[] | AppointmentUncheckedCreateWithoutStaffInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutStaffInput | AppointmentCreateOrConnectWithoutStaffInput[] upsert?: AppointmentUpsertWithWhereUniqueWithoutStaffInput | AppointmentUpsertWithWhereUniqueWithoutStaffInput[] createMany?: AppointmentCreateManyStaffInputEnvelope set?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] disconnect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] delete?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] update?: AppointmentUpdateWithWhereUniqueWithoutStaffInput | AppointmentUpdateWithWhereUniqueWithoutStaffInput[] updateMany?: AppointmentUpdateManyWithWhereWithoutStaffInput | AppointmentUpdateManyWithWhereWithoutStaffInput[] deleteMany?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] } export type ClaimUpdateManyWithoutStaffNestedInput = { create?: XOR | ClaimCreateWithoutStaffInput[] | ClaimUncheckedCreateWithoutStaffInput[] connectOrCreate?: ClaimCreateOrConnectWithoutStaffInput | ClaimCreateOrConnectWithoutStaffInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutStaffInput | ClaimUpsertWithWhereUniqueWithoutStaffInput[] createMany?: ClaimCreateManyStaffInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutStaffInput | ClaimUpdateWithWhereUniqueWithoutStaffInput[] updateMany?: ClaimUpdateManyWithWhereWithoutStaffInput | ClaimUpdateManyWithWhereWithoutStaffInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type AppointmentUncheckedUpdateManyWithoutStaffNestedInput = { create?: XOR | AppointmentCreateWithoutStaffInput[] | AppointmentUncheckedCreateWithoutStaffInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutStaffInput | AppointmentCreateOrConnectWithoutStaffInput[] upsert?: AppointmentUpsertWithWhereUniqueWithoutStaffInput | AppointmentUpsertWithWhereUniqueWithoutStaffInput[] createMany?: AppointmentCreateManyStaffInputEnvelope set?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] disconnect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] delete?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] update?: AppointmentUpdateWithWhereUniqueWithoutStaffInput | AppointmentUpdateWithWhereUniqueWithoutStaffInput[] updateMany?: AppointmentUpdateManyWithWhereWithoutStaffInput | AppointmentUpdateManyWithWhereWithoutStaffInput[] deleteMany?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] } export type ClaimUncheckedUpdateManyWithoutStaffNestedInput = { create?: XOR | ClaimCreateWithoutStaffInput[] | ClaimUncheckedCreateWithoutStaffInput[] connectOrCreate?: ClaimCreateOrConnectWithoutStaffInput | ClaimCreateOrConnectWithoutStaffInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutStaffInput | ClaimUpsertWithWhereUniqueWithoutStaffInput[] createMany?: ClaimCreateManyStaffInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutStaffInput | ClaimUpdateWithWhereUniqueWithoutStaffInput[] updateMany?: ClaimUpdateManyWithWhereWithoutStaffInput | ClaimUpdateManyWithWhereWithoutStaffInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type UserCreateNestedOneWithoutNpiProvidersInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutNpiProvidersInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutNpiProvidersNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutNpiProvidersInput upsert?: UserUpsertWithoutNpiProvidersInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutNpiProvidersInput> } export type AppointmentCreateNestedOneWithoutProceduresInput = { create?: XOR connectOrCreate?: AppointmentCreateOrConnectWithoutProceduresInput connect?: AppointmentWhereUniqueInput } export type PatientCreateNestedOneWithoutProceduresInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutProceduresInput connect?: PatientWhereUniqueInput } 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 EnumProcedureSourceFieldUpdateOperationsInput = { set?: $Enums.ProcedureSource } export type AppointmentUpdateOneRequiredWithoutProceduresNestedInput = { create?: XOR connectOrCreate?: AppointmentCreateOrConnectWithoutProceduresInput upsert?: AppointmentUpsertWithoutProceduresInput connect?: AppointmentWhereUniqueInput update?: XOR, AppointmentUncheckedUpdateWithoutProceduresInput> } export type PatientUpdateOneRequiredWithoutProceduresNestedInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutProceduresInput upsert?: PatientUpsertWithoutProceduresInput connect?: PatientWhereUniqueInput update?: XOR, PatientUncheckedUpdateWithoutProceduresInput> } export type PatientCreateNestedOneWithoutClaimsInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutClaimsInput connect?: PatientWhereUniqueInput } export type AppointmentCreateNestedOneWithoutClaimsInput = { create?: XOR connectOrCreate?: AppointmentCreateOrConnectWithoutClaimsInput connect?: AppointmentWhereUniqueInput } export type UserCreateNestedOneWithoutClaimsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutClaimsInput connect?: UserWhereUniqueInput } export type StaffCreateNestedOneWithoutClaimsInput = { create?: XOR connectOrCreate?: StaffCreateOrConnectWithoutClaimsInput connect?: StaffWhereUniqueInput } export type ServiceLineCreateNestedManyWithoutClaimInput = { create?: XOR | ServiceLineCreateWithoutClaimInput[] | ServiceLineUncheckedCreateWithoutClaimInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutClaimInput | ServiceLineCreateOrConnectWithoutClaimInput[] createMany?: ServiceLineCreateManyClaimInputEnvelope connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] } export type ClaimFileCreateNestedManyWithoutClaimInput = { create?: XOR | ClaimFileCreateWithoutClaimInput[] | ClaimFileUncheckedCreateWithoutClaimInput[] connectOrCreate?: ClaimFileCreateOrConnectWithoutClaimInput | ClaimFileCreateOrConnectWithoutClaimInput[] createMany?: ClaimFileCreateManyClaimInputEnvelope connect?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] } export type PaymentCreateNestedOneWithoutClaimInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutClaimInput connect?: PaymentWhereUniqueInput } export type ServiceLineUncheckedCreateNestedManyWithoutClaimInput = { create?: XOR | ServiceLineCreateWithoutClaimInput[] | ServiceLineUncheckedCreateWithoutClaimInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutClaimInput | ServiceLineCreateOrConnectWithoutClaimInput[] createMany?: ServiceLineCreateManyClaimInputEnvelope connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] } export type ClaimFileUncheckedCreateNestedManyWithoutClaimInput = { create?: XOR | ClaimFileCreateWithoutClaimInput[] | ClaimFileUncheckedCreateWithoutClaimInput[] connectOrCreate?: ClaimFileCreateOrConnectWithoutClaimInput | ClaimFileCreateOrConnectWithoutClaimInput[] createMany?: ClaimFileCreateManyClaimInputEnvelope connect?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] } export type PaymentUncheckedCreateNestedOneWithoutClaimInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutClaimInput connect?: PaymentWhereUniqueInput } export type EnumMissingTeethStatusFieldUpdateOperationsInput = { set?: $Enums.MissingTeethStatus } export type EnumClaimStatusFieldUpdateOperationsInput = { set?: $Enums.ClaimStatus } export type PatientUpdateOneRequiredWithoutClaimsNestedInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutClaimsInput upsert?: PatientUpsertWithoutClaimsInput connect?: PatientWhereUniqueInput update?: XOR, PatientUncheckedUpdateWithoutClaimsInput> } export type AppointmentUpdateOneRequiredWithoutClaimsNestedInput = { create?: XOR connectOrCreate?: AppointmentCreateOrConnectWithoutClaimsInput upsert?: AppointmentUpsertWithoutClaimsInput connect?: AppointmentWhereUniqueInput update?: XOR, AppointmentUncheckedUpdateWithoutClaimsInput> } export type UserUpdateOneWithoutClaimsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutClaimsInput upsert?: UserUpsertWithoutClaimsInput disconnect?: UserWhereInput | boolean delete?: UserWhereInput | boolean connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutClaimsInput> } export type StaffUpdateOneWithoutClaimsNestedInput = { create?: XOR connectOrCreate?: StaffCreateOrConnectWithoutClaimsInput upsert?: StaffUpsertWithoutClaimsInput disconnect?: StaffWhereInput | boolean delete?: StaffWhereInput | boolean connect?: StaffWhereUniqueInput update?: XOR, StaffUncheckedUpdateWithoutClaimsInput> } export type ServiceLineUpdateManyWithoutClaimNestedInput = { create?: XOR | ServiceLineCreateWithoutClaimInput[] | ServiceLineUncheckedCreateWithoutClaimInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutClaimInput | ServiceLineCreateOrConnectWithoutClaimInput[] upsert?: ServiceLineUpsertWithWhereUniqueWithoutClaimInput | ServiceLineUpsertWithWhereUniqueWithoutClaimInput[] createMany?: ServiceLineCreateManyClaimInputEnvelope set?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] disconnect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] delete?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] update?: ServiceLineUpdateWithWhereUniqueWithoutClaimInput | ServiceLineUpdateWithWhereUniqueWithoutClaimInput[] updateMany?: ServiceLineUpdateManyWithWhereWithoutClaimInput | ServiceLineUpdateManyWithWhereWithoutClaimInput[] deleteMany?: ServiceLineScalarWhereInput | ServiceLineScalarWhereInput[] } export type ClaimFileUpdateManyWithoutClaimNestedInput = { create?: XOR | ClaimFileCreateWithoutClaimInput[] | ClaimFileUncheckedCreateWithoutClaimInput[] connectOrCreate?: ClaimFileCreateOrConnectWithoutClaimInput | ClaimFileCreateOrConnectWithoutClaimInput[] upsert?: ClaimFileUpsertWithWhereUniqueWithoutClaimInput | ClaimFileUpsertWithWhereUniqueWithoutClaimInput[] createMany?: ClaimFileCreateManyClaimInputEnvelope set?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] disconnect?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] delete?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] connect?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] update?: ClaimFileUpdateWithWhereUniqueWithoutClaimInput | ClaimFileUpdateWithWhereUniqueWithoutClaimInput[] updateMany?: ClaimFileUpdateManyWithWhereWithoutClaimInput | ClaimFileUpdateManyWithWhereWithoutClaimInput[] deleteMany?: ClaimFileScalarWhereInput | ClaimFileScalarWhereInput[] } export type PaymentUpdateOneWithoutClaimNestedInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutClaimInput upsert?: PaymentUpsertWithoutClaimInput disconnect?: PaymentWhereInput | boolean delete?: PaymentWhereInput | boolean connect?: PaymentWhereUniqueInput update?: XOR, PaymentUncheckedUpdateWithoutClaimInput> } export type ServiceLineUncheckedUpdateManyWithoutClaimNestedInput = { create?: XOR | ServiceLineCreateWithoutClaimInput[] | ServiceLineUncheckedCreateWithoutClaimInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutClaimInput | ServiceLineCreateOrConnectWithoutClaimInput[] upsert?: ServiceLineUpsertWithWhereUniqueWithoutClaimInput | ServiceLineUpsertWithWhereUniqueWithoutClaimInput[] createMany?: ServiceLineCreateManyClaimInputEnvelope set?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] disconnect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] delete?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] update?: ServiceLineUpdateWithWhereUniqueWithoutClaimInput | ServiceLineUpdateWithWhereUniqueWithoutClaimInput[] updateMany?: ServiceLineUpdateManyWithWhereWithoutClaimInput | ServiceLineUpdateManyWithWhereWithoutClaimInput[] deleteMany?: ServiceLineScalarWhereInput | ServiceLineScalarWhereInput[] } export type ClaimFileUncheckedUpdateManyWithoutClaimNestedInput = { create?: XOR | ClaimFileCreateWithoutClaimInput[] | ClaimFileUncheckedCreateWithoutClaimInput[] connectOrCreate?: ClaimFileCreateOrConnectWithoutClaimInput | ClaimFileCreateOrConnectWithoutClaimInput[] upsert?: ClaimFileUpsertWithWhereUniqueWithoutClaimInput | ClaimFileUpsertWithWhereUniqueWithoutClaimInput[] createMany?: ClaimFileCreateManyClaimInputEnvelope set?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] disconnect?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] delete?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] connect?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] update?: ClaimFileUpdateWithWhereUniqueWithoutClaimInput | ClaimFileUpdateWithWhereUniqueWithoutClaimInput[] updateMany?: ClaimFileUpdateManyWithWhereWithoutClaimInput | ClaimFileUpdateManyWithWhereWithoutClaimInput[] deleteMany?: ClaimFileScalarWhereInput | ClaimFileScalarWhereInput[] } export type PaymentUncheckedUpdateOneWithoutClaimNestedInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutClaimInput upsert?: PaymentUpsertWithoutClaimInput disconnect?: PaymentWhereInput | boolean delete?: PaymentWhereInput | boolean connect?: PaymentWhereUniqueInput update?: XOR, PaymentUncheckedUpdateWithoutClaimInput> } export type ClaimCreateNestedOneWithoutServiceLinesInput = { create?: XOR connectOrCreate?: ClaimCreateOrConnectWithoutServiceLinesInput connect?: ClaimWhereUniqueInput } export type PaymentCreateNestedOneWithoutServiceLinesInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutServiceLinesInput connect?: PaymentWhereUniqueInput } export type ServiceLineTransactionCreateNestedManyWithoutServiceLineInput = { create?: XOR | ServiceLineTransactionCreateWithoutServiceLineInput[] | ServiceLineTransactionUncheckedCreateWithoutServiceLineInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutServiceLineInput | ServiceLineTransactionCreateOrConnectWithoutServiceLineInput[] createMany?: ServiceLineTransactionCreateManyServiceLineInputEnvelope connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] } export type ServiceLineTransactionUncheckedCreateNestedManyWithoutServiceLineInput = { create?: XOR | ServiceLineTransactionCreateWithoutServiceLineInput[] | ServiceLineTransactionUncheckedCreateWithoutServiceLineInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutServiceLineInput | ServiceLineTransactionCreateOrConnectWithoutServiceLineInput[] createMany?: ServiceLineTransactionCreateManyServiceLineInputEnvelope connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] } 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 EnumServiceLineStatusFieldUpdateOperationsInput = { set?: $Enums.ServiceLineStatus } export type ClaimUpdateOneWithoutServiceLinesNestedInput = { create?: XOR connectOrCreate?: ClaimCreateOrConnectWithoutServiceLinesInput upsert?: ClaimUpsertWithoutServiceLinesInput disconnect?: ClaimWhereInput | boolean delete?: ClaimWhereInput | boolean connect?: ClaimWhereUniqueInput update?: XOR, ClaimUncheckedUpdateWithoutServiceLinesInput> } export type PaymentUpdateOneWithoutServiceLinesNestedInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutServiceLinesInput upsert?: PaymentUpsertWithoutServiceLinesInput disconnect?: PaymentWhereInput | boolean delete?: PaymentWhereInput | boolean connect?: PaymentWhereUniqueInput update?: XOR, PaymentUncheckedUpdateWithoutServiceLinesInput> } export type ServiceLineTransactionUpdateManyWithoutServiceLineNestedInput = { create?: XOR | ServiceLineTransactionCreateWithoutServiceLineInput[] | ServiceLineTransactionUncheckedCreateWithoutServiceLineInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutServiceLineInput | ServiceLineTransactionCreateOrConnectWithoutServiceLineInput[] upsert?: ServiceLineTransactionUpsertWithWhereUniqueWithoutServiceLineInput | ServiceLineTransactionUpsertWithWhereUniqueWithoutServiceLineInput[] createMany?: ServiceLineTransactionCreateManyServiceLineInputEnvelope set?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] disconnect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] delete?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] update?: ServiceLineTransactionUpdateWithWhereUniqueWithoutServiceLineInput | ServiceLineTransactionUpdateWithWhereUniqueWithoutServiceLineInput[] updateMany?: ServiceLineTransactionUpdateManyWithWhereWithoutServiceLineInput | ServiceLineTransactionUpdateManyWithWhereWithoutServiceLineInput[] deleteMany?: ServiceLineTransactionScalarWhereInput | ServiceLineTransactionScalarWhereInput[] } export type NullableIntFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type ServiceLineTransactionUncheckedUpdateManyWithoutServiceLineNestedInput = { create?: XOR | ServiceLineTransactionCreateWithoutServiceLineInput[] | ServiceLineTransactionUncheckedCreateWithoutServiceLineInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutServiceLineInput | ServiceLineTransactionCreateOrConnectWithoutServiceLineInput[] upsert?: ServiceLineTransactionUpsertWithWhereUniqueWithoutServiceLineInput | ServiceLineTransactionUpsertWithWhereUniqueWithoutServiceLineInput[] createMany?: ServiceLineTransactionCreateManyServiceLineInputEnvelope set?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] disconnect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] delete?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] update?: ServiceLineTransactionUpdateWithWhereUniqueWithoutServiceLineInput | ServiceLineTransactionUpdateWithWhereUniqueWithoutServiceLineInput[] updateMany?: ServiceLineTransactionUpdateManyWithWhereWithoutServiceLineInput | ServiceLineTransactionUpdateManyWithWhereWithoutServiceLineInput[] deleteMany?: ServiceLineTransactionScalarWhereInput | ServiceLineTransactionScalarWhereInput[] } export type ClaimCreateNestedOneWithoutClaimFilesInput = { create?: XOR connectOrCreate?: ClaimCreateOrConnectWithoutClaimFilesInput connect?: ClaimWhereUniqueInput } export type ClaimUpdateOneRequiredWithoutClaimFilesNestedInput = { create?: XOR connectOrCreate?: ClaimCreateOrConnectWithoutClaimFilesInput upsert?: ClaimUpsertWithoutClaimFilesInput connect?: ClaimWhereUniqueInput update?: XOR, ClaimUncheckedUpdateWithoutClaimFilesInput> } export type UserCreateNestedOneWithoutInsuranceCredentialsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutInsuranceCredentialsInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutInsuranceCredentialsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutInsuranceCredentialsInput upsert?: UserUpsertWithoutInsuranceCredentialsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutInsuranceCredentialsInput> } export type PatientCreateNestedOneWithoutGroupsInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutGroupsInput connect?: PatientWhereUniqueInput } export type PdfFileCreateNestedManyWithoutGroupInput = { create?: XOR | PdfFileCreateWithoutGroupInput[] | PdfFileUncheckedCreateWithoutGroupInput[] connectOrCreate?: PdfFileCreateOrConnectWithoutGroupInput | PdfFileCreateOrConnectWithoutGroupInput[] createMany?: PdfFileCreateManyGroupInputEnvelope connect?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] } export type PdfFileUncheckedCreateNestedManyWithoutGroupInput = { create?: XOR | PdfFileCreateWithoutGroupInput[] | PdfFileUncheckedCreateWithoutGroupInput[] connectOrCreate?: PdfFileCreateOrConnectWithoutGroupInput | PdfFileCreateOrConnectWithoutGroupInput[] createMany?: PdfFileCreateManyGroupInputEnvelope connect?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] } export type EnumPdfTitleKeyFieldUpdateOperationsInput = { set?: $Enums.PdfTitleKey } export type PatientUpdateOneRequiredWithoutGroupsNestedInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutGroupsInput upsert?: PatientUpsertWithoutGroupsInput connect?: PatientWhereUniqueInput update?: XOR, PatientUncheckedUpdateWithoutGroupsInput> } export type PdfFileUpdateManyWithoutGroupNestedInput = { create?: XOR | PdfFileCreateWithoutGroupInput[] | PdfFileUncheckedCreateWithoutGroupInput[] connectOrCreate?: PdfFileCreateOrConnectWithoutGroupInput | PdfFileCreateOrConnectWithoutGroupInput[] upsert?: PdfFileUpsertWithWhereUniqueWithoutGroupInput | PdfFileUpsertWithWhereUniqueWithoutGroupInput[] createMany?: PdfFileCreateManyGroupInputEnvelope set?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] disconnect?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] delete?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] connect?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] update?: PdfFileUpdateWithWhereUniqueWithoutGroupInput | PdfFileUpdateWithWhereUniqueWithoutGroupInput[] updateMany?: PdfFileUpdateManyWithWhereWithoutGroupInput | PdfFileUpdateManyWithWhereWithoutGroupInput[] deleteMany?: PdfFileScalarWhereInput | PdfFileScalarWhereInput[] } export type PdfFileUncheckedUpdateManyWithoutGroupNestedInput = { create?: XOR | PdfFileCreateWithoutGroupInput[] | PdfFileUncheckedCreateWithoutGroupInput[] connectOrCreate?: PdfFileCreateOrConnectWithoutGroupInput | PdfFileCreateOrConnectWithoutGroupInput[] upsert?: PdfFileUpsertWithWhereUniqueWithoutGroupInput | PdfFileUpsertWithWhereUniqueWithoutGroupInput[] createMany?: PdfFileCreateManyGroupInputEnvelope set?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] disconnect?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] delete?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] connect?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] update?: PdfFileUpdateWithWhereUniqueWithoutGroupInput | PdfFileUpdateWithWhereUniqueWithoutGroupInput[] updateMany?: PdfFileUpdateManyWithWhereWithoutGroupInput | PdfFileUpdateManyWithWhereWithoutGroupInput[] deleteMany?: PdfFileScalarWhereInput | PdfFileScalarWhereInput[] } export type PdfGroupCreateNestedOneWithoutPdfsInput = { create?: XOR connectOrCreate?: PdfGroupCreateOrConnectWithoutPdfsInput connect?: PdfGroupWhereUniqueInput } export type BytesFieldUpdateOperationsInput = { set?: Bytes } export type PdfGroupUpdateOneRequiredWithoutPdfsNestedInput = { create?: XOR connectOrCreate?: PdfGroupCreateOrConnectWithoutPdfsInput upsert?: PdfGroupUpsertWithoutPdfsInput connect?: PdfGroupWhereUniqueInput update?: XOR, PdfGroupUncheckedUpdateWithoutPdfsInput> } export type ClaimCreateNestedOneWithoutPaymentInput = { create?: XOR connectOrCreate?: ClaimCreateOrConnectWithoutPaymentInput connect?: ClaimWhereUniqueInput } export type PatientCreateNestedOneWithoutPaymentInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutPaymentInput connect?: PatientWhereUniqueInput } export type UserCreateNestedOneWithoutUpdatedPaymentsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutUpdatedPaymentsInput connect?: UserWhereUniqueInput } export type ServiceLineTransactionCreateNestedManyWithoutPaymentInput = { create?: XOR | ServiceLineTransactionCreateWithoutPaymentInput[] | ServiceLineTransactionUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutPaymentInput | ServiceLineTransactionCreateOrConnectWithoutPaymentInput[] createMany?: ServiceLineTransactionCreateManyPaymentInputEnvelope connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] } export type ServiceLineCreateNestedManyWithoutPaymentInput = { create?: XOR | ServiceLineCreateWithoutPaymentInput[] | ServiceLineUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutPaymentInput | ServiceLineCreateOrConnectWithoutPaymentInput[] createMany?: ServiceLineCreateManyPaymentInputEnvelope connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] } export type ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput = { create?: XOR | ServiceLineTransactionCreateWithoutPaymentInput[] | ServiceLineTransactionUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutPaymentInput | ServiceLineTransactionCreateOrConnectWithoutPaymentInput[] createMany?: ServiceLineTransactionCreateManyPaymentInputEnvelope connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] } export type ServiceLineUncheckedCreateNestedManyWithoutPaymentInput = { create?: XOR | ServiceLineCreateWithoutPaymentInput[] | ServiceLineUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutPaymentInput | ServiceLineCreateOrConnectWithoutPaymentInput[] createMany?: ServiceLineCreateManyPaymentInputEnvelope connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] } export type EnumPaymentStatusFieldUpdateOperationsInput = { set?: $Enums.PaymentStatus } export type ClaimUpdateOneWithoutPaymentNestedInput = { create?: XOR connectOrCreate?: ClaimCreateOrConnectWithoutPaymentInput upsert?: ClaimUpsertWithoutPaymentInput disconnect?: ClaimWhereInput | boolean delete?: ClaimWhereInput | boolean connect?: ClaimWhereUniqueInput update?: XOR, ClaimUncheckedUpdateWithoutPaymentInput> } export type PatientUpdateOneRequiredWithoutPaymentNestedInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutPaymentInput upsert?: PatientUpsertWithoutPaymentInput connect?: PatientWhereUniqueInput update?: XOR, PatientUncheckedUpdateWithoutPaymentInput> } export type UserUpdateOneWithoutUpdatedPaymentsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutUpdatedPaymentsInput upsert?: UserUpsertWithoutUpdatedPaymentsInput disconnect?: UserWhereInput | boolean delete?: UserWhereInput | boolean connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutUpdatedPaymentsInput> } export type ServiceLineTransactionUpdateManyWithoutPaymentNestedInput = { create?: XOR | ServiceLineTransactionCreateWithoutPaymentInput[] | ServiceLineTransactionUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutPaymentInput | ServiceLineTransactionCreateOrConnectWithoutPaymentInput[] upsert?: ServiceLineTransactionUpsertWithWhereUniqueWithoutPaymentInput | ServiceLineTransactionUpsertWithWhereUniqueWithoutPaymentInput[] createMany?: ServiceLineTransactionCreateManyPaymentInputEnvelope set?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] disconnect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] delete?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] update?: ServiceLineTransactionUpdateWithWhereUniqueWithoutPaymentInput | ServiceLineTransactionUpdateWithWhereUniqueWithoutPaymentInput[] updateMany?: ServiceLineTransactionUpdateManyWithWhereWithoutPaymentInput | ServiceLineTransactionUpdateManyWithWhereWithoutPaymentInput[] deleteMany?: ServiceLineTransactionScalarWhereInput | ServiceLineTransactionScalarWhereInput[] } export type ServiceLineUpdateManyWithoutPaymentNestedInput = { create?: XOR | ServiceLineCreateWithoutPaymentInput[] | ServiceLineUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutPaymentInput | ServiceLineCreateOrConnectWithoutPaymentInput[] upsert?: ServiceLineUpsertWithWhereUniqueWithoutPaymentInput | ServiceLineUpsertWithWhereUniqueWithoutPaymentInput[] createMany?: ServiceLineCreateManyPaymentInputEnvelope set?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] disconnect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] delete?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] update?: ServiceLineUpdateWithWhereUniqueWithoutPaymentInput | ServiceLineUpdateWithWhereUniqueWithoutPaymentInput[] updateMany?: ServiceLineUpdateManyWithWhereWithoutPaymentInput | ServiceLineUpdateManyWithWhereWithoutPaymentInput[] deleteMany?: ServiceLineScalarWhereInput | ServiceLineScalarWhereInput[] } export type ServiceLineTransactionUncheckedUpdateManyWithoutPaymentNestedInput = { create?: XOR | ServiceLineTransactionCreateWithoutPaymentInput[] | ServiceLineTransactionUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutPaymentInput | ServiceLineTransactionCreateOrConnectWithoutPaymentInput[] upsert?: ServiceLineTransactionUpsertWithWhereUniqueWithoutPaymentInput | ServiceLineTransactionUpsertWithWhereUniqueWithoutPaymentInput[] createMany?: ServiceLineTransactionCreateManyPaymentInputEnvelope set?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] disconnect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] delete?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] update?: ServiceLineTransactionUpdateWithWhereUniqueWithoutPaymentInput | ServiceLineTransactionUpdateWithWhereUniqueWithoutPaymentInput[] updateMany?: ServiceLineTransactionUpdateManyWithWhereWithoutPaymentInput | ServiceLineTransactionUpdateManyWithWhereWithoutPaymentInput[] deleteMany?: ServiceLineTransactionScalarWhereInput | ServiceLineTransactionScalarWhereInput[] } export type ServiceLineUncheckedUpdateManyWithoutPaymentNestedInput = { create?: XOR | ServiceLineCreateWithoutPaymentInput[] | ServiceLineUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutPaymentInput | ServiceLineCreateOrConnectWithoutPaymentInput[] upsert?: ServiceLineUpsertWithWhereUniqueWithoutPaymentInput | ServiceLineUpsertWithWhereUniqueWithoutPaymentInput[] createMany?: ServiceLineCreateManyPaymentInputEnvelope set?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] disconnect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] delete?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] update?: ServiceLineUpdateWithWhereUniqueWithoutPaymentInput | ServiceLineUpdateWithWhereUniqueWithoutPaymentInput[] updateMany?: ServiceLineUpdateManyWithWhereWithoutPaymentInput | ServiceLineUpdateManyWithWhereWithoutPaymentInput[] deleteMany?: ServiceLineScalarWhereInput | ServiceLineScalarWhereInput[] } export type PaymentCreateNestedOneWithoutServiceLineTransactionsInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutServiceLineTransactionsInput connect?: PaymentWhereUniqueInput } export type ServiceLineCreateNestedOneWithoutServiceLineTransactionsInput = { create?: XOR connectOrCreate?: ServiceLineCreateOrConnectWithoutServiceLineTransactionsInput connect?: ServiceLineWhereUniqueInput } export type EnumPaymentMethodFieldUpdateOperationsInput = { set?: $Enums.PaymentMethod } export type PaymentUpdateOneRequiredWithoutServiceLineTransactionsNestedInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutServiceLineTransactionsInput upsert?: PaymentUpsertWithoutServiceLineTransactionsInput connect?: PaymentWhereUniqueInput update?: XOR, PaymentUncheckedUpdateWithoutServiceLineTransactionsInput> } export type ServiceLineUpdateOneRequiredWithoutServiceLineTransactionsNestedInput = { create?: XOR connectOrCreate?: ServiceLineCreateOrConnectWithoutServiceLineTransactionsInput upsert?: ServiceLineUpsertWithoutServiceLineTransactionsInput connect?: ServiceLineWhereUniqueInput update?: XOR, ServiceLineUncheckedUpdateWithoutServiceLineTransactionsInput> } export type UserCreateNestedOneWithoutBackupsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutBackupsInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutBackupsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutBackupsInput upsert?: UserUpsertWithoutBackupsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutBackupsInput> } export type UserCreateNestedOneWithoutBackupDestinationsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutBackupDestinationsInput connect?: UserWhereUniqueInput } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type UserUpdateOneRequiredWithoutBackupDestinationsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutBackupDestinationsInput upsert?: UserUpsertWithoutBackupDestinationsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutBackupDestinationsInput> } export type UserCreateNestedOneWithoutNotificationsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutNotificationsInput connect?: UserWhereUniqueInput } export type EnumNotificationTypesFieldUpdateOperationsInput = { set?: $Enums.NotificationTypes } export type UserUpdateOneRequiredWithoutNotificationsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutNotificationsInput upsert?: UserUpsertWithoutNotificationsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutNotificationsInput> } export type CloudFolderCreateNestedOneWithoutChildrenInput = { create?: XOR connectOrCreate?: CloudFolderCreateOrConnectWithoutChildrenInput connect?: CloudFolderWhereUniqueInput } export type CloudFolderCreateNestedManyWithoutParentInput = { create?: XOR | CloudFolderCreateWithoutParentInput[] | CloudFolderUncheckedCreateWithoutParentInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutParentInput | CloudFolderCreateOrConnectWithoutParentInput[] createMany?: CloudFolderCreateManyParentInputEnvelope connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] } export type UserCreateNestedOneWithoutCloudFoldersInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCloudFoldersInput connect?: UserWhereUniqueInput } export type CloudFileCreateNestedManyWithoutFolderInput = { create?: XOR | CloudFileCreateWithoutFolderInput[] | CloudFileUncheckedCreateWithoutFolderInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutFolderInput | CloudFileCreateOrConnectWithoutFolderInput[] createMany?: CloudFileCreateManyFolderInputEnvelope connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] } export type CloudFolderUncheckedCreateNestedManyWithoutParentInput = { create?: XOR | CloudFolderCreateWithoutParentInput[] | CloudFolderUncheckedCreateWithoutParentInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutParentInput | CloudFolderCreateOrConnectWithoutParentInput[] createMany?: CloudFolderCreateManyParentInputEnvelope connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] } export type CloudFileUncheckedCreateNestedManyWithoutFolderInput = { create?: XOR | CloudFileCreateWithoutFolderInput[] | CloudFileUncheckedCreateWithoutFolderInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutFolderInput | CloudFileCreateOrConnectWithoutFolderInput[] createMany?: CloudFileCreateManyFolderInputEnvelope connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] } export type CloudFolderUpdateOneWithoutChildrenNestedInput = { create?: XOR connectOrCreate?: CloudFolderCreateOrConnectWithoutChildrenInput upsert?: CloudFolderUpsertWithoutChildrenInput disconnect?: CloudFolderWhereInput | boolean delete?: CloudFolderWhereInput | boolean connect?: CloudFolderWhereUniqueInput update?: XOR, CloudFolderUncheckedUpdateWithoutChildrenInput> } export type CloudFolderUpdateManyWithoutParentNestedInput = { create?: XOR | CloudFolderCreateWithoutParentInput[] | CloudFolderUncheckedCreateWithoutParentInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutParentInput | CloudFolderCreateOrConnectWithoutParentInput[] upsert?: CloudFolderUpsertWithWhereUniqueWithoutParentInput | CloudFolderUpsertWithWhereUniqueWithoutParentInput[] createMany?: CloudFolderCreateManyParentInputEnvelope set?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] disconnect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] delete?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] update?: CloudFolderUpdateWithWhereUniqueWithoutParentInput | CloudFolderUpdateWithWhereUniqueWithoutParentInput[] updateMany?: CloudFolderUpdateManyWithWhereWithoutParentInput | CloudFolderUpdateManyWithWhereWithoutParentInput[] deleteMany?: CloudFolderScalarWhereInput | CloudFolderScalarWhereInput[] } export type UserUpdateOneRequiredWithoutCloudFoldersNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCloudFoldersInput upsert?: UserUpsertWithoutCloudFoldersInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutCloudFoldersInput> } export type CloudFileUpdateManyWithoutFolderNestedInput = { create?: XOR | CloudFileCreateWithoutFolderInput[] | CloudFileUncheckedCreateWithoutFolderInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutFolderInput | CloudFileCreateOrConnectWithoutFolderInput[] upsert?: CloudFileUpsertWithWhereUniqueWithoutFolderInput | CloudFileUpsertWithWhereUniqueWithoutFolderInput[] createMany?: CloudFileCreateManyFolderInputEnvelope set?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] disconnect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] delete?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] update?: CloudFileUpdateWithWhereUniqueWithoutFolderInput | CloudFileUpdateWithWhereUniqueWithoutFolderInput[] updateMany?: CloudFileUpdateManyWithWhereWithoutFolderInput | CloudFileUpdateManyWithWhereWithoutFolderInput[] deleteMany?: CloudFileScalarWhereInput | CloudFileScalarWhereInput[] } export type CloudFolderUncheckedUpdateManyWithoutParentNestedInput = { create?: XOR | CloudFolderCreateWithoutParentInput[] | CloudFolderUncheckedCreateWithoutParentInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutParentInput | CloudFolderCreateOrConnectWithoutParentInput[] upsert?: CloudFolderUpsertWithWhereUniqueWithoutParentInput | CloudFolderUpsertWithWhereUniqueWithoutParentInput[] createMany?: CloudFolderCreateManyParentInputEnvelope set?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] disconnect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] delete?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] update?: CloudFolderUpdateWithWhereUniqueWithoutParentInput | CloudFolderUpdateWithWhereUniqueWithoutParentInput[] updateMany?: CloudFolderUpdateManyWithWhereWithoutParentInput | CloudFolderUpdateManyWithWhereWithoutParentInput[] deleteMany?: CloudFolderScalarWhereInput | CloudFolderScalarWhereInput[] } export type CloudFileUncheckedUpdateManyWithoutFolderNestedInput = { create?: XOR | CloudFileCreateWithoutFolderInput[] | CloudFileUncheckedCreateWithoutFolderInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutFolderInput | CloudFileCreateOrConnectWithoutFolderInput[] upsert?: CloudFileUpsertWithWhereUniqueWithoutFolderInput | CloudFileUpsertWithWhereUniqueWithoutFolderInput[] createMany?: CloudFileCreateManyFolderInputEnvelope set?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] disconnect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] delete?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] update?: CloudFileUpdateWithWhereUniqueWithoutFolderInput | CloudFileUpdateWithWhereUniqueWithoutFolderInput[] updateMany?: CloudFileUpdateManyWithWhereWithoutFolderInput | CloudFileUpdateManyWithWhereWithoutFolderInput[] deleteMany?: CloudFileScalarWhereInput | CloudFileScalarWhereInput[] } export type UserCreateNestedOneWithoutCloudFilesInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCloudFilesInput connect?: UserWhereUniqueInput } export type CloudFolderCreateNestedOneWithoutFilesInput = { create?: XOR connectOrCreate?: CloudFolderCreateOrConnectWithoutFilesInput connect?: CloudFolderWhereUniqueInput } export type CloudFileChunkCreateNestedManyWithoutFileInput = { create?: XOR | CloudFileChunkCreateWithoutFileInput[] | CloudFileChunkUncheckedCreateWithoutFileInput[] connectOrCreate?: CloudFileChunkCreateOrConnectWithoutFileInput | CloudFileChunkCreateOrConnectWithoutFileInput[] createMany?: CloudFileChunkCreateManyFileInputEnvelope connect?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] } export type CloudFileChunkUncheckedCreateNestedManyWithoutFileInput = { create?: XOR | CloudFileChunkCreateWithoutFileInput[] | CloudFileChunkUncheckedCreateWithoutFileInput[] connectOrCreate?: CloudFileChunkCreateOrConnectWithoutFileInput | CloudFileChunkCreateOrConnectWithoutFileInput[] createMany?: CloudFileChunkCreateManyFileInputEnvelope connect?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] } export type BigIntFieldUpdateOperationsInput = { set?: bigint | number increment?: bigint | number decrement?: bigint | number multiply?: bigint | number divide?: bigint | number } export type UserUpdateOneRequiredWithoutCloudFilesNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCloudFilesInput upsert?: UserUpsertWithoutCloudFilesInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutCloudFilesInput> } export type CloudFolderUpdateOneWithoutFilesNestedInput = { create?: XOR connectOrCreate?: CloudFolderCreateOrConnectWithoutFilesInput upsert?: CloudFolderUpsertWithoutFilesInput disconnect?: CloudFolderWhereInput | boolean delete?: CloudFolderWhereInput | boolean connect?: CloudFolderWhereUniqueInput update?: XOR, CloudFolderUncheckedUpdateWithoutFilesInput> } export type CloudFileChunkUpdateManyWithoutFileNestedInput = { create?: XOR | CloudFileChunkCreateWithoutFileInput[] | CloudFileChunkUncheckedCreateWithoutFileInput[] connectOrCreate?: CloudFileChunkCreateOrConnectWithoutFileInput | CloudFileChunkCreateOrConnectWithoutFileInput[] upsert?: CloudFileChunkUpsertWithWhereUniqueWithoutFileInput | CloudFileChunkUpsertWithWhereUniqueWithoutFileInput[] createMany?: CloudFileChunkCreateManyFileInputEnvelope set?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] disconnect?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] delete?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] connect?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] update?: CloudFileChunkUpdateWithWhereUniqueWithoutFileInput | CloudFileChunkUpdateWithWhereUniqueWithoutFileInput[] updateMany?: CloudFileChunkUpdateManyWithWhereWithoutFileInput | CloudFileChunkUpdateManyWithWhereWithoutFileInput[] deleteMany?: CloudFileChunkScalarWhereInput | CloudFileChunkScalarWhereInput[] } export type CloudFileChunkUncheckedUpdateManyWithoutFileNestedInput = { create?: XOR | CloudFileChunkCreateWithoutFileInput[] | CloudFileChunkUncheckedCreateWithoutFileInput[] connectOrCreate?: CloudFileChunkCreateOrConnectWithoutFileInput | CloudFileChunkCreateOrConnectWithoutFileInput[] upsert?: CloudFileChunkUpsertWithWhereUniqueWithoutFileInput | CloudFileChunkUpsertWithWhereUniqueWithoutFileInput[] createMany?: CloudFileChunkCreateManyFileInputEnvelope set?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] disconnect?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] delete?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] connect?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] update?: CloudFileChunkUpdateWithWhereUniqueWithoutFileInput | CloudFileChunkUpdateWithWhereUniqueWithoutFileInput[] updateMany?: CloudFileChunkUpdateManyWithWhereWithoutFileInput | CloudFileChunkUpdateManyWithWhereWithoutFileInput[] deleteMany?: CloudFileChunkScalarWhereInput | CloudFileChunkScalarWhereInput[] } export type CloudFileCreateNestedOneWithoutChunksInput = { create?: XOR connectOrCreate?: CloudFileCreateOrConnectWithoutChunksInput connect?: CloudFileWhereUniqueInput } export type CloudFileUpdateOneRequiredWithoutChunksNestedInput = { create?: XOR connectOrCreate?: CloudFileCreateOrConnectWithoutChunksInput upsert?: CloudFileUpsertWithoutChunksInput connect?: CloudFileWhereUniqueInput update?: XOR, CloudFileUncheckedUpdateWithoutChunksInput> } export type PatientCreateNestedOneWithoutCommunicationsInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutCommunicationsInput connect?: PatientWhereUniqueInput } export type UserCreateNestedOneWithoutCommunicationsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCommunicationsInput connect?: UserWhereUniqueInput } export type EnumCommunicationChannelFieldUpdateOperationsInput = { set?: $Enums.CommunicationChannel } export type EnumCommunicationDirectionFieldUpdateOperationsInput = { set?: $Enums.CommunicationDirection } export type EnumCommunicationStatusFieldUpdateOperationsInput = { set?: $Enums.CommunicationStatus } export type PatientUpdateOneRequiredWithoutCommunicationsNestedInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutCommunicationsInput upsert?: PatientUpsertWithoutCommunicationsInput connect?: PatientWhereUniqueInput update?: XOR, PatientUncheckedUpdateWithoutCommunicationsInput> } export type UserUpdateOneWithoutCommunicationsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCommunicationsInput upsert?: UserUpsertWithoutCommunicationsInput disconnect?: UserWhereInput | boolean delete?: UserWhereInput | boolean connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutCommunicationsInput> } export type PatientCreateNestedOneWithoutDocumentsInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutDocumentsInput connect?: PatientWhereUniqueInput } export type PatientUpdateOneRequiredWithoutDocumentsNestedInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutDocumentsInput upsert?: PatientUpsertWithoutDocumentsInput connect?: PatientWhereUniqueInput update?: XOR, PatientUncheckedUpdateWithoutDocumentsInput> } export type NestedIntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type NestedStringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringFilter<$PrismaModel> | string } export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type NestedFloatFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] | ListFloatFieldRefInput<$PrismaModel> notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatFilter<$PrismaModel> | number } export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type NestedDateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type NestedStringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type NestedEnumPatientStatusFilter<$PrismaModel = never> = { equals?: $Enums.PatientStatus | EnumPatientStatusFieldRefInput<$PrismaModel> in?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> not?: NestedEnumPatientStatusFilter<$PrismaModel> | $Enums.PatientStatus } export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type NestedIntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type NestedEnumPatientStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PatientStatus | EnumPatientStatusFieldRefInput<$PrismaModel> in?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> not?: NestedEnumPatientStatusWithAggregatesFilter<$PrismaModel> | $Enums.PatientStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPatientStatusFilter<$PrismaModel> _max?: NestedEnumPatientStatusFilter<$PrismaModel> } export type NestedDecimalNullableFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null } export type NestedEnumProcedureSourceFilter<$PrismaModel = never> = { equals?: $Enums.ProcedureSource | EnumProcedureSourceFieldRefInput<$PrismaModel> in?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> notIn?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> not?: NestedEnumProcedureSourceFilter<$PrismaModel> | $Enums.ProcedureSource } export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedDecimalNullableFilter<$PrismaModel> _sum?: NestedDecimalNullableFilter<$PrismaModel> _min?: NestedDecimalNullableFilter<$PrismaModel> _max?: NestedDecimalNullableFilter<$PrismaModel> } export type NestedEnumProcedureSourceWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ProcedureSource | EnumProcedureSourceFieldRefInput<$PrismaModel> in?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> notIn?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> not?: NestedEnumProcedureSourceWithAggregatesFilter<$PrismaModel> | $Enums.ProcedureSource _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumProcedureSourceFilter<$PrismaModel> _max?: NestedEnumProcedureSourceFilter<$PrismaModel> } export type NestedEnumMissingTeethStatusFilter<$PrismaModel = never> = { equals?: $Enums.MissingTeethStatus | EnumMissingTeethStatusFieldRefInput<$PrismaModel> in?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> not?: NestedEnumMissingTeethStatusFilter<$PrismaModel> | $Enums.MissingTeethStatus } export type NestedEnumClaimStatusFilter<$PrismaModel = never> = { equals?: $Enums.ClaimStatus | EnumClaimStatusFieldRefInput<$PrismaModel> in?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> not?: NestedEnumClaimStatusFilter<$PrismaModel> | $Enums.ClaimStatus } export type NestedEnumMissingTeethStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.MissingTeethStatus | EnumMissingTeethStatusFieldRefInput<$PrismaModel> in?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> not?: NestedEnumMissingTeethStatusWithAggregatesFilter<$PrismaModel> | $Enums.MissingTeethStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumMissingTeethStatusFilter<$PrismaModel> _max?: NestedEnumMissingTeethStatusFilter<$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 | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type NestedEnumClaimStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ClaimStatus | EnumClaimStatusFieldRefInput<$PrismaModel> in?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> not?: NestedEnumClaimStatusWithAggregatesFilter<$PrismaModel> | $Enums.ClaimStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumClaimStatusFilter<$PrismaModel> _max?: NestedEnumClaimStatusFilter<$PrismaModel> } export type NestedDecimalFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string } export type NestedEnumServiceLineStatusFilter<$PrismaModel = never> = { equals?: $Enums.ServiceLineStatus | EnumServiceLineStatusFieldRefInput<$PrismaModel> in?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> not?: NestedEnumServiceLineStatusFilter<$PrismaModel> | $Enums.ServiceLineStatus } export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type NestedFloatNullableFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> | null in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableFilter<$PrismaModel> | number | null } export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string _count?: NestedIntFilter<$PrismaModel> _avg?: NestedDecimalFilter<$PrismaModel> _sum?: NestedDecimalFilter<$PrismaModel> _min?: NestedDecimalFilter<$PrismaModel> _max?: NestedDecimalFilter<$PrismaModel> } export type NestedEnumServiceLineStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ServiceLineStatus | EnumServiceLineStatusFieldRefInput<$PrismaModel> in?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> not?: NestedEnumServiceLineStatusWithAggregatesFilter<$PrismaModel> | $Enums.ServiceLineStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumServiceLineStatusFilter<$PrismaModel> _max?: NestedEnumServiceLineStatusFilter<$PrismaModel> } export type NestedEnumPdfTitleKeyFilter<$PrismaModel = never> = { equals?: $Enums.PdfTitleKey | EnumPdfTitleKeyFieldRefInput<$PrismaModel> in?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> notIn?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> not?: NestedEnumPdfTitleKeyFilter<$PrismaModel> | $Enums.PdfTitleKey } export type NestedEnumPdfTitleKeyWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PdfTitleKey | EnumPdfTitleKeyFieldRefInput<$PrismaModel> in?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> notIn?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> not?: NestedEnumPdfTitleKeyWithAggregatesFilter<$PrismaModel> | $Enums.PdfTitleKey _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPdfTitleKeyFilter<$PrismaModel> _max?: NestedEnumPdfTitleKeyFilter<$PrismaModel> } export type NestedBytesFilter<$PrismaModel = never> = { equals?: Bytes | BytesFieldRefInput<$PrismaModel> in?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> notIn?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> not?: NestedBytesFilter<$PrismaModel> | Bytes } export type NestedBytesWithAggregatesFilter<$PrismaModel = never> = { equals?: Bytes | BytesFieldRefInput<$PrismaModel> in?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> notIn?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> not?: NestedBytesWithAggregatesFilter<$PrismaModel> | Bytes _count?: NestedIntFilter<$PrismaModel> _min?: NestedBytesFilter<$PrismaModel> _max?: NestedBytesFilter<$PrismaModel> } export type NestedEnumPaymentStatusFilter<$PrismaModel = never> = { equals?: $Enums.PaymentStatus | EnumPaymentStatusFieldRefInput<$PrismaModel> in?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> not?: NestedEnumPaymentStatusFilter<$PrismaModel> | $Enums.PaymentStatus } export type NestedEnumPaymentStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PaymentStatus | EnumPaymentStatusFieldRefInput<$PrismaModel> in?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> not?: NestedEnumPaymentStatusWithAggregatesFilter<$PrismaModel> | $Enums.PaymentStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPaymentStatusFilter<$PrismaModel> _max?: NestedEnumPaymentStatusFilter<$PrismaModel> } export type NestedEnumPaymentMethodFilter<$PrismaModel = never> = { equals?: $Enums.PaymentMethod | EnumPaymentMethodFieldRefInput<$PrismaModel> in?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> not?: NestedEnumPaymentMethodFilter<$PrismaModel> | $Enums.PaymentMethod } export type NestedEnumPaymentMethodWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PaymentMethod | EnumPaymentMethodFieldRefInput<$PrismaModel> in?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> not?: NestedEnumPaymentMethodWithAggregatesFilter<$PrismaModel> | $Enums.PaymentMethod _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPaymentMethodFilter<$PrismaModel> _max?: NestedEnumPaymentMethodFilter<$PrismaModel> } export type NestedBoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type NestedEnumNotificationTypesFilter<$PrismaModel = never> = { equals?: $Enums.NotificationTypes | EnumNotificationTypesFieldRefInput<$PrismaModel> in?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> notIn?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> not?: NestedEnumNotificationTypesFilter<$PrismaModel> | $Enums.NotificationTypes } export type NestedEnumNotificationTypesWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.NotificationTypes | EnumNotificationTypesFieldRefInput<$PrismaModel> in?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> notIn?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> not?: NestedEnumNotificationTypesWithAggregatesFilter<$PrismaModel> | $Enums.NotificationTypes _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumNotificationTypesFilter<$PrismaModel> _max?: NestedEnumNotificationTypesFilter<$PrismaModel> } export type NestedBigIntFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntFilter<$PrismaModel> | bigint | number } export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedBigIntFilter<$PrismaModel> _min?: NestedBigIntFilter<$PrismaModel> _max?: NestedBigIntFilter<$PrismaModel> } export type NestedEnumCommunicationChannelFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationChannel | EnumCommunicationChannelFieldRefInput<$PrismaModel> in?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationChannelFilter<$PrismaModel> | $Enums.CommunicationChannel } export type NestedEnumCommunicationDirectionFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationDirection | EnumCommunicationDirectionFieldRefInput<$PrismaModel> in?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationDirectionFilter<$PrismaModel> | $Enums.CommunicationDirection } export type NestedEnumCommunicationStatusFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationStatus | EnumCommunicationStatusFieldRefInput<$PrismaModel> in?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationStatusFilter<$PrismaModel> | $Enums.CommunicationStatus } export type NestedEnumCommunicationChannelWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationChannel | EnumCommunicationChannelFieldRefInput<$PrismaModel> in?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationChannelWithAggregatesFilter<$PrismaModel> | $Enums.CommunicationChannel _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumCommunicationChannelFilter<$PrismaModel> _max?: NestedEnumCommunicationChannelFilter<$PrismaModel> } export type NestedEnumCommunicationDirectionWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationDirection | EnumCommunicationDirectionFieldRefInput<$PrismaModel> in?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationDirectionWithAggregatesFilter<$PrismaModel> | $Enums.CommunicationDirection _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumCommunicationDirectionFilter<$PrismaModel> _max?: NestedEnumCommunicationDirectionFilter<$PrismaModel> } export type NestedEnumCommunicationStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationStatus | EnumCommunicationStatusFieldRefInput<$PrismaModel> in?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationStatusWithAggregatesFilter<$PrismaModel> | $Enums.CommunicationStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumCommunicationStatusFilter<$PrismaModel> _max?: NestedEnumCommunicationStatusFilter<$PrismaModel> } export type PatientCreateWithoutUserInput = { firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus createdAt?: Date | string appointments?: AppointmentCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput } export type PatientUncheckedCreateWithoutUserInput = { id?: number firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus createdAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput } export type PatientCreateOrConnectWithoutUserInput = { where: PatientWhereUniqueInput create: XOR } export type PatientCreateManyUserInputEnvelope = { data: PatientCreateManyUserInput | PatientCreateManyUserInput[] skipDuplicates?: boolean } export type AppointmentCreateWithoutUserInput = { title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus patient: PatientCreateNestedOneWithoutAppointmentsInput staff?: StaffCreateNestedOneWithoutAppointmentsInput procedures?: AppointmentProcedureCreateNestedManyWithoutAppointmentInput claims?: ClaimCreateNestedManyWithoutAppointmentInput } export type AppointmentUncheckedCreateWithoutUserInput = { id?: number patientId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutAppointmentInput claims?: ClaimUncheckedCreateNestedManyWithoutAppointmentInput } export type AppointmentCreateOrConnectWithoutUserInput = { where: AppointmentWhereUniqueInput create: XOR } export type AppointmentCreateManyUserInputEnvelope = { data: AppointmentCreateManyUserInput | AppointmentCreateManyUserInput[] skipDuplicates?: boolean } export type StaffCreateWithoutUserInput = { name: string email?: string | null role: string phone?: string | null createdAt?: Date | string appointments?: AppointmentCreateNestedManyWithoutStaffInput claims?: ClaimCreateNestedManyWithoutStaffInput } export type StaffUncheckedCreateWithoutUserInput = { id?: number name: string email?: string | null role: string phone?: string | null createdAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutStaffInput claims?: ClaimUncheckedCreateNestedManyWithoutStaffInput } export type StaffCreateOrConnectWithoutUserInput = { where: StaffWhereUniqueInput create: XOR } export type StaffCreateManyUserInputEnvelope = { data: StaffCreateManyUserInput | StaffCreateManyUserInput[] skipDuplicates?: boolean } export type NpiProviderCreateWithoutUserInput = { npiNumber: string providerName: string createdAt?: Date | string } export type NpiProviderUncheckedCreateWithoutUserInput = { id?: number npiNumber: string providerName: string createdAt?: Date | string } export type NpiProviderCreateOrConnectWithoutUserInput = { where: NpiProviderWhereUniqueInput create: XOR } export type NpiProviderCreateManyUserInputEnvelope = { data: NpiProviderCreateManyUserInput | NpiProviderCreateManyUserInput[] skipDuplicates?: boolean } export type ClaimCreateWithoutUserInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null patient: PatientCreateNestedOneWithoutClaimsInput appointment: AppointmentCreateNestedOneWithoutClaimsInput staff?: StaffCreateNestedOneWithoutClaimsInput serviceLines?: ServiceLineCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileCreateNestedManyWithoutClaimInput payment?: PaymentCreateNestedOneWithoutClaimInput } export type ClaimUncheckedCreateWithoutUserInput = { id?: number patientId: number appointmentId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileUncheckedCreateNestedManyWithoutClaimInput payment?: PaymentUncheckedCreateNestedOneWithoutClaimInput } export type ClaimCreateOrConnectWithoutUserInput = { where: ClaimWhereUniqueInput create: XOR } export type ClaimCreateManyUserInputEnvelope = { data: ClaimCreateManyUserInput | ClaimCreateManyUserInput[] skipDuplicates?: boolean } export type InsuranceCredentialCreateWithoutUserInput = { siteKey: string username: string password: string } export type InsuranceCredentialUncheckedCreateWithoutUserInput = { id?: number siteKey: string username: string password: string } export type InsuranceCredentialCreateOrConnectWithoutUserInput = { where: InsuranceCredentialWhereUniqueInput create: XOR } export type InsuranceCredentialCreateManyUserInputEnvelope = { data: InsuranceCredentialCreateManyUserInput | InsuranceCredentialCreateManyUserInput[] skipDuplicates?: boolean } export type PaymentCreateWithoutUpdatedByInput = { userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string claim?: ClaimCreateNestedOneWithoutPaymentInput patient: PatientCreateNestedOneWithoutPaymentInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineCreateNestedManyWithoutPaymentInput } export type PaymentUncheckedCreateWithoutUpdatedByInput = { id?: number claimId?: number | null patientId: number userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutPaymentInput } export type PaymentCreateOrConnectWithoutUpdatedByInput = { where: PaymentWhereUniqueInput create: XOR } export type PaymentCreateManyUpdatedByInputEnvelope = { data: PaymentCreateManyUpdatedByInput | PaymentCreateManyUpdatedByInput[] skipDuplicates?: boolean } export type DatabaseBackupCreateWithoutUserInput = { createdAt?: Date | string } export type DatabaseBackupUncheckedCreateWithoutUserInput = { id?: number createdAt?: Date | string } export type DatabaseBackupCreateOrConnectWithoutUserInput = { where: DatabaseBackupWhereUniqueInput create: XOR } export type DatabaseBackupCreateManyUserInputEnvelope = { data: DatabaseBackupCreateManyUserInput | DatabaseBackupCreateManyUserInput[] skipDuplicates?: boolean } export type BackupDestinationCreateWithoutUserInput = { path: string isActive?: boolean createdAt?: Date | string } export type BackupDestinationUncheckedCreateWithoutUserInput = { id?: number path: string isActive?: boolean createdAt?: Date | string } export type BackupDestinationCreateOrConnectWithoutUserInput = { where: BackupDestinationWhereUniqueInput create: XOR } export type BackupDestinationCreateManyUserInputEnvelope = { data: BackupDestinationCreateManyUserInput | BackupDestinationCreateManyUserInput[] skipDuplicates?: boolean } export type NotificationCreateWithoutUserInput = { type: $Enums.NotificationTypes message: string createdAt?: Date | string read?: boolean } export type NotificationUncheckedCreateWithoutUserInput = { id?: number type: $Enums.NotificationTypes message: string createdAt?: Date | string read?: boolean } export type NotificationCreateOrConnectWithoutUserInput = { where: NotificationWhereUniqueInput create: XOR } export type NotificationCreateManyUserInputEnvelope = { data: NotificationCreateManyUserInput | NotificationCreateManyUserInput[] skipDuplicates?: boolean } export type CloudFolderCreateWithoutUserInput = { name: string createdAt?: Date | string updatedAt?: Date | string parent?: CloudFolderCreateNestedOneWithoutChildrenInput children?: CloudFolderCreateNestedManyWithoutParentInput files?: CloudFileCreateNestedManyWithoutFolderInput } export type CloudFolderUncheckedCreateWithoutUserInput = { id?: number name: string parentId?: number | null createdAt?: Date | string updatedAt?: Date | string children?: CloudFolderUncheckedCreateNestedManyWithoutParentInput files?: CloudFileUncheckedCreateNestedManyWithoutFolderInput } export type CloudFolderCreateOrConnectWithoutUserInput = { where: CloudFolderWhereUniqueInput create: XOR } export type CloudFolderCreateManyUserInputEnvelope = { data: CloudFolderCreateManyUserInput | CloudFolderCreateManyUserInput[] skipDuplicates?: boolean } export type CloudFileCreateWithoutUserInput = { name: string mimeType?: string | null fileSize: bigint | number isComplete?: boolean totalChunks?: number | null createdAt?: Date | string updatedAt?: Date | string folder?: CloudFolderCreateNestedOneWithoutFilesInput chunks?: CloudFileChunkCreateNestedManyWithoutFileInput } export type CloudFileUncheckedCreateWithoutUserInput = { id?: number name: string mimeType?: string | null fileSize: bigint | number folderId?: number | null isComplete?: boolean totalChunks?: number | null createdAt?: Date | string updatedAt?: Date | string chunks?: CloudFileChunkUncheckedCreateNestedManyWithoutFileInput } export type CloudFileCreateOrConnectWithoutUserInput = { where: CloudFileWhereUniqueInput create: XOR } export type CloudFileCreateManyUserInputEnvelope = { data: CloudFileCreateManyUserInput | CloudFileCreateManyUserInput[] skipDuplicates?: boolean } export type CommunicationCreateWithoutUserInput = { channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string patient: PatientCreateNestedOneWithoutCommunicationsInput } export type CommunicationUncheckedCreateWithoutUserInput = { id?: number patientId: number channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string } export type CommunicationCreateOrConnectWithoutUserInput = { where: CommunicationWhereUniqueInput create: XOR } export type CommunicationCreateManyUserInputEnvelope = { data: CommunicationCreateManyUserInput | CommunicationCreateManyUserInput[] skipDuplicates?: boolean } export type PatientUpsertWithWhereUniqueWithoutUserInput = { where: PatientWhereUniqueInput update: XOR create: XOR } export type PatientUpdateWithWhereUniqueWithoutUserInput = { where: PatientWhereUniqueInput data: XOR } export type PatientUpdateManyWithWhereWithoutUserInput = { where: PatientScalarWhereInput data: XOR } export type PatientScalarWhereInput = { AND?: PatientScalarWhereInput | PatientScalarWhereInput[] OR?: PatientScalarWhereInput[] NOT?: PatientScalarWhereInput | PatientScalarWhereInput[] id?: IntFilter<"Patient"> | number firstName?: StringFilter<"Patient"> | string lastName?: StringFilter<"Patient"> | string dateOfBirth?: DateTimeFilter<"Patient"> | Date | string gender?: StringFilter<"Patient"> | string phone?: StringFilter<"Patient"> | string email?: StringNullableFilter<"Patient"> | string | null address?: StringNullableFilter<"Patient"> | string | null city?: StringNullableFilter<"Patient"> | string | null zipCode?: StringNullableFilter<"Patient"> | string | null insuranceProvider?: StringNullableFilter<"Patient"> | string | null insuranceId?: StringNullableFilter<"Patient"> | string | null groupNumber?: StringNullableFilter<"Patient"> | string | null policyHolder?: StringNullableFilter<"Patient"> | string | null allergies?: StringNullableFilter<"Patient"> | string | null medicalConditions?: StringNullableFilter<"Patient"> | string | null status?: EnumPatientStatusFilter<"Patient"> | $Enums.PatientStatus userId?: IntFilter<"Patient"> | number createdAt?: DateTimeFilter<"Patient"> | Date | string } export type AppointmentUpsertWithWhereUniqueWithoutUserInput = { where: AppointmentWhereUniqueInput update: XOR create: XOR } export type AppointmentUpdateWithWhereUniqueWithoutUserInput = { where: AppointmentWhereUniqueInput data: XOR } export type AppointmentUpdateManyWithWhereWithoutUserInput = { where: AppointmentScalarWhereInput data: XOR } export type AppointmentScalarWhereInput = { AND?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] OR?: AppointmentScalarWhereInput[] NOT?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] id?: IntFilter<"Appointment"> | number patientId?: IntFilter<"Appointment"> | number userId?: IntFilter<"Appointment"> | number staffId?: IntFilter<"Appointment"> | number title?: StringFilter<"Appointment"> | string date?: DateTimeFilter<"Appointment"> | Date | string startTime?: StringFilter<"Appointment"> | string endTime?: StringFilter<"Appointment"> | string type?: StringFilter<"Appointment"> | string notes?: StringNullableFilter<"Appointment"> | string | null procedureCodeNotes?: StringNullableFilter<"Appointment"> | string | null status?: StringFilter<"Appointment"> | string createdAt?: DateTimeFilter<"Appointment"> | Date | string eligibilityStatus?: EnumPatientStatusFilter<"Appointment"> | $Enums.PatientStatus } export type StaffUpsertWithWhereUniqueWithoutUserInput = { where: StaffWhereUniqueInput update: XOR create: XOR } export type StaffUpdateWithWhereUniqueWithoutUserInput = { where: StaffWhereUniqueInput data: XOR } export type StaffUpdateManyWithWhereWithoutUserInput = { where: StaffScalarWhereInput data: XOR } export type StaffScalarWhereInput = { AND?: StaffScalarWhereInput | StaffScalarWhereInput[] OR?: StaffScalarWhereInput[] NOT?: StaffScalarWhereInput | StaffScalarWhereInput[] id?: IntFilter<"Staff"> | number userId?: IntFilter<"Staff"> | number name?: StringFilter<"Staff"> | string email?: StringNullableFilter<"Staff"> | string | null role?: StringFilter<"Staff"> | string phone?: StringNullableFilter<"Staff"> | string | null createdAt?: DateTimeFilter<"Staff"> | Date | string } export type NpiProviderUpsertWithWhereUniqueWithoutUserInput = { where: NpiProviderWhereUniqueInput update: XOR create: XOR } export type NpiProviderUpdateWithWhereUniqueWithoutUserInput = { where: NpiProviderWhereUniqueInput data: XOR } export type NpiProviderUpdateManyWithWhereWithoutUserInput = { where: NpiProviderScalarWhereInput data: XOR } export type NpiProviderScalarWhereInput = { AND?: NpiProviderScalarWhereInput | NpiProviderScalarWhereInput[] OR?: NpiProviderScalarWhereInput[] NOT?: NpiProviderScalarWhereInput | NpiProviderScalarWhereInput[] id?: IntFilter<"NpiProvider"> | number userId?: IntFilter<"NpiProvider"> | number npiNumber?: StringFilter<"NpiProvider"> | string providerName?: StringFilter<"NpiProvider"> | string createdAt?: DateTimeFilter<"NpiProvider"> | Date | string } export type ClaimUpsertWithWhereUniqueWithoutUserInput = { where: ClaimWhereUniqueInput update: XOR create: XOR } export type ClaimUpdateWithWhereUniqueWithoutUserInput = { where: ClaimWhereUniqueInput data: XOR } export type ClaimUpdateManyWithWhereWithoutUserInput = { where: ClaimScalarWhereInput data: XOR } export type ClaimScalarWhereInput = { AND?: ClaimScalarWhereInput | ClaimScalarWhereInput[] OR?: ClaimScalarWhereInput[] NOT?: ClaimScalarWhereInput | ClaimScalarWhereInput[] id?: IntFilter<"Claim"> | number patientId?: IntFilter<"Claim"> | number appointmentId?: IntFilter<"Claim"> | number userId?: IntFilter<"Claim"> | number staffId?: IntFilter<"Claim"> | number patientName?: StringFilter<"Claim"> | string memberId?: StringFilter<"Claim"> | string dateOfBirth?: DateTimeFilter<"Claim"> | Date | string remarks?: StringFilter<"Claim"> | string missingTeethStatus?: EnumMissingTeethStatusFilter<"Claim"> | $Enums.MissingTeethStatus missingTeeth?: JsonNullableFilter<"Claim"> serviceDate?: DateTimeFilter<"Claim"> | Date | string insuranceProvider?: StringFilter<"Claim"> | string createdAt?: DateTimeFilter<"Claim"> | Date | string updatedAt?: DateTimeFilter<"Claim"> | Date | string status?: EnumClaimStatusFilter<"Claim"> | $Enums.ClaimStatus claimNumber?: StringNullableFilter<"Claim"> | string | null } export type InsuranceCredentialUpsertWithWhereUniqueWithoutUserInput = { where: InsuranceCredentialWhereUniqueInput update: XOR create: XOR } export type InsuranceCredentialUpdateWithWhereUniqueWithoutUserInput = { where: InsuranceCredentialWhereUniqueInput data: XOR } export type InsuranceCredentialUpdateManyWithWhereWithoutUserInput = { where: InsuranceCredentialScalarWhereInput data: XOR } export type InsuranceCredentialScalarWhereInput = { AND?: InsuranceCredentialScalarWhereInput | InsuranceCredentialScalarWhereInput[] OR?: InsuranceCredentialScalarWhereInput[] NOT?: InsuranceCredentialScalarWhereInput | InsuranceCredentialScalarWhereInput[] id?: IntFilter<"InsuranceCredential"> | number userId?: IntFilter<"InsuranceCredential"> | number siteKey?: StringFilter<"InsuranceCredential"> | string username?: StringFilter<"InsuranceCredential"> | string password?: StringFilter<"InsuranceCredential"> | string } export type PaymentUpsertWithWhereUniqueWithoutUpdatedByInput = { where: PaymentWhereUniqueInput update: XOR create: XOR } export type PaymentUpdateWithWhereUniqueWithoutUpdatedByInput = { where: PaymentWhereUniqueInput data: XOR } export type PaymentUpdateManyWithWhereWithoutUpdatedByInput = { where: PaymentScalarWhereInput data: XOR } export type PaymentScalarWhereInput = { AND?: PaymentScalarWhereInput | PaymentScalarWhereInput[] OR?: PaymentScalarWhereInput[] NOT?: PaymentScalarWhereInput | PaymentScalarWhereInput[] id?: IntFilter<"Payment"> | number claimId?: IntNullableFilter<"Payment"> | number | null patientId?: IntFilter<"Payment"> | number userId?: IntFilter<"Payment"> | number updatedById?: IntNullableFilter<"Payment"> | number | null totalBilled?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFilter<"Payment"> | $Enums.PaymentStatus notes?: StringNullableFilter<"Payment"> | string | null icn?: StringNullableFilter<"Payment"> | string | null createdAt?: DateTimeFilter<"Payment"> | Date | string updatedAt?: DateTimeFilter<"Payment"> | Date | string } export type DatabaseBackupUpsertWithWhereUniqueWithoutUserInput = { where: DatabaseBackupWhereUniqueInput update: XOR create: XOR } export type DatabaseBackupUpdateWithWhereUniqueWithoutUserInput = { where: DatabaseBackupWhereUniqueInput data: XOR } export type DatabaseBackupUpdateManyWithWhereWithoutUserInput = { where: DatabaseBackupScalarWhereInput data: XOR } export type DatabaseBackupScalarWhereInput = { AND?: DatabaseBackupScalarWhereInput | DatabaseBackupScalarWhereInput[] OR?: DatabaseBackupScalarWhereInput[] NOT?: DatabaseBackupScalarWhereInput | DatabaseBackupScalarWhereInput[] id?: IntFilter<"DatabaseBackup"> | number userId?: IntFilter<"DatabaseBackup"> | number createdAt?: DateTimeFilter<"DatabaseBackup"> | Date | string } export type BackupDestinationUpsertWithWhereUniqueWithoutUserInput = { where: BackupDestinationWhereUniqueInput update: XOR create: XOR } export type BackupDestinationUpdateWithWhereUniqueWithoutUserInput = { where: BackupDestinationWhereUniqueInput data: XOR } export type BackupDestinationUpdateManyWithWhereWithoutUserInput = { where: BackupDestinationScalarWhereInput data: XOR } export type BackupDestinationScalarWhereInput = { AND?: BackupDestinationScalarWhereInput | BackupDestinationScalarWhereInput[] OR?: BackupDestinationScalarWhereInput[] NOT?: BackupDestinationScalarWhereInput | BackupDestinationScalarWhereInput[] id?: IntFilter<"BackupDestination"> | number userId?: IntFilter<"BackupDestination"> | number path?: StringFilter<"BackupDestination"> | string isActive?: BoolFilter<"BackupDestination"> | boolean createdAt?: DateTimeFilter<"BackupDestination"> | Date | string } export type NotificationUpsertWithWhereUniqueWithoutUserInput = { where: NotificationWhereUniqueInput update: XOR create: XOR } export type NotificationUpdateWithWhereUniqueWithoutUserInput = { where: NotificationWhereUniqueInput data: XOR } export type NotificationUpdateManyWithWhereWithoutUserInput = { where: NotificationScalarWhereInput data: XOR } export type NotificationScalarWhereInput = { AND?: NotificationScalarWhereInput | NotificationScalarWhereInput[] OR?: NotificationScalarWhereInput[] NOT?: NotificationScalarWhereInput | NotificationScalarWhereInput[] id?: IntFilter<"Notification"> | number userId?: IntFilter<"Notification"> | number type?: EnumNotificationTypesFilter<"Notification"> | $Enums.NotificationTypes message?: StringFilter<"Notification"> | string createdAt?: DateTimeFilter<"Notification"> | Date | string read?: BoolFilter<"Notification"> | boolean } export type CloudFolderUpsertWithWhereUniqueWithoutUserInput = { where: CloudFolderWhereUniqueInput update: XOR create: XOR } export type CloudFolderUpdateWithWhereUniqueWithoutUserInput = { where: CloudFolderWhereUniqueInput data: XOR } export type CloudFolderUpdateManyWithWhereWithoutUserInput = { where: CloudFolderScalarWhereInput data: XOR } export type CloudFolderScalarWhereInput = { AND?: CloudFolderScalarWhereInput | CloudFolderScalarWhereInput[] OR?: CloudFolderScalarWhereInput[] NOT?: CloudFolderScalarWhereInput | CloudFolderScalarWhereInput[] id?: IntFilter<"CloudFolder"> | number userId?: IntFilter<"CloudFolder"> | number name?: StringFilter<"CloudFolder"> | string parentId?: IntNullableFilter<"CloudFolder"> | number | null createdAt?: DateTimeFilter<"CloudFolder"> | Date | string updatedAt?: DateTimeFilter<"CloudFolder"> | Date | string } export type CloudFileUpsertWithWhereUniqueWithoutUserInput = { where: CloudFileWhereUniqueInput update: XOR create: XOR } export type CloudFileUpdateWithWhereUniqueWithoutUserInput = { where: CloudFileWhereUniqueInput data: XOR } export type CloudFileUpdateManyWithWhereWithoutUserInput = { where: CloudFileScalarWhereInput data: XOR } export type CloudFileScalarWhereInput = { AND?: CloudFileScalarWhereInput | CloudFileScalarWhereInput[] OR?: CloudFileScalarWhereInput[] NOT?: CloudFileScalarWhereInput | CloudFileScalarWhereInput[] id?: IntFilter<"CloudFile"> | number userId?: IntFilter<"CloudFile"> | number name?: StringFilter<"CloudFile"> | string mimeType?: StringNullableFilter<"CloudFile"> | string | null fileSize?: BigIntFilter<"CloudFile"> | bigint | number folderId?: IntNullableFilter<"CloudFile"> | number | null isComplete?: BoolFilter<"CloudFile"> | boolean totalChunks?: IntNullableFilter<"CloudFile"> | number | null createdAt?: DateTimeFilter<"CloudFile"> | Date | string updatedAt?: DateTimeFilter<"CloudFile"> | Date | string } export type CommunicationUpsertWithWhereUniqueWithoutUserInput = { where: CommunicationWhereUniqueInput update: XOR create: XOR } export type CommunicationUpdateWithWhereUniqueWithoutUserInput = { where: CommunicationWhereUniqueInput data: XOR } export type CommunicationUpdateManyWithWhereWithoutUserInput = { where: CommunicationScalarWhereInput data: XOR } export type CommunicationScalarWhereInput = { AND?: CommunicationScalarWhereInput | CommunicationScalarWhereInput[] OR?: CommunicationScalarWhereInput[] NOT?: CommunicationScalarWhereInput | CommunicationScalarWhereInput[] id?: IntFilter<"Communication"> | number patientId?: IntFilter<"Communication"> | number userId?: IntNullableFilter<"Communication"> | number | null channel?: EnumCommunicationChannelFilter<"Communication"> | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFilter<"Communication"> | $Enums.CommunicationDirection status?: EnumCommunicationStatusFilter<"Communication"> | $Enums.CommunicationStatus body?: StringNullableFilter<"Communication"> | string | null callDuration?: IntNullableFilter<"Communication"> | number | null twilioSid?: StringNullableFilter<"Communication"> | string | null createdAt?: DateTimeFilter<"Communication"> | Date | string } export type UserCreateWithoutPatientsInput = { username: string password: string appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutPatientsInput = { id?: number username: string password: string appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutPatientsInput = { where: UserWhereUniqueInput create: XOR } export type AppointmentCreateWithoutPatientInput = { title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus user: UserCreateNestedOneWithoutAppointmentsInput staff?: StaffCreateNestedOneWithoutAppointmentsInput procedures?: AppointmentProcedureCreateNestedManyWithoutAppointmentInput claims?: ClaimCreateNestedManyWithoutAppointmentInput } export type AppointmentUncheckedCreateWithoutPatientInput = { id?: number userId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutAppointmentInput claims?: ClaimUncheckedCreateNestedManyWithoutAppointmentInput } export type AppointmentCreateOrConnectWithoutPatientInput = { where: AppointmentWhereUniqueInput create: XOR } export type AppointmentCreateManyPatientInputEnvelope = { data: AppointmentCreateManyPatientInput | AppointmentCreateManyPatientInput[] skipDuplicates?: boolean } export type AppointmentProcedureCreateWithoutPatientInput = { procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string appointment: AppointmentCreateNestedOneWithoutProceduresInput } export type AppointmentProcedureUncheckedCreateWithoutPatientInput = { id?: number appointmentId: number procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string } export type AppointmentProcedureCreateOrConnectWithoutPatientInput = { where: AppointmentProcedureWhereUniqueInput create: XOR } export type AppointmentProcedureCreateManyPatientInputEnvelope = { data: AppointmentProcedureCreateManyPatientInput | AppointmentProcedureCreateManyPatientInput[] skipDuplicates?: boolean } export type ClaimCreateWithoutPatientInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null appointment: AppointmentCreateNestedOneWithoutClaimsInput user?: UserCreateNestedOneWithoutClaimsInput staff?: StaffCreateNestedOneWithoutClaimsInput serviceLines?: ServiceLineCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileCreateNestedManyWithoutClaimInput payment?: PaymentCreateNestedOneWithoutClaimInput } export type ClaimUncheckedCreateWithoutPatientInput = { id?: number appointmentId: number userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileUncheckedCreateNestedManyWithoutClaimInput payment?: PaymentUncheckedCreateNestedOneWithoutClaimInput } export type ClaimCreateOrConnectWithoutPatientInput = { where: ClaimWhereUniqueInput create: XOR } export type ClaimCreateManyPatientInputEnvelope = { data: ClaimCreateManyPatientInput | ClaimCreateManyPatientInput[] skipDuplicates?: boolean } export type PdfGroupCreateWithoutPatientInput = { title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string pdfs?: PdfFileCreateNestedManyWithoutGroupInput } export type PdfGroupUncheckedCreateWithoutPatientInput = { id?: number title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string pdfs?: PdfFileUncheckedCreateNestedManyWithoutGroupInput } export type PdfGroupCreateOrConnectWithoutPatientInput = { where: PdfGroupWhereUniqueInput create: XOR } export type PdfGroupCreateManyPatientInputEnvelope = { data: PdfGroupCreateManyPatientInput | PdfGroupCreateManyPatientInput[] skipDuplicates?: boolean } export type PaymentCreateWithoutPatientInput = { userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string claim?: ClaimCreateNestedOneWithoutPaymentInput updatedBy?: UserCreateNestedOneWithoutUpdatedPaymentsInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineCreateNestedManyWithoutPaymentInput } export type PaymentUncheckedCreateWithoutPatientInput = { id?: number claimId?: number | null userId: number updatedById?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutPaymentInput } export type PaymentCreateOrConnectWithoutPatientInput = { where: PaymentWhereUniqueInput create: XOR } export type PaymentCreateManyPatientInputEnvelope = { data: PaymentCreateManyPatientInput | PaymentCreateManyPatientInput[] skipDuplicates?: boolean } export type CommunicationCreateWithoutPatientInput = { channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string user?: UserCreateNestedOneWithoutCommunicationsInput } export type CommunicationUncheckedCreateWithoutPatientInput = { id?: number userId?: number | null channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string } export type CommunicationCreateOrConnectWithoutPatientInput = { where: CommunicationWhereUniqueInput create: XOR } export type CommunicationCreateManyPatientInputEnvelope = { data: CommunicationCreateManyPatientInput | CommunicationCreateManyPatientInput[] skipDuplicates?: boolean } export type PatientDocumentCreateWithoutPatientInput = { filename: string originalName: string mimeType: string fileSize: bigint | number filePath: string uploadedAt?: Date | string updatedAt?: Date | string } export type PatientDocumentUncheckedCreateWithoutPatientInput = { id?: number filename: string originalName: string mimeType: string fileSize: bigint | number filePath: string uploadedAt?: Date | string updatedAt?: Date | string } export type PatientDocumentCreateOrConnectWithoutPatientInput = { where: PatientDocumentWhereUniqueInput create: XOR } export type PatientDocumentCreateManyPatientInputEnvelope = { data: PatientDocumentCreateManyPatientInput | PatientDocumentCreateManyPatientInput[] skipDuplicates?: boolean } export type UserUpsertWithoutPatientsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutPatientsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutPatientsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutPatientsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput } export type AppointmentUpsertWithWhereUniqueWithoutPatientInput = { where: AppointmentWhereUniqueInput update: XOR create: XOR } export type AppointmentUpdateWithWhereUniqueWithoutPatientInput = { where: AppointmentWhereUniqueInput data: XOR } export type AppointmentUpdateManyWithWhereWithoutPatientInput = { where: AppointmentScalarWhereInput data: XOR } export type AppointmentProcedureUpsertWithWhereUniqueWithoutPatientInput = { where: AppointmentProcedureWhereUniqueInput update: XOR create: XOR } export type AppointmentProcedureUpdateWithWhereUniqueWithoutPatientInput = { where: AppointmentProcedureWhereUniqueInput data: XOR } export type AppointmentProcedureUpdateManyWithWhereWithoutPatientInput = { where: AppointmentProcedureScalarWhereInput data: XOR } export type AppointmentProcedureScalarWhereInput = { AND?: AppointmentProcedureScalarWhereInput | AppointmentProcedureScalarWhereInput[] OR?: AppointmentProcedureScalarWhereInput[] NOT?: AppointmentProcedureScalarWhereInput | AppointmentProcedureScalarWhereInput[] id?: IntFilter<"AppointmentProcedure"> | number appointmentId?: IntFilter<"AppointmentProcedure"> | number patientId?: IntFilter<"AppointmentProcedure"> | number procedureCode?: StringFilter<"AppointmentProcedure"> | string procedureLabel?: StringNullableFilter<"AppointmentProcedure"> | string | null fee?: DecimalNullableFilter<"AppointmentProcedure"> | Decimal | DecimalJsLike | number | string | null category?: StringNullableFilter<"AppointmentProcedure"> | string | null toothNumber?: StringNullableFilter<"AppointmentProcedure"> | string | null toothSurface?: StringNullableFilter<"AppointmentProcedure"> | string | null oralCavityArea?: StringNullableFilter<"AppointmentProcedure"> | string | null source?: EnumProcedureSourceFilter<"AppointmentProcedure"> | $Enums.ProcedureSource comboKey?: StringNullableFilter<"AppointmentProcedure"> | string | null createdAt?: DateTimeFilter<"AppointmentProcedure"> | Date | string } export type ClaimUpsertWithWhereUniqueWithoutPatientInput = { where: ClaimWhereUniqueInput update: XOR create: XOR } export type ClaimUpdateWithWhereUniqueWithoutPatientInput = { where: ClaimWhereUniqueInput data: XOR } export type ClaimUpdateManyWithWhereWithoutPatientInput = { where: ClaimScalarWhereInput data: XOR } export type PdfGroupUpsertWithWhereUniqueWithoutPatientInput = { where: PdfGroupWhereUniqueInput update: XOR create: XOR } export type PdfGroupUpdateWithWhereUniqueWithoutPatientInput = { where: PdfGroupWhereUniqueInput data: XOR } export type PdfGroupUpdateManyWithWhereWithoutPatientInput = { where: PdfGroupScalarWhereInput data: XOR } export type PdfGroupScalarWhereInput = { AND?: PdfGroupScalarWhereInput | PdfGroupScalarWhereInput[] OR?: PdfGroupScalarWhereInput[] NOT?: PdfGroupScalarWhereInput | PdfGroupScalarWhereInput[] id?: IntFilter<"PdfGroup"> | number title?: StringFilter<"PdfGroup"> | string titleKey?: EnumPdfTitleKeyFilter<"PdfGroup"> | $Enums.PdfTitleKey createdAt?: DateTimeFilter<"PdfGroup"> | Date | string patientId?: IntFilter<"PdfGroup"> | number } export type PaymentUpsertWithWhereUniqueWithoutPatientInput = { where: PaymentWhereUniqueInput update: XOR create: XOR } export type PaymentUpdateWithWhereUniqueWithoutPatientInput = { where: PaymentWhereUniqueInput data: XOR } export type PaymentUpdateManyWithWhereWithoutPatientInput = { where: PaymentScalarWhereInput data: XOR } export type CommunicationUpsertWithWhereUniqueWithoutPatientInput = { where: CommunicationWhereUniqueInput update: XOR create: XOR } export type CommunicationUpdateWithWhereUniqueWithoutPatientInput = { where: CommunicationWhereUniqueInput data: XOR } export type CommunicationUpdateManyWithWhereWithoutPatientInput = { where: CommunicationScalarWhereInput data: XOR } export type PatientDocumentUpsertWithWhereUniqueWithoutPatientInput = { where: PatientDocumentWhereUniqueInput update: XOR create: XOR } export type PatientDocumentUpdateWithWhereUniqueWithoutPatientInput = { where: PatientDocumentWhereUniqueInput data: XOR } export type PatientDocumentUpdateManyWithWhereWithoutPatientInput = { where: PatientDocumentScalarWhereInput data: XOR } export type PatientDocumentScalarWhereInput = { AND?: PatientDocumentScalarWhereInput | PatientDocumentScalarWhereInput[] OR?: PatientDocumentScalarWhereInput[] NOT?: PatientDocumentScalarWhereInput | PatientDocumentScalarWhereInput[] id?: IntFilter<"PatientDocument"> | number patientId?: IntFilter<"PatientDocument"> | number filename?: StringFilter<"PatientDocument"> | string originalName?: StringFilter<"PatientDocument"> | string mimeType?: StringFilter<"PatientDocument"> | string fileSize?: BigIntFilter<"PatientDocument"> | bigint | number filePath?: StringFilter<"PatientDocument"> | string uploadedAt?: DateTimeFilter<"PatientDocument"> | Date | string updatedAt?: DateTimeFilter<"PatientDocument"> | Date | string } export type PatientCreateWithoutAppointmentsInput = { firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus createdAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput } export type PatientUncheckedCreateWithoutAppointmentsInput = { id?: number firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput } export type PatientCreateOrConnectWithoutAppointmentsInput = { where: PatientWhereUniqueInput create: XOR } export type UserCreateWithoutAppointmentsInput = { username: string password: string patients?: PatientCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutAppointmentsInput = { id?: number username: string password: string patients?: PatientUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutAppointmentsInput = { where: UserWhereUniqueInput create: XOR } export type StaffCreateWithoutAppointmentsInput = { name: string email?: string | null role: string phone?: string | null createdAt?: Date | string user?: UserCreateNestedOneWithoutStaffInput claims?: ClaimCreateNestedManyWithoutStaffInput } export type StaffUncheckedCreateWithoutAppointmentsInput = { id?: number userId: number name: string email?: string | null role: string phone?: string | null createdAt?: Date | string claims?: ClaimUncheckedCreateNestedManyWithoutStaffInput } export type StaffCreateOrConnectWithoutAppointmentsInput = { where: StaffWhereUniqueInput create: XOR } export type AppointmentProcedureCreateWithoutAppointmentInput = { procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string patient: PatientCreateNestedOneWithoutProceduresInput } export type AppointmentProcedureUncheckedCreateWithoutAppointmentInput = { id?: number patientId: number procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string } export type AppointmentProcedureCreateOrConnectWithoutAppointmentInput = { where: AppointmentProcedureWhereUniqueInput create: XOR } export type AppointmentProcedureCreateManyAppointmentInputEnvelope = { data: AppointmentProcedureCreateManyAppointmentInput | AppointmentProcedureCreateManyAppointmentInput[] skipDuplicates?: boolean } export type ClaimCreateWithoutAppointmentInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null patient: PatientCreateNestedOneWithoutClaimsInput user?: UserCreateNestedOneWithoutClaimsInput staff?: StaffCreateNestedOneWithoutClaimsInput serviceLines?: ServiceLineCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileCreateNestedManyWithoutClaimInput payment?: PaymentCreateNestedOneWithoutClaimInput } export type ClaimUncheckedCreateWithoutAppointmentInput = { id?: number patientId: number userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileUncheckedCreateNestedManyWithoutClaimInput payment?: PaymentUncheckedCreateNestedOneWithoutClaimInput } export type ClaimCreateOrConnectWithoutAppointmentInput = { where: ClaimWhereUniqueInput create: XOR } export type ClaimCreateManyAppointmentInputEnvelope = { data: ClaimCreateManyAppointmentInput | ClaimCreateManyAppointmentInput[] skipDuplicates?: boolean } export type PatientUpsertWithoutAppointmentsInput = { update: XOR create: XOR where?: PatientWhereInput } export type PatientUpdateToOneWithWhereWithoutAppointmentsInput = { where?: PatientWhereInput data: XOR } export type PatientUpdateWithoutAppointmentsInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutAppointmentsInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput } export type UserUpsertWithoutAppointmentsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutAppointmentsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutAppointmentsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutAppointmentsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput } export type StaffUpsertWithoutAppointmentsInput = { update: XOR create: XOR where?: StaffWhereInput } export type StaffUpdateToOneWithWhereWithoutAppointmentsInput = { where?: StaffWhereInput data: XOR } export type StaffUpdateWithoutAppointmentsInput = { name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutStaffNestedInput claims?: ClaimUpdateManyWithoutStaffNestedInput } export type StaffUncheckedUpdateWithoutAppointmentsInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string claims?: ClaimUncheckedUpdateManyWithoutStaffNestedInput } export type AppointmentProcedureUpsertWithWhereUniqueWithoutAppointmentInput = { where: AppointmentProcedureWhereUniqueInput update: XOR create: XOR } export type AppointmentProcedureUpdateWithWhereUniqueWithoutAppointmentInput = { where: AppointmentProcedureWhereUniqueInput data: XOR } export type AppointmentProcedureUpdateManyWithWhereWithoutAppointmentInput = { where: AppointmentProcedureScalarWhereInput data: XOR } export type ClaimUpsertWithWhereUniqueWithoutAppointmentInput = { where: ClaimWhereUniqueInput update: XOR create: XOR } export type ClaimUpdateWithWhereUniqueWithoutAppointmentInput = { where: ClaimWhereUniqueInput data: XOR } export type ClaimUpdateManyWithWhereWithoutAppointmentInput = { where: ClaimScalarWhereInput data: XOR } export type UserCreateWithoutStaffInput = { username: string password: string patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutStaffInput = { id?: number username: string password: string patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutStaffInput = { where: UserWhereUniqueInput create: XOR } export type AppointmentCreateWithoutStaffInput = { title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus patient: PatientCreateNestedOneWithoutAppointmentsInput user: UserCreateNestedOneWithoutAppointmentsInput procedures?: AppointmentProcedureCreateNestedManyWithoutAppointmentInput claims?: ClaimCreateNestedManyWithoutAppointmentInput } export type AppointmentUncheckedCreateWithoutStaffInput = { id?: number patientId: number userId: number title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutAppointmentInput claims?: ClaimUncheckedCreateNestedManyWithoutAppointmentInput } export type AppointmentCreateOrConnectWithoutStaffInput = { where: AppointmentWhereUniqueInput create: XOR } export type AppointmentCreateManyStaffInputEnvelope = { data: AppointmentCreateManyStaffInput | AppointmentCreateManyStaffInput[] skipDuplicates?: boolean } export type ClaimCreateWithoutStaffInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null patient: PatientCreateNestedOneWithoutClaimsInput appointment: AppointmentCreateNestedOneWithoutClaimsInput user?: UserCreateNestedOneWithoutClaimsInput serviceLines?: ServiceLineCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileCreateNestedManyWithoutClaimInput payment?: PaymentCreateNestedOneWithoutClaimInput } export type ClaimUncheckedCreateWithoutStaffInput = { id?: number patientId: number appointmentId: number userId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileUncheckedCreateNestedManyWithoutClaimInput payment?: PaymentUncheckedCreateNestedOneWithoutClaimInput } export type ClaimCreateOrConnectWithoutStaffInput = { where: ClaimWhereUniqueInput create: XOR } export type ClaimCreateManyStaffInputEnvelope = { data: ClaimCreateManyStaffInput | ClaimCreateManyStaffInput[] skipDuplicates?: boolean } export type UserUpsertWithoutStaffInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutStaffInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutStaffInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutStaffInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput } export type AppointmentUpsertWithWhereUniqueWithoutStaffInput = { where: AppointmentWhereUniqueInput update: XOR create: XOR } export type AppointmentUpdateWithWhereUniqueWithoutStaffInput = { where: AppointmentWhereUniqueInput data: XOR } export type AppointmentUpdateManyWithWhereWithoutStaffInput = { where: AppointmentScalarWhereInput data: XOR } export type ClaimUpsertWithWhereUniqueWithoutStaffInput = { where: ClaimWhereUniqueInput update: XOR create: XOR } export type ClaimUpdateWithWhereUniqueWithoutStaffInput = { where: ClaimWhereUniqueInput data: XOR } export type ClaimUpdateManyWithWhereWithoutStaffInput = { where: ClaimScalarWhereInput data: XOR } export type UserCreateWithoutNpiProvidersInput = { username: string password: string patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutNpiProvidersInput = { id?: number username: string password: string patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutNpiProvidersInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutNpiProvidersInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutNpiProvidersInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutNpiProvidersInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutNpiProvidersInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput } export type AppointmentCreateWithoutProceduresInput = { title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus patient: PatientCreateNestedOneWithoutAppointmentsInput user: UserCreateNestedOneWithoutAppointmentsInput staff?: StaffCreateNestedOneWithoutAppointmentsInput claims?: ClaimCreateNestedManyWithoutAppointmentInput } export type AppointmentUncheckedCreateWithoutProceduresInput = { id?: number patientId: number userId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus claims?: ClaimUncheckedCreateNestedManyWithoutAppointmentInput } export type AppointmentCreateOrConnectWithoutProceduresInput = { where: AppointmentWhereUniqueInput create: XOR } export type PatientCreateWithoutProceduresInput = { firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus createdAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput appointments?: AppointmentCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput } export type PatientUncheckedCreateWithoutProceduresInput = { id?: number firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput } export type PatientCreateOrConnectWithoutProceduresInput = { where: PatientWhereUniqueInput create: XOR } export type AppointmentUpsertWithoutProceduresInput = { update: XOR create: XOR where?: AppointmentWhereInput } export type AppointmentUpdateToOneWithWhereWithoutProceduresInput = { where?: AppointmentWhereInput data: XOR } export type AppointmentUpdateWithoutProceduresInput = { title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus patient?: PatientUpdateOneRequiredWithoutAppointmentsNestedInput user?: UserUpdateOneRequiredWithoutAppointmentsNestedInput staff?: StaffUpdateOneWithoutAppointmentsNestedInput claims?: ClaimUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateWithoutProceduresInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus claims?: ClaimUncheckedUpdateManyWithoutAppointmentNestedInput } export type PatientUpsertWithoutProceduresInput = { update: XOR create: XOR where?: PatientWhereInput } export type PatientUpdateToOneWithWhereWithoutProceduresInput = { where?: PatientWhereInput data: XOR } export type PatientUpdateWithoutProceduresInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput appointments?: AppointmentUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutProceduresInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput } export type PatientCreateWithoutClaimsInput = { firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus createdAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput appointments?: AppointmentCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput } export type PatientUncheckedCreateWithoutClaimsInput = { id?: number firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput } export type PatientCreateOrConnectWithoutClaimsInput = { where: PatientWhereUniqueInput create: XOR } export type AppointmentCreateWithoutClaimsInput = { title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus patient: PatientCreateNestedOneWithoutAppointmentsInput user: UserCreateNestedOneWithoutAppointmentsInput staff?: StaffCreateNestedOneWithoutAppointmentsInput procedures?: AppointmentProcedureCreateNestedManyWithoutAppointmentInput } export type AppointmentUncheckedCreateWithoutClaimsInput = { id?: number patientId: number userId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutAppointmentInput } export type AppointmentCreateOrConnectWithoutClaimsInput = { where: AppointmentWhereUniqueInput create: XOR } export type UserCreateWithoutClaimsInput = { username: string password: string patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutClaimsInput = { id?: number username: string password: string patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutClaimsInput = { where: UserWhereUniqueInput create: XOR } export type StaffCreateWithoutClaimsInput = { name: string email?: string | null role: string phone?: string | null createdAt?: Date | string user?: UserCreateNestedOneWithoutStaffInput appointments?: AppointmentCreateNestedManyWithoutStaffInput } export type StaffUncheckedCreateWithoutClaimsInput = { id?: number userId: number name: string email?: string | null role: string phone?: string | null createdAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutStaffInput } export type StaffCreateOrConnectWithoutClaimsInput = { where: StaffWhereUniqueInput create: XOR } export type ServiceLineCreateWithoutClaimInput = { procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus payment?: PaymentCreateNestedOneWithoutServiceLinesInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutServiceLineInput } export type ServiceLineUncheckedCreateWithoutClaimInput = { id?: number paymentId?: number | null procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutServiceLineInput } export type ServiceLineCreateOrConnectWithoutClaimInput = { where: ServiceLineWhereUniqueInput create: XOR } export type ServiceLineCreateManyClaimInputEnvelope = { data: ServiceLineCreateManyClaimInput | ServiceLineCreateManyClaimInput[] skipDuplicates?: boolean } export type ClaimFileCreateWithoutClaimInput = { filename: string mimeType: string } export type ClaimFileUncheckedCreateWithoutClaimInput = { id?: number filename: string mimeType: string } export type ClaimFileCreateOrConnectWithoutClaimInput = { where: ClaimFileWhereUniqueInput create: XOR } export type ClaimFileCreateManyClaimInputEnvelope = { data: ClaimFileCreateManyClaimInput | ClaimFileCreateManyClaimInput[] skipDuplicates?: boolean } export type PaymentCreateWithoutClaimInput = { userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string patient: PatientCreateNestedOneWithoutPaymentInput updatedBy?: UserCreateNestedOneWithoutUpdatedPaymentsInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineCreateNestedManyWithoutPaymentInput } export type PaymentUncheckedCreateWithoutClaimInput = { id?: number patientId: number userId: number updatedById?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutPaymentInput } export type PaymentCreateOrConnectWithoutClaimInput = { where: PaymentWhereUniqueInput create: XOR } export type PatientUpsertWithoutClaimsInput = { update: XOR create: XOR where?: PatientWhereInput } export type PatientUpdateToOneWithWhereWithoutClaimsInput = { where?: PatientWhereInput data: XOR } export type PatientUpdateWithoutClaimsInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput appointments?: AppointmentUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutClaimsInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput } export type AppointmentUpsertWithoutClaimsInput = { update: XOR create: XOR where?: AppointmentWhereInput } export type AppointmentUpdateToOneWithWhereWithoutClaimsInput = { where?: AppointmentWhereInput data: XOR } export type AppointmentUpdateWithoutClaimsInput = { title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus patient?: PatientUpdateOneRequiredWithoutAppointmentsNestedInput user?: UserUpdateOneRequiredWithoutAppointmentsNestedInput staff?: StaffUpdateOneWithoutAppointmentsNestedInput procedures?: AppointmentProcedureUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateWithoutClaimsInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput } export type UserUpsertWithoutClaimsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutClaimsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutClaimsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutClaimsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput } export type StaffUpsertWithoutClaimsInput = { update: XOR create: XOR where?: StaffWhereInput } export type StaffUpdateToOneWithWhereWithoutClaimsInput = { where?: StaffWhereInput data: XOR } export type StaffUpdateWithoutClaimsInput = { name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutStaffNestedInput appointments?: AppointmentUpdateManyWithoutStaffNestedInput } export type StaffUncheckedUpdateWithoutClaimsInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutStaffNestedInput } export type ServiceLineUpsertWithWhereUniqueWithoutClaimInput = { where: ServiceLineWhereUniqueInput update: XOR create: XOR } export type ServiceLineUpdateWithWhereUniqueWithoutClaimInput = { where: ServiceLineWhereUniqueInput data: XOR } export type ServiceLineUpdateManyWithWhereWithoutClaimInput = { where: ServiceLineScalarWhereInput data: XOR } export type ServiceLineScalarWhereInput = { AND?: ServiceLineScalarWhereInput | ServiceLineScalarWhereInput[] OR?: ServiceLineScalarWhereInput[] NOT?: ServiceLineScalarWhereInput | ServiceLineScalarWhereInput[] id?: IntFilter<"ServiceLine"> | number claimId?: IntNullableFilter<"ServiceLine"> | number | null paymentId?: IntNullableFilter<"ServiceLine"> | number | null procedureCode?: StringFilter<"ServiceLine"> | string procedureDate?: DateTimeFilter<"ServiceLine"> | Date | string quad?: StringNullableFilter<"ServiceLine"> | string | null arch?: StringNullableFilter<"ServiceLine"> | string | null toothNumber?: StringNullableFilter<"ServiceLine"> | string | null toothSurface?: StringNullableFilter<"ServiceLine"> | string | null totalBilled?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFilter<"ServiceLine"> | $Enums.ServiceLineStatus } export type ClaimFileUpsertWithWhereUniqueWithoutClaimInput = { where: ClaimFileWhereUniqueInput update: XOR create: XOR } export type ClaimFileUpdateWithWhereUniqueWithoutClaimInput = { where: ClaimFileWhereUniqueInput data: XOR } export type ClaimFileUpdateManyWithWhereWithoutClaimInput = { where: ClaimFileScalarWhereInput data: XOR } export type ClaimFileScalarWhereInput = { AND?: ClaimFileScalarWhereInput | ClaimFileScalarWhereInput[] OR?: ClaimFileScalarWhereInput[] NOT?: ClaimFileScalarWhereInput | ClaimFileScalarWhereInput[] id?: IntFilter<"ClaimFile"> | number claimId?: IntFilter<"ClaimFile"> | number filename?: StringFilter<"ClaimFile"> | string mimeType?: StringFilter<"ClaimFile"> | string } export type PaymentUpsertWithoutClaimInput = { update: XOR create: XOR where?: PaymentWhereInput } export type PaymentUpdateToOneWithWhereWithoutClaimInput = { where?: PaymentWhereInput data: XOR } export type PaymentUpdateWithoutClaimInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutPaymentNestedInput updatedBy?: UserUpdateOneWithoutUpdatedPaymentsNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateWithoutClaimInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUncheckedUpdateManyWithoutPaymentNestedInput } export type ClaimCreateWithoutServiceLinesInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null patient: PatientCreateNestedOneWithoutClaimsInput appointment: AppointmentCreateNestedOneWithoutClaimsInput user?: UserCreateNestedOneWithoutClaimsInput staff?: StaffCreateNestedOneWithoutClaimsInput claimFiles?: ClaimFileCreateNestedManyWithoutClaimInput payment?: PaymentCreateNestedOneWithoutClaimInput } export type ClaimUncheckedCreateWithoutServiceLinesInput = { id?: number patientId: number appointmentId: number userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null claimFiles?: ClaimFileUncheckedCreateNestedManyWithoutClaimInput payment?: PaymentUncheckedCreateNestedOneWithoutClaimInput } export type ClaimCreateOrConnectWithoutServiceLinesInput = { where: ClaimWhereUniqueInput create: XOR } export type PaymentCreateWithoutServiceLinesInput = { userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string claim?: ClaimCreateNestedOneWithoutPaymentInput patient: PatientCreateNestedOneWithoutPaymentInput updatedBy?: UserCreateNestedOneWithoutUpdatedPaymentsInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutPaymentInput } export type PaymentUncheckedCreateWithoutServiceLinesInput = { id?: number claimId?: number | null patientId: number userId: number updatedById?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput } export type PaymentCreateOrConnectWithoutServiceLinesInput = { where: PaymentWhereUniqueInput create: XOR } export type ServiceLineTransactionCreateWithoutServiceLineInput = { transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string payment: PaymentCreateNestedOneWithoutServiceLineTransactionsInput } export type ServiceLineTransactionUncheckedCreateWithoutServiceLineInput = { id?: number paymentId: number transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string } export type ServiceLineTransactionCreateOrConnectWithoutServiceLineInput = { where: ServiceLineTransactionWhereUniqueInput create: XOR } export type ServiceLineTransactionCreateManyServiceLineInputEnvelope = { data: ServiceLineTransactionCreateManyServiceLineInput | ServiceLineTransactionCreateManyServiceLineInput[] skipDuplicates?: boolean } export type ClaimUpsertWithoutServiceLinesInput = { update: XOR create: XOR where?: ClaimWhereInput } export type ClaimUpdateToOneWithWhereWithoutServiceLinesInput = { where?: ClaimWhereInput data: XOR } export type ClaimUpdateWithoutServiceLinesInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null patient?: PatientUpdateOneRequiredWithoutClaimsNestedInput appointment?: AppointmentUpdateOneRequiredWithoutClaimsNestedInput user?: UserUpdateOneWithoutClaimsNestedInput staff?: StaffUpdateOneWithoutClaimsNestedInput claimFiles?: ClaimFileUpdateManyWithoutClaimNestedInput payment?: PaymentUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutServiceLinesInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null claimFiles?: ClaimFileUncheckedUpdateManyWithoutClaimNestedInput payment?: PaymentUncheckedUpdateOneWithoutClaimNestedInput } export type PaymentUpsertWithoutServiceLinesInput = { update: XOR create: XOR where?: PaymentWhereInput } export type PaymentUpdateToOneWithWhereWithoutServiceLinesInput = { where?: PaymentWhereInput data: XOR } export type PaymentUpdateWithoutServiceLinesInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string claim?: ClaimUpdateOneWithoutPaymentNestedInput patient?: PatientUpdateOneRequiredWithoutPaymentNestedInput updatedBy?: UserUpdateOneWithoutUpdatedPaymentsNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateWithoutServiceLinesInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutPaymentNestedInput } export type ServiceLineTransactionUpsertWithWhereUniqueWithoutServiceLineInput = { where: ServiceLineTransactionWhereUniqueInput update: XOR create: XOR } export type ServiceLineTransactionUpdateWithWhereUniqueWithoutServiceLineInput = { where: ServiceLineTransactionWhereUniqueInput data: XOR } export type ServiceLineTransactionUpdateManyWithWhereWithoutServiceLineInput = { where: ServiceLineTransactionScalarWhereInput data: XOR } export type ServiceLineTransactionScalarWhereInput = { AND?: ServiceLineTransactionScalarWhereInput | ServiceLineTransactionScalarWhereInput[] OR?: ServiceLineTransactionScalarWhereInput[] NOT?: ServiceLineTransactionScalarWhereInput | ServiceLineTransactionScalarWhereInput[] id?: IntFilter<"ServiceLineTransaction"> | number paymentId?: IntFilter<"ServiceLineTransaction"> | number serviceLineId?: IntFilter<"ServiceLineTransaction"> | number transactionId?: StringNullableFilter<"ServiceLineTransaction"> | string | null paidAmount?: DecimalFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFilter<"ServiceLineTransaction"> | $Enums.PaymentMethod receivedDate?: DateTimeFilter<"ServiceLineTransaction"> | Date | string payerName?: StringNullableFilter<"ServiceLineTransaction"> | string | null notes?: StringNullableFilter<"ServiceLineTransaction"> | string | null createdAt?: DateTimeFilter<"ServiceLineTransaction"> | Date | string } export type ClaimCreateWithoutClaimFilesInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null patient: PatientCreateNestedOneWithoutClaimsInput appointment: AppointmentCreateNestedOneWithoutClaimsInput user?: UserCreateNestedOneWithoutClaimsInput staff?: StaffCreateNestedOneWithoutClaimsInput serviceLines?: ServiceLineCreateNestedManyWithoutClaimInput payment?: PaymentCreateNestedOneWithoutClaimInput } export type ClaimUncheckedCreateWithoutClaimFilesInput = { id?: number patientId: number appointmentId: number userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutClaimInput payment?: PaymentUncheckedCreateNestedOneWithoutClaimInput } export type ClaimCreateOrConnectWithoutClaimFilesInput = { where: ClaimWhereUniqueInput create: XOR } export type ClaimUpsertWithoutClaimFilesInput = { update: XOR create: XOR where?: ClaimWhereInput } export type ClaimUpdateToOneWithWhereWithoutClaimFilesInput = { where?: ClaimWhereInput data: XOR } export type ClaimUpdateWithoutClaimFilesInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null patient?: PatientUpdateOneRequiredWithoutClaimsNestedInput appointment?: AppointmentUpdateOneRequiredWithoutClaimsNestedInput user?: UserUpdateOneWithoutClaimsNestedInput staff?: StaffUpdateOneWithoutClaimsNestedInput serviceLines?: ServiceLineUpdateManyWithoutClaimNestedInput payment?: PaymentUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutClaimFilesInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null serviceLines?: ServiceLineUncheckedUpdateManyWithoutClaimNestedInput payment?: PaymentUncheckedUpdateOneWithoutClaimNestedInput } export type UserCreateWithoutInsuranceCredentialsInput = { username: string password: string patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutInsuranceCredentialsInput = { id?: number username: string password: string patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutInsuranceCredentialsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutInsuranceCredentialsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutInsuranceCredentialsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutInsuranceCredentialsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutInsuranceCredentialsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput } export type PatientCreateWithoutGroupsInput = { firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus createdAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput appointments?: AppointmentCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput } export type PatientUncheckedCreateWithoutGroupsInput = { id?: number firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput } export type PatientCreateOrConnectWithoutGroupsInput = { where: PatientWhereUniqueInput create: XOR } export type PdfFileCreateWithoutGroupInput = { filename: string pdfData: Bytes uploadedAt?: Date | string } export type PdfFileUncheckedCreateWithoutGroupInput = { id?: number filename: string pdfData: Bytes uploadedAt?: Date | string } export type PdfFileCreateOrConnectWithoutGroupInput = { where: PdfFileWhereUniqueInput create: XOR } export type PdfFileCreateManyGroupInputEnvelope = { data: PdfFileCreateManyGroupInput | PdfFileCreateManyGroupInput[] skipDuplicates?: boolean } export type PatientUpsertWithoutGroupsInput = { update: XOR create: XOR where?: PatientWhereInput } export type PatientUpdateToOneWithWhereWithoutGroupsInput = { where?: PatientWhereInput data: XOR } export type PatientUpdateWithoutGroupsInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput appointments?: AppointmentUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutGroupsInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput } export type PdfFileUpsertWithWhereUniqueWithoutGroupInput = { where: PdfFileWhereUniqueInput update: XOR create: XOR } export type PdfFileUpdateWithWhereUniqueWithoutGroupInput = { where: PdfFileWhereUniqueInput data: XOR } export type PdfFileUpdateManyWithWhereWithoutGroupInput = { where: PdfFileScalarWhereInput data: XOR } export type PdfFileScalarWhereInput = { AND?: PdfFileScalarWhereInput | PdfFileScalarWhereInput[] OR?: PdfFileScalarWhereInput[] NOT?: PdfFileScalarWhereInput | PdfFileScalarWhereInput[] id?: IntFilter<"PdfFile"> | number filename?: StringFilter<"PdfFile"> | string pdfData?: BytesFilter<"PdfFile"> | Bytes uploadedAt?: DateTimeFilter<"PdfFile"> | Date | string groupId?: IntFilter<"PdfFile"> | number } export type PdfGroupCreateWithoutPdfsInput = { title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string patient: PatientCreateNestedOneWithoutGroupsInput } export type PdfGroupUncheckedCreateWithoutPdfsInput = { id?: number title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string patientId: number } export type PdfGroupCreateOrConnectWithoutPdfsInput = { where: PdfGroupWhereUniqueInput create: XOR } export type PdfGroupUpsertWithoutPdfsInput = { update: XOR create: XOR where?: PdfGroupWhereInput } export type PdfGroupUpdateToOneWithWhereWithoutPdfsInput = { where?: PdfGroupWhereInput data: XOR } export type PdfGroupUpdateWithoutPdfsInput = { title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutGroupsNestedInput } export type PdfGroupUncheckedUpdateWithoutPdfsInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patientId?: IntFieldUpdateOperationsInput | number } export type ClaimCreateWithoutPaymentInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null patient: PatientCreateNestedOneWithoutClaimsInput appointment: AppointmentCreateNestedOneWithoutClaimsInput user?: UserCreateNestedOneWithoutClaimsInput staff?: StaffCreateNestedOneWithoutClaimsInput serviceLines?: ServiceLineCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileCreateNestedManyWithoutClaimInput } export type ClaimUncheckedCreateWithoutPaymentInput = { id?: number patientId: number appointmentId: number userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileUncheckedCreateNestedManyWithoutClaimInput } export type ClaimCreateOrConnectWithoutPaymentInput = { where: ClaimWhereUniqueInput create: XOR } export type PatientCreateWithoutPaymentInput = { firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus createdAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput appointments?: AppointmentCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput } export type PatientUncheckedCreateWithoutPaymentInput = { id?: number firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput } export type PatientCreateOrConnectWithoutPaymentInput = { where: PatientWhereUniqueInput create: XOR } export type UserCreateWithoutUpdatedPaymentsInput = { username: string password: string patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutUpdatedPaymentsInput = { id?: number username: string password: string patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutUpdatedPaymentsInput = { where: UserWhereUniqueInput create: XOR } export type ServiceLineTransactionCreateWithoutPaymentInput = { transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string serviceLine: ServiceLineCreateNestedOneWithoutServiceLineTransactionsInput } export type ServiceLineTransactionUncheckedCreateWithoutPaymentInput = { id?: number serviceLineId: number transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string } export type ServiceLineTransactionCreateOrConnectWithoutPaymentInput = { where: ServiceLineTransactionWhereUniqueInput create: XOR } export type ServiceLineTransactionCreateManyPaymentInputEnvelope = { data: ServiceLineTransactionCreateManyPaymentInput | ServiceLineTransactionCreateManyPaymentInput[] skipDuplicates?: boolean } export type ServiceLineCreateWithoutPaymentInput = { procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus claim?: ClaimCreateNestedOneWithoutServiceLinesInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutServiceLineInput } export type ServiceLineUncheckedCreateWithoutPaymentInput = { id?: number claimId?: number | null procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutServiceLineInput } export type ServiceLineCreateOrConnectWithoutPaymentInput = { where: ServiceLineWhereUniqueInput create: XOR } export type ServiceLineCreateManyPaymentInputEnvelope = { data: ServiceLineCreateManyPaymentInput | ServiceLineCreateManyPaymentInput[] skipDuplicates?: boolean } export type ClaimUpsertWithoutPaymentInput = { update: XOR create: XOR where?: ClaimWhereInput } export type ClaimUpdateToOneWithWhereWithoutPaymentInput = { where?: ClaimWhereInput data: XOR } export type ClaimUpdateWithoutPaymentInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null patient?: PatientUpdateOneRequiredWithoutClaimsNestedInput appointment?: AppointmentUpdateOneRequiredWithoutClaimsNestedInput user?: UserUpdateOneWithoutClaimsNestedInput staff?: StaffUpdateOneWithoutClaimsNestedInput serviceLines?: ServiceLineUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUpdateManyWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutPaymentInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null serviceLines?: ServiceLineUncheckedUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUncheckedUpdateManyWithoutClaimNestedInput } export type PatientUpsertWithoutPaymentInput = { update: XOR create: XOR where?: PatientWhereInput } export type PatientUpdateToOneWithWhereWithoutPaymentInput = { where?: PatientWhereInput data: XOR } export type PatientUpdateWithoutPaymentInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput appointments?: AppointmentUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutPaymentInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput } export type UserUpsertWithoutUpdatedPaymentsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutUpdatedPaymentsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutUpdatedPaymentsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutUpdatedPaymentsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput } export type ServiceLineTransactionUpsertWithWhereUniqueWithoutPaymentInput = { where: ServiceLineTransactionWhereUniqueInput update: XOR create: XOR } export type ServiceLineTransactionUpdateWithWhereUniqueWithoutPaymentInput = { where: ServiceLineTransactionWhereUniqueInput data: XOR } export type ServiceLineTransactionUpdateManyWithWhereWithoutPaymentInput = { where: ServiceLineTransactionScalarWhereInput data: XOR } export type ServiceLineUpsertWithWhereUniqueWithoutPaymentInput = { where: ServiceLineWhereUniqueInput update: XOR create: XOR } export type ServiceLineUpdateWithWhereUniqueWithoutPaymentInput = { where: ServiceLineWhereUniqueInput data: XOR } export type ServiceLineUpdateManyWithWhereWithoutPaymentInput = { where: ServiceLineScalarWhereInput data: XOR } export type PaymentCreateWithoutServiceLineTransactionsInput = { userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string claim?: ClaimCreateNestedOneWithoutPaymentInput patient: PatientCreateNestedOneWithoutPaymentInput updatedBy?: UserCreateNestedOneWithoutUpdatedPaymentsInput serviceLines?: ServiceLineCreateNestedManyWithoutPaymentInput } export type PaymentUncheckedCreateWithoutServiceLineTransactionsInput = { id?: number claimId?: number | null patientId: number userId: number updatedById?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutPaymentInput } export type PaymentCreateOrConnectWithoutServiceLineTransactionsInput = { where: PaymentWhereUniqueInput create: XOR } export type ServiceLineCreateWithoutServiceLineTransactionsInput = { procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus claim?: ClaimCreateNestedOneWithoutServiceLinesInput payment?: PaymentCreateNestedOneWithoutServiceLinesInput } export type ServiceLineUncheckedCreateWithoutServiceLineTransactionsInput = { id?: number claimId?: number | null paymentId?: number | null procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus } export type ServiceLineCreateOrConnectWithoutServiceLineTransactionsInput = { where: ServiceLineWhereUniqueInput create: XOR } export type PaymentUpsertWithoutServiceLineTransactionsInput = { update: XOR create: XOR where?: PaymentWhereInput } export type PaymentUpdateToOneWithWhereWithoutServiceLineTransactionsInput = { where?: PaymentWhereInput data: XOR } export type PaymentUpdateWithoutServiceLineTransactionsInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string claim?: ClaimUpdateOneWithoutPaymentNestedInput patient?: PatientUpdateOneRequiredWithoutPaymentNestedInput updatedBy?: UserUpdateOneWithoutUpdatedPaymentsNestedInput serviceLines?: ServiceLineUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateWithoutServiceLineTransactionsInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLines?: ServiceLineUncheckedUpdateManyWithoutPaymentNestedInput } export type ServiceLineUpsertWithoutServiceLineTransactionsInput = { update: XOR create: XOR where?: ServiceLineWhereInput } export type ServiceLineUpdateToOneWithWhereWithoutServiceLineTransactionsInput = { where?: ServiceLineWhereInput data: XOR } export type ServiceLineUpdateWithoutServiceLineTransactionsInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus claim?: ClaimUpdateOneWithoutServiceLinesNestedInput payment?: PaymentUpdateOneWithoutServiceLinesNestedInput } export type ServiceLineUncheckedUpdateWithoutServiceLineTransactionsInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null paymentId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus } export type UserCreateWithoutBackupsInput = { username: string password: string patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutBackupsInput = { id?: number username: string password: string patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutBackupsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutBackupsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutBackupsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutBackupsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutBackupsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutBackupDestinationsInput = { username: string password: string patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutBackupDestinationsInput = { id?: number username: string password: string patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutBackupDestinationsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutBackupDestinationsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutBackupDestinationsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutBackupDestinationsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutBackupDestinationsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutNotificationsInput = { username: string password: string patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutNotificationsInput = { id?: number username: string password: string patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutNotificationsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutNotificationsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutNotificationsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutNotificationsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutNotificationsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput } export type CloudFolderCreateWithoutChildrenInput = { name: string createdAt?: Date | string updatedAt?: Date | string parent?: CloudFolderCreateNestedOneWithoutChildrenInput user: UserCreateNestedOneWithoutCloudFoldersInput files?: CloudFileCreateNestedManyWithoutFolderInput } export type CloudFolderUncheckedCreateWithoutChildrenInput = { id?: number userId: number name: string parentId?: number | null createdAt?: Date | string updatedAt?: Date | string files?: CloudFileUncheckedCreateNestedManyWithoutFolderInput } export type CloudFolderCreateOrConnectWithoutChildrenInput = { where: CloudFolderWhereUniqueInput create: XOR } export type CloudFolderCreateWithoutParentInput = { name: string createdAt?: Date | string updatedAt?: Date | string children?: CloudFolderCreateNestedManyWithoutParentInput user: UserCreateNestedOneWithoutCloudFoldersInput files?: CloudFileCreateNestedManyWithoutFolderInput } export type CloudFolderUncheckedCreateWithoutParentInput = { id?: number userId: number name: string createdAt?: Date | string updatedAt?: Date | string children?: CloudFolderUncheckedCreateNestedManyWithoutParentInput files?: CloudFileUncheckedCreateNestedManyWithoutFolderInput } export type CloudFolderCreateOrConnectWithoutParentInput = { where: CloudFolderWhereUniqueInput create: XOR } export type CloudFolderCreateManyParentInputEnvelope = { data: CloudFolderCreateManyParentInput | CloudFolderCreateManyParentInput[] skipDuplicates?: boolean } export type UserCreateWithoutCloudFoldersInput = { username: string password: string patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutCloudFoldersInput = { id?: number username: string password: string patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutCloudFoldersInput = { where: UserWhereUniqueInput create: XOR } export type CloudFileCreateWithoutFolderInput = { name: string mimeType?: string | null fileSize: bigint | number isComplete?: boolean totalChunks?: number | null createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutCloudFilesInput chunks?: CloudFileChunkCreateNestedManyWithoutFileInput } export type CloudFileUncheckedCreateWithoutFolderInput = { id?: number userId: number name: string mimeType?: string | null fileSize: bigint | number isComplete?: boolean totalChunks?: number | null createdAt?: Date | string updatedAt?: Date | string chunks?: CloudFileChunkUncheckedCreateNestedManyWithoutFileInput } export type CloudFileCreateOrConnectWithoutFolderInput = { where: CloudFileWhereUniqueInput create: XOR } export type CloudFileCreateManyFolderInputEnvelope = { data: CloudFileCreateManyFolderInput | CloudFileCreateManyFolderInput[] skipDuplicates?: boolean } export type CloudFolderUpsertWithoutChildrenInput = { update: XOR create: XOR where?: CloudFolderWhereInput } export type CloudFolderUpdateToOneWithWhereWithoutChildrenInput = { where?: CloudFolderWhereInput data: XOR } export type CloudFolderUpdateWithoutChildrenInput = { name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string parent?: CloudFolderUpdateOneWithoutChildrenNestedInput user?: UserUpdateOneRequiredWithoutCloudFoldersNestedInput files?: CloudFileUpdateManyWithoutFolderNestedInput } export type CloudFolderUncheckedUpdateWithoutChildrenInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string parentId?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string files?: CloudFileUncheckedUpdateManyWithoutFolderNestedInput } export type CloudFolderUpsertWithWhereUniqueWithoutParentInput = { where: CloudFolderWhereUniqueInput update: XOR create: XOR } export type CloudFolderUpdateWithWhereUniqueWithoutParentInput = { where: CloudFolderWhereUniqueInput data: XOR } export type CloudFolderUpdateManyWithWhereWithoutParentInput = { where: CloudFolderScalarWhereInput data: XOR } export type UserUpsertWithoutCloudFoldersInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutCloudFoldersInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutCloudFoldersInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutCloudFoldersInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput } export type CloudFileUpsertWithWhereUniqueWithoutFolderInput = { where: CloudFileWhereUniqueInput update: XOR create: XOR } export type CloudFileUpdateWithWhereUniqueWithoutFolderInput = { where: CloudFileWhereUniqueInput data: XOR } export type CloudFileUpdateManyWithWhereWithoutFolderInput = { where: CloudFileScalarWhereInput data: XOR } export type UserCreateWithoutCloudFilesInput = { username: string password: string patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutCloudFilesInput = { id?: number username: string password: string patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutCloudFilesInput = { where: UserWhereUniqueInput create: XOR } export type CloudFolderCreateWithoutFilesInput = { name: string createdAt?: Date | string updatedAt?: Date | string parent?: CloudFolderCreateNestedOneWithoutChildrenInput children?: CloudFolderCreateNestedManyWithoutParentInput user: UserCreateNestedOneWithoutCloudFoldersInput } export type CloudFolderUncheckedCreateWithoutFilesInput = { id?: number userId: number name: string parentId?: number | null createdAt?: Date | string updatedAt?: Date | string children?: CloudFolderUncheckedCreateNestedManyWithoutParentInput } export type CloudFolderCreateOrConnectWithoutFilesInput = { where: CloudFolderWhereUniqueInput create: XOR } export type CloudFileChunkCreateWithoutFileInput = { seq: number data: Bytes createdAt?: Date | string } export type CloudFileChunkUncheckedCreateWithoutFileInput = { id?: number seq: number data: Bytes createdAt?: Date | string } export type CloudFileChunkCreateOrConnectWithoutFileInput = { where: CloudFileChunkWhereUniqueInput create: XOR } export type CloudFileChunkCreateManyFileInputEnvelope = { data: CloudFileChunkCreateManyFileInput | CloudFileChunkCreateManyFileInput[] skipDuplicates?: boolean } export type UserUpsertWithoutCloudFilesInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutCloudFilesInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutCloudFilesInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutCloudFilesInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput } export type CloudFolderUpsertWithoutFilesInput = { update: XOR create: XOR where?: CloudFolderWhereInput } export type CloudFolderUpdateToOneWithWhereWithoutFilesInput = { where?: CloudFolderWhereInput data: XOR } export type CloudFolderUpdateWithoutFilesInput = { name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string parent?: CloudFolderUpdateOneWithoutChildrenNestedInput children?: CloudFolderUpdateManyWithoutParentNestedInput user?: UserUpdateOneRequiredWithoutCloudFoldersNestedInput } export type CloudFolderUncheckedUpdateWithoutFilesInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string parentId?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string children?: CloudFolderUncheckedUpdateManyWithoutParentNestedInput } export type CloudFileChunkUpsertWithWhereUniqueWithoutFileInput = { where: CloudFileChunkWhereUniqueInput update: XOR create: XOR } export type CloudFileChunkUpdateWithWhereUniqueWithoutFileInput = { where: CloudFileChunkWhereUniqueInput data: XOR } export type CloudFileChunkUpdateManyWithWhereWithoutFileInput = { where: CloudFileChunkScalarWhereInput data: XOR } export type CloudFileChunkScalarWhereInput = { AND?: CloudFileChunkScalarWhereInput | CloudFileChunkScalarWhereInput[] OR?: CloudFileChunkScalarWhereInput[] NOT?: CloudFileChunkScalarWhereInput | CloudFileChunkScalarWhereInput[] id?: IntFilter<"CloudFileChunk"> | number fileId?: IntFilter<"CloudFileChunk"> | number seq?: IntFilter<"CloudFileChunk"> | number data?: BytesFilter<"CloudFileChunk"> | Bytes createdAt?: DateTimeFilter<"CloudFileChunk"> | Date | string } export type CloudFileCreateWithoutChunksInput = { name: string mimeType?: string | null fileSize: bigint | number isComplete?: boolean totalChunks?: number | null createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutCloudFilesInput folder?: CloudFolderCreateNestedOneWithoutFilesInput } export type CloudFileUncheckedCreateWithoutChunksInput = { id?: number userId: number name: string mimeType?: string | null fileSize: bigint | number folderId?: number | null isComplete?: boolean totalChunks?: number | null createdAt?: Date | string updatedAt?: Date | string } export type CloudFileCreateOrConnectWithoutChunksInput = { where: CloudFileWhereUniqueInput create: XOR } export type CloudFileUpsertWithoutChunksInput = { update: XOR create: XOR where?: CloudFileWhereInput } export type CloudFileUpdateToOneWithWhereWithoutChunksInput = { where?: CloudFileWhereInput data: XOR } export type CloudFileUpdateWithoutChunksInput = { name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutCloudFilesNestedInput folder?: CloudFolderUpdateOneWithoutFilesNestedInput } export type CloudFileUncheckedUpdateWithoutChunksInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number folderId?: NullableIntFieldUpdateOperationsInput | number | null isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientCreateWithoutCommunicationsInput = { firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus createdAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput appointments?: AppointmentCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput } export type PatientUncheckedCreateWithoutCommunicationsInput = { id?: number firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput } export type PatientCreateOrConnectWithoutCommunicationsInput = { where: PatientWhereUniqueInput create: XOR } export type UserCreateWithoutCommunicationsInput = { username: string password: string patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutCommunicationsInput = { id?: number username: string password: string patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutCommunicationsInput = { where: UserWhereUniqueInput create: XOR } export type PatientUpsertWithoutCommunicationsInput = { update: XOR create: XOR where?: PatientWhereInput } export type PatientUpdateToOneWithWhereWithoutCommunicationsInput = { where?: PatientWhereInput data: XOR } export type PatientUpdateWithoutCommunicationsInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput appointments?: AppointmentUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutCommunicationsInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput } export type UserUpsertWithoutCommunicationsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutCommunicationsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutCommunicationsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutCommunicationsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput } export type PatientCreateWithoutDocumentsInput = { firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus createdAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput appointments?: AppointmentCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput } export type PatientUncheckedCreateWithoutDocumentsInput = { id?: number firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput } export type PatientCreateOrConnectWithoutDocumentsInput = { where: PatientWhereUniqueInput create: XOR } export type PatientUpsertWithoutDocumentsInput = { update: XOR create: XOR where?: PatientWhereInput } export type PatientUpdateToOneWithWhereWithoutDocumentsInput = { where?: PatientWhereInput data: XOR } export type PatientUpdateWithoutDocumentsInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput appointments?: AppointmentUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutDocumentsInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput } export type PatientCreateManyUserInput = { id?: number firstName: string lastName: string dateOfBirth: Date | string gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null status?: $Enums.PatientStatus createdAt?: Date | string } export type AppointmentCreateManyUserInput = { id?: number patientId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus } export type StaffCreateManyUserInput = { id?: number name: string email?: string | null role: string phone?: string | null createdAt?: Date | string } export type NpiProviderCreateManyUserInput = { id?: number npiNumber: string providerName: string createdAt?: Date | string } export type ClaimCreateManyUserInput = { id?: number patientId: number appointmentId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null } export type InsuranceCredentialCreateManyUserInput = { id?: number siteKey: string username: string password: string } export type PaymentCreateManyUpdatedByInput = { id?: number claimId?: number | null patientId: number userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string } export type DatabaseBackupCreateManyUserInput = { id?: number createdAt?: Date | string } export type BackupDestinationCreateManyUserInput = { id?: number path: string isActive?: boolean createdAt?: Date | string } export type NotificationCreateManyUserInput = { id?: number type: $Enums.NotificationTypes message: string createdAt?: Date | string read?: boolean } export type CloudFolderCreateManyUserInput = { id?: number name: string parentId?: number | null createdAt?: Date | string updatedAt?: Date | string } export type CloudFileCreateManyUserInput = { id?: number name: string mimeType?: string | null fileSize: bigint | number folderId?: number | null isComplete?: boolean totalChunks?: number | null createdAt?: Date | string updatedAt?: Date | string } export type CommunicationCreateManyUserInput = { id?: number patientId: number channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string } export type PatientUpdateWithoutUserInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput } export type PatientUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentUpdateWithoutUserInput = { title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus patient?: PatientUpdateOneRequiredWithoutAppointmentsNestedInput staff?: StaffUpdateOneWithoutAppointmentsNestedInput procedures?: AppointmentProcedureUpdateManyWithoutAppointmentNestedInput claims?: ClaimUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus } export type StaffUpdateWithoutUserInput = { name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUpdateManyWithoutStaffNestedInput claims?: ClaimUpdateManyWithoutStaffNestedInput } export type StaffUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutStaffNestedInput claims?: ClaimUncheckedUpdateManyWithoutStaffNestedInput } export type StaffUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NpiProviderUpdateWithoutUserInput = { npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NpiProviderUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NpiProviderUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ClaimUpdateWithoutUserInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null patient?: PatientUpdateOneRequiredWithoutClaimsNestedInput appointment?: AppointmentUpdateOneRequiredWithoutClaimsNestedInput staff?: StaffUpdateOneWithoutClaimsNestedInput serviceLines?: ServiceLineUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUpdateManyWithoutClaimNestedInput payment?: PaymentUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null serviceLines?: ServiceLineUncheckedUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUncheckedUpdateManyWithoutClaimNestedInput payment?: PaymentUncheckedUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null } export type InsuranceCredentialUpdateWithoutUserInput = { siteKey?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type InsuranceCredentialUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number siteKey?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type InsuranceCredentialUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number siteKey?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type PaymentUpdateWithoutUpdatedByInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string claim?: ClaimUpdateOneWithoutPaymentNestedInput patient?: PatientUpdateOneRequiredWithoutPaymentNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateWithoutUpdatedByInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUncheckedUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateManyWithoutUpdatedByInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type DatabaseBackupUpdateWithoutUserInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type DatabaseBackupUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type DatabaseBackupUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BackupDestinationUpdateWithoutUserInput = { path?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BackupDestinationUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number path?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BackupDestinationUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number path?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NotificationUpdateWithoutUserInput = { type?: EnumNotificationTypesFieldUpdateOperationsInput | $Enums.NotificationTypes message?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string read?: BoolFieldUpdateOperationsInput | boolean } export type NotificationUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number type?: EnumNotificationTypesFieldUpdateOperationsInput | $Enums.NotificationTypes message?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string read?: BoolFieldUpdateOperationsInput | boolean } export type NotificationUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number type?: EnumNotificationTypesFieldUpdateOperationsInput | $Enums.NotificationTypes message?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string read?: BoolFieldUpdateOperationsInput | boolean } export type CloudFolderUpdateWithoutUserInput = { name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string parent?: CloudFolderUpdateOneWithoutChildrenNestedInput children?: CloudFolderUpdateManyWithoutParentNestedInput files?: CloudFileUpdateManyWithoutFolderNestedInput } export type CloudFolderUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string parentId?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string children?: CloudFolderUncheckedUpdateManyWithoutParentNestedInput files?: CloudFileUncheckedUpdateManyWithoutFolderNestedInput } export type CloudFolderUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string parentId?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileUpdateWithoutUserInput = { name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string folder?: CloudFolderUpdateOneWithoutFilesNestedInput chunks?: CloudFileChunkUpdateManyWithoutFileNestedInput } export type CloudFileUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number folderId?: NullableIntFieldUpdateOperationsInput | number | null isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string chunks?: CloudFileChunkUncheckedUpdateManyWithoutFileNestedInput } export type CloudFileUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number folderId?: NullableIntFieldUpdateOperationsInput | number | null isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommunicationUpdateWithoutUserInput = { channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutCommunicationsNestedInput } export type CommunicationUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommunicationUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentCreateManyPatientInput = { id?: number userId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus } export type AppointmentProcedureCreateManyPatientInput = { id?: number appointmentId: number procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string } export type ClaimCreateManyPatientInput = { id?: number appointmentId: number userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null } export type PdfGroupCreateManyPatientInput = { id?: number title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string } export type PaymentCreateManyPatientInput = { id?: number claimId?: number | null userId: number updatedById?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string } export type CommunicationCreateManyPatientInput = { id?: number userId?: number | null channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string } export type PatientDocumentCreateManyPatientInput = { id?: number filename: string originalName: string mimeType: string fileSize: bigint | number filePath: string uploadedAt?: Date | string updatedAt?: Date | string } export type AppointmentUpdateWithoutPatientInput = { title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus user?: UserUpdateOneRequiredWithoutAppointmentsNestedInput staff?: StaffUpdateOneWithoutAppointmentsNestedInput procedures?: AppointmentProcedureUpdateManyWithoutAppointmentNestedInput claims?: ClaimUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateManyWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus } export type AppointmentProcedureUpdateWithoutPatientInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointment?: AppointmentUpdateOneRequiredWithoutProceduresNestedInput } export type AppointmentProcedureUncheckedUpdateWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentProcedureUncheckedUpdateManyWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ClaimUpdateWithoutPatientInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null appointment?: AppointmentUpdateOneRequiredWithoutClaimsNestedInput user?: UserUpdateOneWithoutClaimsNestedInput staff?: StaffUpdateOneWithoutClaimsNestedInput serviceLines?: ServiceLineUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUpdateManyWithoutClaimNestedInput payment?: PaymentUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null serviceLines?: ServiceLineUncheckedUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUncheckedUpdateManyWithoutClaimNestedInput payment?: PaymentUncheckedUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateManyWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null } export type PdfGroupUpdateWithoutPatientInput = { title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string pdfs?: PdfFileUpdateManyWithoutGroupNestedInput } export type PdfGroupUncheckedUpdateWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string pdfs?: PdfFileUncheckedUpdateManyWithoutGroupNestedInput } export type PdfGroupUncheckedUpdateManyWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PaymentUpdateWithoutPatientInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string claim?: ClaimUpdateOneWithoutPaymentNestedInput updatedBy?: UserUpdateOneWithoutUpdatedPaymentsNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUncheckedUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateManyWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommunicationUpdateWithoutPatientInput = { channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutCommunicationsNestedInput } export type CommunicationUncheckedUpdateWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number userId?: NullableIntFieldUpdateOperationsInput | number | null channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommunicationUncheckedUpdateManyWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number userId?: NullableIntFieldUpdateOperationsInput | number | null channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientDocumentUpdateWithoutPatientInput = { filename?: StringFieldUpdateOperationsInput | string originalName?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string fileSize?: BigIntFieldUpdateOperationsInput | bigint | number filePath?: StringFieldUpdateOperationsInput | string uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientDocumentUncheckedUpdateWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string originalName?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string fileSize?: BigIntFieldUpdateOperationsInput | bigint | number filePath?: StringFieldUpdateOperationsInput | string uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientDocumentUncheckedUpdateManyWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string originalName?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string fileSize?: BigIntFieldUpdateOperationsInput | bigint | number filePath?: StringFieldUpdateOperationsInput | string uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentProcedureCreateManyAppointmentInput = { id?: number patientId: number procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string } export type ClaimCreateManyAppointmentInput = { id?: number patientId: number userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null } export type AppointmentProcedureUpdateWithoutAppointmentInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutProceduresNestedInput } export type AppointmentProcedureUncheckedUpdateWithoutAppointmentInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentProcedureUncheckedUpdateManyWithoutAppointmentInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ClaimUpdateWithoutAppointmentInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null patient?: PatientUpdateOneRequiredWithoutClaimsNestedInput user?: UserUpdateOneWithoutClaimsNestedInput staff?: StaffUpdateOneWithoutClaimsNestedInput serviceLines?: ServiceLineUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUpdateManyWithoutClaimNestedInput payment?: PaymentUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutAppointmentInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null serviceLines?: ServiceLineUncheckedUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUncheckedUpdateManyWithoutClaimNestedInput payment?: PaymentUncheckedUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateManyWithoutAppointmentInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null } export type AppointmentCreateManyStaffInput = { id?: number patientId: number userId: number title: string date: Date | string startTime: string endTime: string type: string notes?: string | null procedureCodeNotes?: string | null status?: string createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus } export type ClaimCreateManyStaffInput = { id?: number patientId: number appointmentId: number userId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null } export type AppointmentUpdateWithoutStaffInput = { title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus patient?: PatientUpdateOneRequiredWithoutAppointmentsNestedInput user?: UserUpdateOneRequiredWithoutAppointmentsNestedInput procedures?: AppointmentProcedureUpdateManyWithoutAppointmentNestedInput claims?: ClaimUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateWithoutStaffInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateManyWithoutStaffInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus } export type ClaimUpdateWithoutStaffInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null patient?: PatientUpdateOneRequiredWithoutClaimsNestedInput appointment?: AppointmentUpdateOneRequiredWithoutClaimsNestedInput user?: UserUpdateOneWithoutClaimsNestedInput serviceLines?: ServiceLineUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUpdateManyWithoutClaimNestedInput payment?: PaymentUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutStaffInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null serviceLines?: ServiceLineUncheckedUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUncheckedUpdateManyWithoutClaimNestedInput payment?: PaymentUncheckedUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateManyWithoutStaffInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null } export type ServiceLineCreateManyClaimInput = { id?: number paymentId?: number | null procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus } export type ClaimFileCreateManyClaimInput = { id?: number filename: string mimeType: string } export type ServiceLineUpdateWithoutClaimInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus payment?: PaymentUpdateOneWithoutServiceLinesNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutServiceLineNestedInput } export type ServiceLineUncheckedUpdateWithoutClaimInput = { id?: IntFieldUpdateOperationsInput | number paymentId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutServiceLineNestedInput } export type ServiceLineUncheckedUpdateManyWithoutClaimInput = { id?: IntFieldUpdateOperationsInput | number paymentId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus } export type ClaimFileUpdateWithoutClaimInput = { filename?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string } export type ClaimFileUncheckedUpdateWithoutClaimInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string } export type ClaimFileUncheckedUpdateManyWithoutClaimInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string } export type ServiceLineTransactionCreateManyServiceLineInput = { id?: number paymentId: number transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string } export type ServiceLineTransactionUpdateWithoutServiceLineInput = { transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string payment?: PaymentUpdateOneRequiredWithoutServiceLineTransactionsNestedInput } export type ServiceLineTransactionUncheckedUpdateWithoutServiceLineInput = { id?: IntFieldUpdateOperationsInput | number paymentId?: IntFieldUpdateOperationsInput | number transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceLineTransactionUncheckedUpdateManyWithoutServiceLineInput = { id?: IntFieldUpdateOperationsInput | number paymentId?: IntFieldUpdateOperationsInput | number transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PdfFileCreateManyGroupInput = { id?: number filename: string pdfData: Bytes uploadedAt?: Date | string } export type PdfFileUpdateWithoutGroupInput = { filename?: StringFieldUpdateOperationsInput | string pdfData?: BytesFieldUpdateOperationsInput | Bytes uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PdfFileUncheckedUpdateWithoutGroupInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string pdfData?: BytesFieldUpdateOperationsInput | Bytes uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PdfFileUncheckedUpdateManyWithoutGroupInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string pdfData?: BytesFieldUpdateOperationsInput | Bytes uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceLineTransactionCreateManyPaymentInput = { id?: number serviceLineId: number transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string } export type ServiceLineCreateManyPaymentInput = { id?: number claimId?: number | null procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus } export type ServiceLineTransactionUpdateWithoutPaymentInput = { transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLine?: ServiceLineUpdateOneRequiredWithoutServiceLineTransactionsNestedInput } export type ServiceLineTransactionUncheckedUpdateWithoutPaymentInput = { id?: IntFieldUpdateOperationsInput | number serviceLineId?: IntFieldUpdateOperationsInput | number transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceLineTransactionUncheckedUpdateManyWithoutPaymentInput = { id?: IntFieldUpdateOperationsInput | number serviceLineId?: IntFieldUpdateOperationsInput | number transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceLineUpdateWithoutPaymentInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus claim?: ClaimUpdateOneWithoutServiceLinesNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutServiceLineNestedInput } export type ServiceLineUncheckedUpdateWithoutPaymentInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutServiceLineNestedInput } export type ServiceLineUncheckedUpdateManyWithoutPaymentInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus } export type CloudFolderCreateManyParentInput = { id?: number userId: number name: string createdAt?: Date | string updatedAt?: Date | string } export type CloudFileCreateManyFolderInput = { id?: number userId: number name: string mimeType?: string | null fileSize: bigint | number isComplete?: boolean totalChunks?: number | null createdAt?: Date | string updatedAt?: Date | string } export type CloudFolderUpdateWithoutParentInput = { name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string children?: CloudFolderUpdateManyWithoutParentNestedInput user?: UserUpdateOneRequiredWithoutCloudFoldersNestedInput files?: CloudFileUpdateManyWithoutFolderNestedInput } export type CloudFolderUncheckedUpdateWithoutParentInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string children?: CloudFolderUncheckedUpdateManyWithoutParentNestedInput files?: CloudFileUncheckedUpdateManyWithoutFolderNestedInput } export type CloudFolderUncheckedUpdateManyWithoutParentInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileUpdateWithoutFolderInput = { name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutCloudFilesNestedInput chunks?: CloudFileChunkUpdateManyWithoutFileNestedInput } export type CloudFileUncheckedUpdateWithoutFolderInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string chunks?: CloudFileChunkUncheckedUpdateManyWithoutFileNestedInput } export type CloudFileUncheckedUpdateManyWithoutFolderInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileChunkCreateManyFileInput = { id?: number seq: number data: Bytes createdAt?: Date | string } export type CloudFileChunkUpdateWithoutFileInput = { seq?: IntFieldUpdateOperationsInput | number data?: BytesFieldUpdateOperationsInput | Bytes createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileChunkUncheckedUpdateWithoutFileInput = { id?: IntFieldUpdateOperationsInput | number seq?: IntFieldUpdateOperationsInput | number data?: BytesFieldUpdateOperationsInput | Bytes createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileChunkUncheckedUpdateManyWithoutFileInput = { id?: IntFieldUpdateOperationsInput | number seq?: IntFieldUpdateOperationsInput | number data?: BytesFieldUpdateOperationsInput | Bytes createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }